	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_gpio_property_lookup
_acpi_gpio_property_lookup:             ## @acpi_gpio_property_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	movl	$0, -44(%rbp)
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movl	$3, %ecx
	movq	%rbx, %r8
	callq	___acpi_node_get_property_reference
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_to_acpi_device_node
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	leaq	-72(%rbp), %rcx
	leaq	-44(%rbp), %r8
	movq	%rax, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_acpi_get_driver_gpio_data
	testl	%eax, %eax
	je	LBB0_9
LBB0_3:
	movq	-64(%rbp), %rdi
	callq	_to_acpi_device_node
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	cmpl	$3, -72(%rbp)
	jne	LBB0_7
## %bb.8:
	movq	-56(%rbp), %rax
	movl	(%rax), %ecx
	movl	%ecx, 28(%r14)
	movl	4(%rax), %ecx
	movl	%ecx, 24(%r14)
	xorl	%ecx, %ecx
	cmpl	$0, 8(%rax)
	setne	%cl
	movl	%ecx, (%r14)
	movq	-64(%rbp), %rdi
	callq	_to_acpi_device_node
	movq	%rax, 16(%r14)
	movl	-44(%rbp), %eax
	movl	%eax, 8(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	movq	_EPROTO@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EPROTO,4,2                     ## @EPROTO
	.no_dead_strip	_acpi_gpio_property_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_property_lookup
_acpi_gpio_property_lookup:             ; @acpi_gpio_property_lookup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	str	wzr, [sp, #4]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	add	x4, sp, #8
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	w3, #3
	bl	___acpi_node_get_property_reference
	cbz	w0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x23
	bl	_to_acpi_device_node
	cbz	x0, LBB0_9
; %bb.2:
	add	x3, sp, #8
	add	x4, sp, #4
	mov	x1, x22
	mov	x2, x21
	bl	_acpi_get_driver_gpio_data
	cbz	w0, LBB0_9
LBB0_3:
	ldr	x0, [sp, #16]
	bl	_to_acpi_device_node
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w8, [sp, #8]
	cmp	w8, #3
	b.ne	LBB0_7
; %bb.5:
	ldp	x0, x8, [sp, #16]
	ldr	w9, [x8]
	str	w9, [x19, #28]
	ldr	w9, [x8, #4]
	str	w9, [x19, #24]
	ldr	w8, [x8, #8]
	cmp	w8, #0
	cset	w8, ne
	str	w8, [x19]
	bl	_to_acpi_device_node
	mov	w20, #0
	str	x0, [x19, #16]
	ldr	w8, [sp, #4]
	str	w8, [x19, #8]
	b	LBB0_9
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x8, _EPROTO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EPROTO,4,2                     ; @EPROTO
	.no_dead_strip	_acpi_gpio_property_lookup
.subsections_via_symbols
