// File: /workspace/github_c_makefile_star2_O1/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 0x14404
leaq 0x8(%rsp), %rsi
movq %r15, (%rsi)
leaq 0x27c(%rip), %rax       # 0x5b4d5
movq %rax, 0x10(%rsi)
leaq 0x282(%rip), %rax       # 0x5b4e6
movq %rax, 0x8(%rsi)
leaq 0x329(%rip), %rax       # 0x5b598
movq %rax, 0x18(%rsi)
leaq 0x39b(%rip), %rax       # 0x5b615
movq %rax, 0x20(%rsi)
leaq 0x421(%rip), %rax       # 0x5b6a6
movq %rax, 0x28(%rsi)
leaq 0x49e(%rip), %rax       # 0x5b72e
movq %rax, 0x30(%rsi)
leaq 0x50c(%rip), %rax       # 0x5b7a7
movq %rax, 0x38(%rsi)
leaq 0x5e8(%rip), %rax       # 0x5b88e
movq %rax, 0x40(%rsi)
leaq 0x6e9(%rip), %rax       # 0x5b99a
movq %rax, 0x48(%rsi)
leaq 0x7a2(%rip), %rax       # 0x5ba5e
movq %rax, 0x50(%rsi)
leaq 0x7ea(%rip), %rax       # 0x5bab1
movq %rax, 0x58(%rsi)
leaq 0x836(%rip), %rax       # 0x5bb08
movq %rax, 0x60(%rsi)
leaq 0x886(%rip), %rax       # 0x5bb63
movq %rax, 0x68(%rsi)
leaq 0x8d2(%rip), %rax       # 0x5bbba
movq %rax, 0x78(%rsi)
leaq 0x947(%rip), %rax       # 0x5bc3a
movq %rax, 0x70(%rsi)
leaq 0xa41(%rip), %rax       # 0x5bd3f
movq %rax, 0x80(%rsi)
leaq 0xa3f(%rip), %rax       # 0x5bd4b
movq %rax, 0x88(%rsi)
leaq 0xa40(%rip), %rax       # 0x5bd5a
movq %rax, 0x90(%rsi)
leaq 0xb20(%rip), %rax       # 0x5be48
movq %rax, 0x98(%rsi)
leaq 0xc79(%rip), %rax       # 0x5bfaf
movq %rax, 0xa0(%rsi)
leaq 0xd1e(%rip), %rax       # 0x5c062
movq %rax, 0xa8(%rsi)
leaq 0xd90(%rip), %rax       # 0x5c0e2
movq %rax, 0xb0(%rsi)
leaq 0xdd5(%rip), %rax       # 0x5c135
movq %rax, 0xb8(%rsi)
leaq 0xe98(%rip), %rax       # 0x5c206
movq %rax, 0xc0(%rsi)
leaq 0xeff(%rip), %rax       # 0x5c27b
movq %rax, 0xc8(%rsi)
leaq 0xf48(%rip), %rax       # 0x5c2d2
movq %rax, 0xd0(%rsi)
leaq 0x1017(%rip), %rax      # 0x5c3af
movq %rax, 0xd8(%rsi)
leaq 0x10e9(%rip), %rax      # 0x5c48f
movq %rax, 0xe0(%rsi)
leaq 0x115b(%rip), %rax      # 0x5c50f
movq %rax, 0xe8(%rsi)
leaq 0x11e1(%rip), %rax      # 0x5c5a3
movq %rax, 0xf0(%rsi)
leaq 0x12a9(%rip), %rax      # 0x5c679
movq %rax, 0xf8(%rsi)
leaq 0x1313(%rip), %rax      # 0x5c6f1
movq %rax, 0x100(%rsi)
leaq 0x13f4(%rip), %rax      # 0x5c7e0
movq %rax, 0x108(%rsi)
leaq 0x1457(%rip), %rax      # 0x5c851
movq %rax, 0x110(%rsi)
leaq 0x157e(%rip), %rax      # 0x5c986
movq %rax, 0x118(%rsi)
leaq 0x15cb(%rip), %rax      # 0x5c9e1
movq %rax, 0x120(%rsi)
movq %rbx, %rdi
movq %r14, %rdx
callq 0x528e8
cmpq $0x0, 0x78(%rbx)
je 0x5b477
leaq 0x1ad9e(%rip), %r14     # 0x761d4
leaq 0x1ada3(%rip), %r15     # 0x761e0
xorl %r12d, %r12d
xorl %r13d, %r13d
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
cmpq 0x78(%rbx), %r13
jb 0x5b443
cmpq $0x0, 0x60(%rbx)
je 0x5b4c4
leaq 0x1ad4f(%rip), %r14     # 0x761d4
leaq 0x1ad5f(%rip), %r15     # 0x761eb
xorl %r12d, %r12d
xorl %r13d, %r13d
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
cmpq 0x60(%rbx), %r13
jb 0x5b492
addq $0xd40, %rsp            # imm = 0xD40
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq