	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_find_extended_socket_device
_acpi_find_extended_socket_device:      ## @acpi_find_extended_socket_device
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	leaq	-24(%rbp), %rsi
	callq	_acpi_bus_get_device
	movq	_AE_OK@GOTPCREL(%rip), %rbx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	-24(%rbp), %rdi
	callq	_acpi_device_hid
	movq	_ACPI_MOTHERBOARD_RESOURCE_HID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_2
LBB0_5:
	movl	(%rbx), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	-24(%rbp), %rdi
	callq	_is_extended_socket_device
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movq	-24(%rbp), %rdi
	callq	_acpi_check_extended_socket_status
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movl	$1, (%r14)
	movq	_AE_CTRL_TERMINATE@GOTPCREL(%rip), %rbx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_ACPI_MOTHERBOARD_RESOURCE_HID,4,2 ## @ACPI_MOTHERBOARD_RESOURCE_HID
	.comm	_AE_CTRL_TERMINATE,4,2          ## @AE_CTRL_TERMINATE
	.no_dead_strip	_acpi_find_extended_socket_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_find_extended_socket_device
_acpi_find_extended_socket_device:      ; @acpi_find_extended_socket_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	add	x1, sp, #8
	bl	_acpi_bus_get_device
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x0, [sp, #8]
	bl	_acpi_device_hid
Lloh0:
	adrp	x8, _ACPI_MOTHERBOARD_RESOURCE_HID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_MOTHERBOARD_RESOURCE_HID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_strcmp
	cbz	x0, LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _AE_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	ldr	x0, [sp, #8]
	bl	_is_extended_socket_device
	cbz	w0, LBB0_2
; %bb.5:
	ldr	x0, [sp, #8]
	bl	_acpi_check_extended_socket_status
	cbnz	x0, LBB0_2
; %bb.6:
	mov	w8, #1
	str	w8, [x19]
Lloh5:
	adrp	x8, _AE_CTRL_TERMINATE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AE_CTRL_TERMINATE@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_ACPI_MOTHERBOARD_RESOURCE_HID,4,2 ; @ACPI_MOTHERBOARD_RESOURCE_HID
	.comm	_AE_CTRL_TERMINATE,4,2          ; @AE_CTRL_TERMINATE
	.no_dead_strip	_acpi_find_extended_socket_device
.subsections_via_symbols
