	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp288_charger_get_vbus_inlmt
_axp288_charger_get_vbus_inlmt:         ## @axp288_charger_get_vbus_inlmt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	(%rdi), %edi
	movq	_AXP20X_CHRG_BAK_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-4(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movq	_CHRG_VBUS_ILIM_BIT_POS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	-4(%rbp), %edx
	shrl	%cl, %edx
	addl	$-128, %edx
	movl	$4000000, %eax                  ## imm = 0x3D0900
	cmpl	$7, %edx
	ja	LBB0_3
## %bb.2:
	movslq	%edx, %rax
	leaq	l_switch.table.axp288_charger_get_vbus_inlmt(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AXP20X_CHRG_BAK_CTRL,4,2       ## @AXP20X_CHRG_BAK_CTRL
	.comm	_CHRG_VBUS_ILIM_BIT_POS,4,2     ## @CHRG_VBUS_ILIM_BIT_POS
	.no_dead_strip	_axp288_charger_get_vbus_inlmt
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.axp288_charger_get_vbus_inlmt
l_switch.table.axp288_charger_get_vbus_inlmt:
	.long	900000                          ## 0xdbba0
	.long	500000                          ## 0x7a120
	.long	3500000                         ## 0x3567e0
	.long	3000000                         ## 0x2dc6c0
	.long	2500000                         ## 0x2625a0
	.long	2000000                         ## 0x1e8480
	.long	1500000                         ## 0x16e360
	.long	100000                          ## 0x186a0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp288_charger_get_vbus_inlmt
_axp288_charger_get_vbus_inlmt:         ; @axp288_charger_get_vbus_inlmt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _AXP20X_CHRG_BAK_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AXP20X_CHRG_BAK_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	sub	x2, x29, #4
	bl	_regmap_read
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _CHRG_VBUS_ILIM_BIT_POS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHRG_VBUS_ILIM_BIT_POS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldur	w9, [x29, #-4]
	lsr	w8, w9, w8
	sub	w8, w8, #128
	cmp	w8, #7
	b.hi	LBB0_3
; %bb.2:
Lloh6:
	adrp	x9, l_switch.table.axp288_charger_get_vbus_inlmt@PAGE
Lloh7:
	add	x9, x9, l_switch.table.axp288_charger_get_vbus_inlmt@PAGEOFF
	ldr	w0, [x9, w8, sxtw #2]
	b	LBB0_4
LBB0_3:
	mov	w0, #2304
	movk	w0, #61, lsl #16
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AXP20X_CHRG_BAK_CTRL,4,2       ; @AXP20X_CHRG_BAK_CTRL
	.comm	_CHRG_VBUS_ILIM_BIT_POS,4,2     ; @CHRG_VBUS_ILIM_BIT_POS
	.no_dead_strip	_axp288_charger_get_vbus_inlmt
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.axp288_charger_get_vbus_inlmt
l_switch.table.axp288_charger_get_vbus_inlmt:
	.long	900000                          ; 0xdbba0
	.long	500000                          ; 0x7a120
	.long	3500000                         ; 0x3567e0
	.long	3000000                         ; 0x2dc6c0
	.long	2500000                         ; 0x2625a0
	.long	2000000                         ; 0x1e8480
	.long	1500000                         ; 0x16e360
	.long	100000                          ; 0x186a0

.subsections_via_symbols
