	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fill_header                    ## -- Begin function fill_header
	.p2align	4, 0x90
_fill_header:                           ## @fill_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%esi, %esi
	movl	$136, %edx
	callq	_memset
	movq	_hdr_ver@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movq	%rax, 128(%rbx)
	movl	124(%rbx), %edi
	movq	_vendor@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_strncpy
	movl	120(%rbx), %edi
	movq	_version@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_strncpy
	movq	_hw_id@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movq	%rax, 112(%rbx)
	movq	_hw_rev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movq	%rax, 104(%rbx)
	movq	_kernel_la@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movq	%rax, 16(%rbx)
	movq	_kernel_ep@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movq	%rax, 8(%rbx)
	movl	$136, %edi
	callq	_htonl
	movq	%rax, 96(%rbx)
	movq	_kernel_len@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_htonl
	movq	%rax, 88(%rbx)
	movq	_combined@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	_boot_info@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	(%rbx), %edi
	jne	LBB0_2
## %bb.3:
	movq	_md5salt_normal@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_md5salt_boot@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	_layout@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_htonl
	movq	%rax, 80(%rbx)
	movq	_rootfs_ofs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movq	%rax, 64(%rbx)
	movq	_rootfs_info@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movq	%rax, 72(%rbx)
	movq	(%r15), %rax
LBB0_5:
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	_rootfs_ofs_calc@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:
	movl	$136, %edi
	addl	(%r12), %edi
	callq	_htonl
	movq	%rax, 64(%rbx)
LBB0_8:
	movq	_fw_ver_hi@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	%rax, 56(%rbx)
	movq	_fw_ver_mid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	%rax, 48(%rbx)
	movq	_fw_ver_lo@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	%rax, 40(%rbx)
	movq	_region@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	(%rax), %edi
	callq	_htonl
	movq	%rax, 32(%rbx)
	movl	28(%rbx), %edi
	movq	(%r12), %rax
	movq	8(%rax), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %r8d
	movl	8(%rax), %r9d
	movl	12(%rax), %eax
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movl	24(%rbx), %edi
	movq	(%r12), %rax
	movq	8(%rax), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %r8d
	movl	8(%rax), %r9d
	movl	12(%rax), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.1(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
LBB0_10:
	movq	_endian_swap@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.11:
	movq	16(%rbx), %rdi
	callq	_bswap_32
	movq	%rax, 16(%rbx)
	movq	8(%rbx), %rdi
	callq	_bswap_32
	movq	%rax, 8(%rbx)
LBB0_12:
	cmpq	$0, (%r15)
	je	LBB0_14
## %bb.13:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	(%rbx), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_get_md5                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_hdr_ver,4,2                    ## @hdr_ver
	.comm	_vendor,4,2                     ## @vendor
	.comm	_version,4,2                    ## @version
	.comm	_hw_id,4,2                      ## @hw_id
	.comm	_hw_rev,4,2                     ## @hw_rev
	.comm	_kernel_la,4,2                  ## @kernel_la
	.comm	_kernel_ep,4,2                  ## @kernel_ep
	.comm	_kernel_len,4,2                 ## @kernel_len
	.comm	_combined,8,3                   ## @combined
	.comm	_boot_info,8,3                  ## @boot_info
	.comm	_md5salt_normal,4,2             ## @md5salt_normal
	.comm	_md5salt_boot,4,2               ## @md5salt_boot
	.comm	_layout,8,3                     ## @layout
	.comm	_rootfs_ofs,4,2                 ## @rootfs_ofs
	.comm	_rootfs_info,4,2                ## @rootfs_info
	.comm	_rootfs_ofs_calc,8,3            ## @rootfs_ofs_calc
	.comm	_fw_ver_hi,4,2                  ## @fw_ver_hi
	.comm	_fw_ver_mid,4,2                 ## @fw_ver_mid
	.comm	_fw_ver_lo,4,2                  ## @fw_ver_lo
	.comm	_region,8,3                     ## @region
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"00000000;%02X%02X%02X%02X;"

L_.str.1:                               ## @.str.1
	.asciz	"%02X%02X%02X%02X"

	.comm	_endian_swap,8,3                ## @endian_swap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fill_header                    ; -- Begin function fill_header
	.p2align	2
_fill_header:                           ; @fill_header
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
	mov	w1, #0
	mov	w2, #136
	bl	_memset
Lloh0:
	adrp	x8, _hdr_ver@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hdr_ver@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htonl
	str	x0, [x20, #128]
	ldr	w0, [x20, #124]
Lloh3:
	adrp	x8, _vendor@GOTPAGE
Lloh4:
	ldr	x8, [x8, _vendor@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_strncpy
	ldr	w0, [x20, #120]
Lloh6:
	adrp	x8, _version@GOTPAGE
Lloh7:
	ldr	x8, [x8, _version@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_strncpy
Lloh9:
	adrp	x8, _hw_id@GOTPAGE
Lloh10:
	ldr	x8, [x8, _hw_id@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_htonl
	str	x0, [x20, #112]
Lloh12:
	adrp	x8, _hw_rev@GOTPAGE
Lloh13:
	ldr	x8, [x8, _hw_rev@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_htonl
	str	x0, [x20, #104]
Lloh15:
	adrp	x8, _kernel_la@GOTPAGE
Lloh16:
	ldr	x8, [x8, _kernel_la@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_htonl
	str	x0, [x20, #16]
Lloh18:
	adrp	x8, _kernel_ep@GOTPAGE
Lloh19:
	ldr	x8, [x8, _kernel_ep@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_htonl
	str	x0, [x20, #8]
	mov	w0, #136
	bl	_htonl
	str	x0, [x20, #96]
Lloh21:
	adrp	x22, _kernel_len@GOTPAGE
Lloh22:
	ldr	x22, [x22, _kernel_len@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_htonl
	str	x0, [x20, #88]
Lloh23:
	adrp	x21, _combined@GOTPAGE
Lloh24:
	ldr	x21, [x21, _combined@GOTPAGEOFF]
	ldr	x8, [x21]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh25:
	adrp	x8, _boot_info@GOTPAGE
Lloh26:
	ldr	x8, [x8, _boot_info@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
Lloh28:
	adrp	x9, _md5salt_normal@GOTPAGE
Lloh29:
	ldr	x9, [x9, _md5salt_normal@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh30:
	adrp	x10, _md5salt_boot@GOTPAGE
Lloh31:
	ldr	x10, [x10, _md5salt_boot@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w1, [x8]
	mov	w2, #4
	bl	_memcpy
Lloh32:
	adrp	x8, _layout@GOTPAGE
Lloh33:
	ldr	x8, [x8, _layout@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_htonl
	str	x0, [x20, #80]
Lloh35:
	adrp	x8, _rootfs_ofs@GOTPAGE
Lloh36:
	ldr	x8, [x8, _rootfs_ofs@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	bl	_htonl
	str	x0, [x20, #64]
Lloh38:
	adrp	x8, _rootfs_info@GOTPAGE
Lloh39:
	ldr	x8, [x8, _rootfs_info@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	bl	_htonl
	str	x0, [x20, #72]
	ldr	x8, [x21]
LBB0_2:
	cbz	x8, LBB0_5
; %bb.3:
Lloh41:
	adrp	x8, _rootfs_ofs_calc@GOTPAGE
Lloh42:
	ldr	x8, [x8, _rootfs_ofs_calc@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w8, [x22]
	add	w0, w8, #136
	bl	_htonl
	str	x0, [x20, #64]
LBB0_5:
Lloh44:
	adrp	x8, _fw_ver_hi@GOTPAGE
Lloh45:
	ldr	x8, [x8, _fw_ver_hi@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	bl	_htons
	str	x0, [x20, #56]
Lloh47:
	adrp	x8, _fw_ver_mid@GOTPAGE
Lloh48:
	ldr	x8, [x8, _fw_ver_mid@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	bl	_htons
	str	x0, [x20, #48]
Lloh50:
	adrp	x8, _fw_ver_lo@GOTPAGE
Lloh51:
	ldr	x8, [x8, _fw_ver_lo@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	bl	_htons
	str	x0, [x20, #40]
Lloh53:
	adrp	x22, _region@GOTPAGE
Lloh54:
	ldr	x22, [x22, _region@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w0, [x8]
	bl	_htonl
	str	x0, [x20, #32]
	ldr	w0, [x20, #28]
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	ldp	w3, w4, [x8]
	ldp	w5, w6, [x8, #8]
Lloh55:
	adrp	x2, l_.str@PAGE
Lloh56:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	ldr	w0, [x20, #24]
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	ldp	w3, w4, [x8]
	ldp	w5, w6, [x8, #8]
Lloh57:
	adrp	x2, l_.str.1@PAGE
Lloh58:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #4
	bl	_snprintf
LBB0_7:
Lloh59:
	adrp	x8, _endian_swap@GOTPAGE
Lloh60:
	ldr	x8, [x8, _endian_swap@GOTPAGEOFF]
Lloh61:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	x0, [x20, #16]
	bl	_bswap_32
	str	x0, [x20, #16]
	ldr	x0, [x20, #8]
	bl	_bswap_32
	str	x0, [x20, #8]
LBB0_9:
	ldr	x8, [x21]
	cbz	x8, LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	w2, [x20]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_get_md5
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.comm	_hdr_ver,4,2                    ; @hdr_ver
	.comm	_vendor,4,2                     ; @vendor
	.comm	_version,4,2                    ; @version
	.comm	_hw_id,4,2                      ; @hw_id
	.comm	_hw_rev,4,2                     ; @hw_rev
	.comm	_kernel_la,4,2                  ; @kernel_la
	.comm	_kernel_ep,4,2                  ; @kernel_ep
	.comm	_kernel_len,4,2                 ; @kernel_len
	.comm	_combined,8,3                   ; @combined
	.comm	_boot_info,8,3                  ; @boot_info
	.comm	_md5salt_normal,4,2             ; @md5salt_normal
	.comm	_md5salt_boot,4,2               ; @md5salt_boot
	.comm	_layout,8,3                     ; @layout
	.comm	_rootfs_ofs,4,2                 ; @rootfs_ofs
	.comm	_rootfs_info,4,2                ; @rootfs_info
	.comm	_rootfs_ofs_calc,8,3            ; @rootfs_ofs_calc
	.comm	_fw_ver_hi,4,2                  ; @fw_ver_hi
	.comm	_fw_ver_mid,4,2                 ; @fw_ver_mid
	.comm	_fw_ver_lo,4,2                  ; @fw_ver_lo
	.comm	_region,8,3                     ; @region
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"00000000;%02X%02X%02X%02X;"

l_.str.1:                               ; @.str.1
	.asciz	"%02X%02X%02X%02X"

	.comm	_endian_swap,8,3                ; @endian_swap
.subsections_via_symbols
