// File: /workspace/github_c_makefile_star2_O3/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 0x143b4
leaq 0x8(%rsp), %rsi
movq %r15, (%rsi)
leaq 0x27c(%rip), %rax       # 0x5b579
movq %rax, 0x10(%rsi)
leaq 0x282(%rip), %rax       # 0x5b58a
movq %rax, 0x8(%rsi)
leaq 0x329(%rip), %rax       # 0x5b63c
movq %rax, 0x18(%rsi)
leaq 0x39b(%rip), %rax       # 0x5b6b9
movq %rax, 0x20(%rsi)
leaq 0x421(%rip), %rax       # 0x5b74a
movq %rax, 0x28(%rsi)
leaq 0x49e(%rip), %rax       # 0x5b7d2
movq %rax, 0x30(%rsi)
leaq 0x50c(%rip), %rax       # 0x5b84b
movq %rax, 0x38(%rsi)
leaq 0x5e8(%rip), %rax       # 0x5b932
movq %rax, 0x40(%rsi)
leaq 0x6e3(%rip), %rax       # 0x5ba38
movq %rax, 0x48(%rsi)
leaq 0x79c(%rip), %rax       # 0x5bafc
movq %rax, 0x50(%rsi)
leaq 0x7e4(%rip), %rax       # 0x5bb4f
movq %rax, 0x58(%rsi)
leaq 0x830(%rip), %rax       # 0x5bba6
movq %rax, 0x60(%rsi)
leaq 0x880(%rip), %rax       # 0x5bc01
movq %rax, 0x68(%rsi)
leaq 0x8cc(%rip), %rax       # 0x5bc58
movq %rax, 0x78(%rsi)
leaq 0x941(%rip), %rax       # 0x5bcd8
movq %rax, 0x70(%rsi)
leaq 0xa3b(%rip), %rax       # 0x5bddd
movq %rax, 0x80(%rsi)
leaq 0xa39(%rip), %rax       # 0x5bde9
movq %rax, 0x88(%rsi)
leaq 0xa3a(%rip), %rax       # 0x5bdf8
movq %rax, 0x90(%rsi)
leaq 0xb1a(%rip), %rax       # 0x5bee6
movq %rax, 0x98(%rsi)
leaq 0xc73(%rip), %rax       # 0x5c04d
movq %rax, 0xa0(%rsi)
leaq 0xd18(%rip), %rax       # 0x5c100
movq %rax, 0xa8(%rsi)
leaq 0xd8a(%rip), %rax       # 0x5c180
movq %rax, 0xb0(%rsi)
leaq 0xdcf(%rip), %rax       # 0x5c1d3
movq %rax, 0xb8(%rsi)
leaq 0xe92(%rip), %rax       # 0x5c2a4
movq %rax, 0xc0(%rsi)
leaq 0xef9(%rip), %rax       # 0x5c319
movq %rax, 0xc8(%rsi)
leaq 0xf42(%rip), %rax       # 0x5c370
movq %rax, 0xd0(%rsi)
leaq 0x1011(%rip), %rax      # 0x5c44d
movq %rax, 0xd8(%rsi)
leaq 0x10e3(%rip), %rax      # 0x5c52d
movq %rax, 0xe0(%rsi)
leaq 0x1155(%rip), %rax      # 0x5c5ad
movq %rax, 0xe8(%rsi)
leaq 0x11db(%rip), %rax      # 0x5c641
movq %rax, 0xf0(%rsi)
leaq 0x12a3(%rip), %rax      # 0x5c717
movq %rax, 0xf8(%rsi)
leaq 0x130d(%rip), %rax      # 0x5c78f
movq %rax, 0x100(%rsi)
leaq 0x13ee(%rip), %rax      # 0x5c87e
movq %rax, 0x108(%rsi)
leaq 0x1451(%rip), %rax      # 0x5c8ef
movq %rax, 0x110(%rsi)
leaq 0x1578(%rip), %rax      # 0x5ca24
movq %rax, 0x118(%rsi)
leaq 0x15c5(%rip), %rax      # 0x5ca7f
movq %rax, 0x120(%rsi)
movq %rbx, %rdi
movq %r14, %rdx
callq 0x5275c
cmpq $0x0, 0x78(%rbx)
je 0x5b51b
leaq 0x1ad3a(%rip), %r14     # 0x76214
leaq 0x1ad3f(%rip), %r15     # 0x76220
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 0x5b4e7
cmpq $0x0, 0x60(%rbx)
je 0x5b568
leaq 0x1aceb(%rip), %r14     # 0x76214
leaq 0x1acfb(%rip), %r15     # 0x7622b
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 0x5b536
addq $0xd40, %rsp            # imm = 0xD40
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq