	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp20x_ac_power_get_property
_axp20x_ac_power_get_property:          ## @axp20x_ac_power_get_property
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	callq	_power_supply_get_drvdata
	addl	$-128, %ebx
	cmpl	$6, %ebx
	ja	LBB0_3
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_2:
	movl	8(%rax), %edi
	jmp	LBB0_18
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_24
LBB0_4:
	movl	(%rax), %edi
	movq	_AXP813_ACIN_PATH_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_24
## %bb.5:
	movl	-20(%rbp), %edi
	callq	_AXP813_VHOLD_REG_TO_UV
	jmp	LBB0_22
LBB0_6:
	movl	(%rax), %edi
	movq	_AXP20X_PWR_INPUT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_24
## %bb.7:
	movq	_AXP20X_PWR_STATUS_ACIN_PRESENT@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movl	(%rax), %edi
	movq	_AXP20X_PWR_INPUT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_24
## %bb.9:
	movq	_AXP20X_PWR_STATUS_ACIN_AVAIL@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	-20(%rbp), %eax
	setne	%cl
	jmp	LBB0_13
LBB0_11:
	movl	(%rax), %edi
	movq	_AXP813_ACIN_PATH_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_24
## %bb.12:
	movl	-20(%rbp), %edi
	callq	_AXP813_CURR_LIMIT_REG_TO_UA
	cmpl	$4000000, %eax                  ## imm = 0x3D0900
	movl	$4000000, %ecx                  ## imm = 0x3D0900
	cmovll	%eax, %ecx
LBB0_13:
	movl	%ecx, (%r14)
	jmp	LBB0_23
LBB0_14:
	movl	(%rax), %edi
	movq	_AXP20X_PWR_INPUT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_24
## %bb.15:
	movq	_AXP20X_PWR_STATUS_ACIN_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -20(%rbp)
	je	LBB0_20
## %bb.16:
	movq	_POWER_SUPPLY_HEALTH_GOOD@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_17:
	movl	4(%rax), %edi
LBB0_18:
	movq	%r14, %rsi
	callq	_iio_read_channel_processed
	testl	%eax, %eax
	jne	LBB0_24
## %bb.19:
	imull	$1000, (%r14), %eax             ## imm = 0x3E8
	jmp	LBB0_22
LBB0_20:
	movq	_POWER_SUPPLY_HEALTH_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %eax
LBB0_22:
	movl	%eax, (%r14)
LBB0_23:
	xorl	%eax, %eax
LBB0_24:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_11
	.long	L0_0_set_14
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.comm	_AXP20X_PWR_INPUT_STATUS,4,2    ## @AXP20X_PWR_INPUT_STATUS
	.comm	_AXP20X_PWR_STATUS_ACIN_PRESENT,4,2 ## @AXP20X_PWR_STATUS_ACIN_PRESENT
	.comm	_POWER_SUPPLY_HEALTH_GOOD,4,2   ## @POWER_SUPPLY_HEALTH_GOOD
	.comm	_POWER_SUPPLY_HEALTH_UNKNOWN,4,2 ## @POWER_SUPPLY_HEALTH_UNKNOWN
	.comm	_AXP20X_PWR_STATUS_ACIN_AVAIL,4,2 ## @AXP20X_PWR_STATUS_ACIN_AVAIL
	.comm	_AXP813_ACIN_PATH_CTRL,4,2      ## @AXP813_ACIN_PATH_CTRL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_axp20x_ac_power_get_property
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp20x_ac_power_get_property
_axp20x_ac_power_get_property:          ; @axp20x_ac_power_get_property
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	_power_supply_get_drvdata
	sub	w8, w20, #128
	cmp	w8, #6
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w0, [x0, #8]
	b	LBB0_17
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_22
LBB0_4:
	ldr	w0, [x0]
Lloh5:
	adrp	x8, _AXP813_ACIN_PATH_CTRL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AXP813_ACIN_PATH_CTRL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_22
; %bb.5:
	ldr	w0, [sp, #12]
	bl	_AXP813_VHOLD_REG_TO_UV
	mov	x8, x0
	mov	w0, #0
	b	LBB0_21
LBB0_6:
	ldr	w0, [x0]
Lloh8:
	adrp	x8, _AXP20X_PWR_INPUT_STATUS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AXP20X_PWR_INPUT_STATUS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_22
; %bb.7:
	ldr	w8, [sp, #12]
Lloh11:
	adrp	x9, _AXP20X_PWR_STATUS_ACIN_PRESENT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AXP20X_PWR_STATUS_ACIN_PRESENT@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	ldr	w0, [x0]
Lloh13:
	adrp	x8, _AXP20X_PWR_INPUT_STATUS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AXP20X_PWR_INPUT_STATUS@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_22
; %bb.9:
	ldr	w8, [sp, #12]
Lloh16:
	adrp	x9, _AXP20X_PWR_STATUS_ACIN_AVAIL@GOTPAGE
Lloh17:
	ldr	x9, [x9, _AXP20X_PWR_STATUS_ACIN_AVAIL@GOTPAGEOFF]
LBB0_10:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	b	LBB0_21
LBB0_11:
	ldr	w0, [x0]
Lloh18:
	adrp	x8, _AXP813_ACIN_PATH_CTRL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AXP813_ACIN_PATH_CTRL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_22
; %bb.12:
	ldr	w0, [sp, #12]
	bl	_AXP813_CURR_LIMIT_REG_TO_UA
	mov	x8, x0
	mov	w0, #0
	mov	w9, #2304
	movk	w9, #61, lsl #16
	cmp	w8, w9
	csel	w8, w8, w9, lt
	b	LBB0_21
LBB0_13:
	ldr	w0, [x0]
Lloh21:
	adrp	x8, _AXP20X_PWR_INPUT_STATUS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AXP20X_PWR_INPUT_STATUS@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_22
; %bb.14:
	ldr	w8, [sp, #12]
Lloh24:
	adrp	x9, _AXP20X_PWR_STATUS_ACIN_PRESENT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _AXP20X_PWR_STATUS_ACIN_PRESENT@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.15:
	mov	w0, #0
Lloh27:
	adrp	x8, _POWER_SUPPLY_HEALTH_GOOD@GOTPAGE
Lloh28:
	ldr	x8, [x8, _POWER_SUPPLY_HEALTH_GOOD@GOTPAGEOFF]
	b	LBB0_20
LBB0_16:
	ldr	w0, [x0, #4]
LBB0_17:
	mov	x1, x19
	bl	_iio_read_channel_processed
	cbnz	w0, LBB0_22
; %bb.18:
	ldr	w8, [x19]
	mov	w9, #1000
	mul	w8, w8, w9
	b	LBB0_21
LBB0_19:
	mov	w0, #0
Lloh29:
	adrp	x8, _POWER_SUPPLY_HEALTH_UNKNOWN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _POWER_SUPPLY_HEALTH_UNKNOWN@GOTPAGEOFF]
LBB0_20:
	ldr	w8, [x8]
LBB0_21:
	str	w8, [x19]
LBB0_22:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
                                        ; -- End function
	.comm	_AXP20X_PWR_INPUT_STATUS,4,2    ; @AXP20X_PWR_INPUT_STATUS
	.comm	_AXP20X_PWR_STATUS_ACIN_PRESENT,4,2 ; @AXP20X_PWR_STATUS_ACIN_PRESENT
	.comm	_POWER_SUPPLY_HEALTH_GOOD,4,2   ; @POWER_SUPPLY_HEALTH_GOOD
	.comm	_POWER_SUPPLY_HEALTH_UNKNOWN,4,2 ; @POWER_SUPPLY_HEALTH_UNKNOWN
	.comm	_AXP20X_PWR_STATUS_ACIN_AVAIL,4,2 ; @AXP20X_PWR_STATUS_ACIN_AVAIL
	.comm	_AXP813_ACIN_PATH_CTRL,4,2      ; @AXP813_ACIN_PATH_CTRL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_axp20x_ac_power_get_property
.subsections_via_symbols
