// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/arch/arm32/arm_dump.c
// Function: subtilis_arm_section_dump
void subtilis_arm_section_dump(subtilis_arm_prog_t *p,
			       subtilis_arm_section_t *s)
{
	subtlis_arm_walker_t walker;
	subtilis_error_t err;
	size_t i;

	subtilis_error_init(&err);

	walker.user_data = p;
	walker.label_fn = prv_dump_label;
	walker.directive_fn = prv_dump_directive;
	walker.data_fn = prv_dump_data_instr;
	walker.mul_fn = prv_dump_mul_instr;
	walker.cmp_fn = prv_dump_cmp_instr;
	walker.mov_fn = prv_dump_mov_instr;
	walker.stran_fn = prv_dump_stran_instr;
	walker.mtran_fn = prv_dump_mtran_instr;
	walker.br_fn = prv_dump_br_instr;
	walker.swi_fn = prv_dump_swi_instr;
	walker.ldrc_fn = prv_dump_ldrc_instr;
	walker.ldrp_fn = prv_dump_ldrp_instr;
	walker.adr_fn = prv_dump_adr_instr;
	walker.cmov_fn = prv_dump_cmov_instr;
	walker.flags_fn = prv_dump_flags_instr;
	walker.fpa_data_monadic_fn = prv_dump_fpa_data_monadic_instr;
	walker.fpa_data_dyadic_fn = prv_dump_fpa_data_dyadic_instr;
	walker.fpa_stran_fn = prv_dump_fpa_stran_instr;
	walker.fpa_tran_fn = prv_dump_fpa_tran_instr;
	walker.fpa_cmp_fn = prv_dump_fpa_cmp_instr;
	walker.fpa_ldrc_fn = prv_dump_fpa_ldrc_instr;
	walker.fpa_cptran_fn = prv_dump_fpa_cptran_instr;
	walker.vfp_stran_fn = prv_dump_vfp_stran_instr;
	walker.vfp_copy_fn = prv_dump_vfp_copy_instr;
	walker.vfp_ldrc_fn = prv_dump_vfp_ldrc_instr;
	walker.vfp_tran_fn = prv_dump_vfp_tran_instr;
	walker.vfp_tran_dbl_fn = prv_dump_vfp_tran_dbl_instr;
	walker.vfp_cptran_fn = prv_dump_vfp_cptran_instr;
	walker.vfp_data_fn = prv_dump_vfp_data_instr;
	walker.vfp_cmp_fn = prv_dump_vfp_cmp_instr;
	walker.vfp_sqrt_fn = prv_dump_vfp_sqrt_instr;
	walker.vfp_sysreg_fn = prv_dump_vfp_sysreg_instr;
	walker.vfp_cvt_fn = prv_dump_vfp_cvt_instr;
	walker.stran_misc_fn = prv_dump_stran_misc_instr;
	walker.simd_fn = prv_dump_reg_only_instr;
	walker.signx_fn = prv_dump_signx_instr;

	subtilis_arm_walk(s, &walker, &err);

	for (i = 0; i < s->constants.real_count; i++) {
		printf(".label_%zu\n", s->constants.real[i].label);
		printf("\tEQUFD %f\n", s->constants.real[i].real);
	}
	for (i = 0; i < s->constants.ui32_count; i++) {
		printf(".label_%zu\n", s->constants.ui32[i].label);
		printf("\tEQUD &%" PRIx32 "\n", s->constants.ui32[i].integer);
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd40, %rsp            # imm = 0xD40
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x134(%rsp), %r14
movq %r14, %rdi
callq 0x140a4
leaq 0x8(%rsp), %rsi
movq %r15, (%rsi)
leaq 0x272(%rip), %rax       # 0x57523
movq %rax, 0x10(%rsi)
leaq 0x278(%rip), %rax       # 0x57534
movq %rax, 0x8(%rsi)
leaq 0x31d(%rip), %rax       # 0x575e4
movq %rax, 0x18(%rsi)
leaq 0x38b(%rip), %rax       # 0x5765d
movq %rax, 0x20(%rsi)
leaq 0x40f(%rip), %rax       # 0x576ec
movq %rax, 0x28(%rsi)
leaq 0x488(%rip), %rax       # 0x57770
movq %rax, 0x30(%rsi)
leaq 0x4f2(%rip), %rax       # 0x577e5
movq %rax, 0x38(%rsi)
leaq 0x5c6(%rip), %rax       # 0x578c4
movq %rax, 0x40(%rsi)
leaq 0x6bc(%rip), %rax       # 0x579c5
movq %rax, 0x48(%rsi)
leaq 0x775(%rip), %rax       # 0x57a89
movq %rax, 0x50(%rsi)
leaq 0x7bd(%rip), %rax       # 0x57adc
movq %rax, 0x58(%rsi)
leaq 0x809(%rip), %rax       # 0x57b33
movq %rax, 0x60(%rsi)
leaq 0x859(%rip), %rax       # 0x57b8e
movq %rax, 0x68(%rsi)
leaq 0x8a5(%rip), %rax       # 0x57be5
movq %rax, 0x78(%rsi)
leaq 0x91a(%rip), %rax       # 0x57c65
movq %rax, 0x70(%rsi)
leaq 0xa12(%rip), %rax       # 0x57d68
movq %rax, 0x80(%rsi)
leaq 0xa10(%rip), %rax       # 0x57d74
movq %rax, 0x88(%rsi)
leaq 0xa0f(%rip), %rax       # 0x57d81
movq %rax, 0x90(%rsi)
leaq 0xaeb(%rip), %rax       # 0x57e6b
movq %rax, 0x98(%rsi)
leaq 0xc21(%rip), %rax       # 0x57faf
movq %rax, 0xa0(%rsi)
leaq 0xc9e(%rip), %rax       # 0x5803a
movq %rax, 0xa8(%rsi)
leaq 0xd10(%rip), %rax       # 0x580ba
movq %rax, 0xb0(%rsi)
leaq 0xd55(%rip), %rax       # 0x5810d
movq %rax, 0xb8(%rsi)
leaq 0xe14(%rip), %rax       # 0x581da
movq %rax, 0xc0(%rsi)
leaq 0xe79(%rip), %rax       # 0x5824d
movq %rax, 0xc8(%rsi)
leaq 0xec2(%rip), %rax       # 0x582a4
movq %rax, 0xd0(%rsi)
leaq 0xf8f(%rip), %rax       # 0x5837f
movq %rax, 0xd8(%rsi)
leaq 0x1061(%rip), %rax      # 0x5845f
movq %rax, 0xe0(%rsi)
leaq 0x10d3(%rip), %rax      # 0x584df
movq %rax, 0xe8(%rsi)
leaq 0x1159(%rip), %rax      # 0x58573
movq %rax, 0xf0(%rsi)
leaq 0x1219(%rip), %rax      # 0x58641
movq %rax, 0xf8(%rsi)
leaq 0x1283(%rip), %rax      # 0x586b9
movq %rax, 0x100(%rsi)
leaq 0x1362(%rip), %rax      # 0x587a6
movq %rax, 0x108(%rsi)
leaq 0x13c5(%rip), %rax      # 0x58817
movq %rax, 0x110(%rsi)
leaq 0x14e6(%rip), %rax      # 0x58946
movq %rax, 0x118(%rsi)
leaq 0x1533(%rip), %rax      # 0x589a1
movq %rax, 0x120(%rsi)
movq %rbx, %rdi
movq %r14, %rdx
callq 0x4f404
leaq 0x18cfd(%rip), %r14     # 0x70184
leaq 0x18d02(%rip), %r15     # 0x70190
xorl %r12d, %r12d
xorl %r13d, %r13d
cmpq 0x78(%rbx), %r13
jae 0x574ca
movq 0x70(%rbx), %rax
movq 0x8(%rax,%r12), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x12110
movq 0x70(%rbx), %rax
movsd (%rax,%r12), %xmm0
movq %r15, %rdi
movb $0x1, %al
callq 0x12110
incq %r13
addq $0x10, %r12
jmp 0x57494
leaq 0x18cb3(%rip), %r14     # 0x70184
leaq 0x18cc3(%rip), %r15     # 0x7019b
xorl %r12d, %r12d
xorl %r13d, %r13d
cmpq 0x60(%rbx), %r13
jae 0x57512
movq 0x58(%rbx), %rax
movq 0x8(%rax,%r12), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x12110
movq 0x58(%rbx), %rax
movl (%rax,%r12), %esi
movq %r15, %rdi
xorl %eax, %eax
callq 0x12110
incq %r13
addq $0x18, %r12
jmp 0x574de
addq $0xd40, %rsp            # imm = 0xD40
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq