	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function twl_get
_twl_get:                               ## @twl_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_TWL4030_GPIO_MAX@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jbe	LBB0_2
## %bb.1:
	movl	%esi, %edi
	callq	_twl4030_get_gpio_datain
	jmp	LBB0_6
LBB0_2:
	movq	_cached_leden@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jne	LBB0_4
## %bb.3:
	movq	_LEDEN_LEDAON@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_4:
	movq	_LEDEN_LEDBON@GOTPCREL(%rip), %rcx
LBB0_5:
	andl	(%rcx), %eax
LBB0_6:
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovgl	%eax, %ecx
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TWL4030_GPIO_MAX,4,2           ## @TWL4030_GPIO_MAX
	.comm	_cached_leden,4,2               ## @cached_leden
	.comm	_LEDEN_LEDAON,4,2               ## @LEDEN_LEDAON
	.comm	_LEDEN_LEDBON,4,2               ## @LEDEN_LEDBON
	.no_dead_strip	_twl_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function twl_get
_twl_get:                               ; @twl_get
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _TWL4030_GPIO_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TWL4030_GPIO_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w9, w1
	b.ls	LBB0_2
; %bb.1:
	mov	x0, x1
	bl	_twl4030_get_gpio_datain
	b	LBB0_6
LBB0_2:
Lloh3:
	adrp	x8, _cached_leden@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cached_leden@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w9, w1
	b.ne	LBB0_4
; %bb.3:
Lloh6:
	adrp	x9, _LEDEN_LEDAON@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LEDEN_LEDAON@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x9, _LEDEN_LEDBON@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LEDEN_LEDBON@GOTPAGEOFF]
LBB0_5:
	ldr	w9, [x9]
	and	w0, w9, w8
LBB0_6:
	cmp	w0, #0
	csel	w0, w0, wzr, gt
	ldp	x29, x30, [sp], #16             ; 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	_TWL4030_GPIO_MAX,4,2           ; @TWL4030_GPIO_MAX
	.comm	_cached_leden,4,2               ; @cached_leden
	.comm	_LEDEN_LEDAON,4,2               ; @LEDEN_LEDAON
	.comm	_LEDEN_LEDBON,4,2               ; @LEDEN_LEDBON
	.no_dead_strip	_twl_get
.subsections_via_symbols
