	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lp_gpio_request
_lp_gpio_request:                       ## @lp_gpio_request
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %rbx
	callq	_gpiochip_get_data
	movq	%rax, %r15
	movq	_LP_CONFIG1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_lp_gpio_reg
	movq	%rax, %r12
	movq	_LP_CONFIG2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_lp_gpio_reg
	movq	%rax, %r14
	movq	_LP_ACPI_OWNED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_lp_gpio_reg
	movq	%rax, %rbx
	movq	(%r15), %rdi
	callq	_pm_runtime_get
	movq	%rbx, %rdi
	callq	_inl
	movl	%eax, %ebx
	movl	%r13d, %edi
	andl	$31, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	callq	_inl
	movq	_USE_SEL_BIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.5:
	movq	%r14, %rdi
	callq	_inl
	movq	_GPINDIS_BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	%r14, %rsi
	callq	_outl
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LP_CONFIG1,4,2                 ## @LP_CONFIG1
	.comm	_LP_CONFIG2,4,2                 ## @LP_CONFIG2
	.comm	_LP_ACPI_OWNED,4,2              ## @LP_ACPI_OWNED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gpio %d reserved for ACPI\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_USE_SEL_BIT,4,2                ## @USE_SEL_BIT
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GPINDIS_BIT,4,2                ## @GPINDIS_BIT
	.no_dead_strip	_lp_gpio_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lp_gpio_request
_lp_gpio_request:                       ; @lp_gpio_request
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x23, x0
	bl	_gpiochip_get_data
	mov	x21, x0
Lloh0:
	adrp	x8, _LP_CONFIG1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LP_CONFIG1@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x19
	bl	_lp_gpio_reg
	mov	x22, x0
Lloh3:
	adrp	x8, _LP_CONFIG2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LP_CONFIG2@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x19
	bl	_lp_gpio_reg
	mov	x20, x0
Lloh6:
	adrp	x8, _LP_ACPI_OWNED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LP_ACPI_OWNED@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x19
	bl	_lp_gpio_reg
	mov	x23, x0
	ldr	x0, [x21]
	bl	_pm_runtime_get
	mov	x0, x23
	bl	_inl
	mov	x23, x0
	and	w0, w19, #0x1f
	bl	_BIT
	tst	w0, w23
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x22
	bl	_inl
Lloh9:
	adrp	x8, _USE_SEL_BIT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _USE_SEL_BIT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_inl
Lloh12:
	adrp	x8, _GPINDIS_BIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GPINDIS_BIT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	bic	w0, w0, w8
	mov	x1, x20
	bl	_outl
	mov	w0, #0
	b	LBB0_6
LBB0_3:
	ldr	x0, [x21]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_err
Lloh17:
	adrp	x8, _EBUSY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh19:
	adrp	x8, _ENODEV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_LP_CONFIG1,4,2                 ; @LP_CONFIG1
	.comm	_LP_CONFIG2,4,2                 ; @LP_CONFIG2
	.comm	_LP_ACPI_OWNED,4,2              ; @LP_ACPI_OWNED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gpio %d reserved for ACPI\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_USE_SEL_BIT,4,2                ; @USE_SEL_BIT
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GPINDIS_BIT,4,2                ; @GPINDIS_BIT
	.no_dead_strip	_lp_gpio_request
.subsections_via_symbols
