	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function basl_load
_basl_load:                             ## @basl_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r15
	leaq	-40(%rbp), %rsi
	movl	%r14d, %edi
	callq	_fstat
	testq	%rax, %rax
	js	LBB0_3
## %bb.1:
	movq	_basl_acpi_base@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movl	-40(%rbp), %r12d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_paddr_guest2host
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	%r14d, %edi
	movq	%rax, %rsi
	movl	%r12d, %edx
	callq	_read
	movq	_errno@GOTPCREL(%rip), %rcx
	sarq	$63, %rax
	andl	(%rcx), %eax
	jmp	LBB0_6
LBB0_3:
	movq	_errno@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	_basl_acpi_base,8,3             ## @basl_acpi_base
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_basl_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function basl_load
_basl_load:                             ; @basl_load
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_fstat
	tbnz	x0, #63, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _basl_acpi_base@GOTPAGE
Lloh1:
	ldr	x8, [x8, _basl_acpi_base@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x1, x8, x21
	ldr	w21, [sp, #8]
	mov	x0, x20
	mov	x2, x21
	bl	_paddr_guest2host
	cbz	x0, LBB0_4
; %bb.2:
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_read
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	asr	x9, x0, #63
	and	w0, w9, w8
	b	LBB0_6
LBB0_3:
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _EFAULT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
LBB0_6:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	_basl_acpi_base,8,3             ; @basl_acpi_base
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_basl_load
.subsections_via_symbols
