	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function fill_header
LCPI0_0:
	.long	0xbf800000                      ## float -1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movl	$160, %esi
	callq	_memset
	movq	_hdr_ver@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bswap_32
	movl	%eax, %edi
	callq	_htonl
	movq	%rax, 152(%r12)
	movq	_version@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_strlen
	cmpl	$7, %eax
	movl	$7, %ebx
	cmovbl	%eax, %ebx
	movq	144(%r12), %rdi
	movl	(%r15), %esi
	movl	%ebx, %edx
	callq	_memcpy
	movq	144(%r12), %rax
	movq	$0, (%rax,%rbx,8)
	movq	_board@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_htonl
	movq	%rax, 136(%r12)
	movq	(%r14), %rax
	movl	4(%rax), %edi
	callq	_htonl
	movq	%rax, 128(%r12)
	movq	(%r14), %rax
	movl	8(%rax), %edi
	callq	_htonl
	movq	%rax, 120(%r12)
	movq	_boot_info@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	movq	16(%r12), %rdi
	je	LBB0_1
## %bb.2:
	movq	_md5salt_boot@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edx
	callq	_memcpy
	movq	_rootfs_ofs@GOTPCREL(%rip), %rax
	movq	_rootfs_info@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	addl	(%rax), %edi
	callq	_htonl
	movq	%rax, 72(%r12)
	movl	(%rbx), %r15d
	jmp	LBB0_3
LBB0_1:
	movq	_md5salt_normal@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edx
	callq	_memcpy
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_htonl
	movq	%rax, 72(%r12)
LBB0_3:
	movl	%r15d, %edi
	callq	_htonl
	movq	%rax, 64(%r12)
	movq	_kernel_la@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movl	%eax, (%r12)
	movq	_kernel_ep@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movl	%eax, 4(%r12)
	movq	_layout@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_htonl
	movq	%rax, 112(%r12)
	movl	$160, %edi
	callq	_htonl
	movq	%rax, 104(%r12)
	movq	_kernel_len@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movq	%rax, 96(%r12)
	movq	_combined@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	_rootfs_ofs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movq	%rax, 88(%r12)
	movq	_rootfs_info@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movq	%rax, 80(%r12)
LBB0_5:
	xorl	%edi, %edi
	callq	_htonl
	movq	%rax, 72(%r12)
	movl	(%r13), %edi
	callq	_htonl
	movq	%rax, 64(%r12)
	xorl	%edi, %edi
	callq	_htonl
	movq	%rax, 56(%r12)
	movl	$-1, %edi
	callq	_htonl
	movq	%rax, 48(%r12)
	movl	$21930, %edi                    ## imm = 0x55AA
	callq	_htons
	movl	%eax, 44(%r12)
	movl	$165, 8(%r12)
	movq	_sver_hi@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r12)
	movq	_sver_lo@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r12)
	movq	_fw_ver_hi@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movq	_fw_ver_mid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movq	_fw_ver_lo@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	(%r14), %rax
	movq	_FLAG_LE_KERNEL_LA_EP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 12(%rax)
	je	LBB0_7
## %bb.6:
	movl	(%r12), %edi
	callq	_bswap_32
	movl	%eax, (%r12)
	movl	4(%r12), %edi
	callq	_bswap_32
	movl	%eax, 4(%r12)
LBB0_7:
	movq	16(%r12), %rdx
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_get_md5                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_hdr_ver,4,2                    ## @hdr_ver
	.comm	_version,4,2                    ## @version
	.comm	_board,8,3                      ## @board
	.comm	_boot_info,4,2                  ## @boot_info
	.comm	_md5salt_normal,4,2             ## @md5salt_normal
	.comm	_md5salt_boot,4,2               ## @md5salt_boot
	.comm	_rootfs_ofs,4,2                 ## @rootfs_ofs
	.comm	_rootfs_info,4,2                ## @rootfs_info
	.comm	_kernel_la,4,2                  ## @kernel_la
	.comm	_kernel_ep,4,2                  ## @kernel_ep
	.comm	_layout,8,3                     ## @layout
	.comm	_kernel_len,4,2                 ## @kernel_len
	.comm	_combined,4,2                   ## @combined
	.comm	_sver_hi,4,2                    ## @sver_hi
	.comm	_sver_lo,4,2                    ## @sver_lo
	.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	_FLAG_LE_KERNEL_LA_EP,4,2       ## @FLAG_LE_KERNEL_LA_EP
.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	fmov	s0, #-1.00000000
	mov	w1, #160
	bl	_memset
Lloh0:
	adrp	x8, _hdr_ver@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hdr_ver@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_bswap_32
	bl	_htonl
	str	x0, [x20, #152]
Lloh3:
	adrp	x22, _version@GOTPAGE
Lloh4:
	ldr	x22, [x22, _version@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_strlen
	mov	w8, #7
	cmp	w0, #7
	csel	w21, w0, w8, lo
	ldr	x0, [x20, #144]
	ldr	w1, [x22]
	mov	x2, x21
	bl	_memcpy
	ldr	x8, [x20, #144]
	str	xzr, [x8, w21, uxtw #3]
Lloh5:
	adrp	x21, _board@GOTPAGE
Lloh6:
	ldr	x21, [x21, _board@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_htonl
	str	x0, [x20, #136]
	ldr	x8, [x21]
	ldr	w0, [x8, #4]
	bl	_htonl
	str	x0, [x20, #128]
	ldr	x8, [x21]
	ldr	w0, [x8, #8]
	bl	_htonl
	str	x0, [x20, #120]
Lloh7:
	adrp	x22, _boot_info@GOTPAGE
Lloh8:
	ldr	x22, [x22, _boot_info@GOTPAGEOFF]
	ldr	w8, [x22]
	ldr	x0, [x20, #16]
Lloh9:
	adrp	x24, _rootfs_ofs@GOTPAGE
Lloh10:
	ldr	x24, [x24, _rootfs_ofs@GOTPAGEOFF]
Lloh11:
	adrp	x23, _rootfs_info@GOTPAGE
Lloh12:
	ldr	x23, [x23, _rootfs_info@GOTPAGEOFF]
	cbz	w8, LBB0_2
; %bb.1:
Lloh13:
	adrp	x8, _md5salt_boot@GOTPAGE
Lloh14:
	ldr	x8, [x8, _md5salt_boot@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	w2, #8
	bl	_memcpy
	ldr	w8, [x24]
	ldr	w9, [x23]
	add	w0, w9, w8
	bl	_htonl
	str	x0, [x20, #72]
	ldr	w0, [x23]
	b	LBB0_3
LBB0_2:
Lloh16:
	adrp	x8, _md5salt_normal@GOTPAGE
Lloh17:
	ldr	x8, [x8, _md5salt_normal@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	w2, #8
	bl	_memcpy
	mov	w0, #0
	bl	_htonl
	mov	x8, x0
	mov	w0, #0
	str	x8, [x20, #72]
LBB0_3:
	bl	_htonl
	str	x0, [x20, #64]
Lloh19:
	adrp	x8, _kernel_la@GOTPAGE
Lloh20:
	ldr	x8, [x8, _kernel_la@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_htonl
	str	w0, [x20]
Lloh22:
	adrp	x8, _kernel_ep@GOTPAGE
Lloh23:
	ldr	x8, [x8, _kernel_ep@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_htonl
	str	w0, [x20, #4]
Lloh25:
	adrp	x8, _layout@GOTPAGE
Lloh26:
	ldr	x8, [x8, _layout@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_htonl
	str	x0, [x20, #112]
	mov	w0, #160
	bl	_htonl
	str	x0, [x20, #104]
Lloh28:
	adrp	x8, _kernel_len@GOTPAGE
Lloh29:
	ldr	x8, [x8, _kernel_len@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_htonl
	str	x0, [x20, #96]
Lloh31:
	adrp	x8, _combined@GOTPAGE
Lloh32:
	ldr	x8, [x8, _combined@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cbnz	w8, LBB0_5
; %bb.4:
	ldr	w0, [x24]
	bl	_htonl
	str	x0, [x20, #88]
	ldr	w0, [x23]
	bl	_htonl
	str	x0, [x20, #80]
LBB0_5:
	mov	w0, #0
	bl	_htonl
	str	x0, [x20, #72]
	ldr	w0, [x22]
	bl	_htonl
	str	x0, [x20, #64]
	mov	w0, #0
	bl	_htonl
	str	x0, [x20, #56]
	mov	w0, #-1
	bl	_htonl
	str	x0, [x20, #48]
	mov	w0, #21930
	bl	_htons
	mov	w8, #165
	str	w8, [x20, #8]
Lloh34:
	adrp	x8, _sver_hi@GOTPAGE
Lloh35:
	ldr	x8, [x8, _sver_hi@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	stp	w8, w0, [x20, #40]
Lloh37:
	adrp	x8, _sver_lo@GOTPAGE
Lloh38:
	ldr	x8, [x8, _sver_lo@GOTPAGEOFF]
Lloh39:
	adrp	x9, _fw_ver_hi@GOTPAGE
Lloh40:
	ldr	x9, [x9, _fw_ver_hi@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
Lloh42:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #32]
Lloh43:
	adrp	x8, _fw_ver_mid@GOTPAGE
Lloh44:
	ldr	x8, [x8, _fw_ver_mid@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
Lloh46:
	adrp	x9, _fw_ver_lo@GOTPAGE
Lloh47:
	ldr	x9, [x9, _fw_ver_lo@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
	ldr	x8, [x21]
	ldr	w8, [x8, #12]
Lloh49:
	adrp	x9, _FLAG_LE_KERNEL_LA_EP@GOTPAGE
Lloh50:
	ldr	x9, [x9, _FLAG_LE_KERNEL_LA_EP@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	w0, [x20]
	bl	_bswap_32
	str	w0, [x20]
	ldr	w0, [x20, #4]
	bl	_bswap_32
	str	w0, [x20, #4]
LBB0_7:
	ldr	x2, [x20, #16]
	mov	x0, x20
	mov	x1, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_get_md5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh41
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_hdr_ver,4,2                    ; @hdr_ver
	.comm	_version,4,2                    ; @version
	.comm	_board,8,3                      ; @board
	.comm	_boot_info,4,2                  ; @boot_info
	.comm	_md5salt_normal,4,2             ; @md5salt_normal
	.comm	_md5salt_boot,4,2               ; @md5salt_boot
	.comm	_rootfs_ofs,4,2                 ; @rootfs_ofs
	.comm	_rootfs_info,4,2                ; @rootfs_info
	.comm	_kernel_la,4,2                  ; @kernel_la
	.comm	_kernel_ep,4,2                  ; @kernel_ep
	.comm	_layout,8,3                     ; @layout
	.comm	_kernel_len,4,2                 ; @kernel_len
	.comm	_combined,4,2                   ; @combined
	.comm	_sver_hi,4,2                    ; @sver_hi
	.comm	_sver_lo,4,2                    ; @sver_lo
	.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	_FLAG_LE_KERNEL_LA_EP,4,2       ; @FLAG_LE_KERNEL_LA_EP
.subsections_via_symbols
