	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arizona_gpio_get
_arizona_gpio_get:                      ## @arizona_gpio_get
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_gpiochip_get_data
	movq	(%rax), %r12
	movq	_ARIZONA_GPIO1_CTRL@GOTPCREL(%rip), %rax
	addl	(%rax), %r15d
	movl	(%r12), %edi
	leaq	-36(%rbp), %rdx
	movl	%r15d, %esi
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_11
## %bb.1:
	movl	-36(%rbp), %eax
	movq	_ARIZONA_GPN_DIR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.2:
	movl	(%r14), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_8
## %bb.3:
	movl	(%r12), %edi
	movl	%r15d, %esi
	movl	%r15d, %edx
	callq	_regcache_drop_region
	testl	%eax, %eax
	js	LBB0_9
## %bb.4:
	movl	(%r12), %edi
	leaq	-36(%rbp), %rdx
	movl	%r15d, %esi
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_11
## %bb.5:
	movl	(%r14), %edi
	callq	_pm_runtime_mark_last_busy
	movl	(%r14), %edi
	callq	_pm_runtime_put_autosuspend
	movl	-36(%rbp), %eax
LBB0_6:
	movq	_ARIZONA_GPN_LVL@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	testl	%eax, (%rcx)
	setne	%bl
	jmp	LBB0_12
LBB0_11:
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_8:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_10
LBB0_9:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_10:
	movl	%ebx, %edx
	callq	_dev_err
LBB0_12:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARIZONA_GPIO1_CTRL,4,2         ## @ARIZONA_GPIO1_CTRL
	.comm	_ARIZONA_GPN_DIR,4,2            ## @ARIZONA_GPN_DIR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to resume: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to drop cache: %d\n"

	.comm	_ARIZONA_GPN_LVL,4,2            ## @ARIZONA_GPN_LVL
	.no_dead_strip	_arizona_gpio_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arizona_gpio_get
_arizona_gpio_get:                      ; @arizona_gpio_get
	.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	x20, x1
	mov	x19, x0
	bl	_gpiochip_get_data
	ldr	x22, [x0]
Lloh0:
	adrp	x8, _ARIZONA_GPIO1_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARIZONA_GPIO1_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w21, w8, w20
	ldr	w0, [x22]
	add	x2, sp, #12
	mov	x1, x21
	bl	_regmap_read
	tbnz	w0, #31, LBB0_7
; %bb.1:
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _ARIZONA_GPN_DIR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ARIZONA_GPN_DIR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.2:
	ldr	w0, [x19]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_8
; %bb.3:
	ldr	w0, [x22]
	mov	x1, x21
	mov	x2, x21
	bl	_regcache_drop_region
	tbnz	w0, #31, LBB0_9
; %bb.4:
	ldr	w0, [x22]
	add	x2, sp, #12
	mov	x1, x21
	bl	_regmap_read
	tbnz	w0, #31, LBB0_7
; %bb.5:
	ldr	w0, [x19]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x19]
	bl	_pm_runtime_put_autosuspend
	ldr	w8, [sp, #12]
LBB0_6:
Lloh6:
	adrp	x9, _ARIZONA_GPN_LVL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ARIZONA_GPN_LVL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w20, ne
	b	LBB0_11
LBB0_7:
	mov	x20, x0
	b	LBB0_11
LBB0_8:
	mov	x20, x0
	ldr	w0, [x19]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_9:
	mov	x20, x0
	ldr	w0, [x19]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_10:
	mov	x2, x20
	bl	_dev_err
LBB0_11:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ARIZONA_GPIO1_CTRL,4,2         ; @ARIZONA_GPIO1_CTRL
	.comm	_ARIZONA_GPN_DIR,4,2            ; @ARIZONA_GPN_DIR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to resume: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to drop cache: %d\n"

	.comm	_ARIZONA_GPN_LVL,4,2            ; @ARIZONA_GPN_LVL
	.no_dead_strip	_arizona_gpio_get
.subsections_via_symbols
