	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp20x_get_current_max
_axp20x_get_current_max:                ## @axp20x_get_current_max
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	movq	_AXP20X_VBUS_IPSOUT_MGMT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	_AXP20X_VBUS_CLIMIT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	-20(%rbp), %edx
	addl	$-128, %edx
	cmpl	$3, %edx
	ja	LBB0_7
## %bb.2:
	movl	$500000, %ecx                   ## imm = 0x7A120
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_5:
	movl	$-1, %ecx
	jmp	LBB0_6
LBB0_4:
	movl	$900000, %ecx                   ## imm = 0xDBBA0
	jmp	LBB0_6
LBB0_3:
	movl	(%rbx), %ecx
	movq	_AXP221_ID@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	movl	$-1, %edx
	movl	$100000, %ecx                   ## imm = 0x186A0
	cmovel	%edx, %ecx
LBB0_6:
	movl	%ecx, (%r14)
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_AXP20X_VBUS_IPSOUT_MGMT,4,2    ## @AXP20X_VBUS_IPSOUT_MGMT
	.comm	_AXP20X_VBUS_CLIMIT_MASK,4,2    ## @AXP20X_VBUS_CLIMIT_MASK
	.comm	_AXP221_ID,4,2                  ## @AXP221_ID
	.no_dead_strip	_axp20x_get_current_max
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp20x_get_current_max
_axp20x_get_current_max:                ; @axp20x_get_current_max
	.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, x1
	mov	x20, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _AXP20X_VBUS_IPSOUT_MGMT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AXP20X_VBUS_IPSOUT_MGMT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _AXP20X_VBUS_CLIMIT_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AXP20X_VBUS_CLIMIT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w9, w8
	sub	w9, w8, #128
	cmp	w9, #3
	b.hi	LBB0_7
; %bb.2:
	mov	w8, #41248
	movk	w8, #7, lsl #16
Lloh6:
	adrp	x10, lJTI0_0@PAGE
Lloh7:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_3
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_3:
	mov	w8, #-1
	b	LBB0_6
LBB0_4:
	mov	w8, #48032
	movk	w8, #13, lsl #16
	b	LBB0_6
LBB0_5:
	ldr	w8, [x20]
Lloh8:
	adrp	x9, _AXP221_ID@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AXP221_ID@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	mov	w8, #34464
	movk	w8, #1, lsl #16
	csinv	w8, w8, wzr, ne
LBB0_6:
	str	w8, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
                                        ; -- End function
	.comm	_AXP20X_VBUS_IPSOUT_MGMT,4,2    ; @AXP20X_VBUS_IPSOUT_MGMT
	.comm	_AXP20X_VBUS_CLIMIT_MASK,4,2    ; @AXP20X_VBUS_CLIMIT_MASK
	.comm	_AXP221_ID,4,2                  ; @AXP221_ID
	.no_dead_strip	_axp20x_get_current_max
.subsections_via_symbols
