	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_bus_get_status_handle     ## -- Begin function acpi_bus_get_status_handle
	.p2align	4, 0x90
_acpi_bus_get_status_handle:            ## @acpi_bus_get_status_handle
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	movq	%r14, %rcx
	callq	_acpi_evaluate_integer
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	_AE_NOT_FOUND@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_4
## %bb.2:
	movq	_ACPI_STA_DEVICE_PRESENT@GOTPCREL(%rip), %rax
	movq	_ACPI_STA_DEVICE_ENABLED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	(%rax), %rcx
	movq	_ACPI_STA_DEVICE_UI@GOTPCREL(%rip), %rax
	orq	(%rax), %rcx
	movq	_ACPI_STA_DEVICE_FUNCTIONING@GOTPCREL(%rip), %rax
	orq	(%rax), %rcx
	movq	%rcx, (%r14)
LBB0_3:
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_4:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_STA"

	.comm	_AE_OK,8,3                      ## @AE_OK
	.comm	_AE_NOT_FOUND,8,3               ## @AE_NOT_FOUND
	.comm	_ACPI_STA_DEVICE_PRESENT,8,3    ## @ACPI_STA_DEVICE_PRESENT
	.comm	_ACPI_STA_DEVICE_ENABLED,8,3    ## @ACPI_STA_DEVICE_ENABLED
	.comm	_ACPI_STA_DEVICE_UI,8,3         ## @ACPI_STA_DEVICE_UI
	.comm	_ACPI_STA_DEVICE_FUNCTIONING,8,3 ## @ACPI_STA_DEVICE_FUNCTIONING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_bus_get_status_handle     ; -- Begin function acpi_bus_get_status_handle
	.p2align	2
_acpi_bus_get_status_handle:            ; @acpi_bus_get_status_handle
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	mov	x3, x19
	bl	_acpi_evaluate_integer
	mov	x20, x0
	bl	_ACPI_SUCCESS
	cbnz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _AE_NOT_FOUND@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AE_NOT_FOUND@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_4
; %bb.2:
Lloh5:
	adrp	x8, _ACPI_STA_DEVICE_PRESENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ACPI_STA_DEVICE_PRESENT@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _ACPI_STA_DEVICE_ENABLED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ACPI_STA_DEVICE_ENABLED@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	orr	x8, x9, x8
Lloh11:
	adrp	x9, _ACPI_STA_DEVICE_UI@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ACPI_STA_DEVICE_UI@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	orr	x8, x8, x9
Lloh14:
	adrp	x9, _ACPI_STA_DEVICE_FUNCTIONING@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ACPI_STA_DEVICE_FUNCTIONING@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	orr	x8, x8, x9
	str	x8, [x19]
LBB0_3:
Lloh17:
	adrp	x8, _AE_OK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh19:
	ldr	x20, [x8]
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_STA"

	.comm	_AE_OK,8,3                      ; @AE_OK
	.comm	_AE_NOT_FOUND,8,3               ; @AE_NOT_FOUND
	.comm	_ACPI_STA_DEVICE_PRESENT,8,3    ; @ACPI_STA_DEVICE_PRESENT
	.comm	_ACPI_STA_DEVICE_ENABLED,8,3    ; @ACPI_STA_DEVICE_ENABLED
	.comm	_ACPI_STA_DEVICE_UI,8,3         ; @ACPI_STA_DEVICE_UI
	.comm	_ACPI_STA_DEVICE_FUNCTIONING,8,3 ; @ACPI_STA_DEVICE_FUNCTIONING
.subsections_via_symbols
