	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_check_extended_socket_status
_acpi_check_extended_socket_status:     ## @acpi_check_extended_socket_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	leaq	-16(%rbp), %rcx
	xorl	%edx, %edx
	callq	_acpi_evaluate_integer
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	-16(%rbp), %rax
	movq	_ACPI_STA_DEVICE_PRESENT@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	je	LBB0_6
## %bb.3:
	movq	_ACPI_STA_DEVICE_ENABLED@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	je	LBB0_6
## %bb.4:
	movq	_ACPI_STA_DEVICE_UI@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_ACPI_STA_DEVICE_FUNCTIONING@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	testq	%rax, (%rcx)
	jne	LBB0_8
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_7:
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_STA"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.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
	.no_dead_strip	_acpi_check_extended_socket_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_check_extended_socket_status
_acpi_check_extended_socket_status:     ; @acpi_check_extended_socket_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #8
	mov	x2, #0
	bl	_acpi_evaluate_integer
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_3
LBB0_1:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_3:
	ldr	x8, [sp, #8]
Lloh5:
	adrp	x9, _ACPI_STA_DEVICE_PRESENT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ACPI_STA_DEVICE_PRESENT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	tst	x9, x8
	b.eq	LBB0_1
; %bb.4:
Lloh8:
	adrp	x9, _ACPI_STA_DEVICE_ENABLED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ACPI_STA_DEVICE_ENABLED@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	tst	x9, x8
	b.eq	LBB0_1
; %bb.5:
Lloh11:
	adrp	x9, _ACPI_STA_DEVICE_UI@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ACPI_STA_DEVICE_UI@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	tst	x9, x8
	b.eq	LBB0_1
; %bb.6:
Lloh14:
	adrp	x9, _ACPI_STA_DEVICE_FUNCTIONING@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ACPI_STA_DEVICE_FUNCTIONING@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	tst	x9, x8
	b.eq	LBB0_1
; %bb.7:
	mov	w0, #0
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_STA"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.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
	.no_dead_strip	_acpi_check_extended_socket_status
.subsections_via_symbols
