	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_gpio_resource_lookup
_acpi_gpio_resource_lookup:             ## @acpi_gpio_resource_lookup
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	leaq	-40(%rbp), %r12
	movq	%r12, %rdi
	callq	_INIT_LIST_HEAD
	movq	_acpi_populate_gpio_lookup@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rcx
	callq	_acpi_dev_get_resources
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	leaq	-40(%rbp), %rdi
	callq	_acpi_dev_free_resource_list
	cmpl	$0, 8(%rbx)
	je	LBB0_2
## %bb.3:
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_5
## %bb.4:
	movq	(%rbx), %rcx
	movq	%rcx, (%r14)
	jmp	LBB0_5
LBB0_2:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_acpi_populate_gpio_lookup,4,2  ## @acpi_populate_gpio_lookup
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_acpi_gpio_resource_lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_gpio_resource_lookup
_acpi_gpio_resource_lookup:             ; @acpi_gpio_resource_lookup
	.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	x19, x1
	mov	x20, x0
	ldr	x21, [x0]
	add	x0, sp, #8
	bl	_INIT_LIST_HEAD
Lloh0:
	adrp	x8, _acpi_populate_gpio_lookup@GOTPAGE
Lloh1:
	ldr	x8, [x8, _acpi_populate_gpio_lookup@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x21
	mov	x3, x20
	bl	_acpi_dev_get_resources
	tbnz	w0, #31, LBB0_5
; %bb.1:
	add	x0, sp, #8
	bl	_acpi_dev_free_resource_list
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_4
; %bb.2:
	mov	w0, #0
	cbz	x19, LBB0_5
; %bb.3:
	ldr	x8, [x20]
	str	x8, [x19]
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _ENOENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_acpi_populate_gpio_lookup,4,2  ; @acpi_populate_gpio_lookup
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_acpi_gpio_resource_lookup
.subsections_via_symbols
