	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_get_gpiod_by_index
_acpi_get_gpiod_by_index:               ## @acpi_get_gpiod_by_index
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	%rcx, %r14
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	%r15d, -64(%rbp)
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r12, %rdi
	callq	_acpi_fwnode_handle
	leaq	-64(%rbp), %rcx
	movl	%eax, %edi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_acpi_gpio_property_lookup
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:
	movq	-48(%rbp), %rdi
	callq	_dev_name
	movl	-36(%rbp), %r8d
	movl	-64(%rbp), %ecx
	movl	-40(%rbp), %r9d
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_6
LBB0_9:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r12, -48(%rbp)
LBB0_6:
	leaq	-64(%rbp), %rdi
	movq	%r14, %rsi
	callq	_acpi_gpio_resource_lookup
	testl	%eax, %eax
	je	LBB0_7
LBB0_3:
	movl	%eax, %edi
	callq	_ERR_PTR
	jmp	LBB0_8
LBB0_7:
	movq	-56(%rbp), %rax
LBB0_8:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GPIO: looking up %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"GPIO: _DSD returned %s %d %d %u\n"

L_.str.2:                               ## @.str.2
	.asciz	"GPIO: looking up %d in _CRS\n"

	.no_dead_strip	_acpi_get_gpiod_by_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_get_gpiod_by_index
_acpi_get_gpiod_by_index:               ; @acpi_get_gpiod_by_index
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	str	w21, [sp, #32]
	cbz	x22, LBB0_5
; %bb.2:
	str	x22, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	mov	x0, x20
	bl	_acpi_fwnode_handle
	add	x3, sp, #32
	mov	x1, x22
	mov	x2, x21
	bl	_acpi_gpio_property_lookup
	cbnz	w0, LBB0_7
; %bb.3:
	ldr	x0, [sp, #48]
	bl	_dev_name
                                        ; kill: def $w0 killed $w0 def $x0
	ldp	w10, w8, [sp, #56]
	ldr	w9, [sp, #32]
	stp	x8, x10, [sp, #16]
	stp	x0, x9, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	b	LBB0_6
LBB0_4:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ERR_PTR
LBB0_5:
	str	x21, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	str	x20, [sp, #48]
LBB0_6:
	add	x0, sp, #32
	mov	x1, x19
	bl	_acpi_gpio_resource_lookup
	cbz	w0, LBB0_8
LBB0_7:
	bl	_ERR_PTR
	b	LBB0_9
LBB0_8:
	ldr	x0, [sp, #40]
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GPIO: looking up %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"GPIO: _DSD returned %s %d %d %u\n"

l_.str.2:                               ; @.str.2
	.asciz	"GPIO: looking up %d in _CRS\n"

	.no_dead_strip	_acpi_get_gpiod_by_index
.subsections_via_symbols
