	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp20x_adc_offset_voltage
_axp20x_adc_offset_voltage:             ## @axp20x_adc_offset_voltage
	.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
	movq	%rdx, %r14
	movl	%esi, %ebx
	callq	_iio_priv
	movl	(%rax), %edi
	movq	_AXP20X_GPIO10_IN_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	cmpl	$129, %ebx
	je	LBB0_2
## %bb.3:
	cmpl	$128, %ebx
	jne	LBB0_7
## %bb.4:
	movq	_AXP20X_GPIO10_IN_RANGE_GPIO1@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	_AXP20X_GPIO10_IN_RANGE_GPIO0@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%r14), %ecx
	andl	(%rax), %ecx
	movl	$700000, %eax                   ## imm = 0xAAE60
	cmovel	%ecx, %eax
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AXP20X_GPIO10_IN_RANGE,4,2     ## @AXP20X_GPIO10_IN_RANGE
	.comm	_AXP20X_GPIO10_IN_RANGE_GPIO0,4,2 ## @AXP20X_GPIO10_IN_RANGE_GPIO0
	.comm	_AXP20X_GPIO10_IN_RANGE_GPIO1,4,2 ## @AXP20X_GPIO10_IN_RANGE_GPIO1
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.no_dead_strip	_axp20x_adc_offset_voltage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp20x_adc_offset_voltage
_axp20x_adc_offset_voltage:             ; @axp20x_adc_offset_voltage
	.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	_iio_priv
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _AXP20X_GPIO10_IN_RANGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AXP20X_GPIO10_IN_RANGE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_regmap_read
	tbnz	w0, #31, LBB0_7
; %bb.1:
	cmp	w20, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w20, #128
	b.ne	LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _AXP20X_GPIO10_IN_RANGE_GPIO1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AXP20X_GPIO10_IN_RANGE_GPIO1@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _AXP20X_GPIO10_IN_RANGE_GPIO0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AXP20X_GPIO10_IN_RANGE_GPIO0@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	ldr	w9, [x19]
	tst	w9, w8
	mov	w8, #44640
	movk	w8, #10, lsl #16
	csel	w8, wzr, w8, eq
	str	w8, [x19]
Lloh7:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AXP20X_GPIO10_IN_RANGE,4,2     ; @AXP20X_GPIO10_IN_RANGE
	.comm	_AXP20X_GPIO10_IN_RANGE_GPIO0,4,2 ; @AXP20X_GPIO10_IN_RANGE_GPIO0
	.comm	_AXP20X_GPIO10_IN_RANGE_GPIO1,4,2 ; @AXP20X_GPIO10_IN_RANGE_GPIO1
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.no_dead_strip	_axp20x_adc_offset_voltage
.subsections_via_symbols
