	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function da9055_gpio_get
_da9055_gpio_get:                       ## @da9055_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
	.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, %r15
	movl	(%rax), %edi
	movl	%r14d, %esi
	shrl	%esi
	movq	_DA9055_REG_GPIO0_1@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	callq	_da9055_reg_read
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movq	_DA9055_PORT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_DA9055_PORT_SHIFT
	movl	%eax, %ecx
	shll	%cl, %ebx
	andl	%r12d, %ebx
	movl	%r14d, %edi
	callq	_DA9055_PORT_SHIFT
	movl	%eax, %ecx
	shrl	%cl, %ebx
	cmpl	$128, %ebx
	je	LBB0_4
## %bb.2:
	cmpl	$129, %ebx
	jne	LBB0_6
## %bb.3:
	movl	(%r15), %edi
	movq	_DA9055_REG_STATUS_B@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movl	(%r15), %edi
	movq	_DA9055_REG_GPIO_MODE0_2@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rsi
	callq	_da9055_reg_read
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_7
LBB0_6:
	movl	$1, %eax
	movl	%r14d, %ecx
	shll	%cl, %eax
	andl	%eax, %r12d
LBB0_7:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DA9055_REG_GPIO0_1,8,3         ## @DA9055_REG_GPIO0_1
	.comm	_DA9055_PORT_MASK,4,2           ## @DA9055_PORT_MASK
	.comm	_DA9055_REG_STATUS_B,8,3        ## @DA9055_REG_STATUS_B
	.comm	_DA9055_REG_GPIO_MODE0_2,8,3    ## @DA9055_REG_GPIO_MODE0_2
	.no_dead_strip	_da9055_gpio_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function da9055_gpio_get
_da9055_gpio_get:                       ; @da9055_gpio_get
	.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
	ldr	w0, [x0]
	lsr	w8, w19, #1
Lloh0:
	adrp	x9, _DA9055_REG_GPIO0_1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DA9055_REG_GPIO0_1@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_da9055_reg_read
	mov	x20, x0
	tbnz	w0, #31, LBB0_7
; %bb.1:
Lloh3:
	adrp	x8, _DA9055_PORT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DA9055_PORT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_DA9055_PORT_SHIFT
	lsl	w8, w22, w0
	and	w22, w8, w20
	mov	x0, x19
	bl	_DA9055_PORT_SHIFT
	lsr	w8, w22, w0
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_6
; %bb.3:
	ldr	w0, [x21]
Lloh6:
	adrp	x8, _DA9055_REG_STATUS_B@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DA9055_REG_STATUS_B@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	ldr	w0, [x21]
Lloh8:
	adrp	x8, _DA9055_REG_GPIO_MODE0_2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DA9055_REG_GPIO_MODE0_2@GOTPAGEOFF]
LBB0_5:
	ldr	x1, [x8]
	bl	_da9055_reg_read
	mov	x20, x0
	tbnz	w0, #31, LBB0_7
LBB0_6:
	mov	w8, #1
	lsl	w8, w8, w19
	and	w20, w20, w8
LBB0_7:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DA9055_REG_GPIO0_1,8,3         ; @DA9055_REG_GPIO0_1
	.comm	_DA9055_PORT_MASK,4,2           ; @DA9055_PORT_MASK
	.comm	_DA9055_REG_STATUS_B,8,3        ; @DA9055_REG_STATUS_B
	.comm	_DA9055_REG_GPIO_MODE0_2,8,3    ; @DA9055_REG_GPIO_MODE0_2
	.no_dead_strip	_da9055_gpio_get
.subsections_via_symbols
