	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adp5588_gpio_get_value
_adp5588_gpio_get_value:                ## @adp5588_gpio_get_value
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	callq	_gpiochip_get_data
	movq	%rax, %rbx
	movl	%r14d, %edi
	callq	_ADP5588_BANK
	movl	%eax, %r12d
	movl	%r14d, %edi
	callq	_ADP5588_BIT
	movl	%eax, %r14d
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rax
	movl	%r12d, %esi
	testl	%r14d, (%rax,%rsi,4)
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rax
	movl	(%rax,%rsi,4), %ebx
	jmp	LBB0_3
LBB0_2:
	movl	20(%rbx), %edi
	movq	_GPIO_DAT_STAT1@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	callq	_adp5588_gpio_read
	movl	%eax, %ebx
LBB0_3:
	movq	%r15, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	testl	%r14d, %ebx
	setne	%al
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO_DAT_STAT1,8,3             ## @GPIO_DAT_STAT1
	.no_dead_strip	_adp5588_gpio_get_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adp5588_gpio_get_value
_adp5588_gpio_get_value:                ; @adp5588_gpio_get_value
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_gpiochip_get_data
	mov	x21, x0
	mov	x0, x19
	bl	_ADP5588_BANK
	mov	x22, x0
	mov	x0, x19
	bl	_ADP5588_BIT
	mov	x19, x0
	add	x20, x21, #16
	mov	x0, x20
	bl	_mutex_lock
	ldr	x9, [x21]
	mov	w8, w22
	ldr	w9, [x9, w22, uxtw #2]
	tst	w9, w19
	b.eq	LBB0_2
; %bb.1:
	ldr	x9, [x21, #8]
	ldr	w21, [x9, x8, lsl #2]
	b	LBB0_3
LBB0_2:
	ldr	w0, [x21, #20]
Lloh0:
	adrp	x9, _GPIO_DAT_STAT1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GPIO_DAT_STAT1@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_adp5588_gpio_read
	mov	x21, x0
LBB0_3:
	mov	x0, x20
	bl	_mutex_unlock
	tst	w21, w19
	cset	w0, ne
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO_DAT_STAT1,8,3             ; @GPIO_DAT_STAT1
	.no_dead_strip	_adp5588_gpio_get_value
.subsections_via_symbols
