All pastes #439260 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-04-14 03:20 UTC
rendered paste body
//x86 asm
	.section __TEXT,__text,regular,pure_instructions
	.section __TEXT,__picsymbolstub1,symbol_stubs,pure_instructions,32
	.machine ppc
	.cstring
	.align 2
LC0:
	.ascii "I will not write silly code snippets on the board.\12\0"
	.text
	.align 2
	.globl _main
_main:
	mflr r0
	stmw r30,-8(r1)
	stw r0,8(r1)
	stwu r1,-96(r1)
	mr r30,r1
	bcl 20,31,"L00000000001$pb"
"L00000000001$pb":
	mflr r31
	li r0,0
	stw r0,56(r30)
	b L2
L3:
	addis r2,r31,ha16(LC0-"L00000000001$pb")
	la r3,lo16(LC0-"L00000000001$pb")(r2)
	bl L_printf$LDBLStub$stub
	lwz r2,56(r30)
	addi r0,r2,1
	stw r0,56(r30)
L2:
	lwz r0,56(r30)
	cmpwi cr7,r0,99
	ble cr7,L3
	lwz r1,0(r1)
	lwz r0,8(r1)
	mtlr r0
	lmw r30,-8(r1)
	blr
	.section __TEXT,__picsymbolstub1,symbol_stubs,pure_instructions,32
	.align 5
L_printf$LDBLStub$stub:
	.indirect_symbol _printf$LDBLStub
	mflr r0
	bcl 20,31,"L00000000001$spb"
"L00000000001$spb":
	mflr r11
	addis r11,r11,ha16(L_printf$LDBLStub$lazy_ptr-"L00000000001$spb")
	mtlr r0
	lwzu r12,lo16(L_printf$LDBLStub$lazy_ptr-"L00000000001$spb")(r11)
	mtctr r12
	bctr
	.lazy_symbol_pointer
L_printf$LDBLStub$lazy_ptr:
	.indirect_symbol _printf$LDBLStub
	.long	dyld_stub_binding_helper
	.subsections_via_symbols