	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp22x_adc_scale
_axp22x_adc_scale:                      ## @axp22x_adc_scale
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	cmpl	$130, %eax
	je	LBB0_6
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_9
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.3:
	movl	4(%rdi), %eax
	movq	_AXP22X_BATT_V@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.4:
	movl	$1, (%rsi)
	movl	$100000, (%rdx)                 ## imm = 0x186A0
	jmp	LBB0_7
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_6:
	movl	$0, (%rsi)
	movl	$500000, (%rdx)                 ## imm = 0x7A120
LBB0_7:
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_9:
	movl	$100, (%rsi)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AXP22X_BATT_V,4,2              ## @AXP22X_BATT_V
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.no_dead_strip	_axp22x_adc_scale
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp22x_adc_scale
_axp22x_adc_scale:                      ; @axp22x_adc_scale
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, #130
	b.eq	LBB0_6
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_8
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.3:
	ldr	w8, [x0, #4]
Lloh0:
	adrp	x9, _AXP22X_BATT_V@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AXP22X_BATT_V@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x1]
	mov	w8, #34464
	movk	w8, #1, lsl #16
	b	LBB0_7
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_6:
	str	wzr, [x1]
	mov	w8, #41248
	movk	w8, #7, lsl #16
LBB0_7:
	str	w8, [x2]
Lloh6:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ret
LBB0_8:
	mov	w8, #100
	str	w8, [x1]
Lloh9:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	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	_AXP22X_BATT_V,4,2              ; @AXP22X_BATT_V
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.no_dead_strip	_axp22x_adc_scale
.subsections_via_symbols
