	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function readboot
_readboot:                              ## @readboot
	.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	_xxboot@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%rdi, (%r15)
LBB0_2:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	movq	(%r15), %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_4:
	leaq	-32(%rbp), %rsi
	movl	%r14d, %edi
	callq	_fstat
	movq	-32(%rbp), %rbx
	movq	_BBSIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jle	LBB0_5
## %bb.8:
	movq	(%r15), %rdx
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_errx                           ## TAILCALL
LBB0_5:
	movq	_bootarea@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	movq	%rbx, %rdx
	callq	_read
	cmpq	%rbx, %rax
	je	LBB0_7
## %bb.6:
	movq	(%r15), %rdx
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_7:
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_close                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_xxboot,8,3                     ## @xxboot
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/boot/boot"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.1:                               ## @.str.1
	.asciz	"cannot open %s"

	.comm	_BBSIZE,8,3                     ## @BBSIZE
	.comm	_bootarea,4,2                   ## @bootarea
L_.str.2:                               ## @.str.2
	.asciz	"read error %s"

L_.str.3:                               ## @.str.3
	.asciz	"boot code %s is wrong size"

	.no_dead_strip	_readboot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function readboot
_readboot:                              ; @readboot
	.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
Lloh0:
	adrp	x21, _xxboot@GOTPAGE
Lloh1:
	ldr	x21, [x21, _xxboot@GOTPAGEOFF]
	ldr	x0, [x21]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	str	x0, [x21]
LBB0_2:
Lloh4:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_open
	mov	x19, x0
	tbz	w0, #31, LBB0_4
; %bb.3:
	ldr	x2, [x21]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_4:
	add	x1, sp, #8
	mov	x0, x19
	bl	_fstat
	ldr	x20, [sp, #8]
Lloh9:
	adrp	x8, _BBSIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BBSIZE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x20, x8
	b.le	LBB0_6
; %bb.5:
	ldr	x2, [x21]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	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
	b	_errx
LBB0_6:
Lloh14:
	adrp	x8, _bootarea@GOTPAGE
Lloh15:
	ldr	x8, [x8, _bootarea@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_read
	cmp	x0, x20
	b.eq	LBB0_8
; %bb.7:
	ldr	x2, [x21]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_8:
	mov	x0, 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
	add	sp, sp, #64
	b	_close
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_xxboot,8,3                     ; @xxboot
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/boot/boot"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.1:                               ; @.str.1
	.asciz	"cannot open %s"

	.comm	_BBSIZE,8,3                     ; @BBSIZE
	.comm	_bootarea,4,2                   ; @bootarea
l_.str.2:                               ; @.str.2
	.asciz	"read error %s"

l_.str.3:                               ; @.str.3
	.asciz	"boot code %s is wrong size"

	.no_dead_strip	_readboot
.subsections_via_symbols
