	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lp_gpio_reg
_lp_gpio_reg:                           ## @lp_gpio_reg
	.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	%edx, %r14d
	movl	%esi, %ebx
	callq	_gpiochip_get_data
	movq	_LP_CONFIG1@GOTPCREL(%rip), %rcx
	movq	_LP_CONFIG2@GOTPCREL(%rip), %rdx
	leal	(,%rbx,8), %esi
	shrl	$3, %ebx
	andl	$-4, %ebx
	cmpl	%r14d, (%rdx)
	cmovel	%esi, %ebx
	cmpl	%r14d, (%rcx)
	cmovel	%esi, %ebx
	movslq	%r14d, %rcx
	addq	(%rax), %rcx
	movslq	%ebx, %rax
	addq	%rcx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LP_CONFIG1,4,2                 ## @LP_CONFIG1
	.comm	_LP_CONFIG2,4,2                 ## @LP_CONFIG2
	.no_dead_strip	_lp_gpio_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lp_gpio_reg
_lp_gpio_reg:                           ; @lp_gpio_reg
	.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, x2
	mov	x20, x1
	bl	_gpiochip_get_data
Lloh0:
	adrp	x8, _LP_CONFIG1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LP_CONFIG1@GOTPAGEOFF]
Lloh2:
	adrp	x9, _LP_CONFIG2@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LP_CONFIG2@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w19
	ccmp	w8, w19, #4, ne
	lsl	w8, w20, #3
	lsr	w9, w20, #3
	and	w9, w9, #0x1ffffffc
	csel	w8, w8, w9, eq
	ldr	x9, [x0]
	add	x9, x9, w19, sxtw
	add	x0, x9, w8, sxtw
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LP_CONFIG1,4,2                 ; @LP_CONFIG1
	.comm	_LP_CONFIG2,4,2                 ; @LP_CONFIG2
	.no_dead_strip	_lp_gpio_reg
.subsections_via_symbols
