	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp20x_usb_power_set_current_max
_axp20x_usb_power_set_current_max:      ## @axp20x_usb_power_set_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
	cmpl	$900000, %esi                   ## imm = 0xDBBA0
	je	LBB0_5
## %bb.1:
	cmpl	$500000, %esi                   ## imm = 0x7A120
	je	LBB0_5
## %bb.2:
	cmpl	$100000, %esi                   ## imm = 0x186A0
	jne	LBB0_4
## %bb.3:
	movl	4(%rdi), %eax
	movq	_AXP221_ID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_5:
	movl	$900000, %eax                   ## imm = 0xDBBA0
	subl	%esi, %eax
	shrl	$7, %eax
	imulq	$21990233, %rax, %rcx           ## imm = 0x14F8B59
	shrq	$36, %rcx
	movl	(%rdi), %edi
	movq	_AXP20X_VBUS_IPSOUT_MGMT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AXP20X_VBUS_CLIMIT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AXP221_ID,4,2                  ## @AXP221_ID
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AXP20X_VBUS_IPSOUT_MGMT,4,2    ## @AXP20X_VBUS_IPSOUT_MGMT
	.comm	_AXP20X_VBUS_CLIMIT_MASK,4,2    ## @AXP20X_VBUS_CLIMIT_MASK
	.no_dead_strip	_axp20x_usb_power_set_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_usb_power_set_current_max
_axp20x_usb_power_set_current_max:      ; @axp20x_usb_power_set_current_max
	.cfi_startproc
; %bb.0:
	mov	w8, #48032
	movk	w8, #13, lsl #16
	cmp	w1, w8
	mov	w9, #41248
	movk	w9, #7, lsl #16
	ccmp	w1, w9, #4, ne
	b.eq	LBB0_4
; %bb.1:
	mov	w9, #34464
	movk	w9, #1, lsl #16
	cmp	w1, w9
	b.ne	LBB0_3
; %bb.2:
	ldr	w9, [x0, #4]
Lloh0:
	adrp	x10, _AXP221_ID@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AXP221_ID@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_4:
	sub	w8, w8, w1
	lsr	w8, w8, #7
	mov	w9, #35673
	movk	w9, #335, lsl #16
	umull	x8, w8, w9
	lsr	x3, x8, #36
	ldr	w0, [x0]
Lloh6:
	adrp	x8, _AXP20X_VBUS_IPSOUT_MGMT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AXP20X_VBUS_IPSOUT_MGMT@GOTPAGEOFF]
Lloh8:
	adrp	x9, _AXP20X_VBUS_CLIMIT_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AXP20X_VBUS_CLIMIT_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	ldr	w2, [x9]
                                        ; kill: def $w3 killed $w3 killed $x3
	b	_regmap_update_bits
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AXP221_ID,4,2                  ; @AXP221_ID
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AXP20X_VBUS_IPSOUT_MGMT,4,2    ; @AXP20X_VBUS_IPSOUT_MGMT
	.comm	_AXP20X_VBUS_CLIMIT_MASK,4,2    ; @AXP20X_VBUS_CLIMIT_MASK
	.no_dead_strip	_axp20x_usb_power_set_current_max
.subsections_via_symbols
