	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dump_header                    ## -- Begin function dump_header
	.p2align	4, 0x90
_dump_header:                           ## @dump_header
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	40(%r15), %edi
	callq	_reverse_endian16
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	36(%r15), %edi
	callq	_reverse_endian16
	movl	%eax, %ebx
	movl	36(%r15), %edi
	callq	_get_control_info
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_printf
	movl	32(%r15), %edi
	callq	_reverse_endian16
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	28(%r15), %edi
	callq	_reverse_endian16
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	leaq	24(%r15), %rsi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	20(%r15), %edi
	callq	_reverse_endian32
	leaq	L_.str.6(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	16(%r15), %edi
	callq	_reverse_endian32
	leaq	L_.str.7(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	12(%r15), %edi
	callq	_reverse_endian16
	leaq	L_.str.8(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	%r15, %rdi
	callq	_get_hcs
	movl	%eax, %ebx
	movl	12(%r15), %edi
	callq	_reverse_endian16
	cmpl	%eax, %ebx
	jne	LBB0_2
## %bb.1:
	leaq	L_str.20(%rip), %rdi
	callq	_puts
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.10(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	$1, %r14d
LBB0_3:
	movl	8(%r15), %edi
	callq	_reverse_endian32
	leaq	L_.str.11(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	4(%r15), %edi
	callq	_reverse_endian16
	leaq	L_.str.12(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	(%r15), %edi
	callq	_reverse_endian32
	leaq	L_.str.13(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_str.18(%rip), %rdi
	callq	_puts
	leaq	L_.str.16(%rip), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15,%rbx,4), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	incq	%rbx
	cmpq	$45, %rbx
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testb	$7, %bl
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$10, %edi
	callq	_putchar
	jmp	LBB0_6
LBB0_7:
	leaq	L_str.19(%rip), %rdi
	callq	_puts
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Header magic:\t0x%04X\n"

L_.str.2:                               ## @.str.2
	.asciz	"Control:\t0x%04X (%s)\n"

L_.str.3:                               ## @.str.3
	.asciz	"Major rev. :\t0x%04X\n"

L_.str.4:                               ## @.str.4
	.asciz	"Minor rev. :\t0x%04X\n"

L_.str.5:                               ## @.str.5
	.asciz	"File name :\t%s\n"

L_.str.6:                               ## @.str.6
	.asciz	"File length:\t%d bytes\n"

L_.str.7:                               ## @.str.7
	.asciz	"Build time:\t0x%08X //FixMe: print in human-readable form\n"

L_.str.8:                               ## @.str.8
	.asciz	"HCS:\t\t0x%04X  "

L_.str.10:                              ## @.str.10
	.asciz	"(ERROR! expected 0x%04X)\n"

L_.str.11:                              ## @.str.11
	.asciz	"Load address:\t0x%08X\n"

L_.str.12:                              ## @.str.12
	.asciz	"HNW:\t\t0x%04X\n"

L_.str.13:                              ## @.str.13
	.asciz	"CRC:\t\t0x%08X\n"

L_.str.16:                              ## @.str.16
	.asciz	"0x%02x   "

L_str:                                  ## @str
	.asciz	"=== Header Information ==="

L_str.18:                               ## @str.18
	.asciz	"=== Binary Header Dump==="

L_str.19:                               ## @str.19
	.asciz	"\n\n== End Of Header dump =="

L_str.20:                               ## @str.20
	.asciz	"(OK!)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dump_header                    ; -- Begin function dump_header
	.p2align	2
_dump_header:                           ; @dump_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x0, l_str@PAGE
Lloh1:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	w0, [x19, #40]
	bl	_reverse_endian16
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldr	w0, [x19, #36]
	bl	_reverse_endian16
	mov	x20, x0
	ldr	w0, [x19, #36]
	bl	_get_control_info
	stp	x20, x0, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	ldr	w0, [x19, #32]
	bl	_reverse_endian16
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	ldr	w0, [x19, #28]
	bl	_reverse_endian16
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	add	x8, x19, #24
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str.5@PAGE
Lloh11:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
	ldr	w0, [x19, #20]
	bl	_reverse_endian32
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh12:
	adrp	x0, l_.str.6@PAGE
Lloh13:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
	ldr	w0, [x19, #16]
	bl	_reverse_endian32
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh14:
	adrp	x0, l_.str.7@PAGE
Lloh15:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_printf
	ldr	w0, [x19, #12]
	bl	_reverse_endian16
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh16:
	adrp	x0, l_.str.8@PAGE
Lloh17:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_printf
	mov	x0, x19
	bl	_get_hcs
	mov	x20, x0
	ldr	w0, [x19, #12]
	bl	_reverse_endian16
	cmp	w20, w0
	b.ne	LBB0_2
; %bb.1:
Lloh18:
	adrp	x0, l_str.20@PAGE
Lloh19:
	add	x0, x0, l_str.20@PAGEOFF
	bl	_puts
	mov	w20, #0
	b	LBB0_3
LBB0_2:
	str	x20, [sp]
Lloh20:
	adrp	x0, l_.str.10@PAGE
Lloh21:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_printf
	mov	w20, #1
LBB0_3:
	ldr	w0, [x19, #8]
	bl	_reverse_endian32
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh22:
	adrp	x0, l_.str.11@PAGE
Lloh23:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_printf
	ldr	w0, [x19, #4]
	bl	_reverse_endian16
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh24:
	adrp	x0, l_.str.12@PAGE
Lloh25:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_printf
	ldr	w0, [x19]
	bl	_reverse_endian32
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh26:
	adrp	x0, l_.str.13@PAGE
Lloh27:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_printf
Lloh28:
	adrp	x0, l_str.18@PAGE
Lloh29:
	add	x0, x0, l_str.18@PAGEOFF
	bl	_puts
	mov	x22, #0
Lloh30:
	adrp	x21, l_.str.16@PAGE
Lloh31:
	add	x21, x21, l_.str.16@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19, x22, lsl #2]
	str	x8, [sp]
	mov	x0, x21
	bl	_printf
	add	x22, x22, #1
	cmp	x22, #45
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	tst	x22, #0x7
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #10
	bl	_putchar
	b	LBB0_4
LBB0_7:
Lloh32:
	adrp	x0, l_str.19@PAGE
Lloh33:
	add	x0, x0, l_str.19@PAGEOFF
	bl	_puts
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Header magic:\t0x%04X\n"

l_.str.2:                               ; @.str.2
	.asciz	"Control:\t0x%04X (%s)\n"

l_.str.3:                               ; @.str.3
	.asciz	"Major rev. :\t0x%04X\n"

l_.str.4:                               ; @.str.4
	.asciz	"Minor rev. :\t0x%04X\n"

l_.str.5:                               ; @.str.5
	.asciz	"File name :\t%s\n"

l_.str.6:                               ; @.str.6
	.asciz	"File length:\t%d bytes\n"

l_.str.7:                               ; @.str.7
	.asciz	"Build time:\t0x%08X //FixMe: print in human-readable form\n"

l_.str.8:                               ; @.str.8
	.asciz	"HCS:\t\t0x%04X  "

l_.str.10:                              ; @.str.10
	.asciz	"(ERROR! expected 0x%04X)\n"

l_.str.11:                              ; @.str.11
	.asciz	"Load address:\t0x%08X\n"

l_.str.12:                              ; @.str.12
	.asciz	"HNW:\t\t0x%04X\n"

l_.str.13:                              ; @.str.13
	.asciz	"CRC:\t\t0x%08X\n"

l_.str.16:                              ; @.str.16
	.asciz	"0x%02x   "

l_str:                                  ; @str
	.asciz	"=== Header Information ==="

l_str.18:                               ; @str.18
	.asciz	"=== Binary Header Dump==="

l_str.19:                               ; @str.19
	.asciz	"\n\n== End Of Header dump =="

l_str.20:                               ; @str.20
	.asciz	"(OK!)"

.subsections_via_symbols
