	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function twl4030_get_gpio_datain
_twl4030_get_gpio_datain:               ## @twl4030_get_gpio_datain
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	_TWL4030_GPIO_MAX@GOTPCREL(%rip), %rax
	movl	$1, %edi
	cmpl	%ebx, (%rax)
	jle	LBB0_2
## %bb.1:
	movq	_gpio_usage_count@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_BIT
	xorl	%edi, %edi
	testl	%r14d, %eax
	sete	%dil
LBB0_2:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_4:
	movl	%ebx, %edi
	sarl	$3, %edi
	andl	$7, %ebx
	movq	_REG_GPIODATAIN1@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
	callq	_gpio_twl4030_read
	movl	%eax, %ecx
	xorl	%eax, %eax
	btl	%ebx, %ecx
	setb	%al
	testl	%ecx, %ecx
	cmovlel	%ecx, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TWL4030_GPIO_MAX,4,2           ## @TWL4030_GPIO_MAX
	.comm	_gpio_usage_count,4,2           ## @gpio_usage_count
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_REG_GPIODATAIN1,4,2            ## @REG_GPIODATAIN1
	.no_dead_strip	_twl4030_get_gpio_datain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function twl4030_get_gpio_datain
_twl4030_get_gpio_datain:               ; @twl4030_get_gpio_datain
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _TWL4030_GPIO_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TWL4030_GPIO_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.le	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _gpio_usage_count@GOTPAGE
Lloh4:
	ldr	x8, [x8, _gpio_usage_count@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_BIT
	tst	w0, w20
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_4
LBB0_2:
Lloh6:
	adrp	x8, _EPERM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_3:
	mov	w0, #1
	bl	_unlikely
	cbnz	x0, LBB0_2
LBB0_4:
	asr	w8, w19, #3
	and	w19, w19, #0x7
Lloh9:
	adrp	x9, _REG_GPIODATAIN1@GOTPAGE
Lloh10:
	ldr	x9, [x9, _REG_GPIODATAIN1@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	add	w0, w9, w8
	bl	_gpio_twl4030_read
	lsr	w8, w0, w19
	and	w8, w8, #0x1
	cmp	w0, #0
	csel	w0, w8, w0, gt
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_TWL4030_GPIO_MAX,4,2           ; @TWL4030_GPIO_MAX
	.comm	_gpio_usage_count,4,2           ; @gpio_usage_count
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_REG_GPIODATAIN1,4,2            ; @REG_GPIODATAIN1
	.no_dead_strip	_twl4030_get_gpio_datain
.subsections_via_symbols
