	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bootimg_header_load
_bootimg_header_load:                   ## @bootimg_header_load
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_r_buf_size
	xorl	%r15d, %r15d
	cmpl	$32, %eax
	jb	LBB0_7
## %bb.1:
	leaq	8(%rbx), %rdx
	movl	(%rbx), %edi
	xorl	%esi, %esi
	movl	$32, %ecx
	callq	_r_buf_read_at
	movq	32(%rbx), %rdi
	movq	_BOOT_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_r_str_ndup
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	xorl	%ecx, %ecx
	callq	_sdb_set
	movq	%r15, %rdi
	callq	_free
LBB0_3:
	movq	24(%rbx), %rdi
	movq	_BOOT_ARGS_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_r_str_ndup
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %r15
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	xorl	%ecx, %ecx
	callq	_sdb_set
	movq	%r15, %rdi
	callq	_free
LBB0_5:
	movq	16(%rbx), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	callq	_sdb_num_set
	movq	16(%rbx), %rax
	movl	8(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	callq	_sdb_num_set
	movq	16(%rbx), %rax
	movl	16(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	callq	_sdb_num_set
	movq	16(%rbx), %rax
	movl	24(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	callq	_sdb_num_set
	movq	16(%rbx), %rax
	movl	32(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	callq	_sdb_num_set
	movq	16(%rbx), %rax
	movl	40(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	callq	_sdb_num_set
	movq	16(%rbx), %rax
	movl	48(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	callq	_sdb_num_set
	movq	16(%rbx), %rax
	movl	56(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	callq	_sdb_num_set
	movq	8(%rbx), %rdi
	movq	_BOOT_EXTRA_ARGS_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_r_str_ndup
	movl	$1, %r15d
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %rbx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	xorl	%ecx, %ecx
	callq	_sdb_set
	movq	%rbx, %rdi
	callq	_free
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BOOT_NAME_SIZE,4,2             ## @BOOT_NAME_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"name"

	.comm	_BOOT_ARGS_SIZE,4,2             ## @BOOT_ARGS_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"cmdline"

L_.str.2:                               ## @.str.2
	.asciz	"id"

	.comm	_BOOT_EXTRA_ARGS_SIZE,4,2       ## @BOOT_EXTRA_ARGS_SIZE
L_.str.3:                               ## @.str.3
	.asciz	"extra_cmdline"

	.no_dead_strip	_bootimg_header_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bootimg_header_load
_bootimg_header_load:                   ; @bootimg_header_load
	.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
	ldr	w0, [x0]
	bl	_r_buf_size
	cmp	w0, #32
	b.hs	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_9
LBB0_2:
	add	x2, x20, #8
	ldr	w0, [x20]
	mov	w1, #0
	mov	w3, #32
	bl	_r_buf_read_at
	ldr	x0, [x20, #32]
Lloh0:
	adrp	x8, _BOOT_NAME_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BOOT_NAME_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_r_str_ndup
	cbz	x0, LBB0_4
; %bb.3:
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	mov	w3, #0
	bl	_sdb_set
	mov	x0, x21
	bl	_free
LBB0_4:
	ldr	x0, [x20, #24]
Lloh5:
	adrp	x8, _BOOT_ARGS_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BOOT_ARGS_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_r_str_ndup
	cbz	x0, LBB0_6
; %bb.5:
	mov	x21, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	mov	w3, #0
	bl	_sdb_set
	mov	x0, x21
	bl	_free
LBB0_6:
	ldr	x8, [x20, #16]
	ldr	w2, [x8]
Lloh10:
	adrp	x21, l_.str.2@PAGE
Lloh11:
	add	x21, x21, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	bl	_sdb_num_set
	ldr	x8, [x20, #16]
	ldr	w2, [x8, #8]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	bl	_sdb_num_set
	ldr	x8, [x20, #16]
	ldr	w2, [x8, #16]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	bl	_sdb_num_set
	ldr	x8, [x20, #16]
	ldr	w2, [x8, #24]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	bl	_sdb_num_set
	ldr	x8, [x20, #16]
	ldr	w2, [x8, #32]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	bl	_sdb_num_set
	ldr	x8, [x20, #16]
	ldr	w2, [x8, #40]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	bl	_sdb_num_set
	ldr	x8, [x20, #16]
	ldr	w2, [x8, #48]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	bl	_sdb_num_set
	ldr	x8, [x20, #16]
	ldr	w2, [x8, #56]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	bl	_sdb_num_set
	ldr	x0, [x20, #8]
Lloh12:
	adrp	x8, _BOOT_EXTRA_ARGS_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BOOT_EXTRA_ARGS_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_r_str_ndup
	cbz	x0, LBB0_8
; %bb.7:
	mov	x20, x0
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	bl	_sdb_set
	mov	x0, x20
	bl	_free
LBB0_8:
	mov	w0, #1
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_BOOT_NAME_SIZE,4,2             ; @BOOT_NAME_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"name"

	.comm	_BOOT_ARGS_SIZE,4,2             ; @BOOT_ARGS_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"cmdline"

l_.str.2:                               ; @.str.2
	.asciz	"id"

	.comm	_BOOT_EXTRA_ARGS_SIZE,4,2       ; @BOOT_EXTRA_ARGS_SIZE
l_.str.3:                               ; @.str.3
	.asciz	"extra_cmdline"

	.no_dead_strip	_bootimg_header_load
.subsections_via_symbols
