	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp813_usb_power_set_current_max
_axp813_usb_power_set_current_max:      ## @axp813_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
                                        ## kill: def $esi killed $esi def $rsi
	cmpl	$1999999, %esi                  ## imm = 0x1E847F
	jg	LBB0_4
## %bb.1:
	cmpl	$900000, %esi                   ## imm = 0xDBBA0
	je	LBB0_7
## %bb.2:
	cmpl	$1500000, %esi                  ## imm = 0x16E360
	je	LBB0_3
	jmp	LBB0_6
LBB0_4:
	cmpl	$2000000, %esi                  ## imm = 0x1E8480
	je	LBB0_3
## %bb.5:
	cmpl	$2500000, %esi                  ## imm = 0x2625A0
	jne	LBB0_6
LBB0_3:
	addl	$-1000000, %esi                 ## imm = 0xFFF0BDC0
	imulq	$1125899907, %rsi, %rcx         ## imm = 0x431BDE83
	shrq	$49, %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
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_7:
	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
	movq	_AXP813_VBUS_CLIMIT_900mA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- 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	_AXP813_VBUS_CLIMIT_900mA,4,2   ## @AXP813_VBUS_CLIMIT_900mA
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_axp813_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 axp813_usb_power_set_current_max
_axp813_usb_power_set_current_max:      ; @axp813_usb_power_set_current_max
	.cfi_startproc
; %bb.0:
	mov	w8, #33919
	movk	w8, #30, lsl #16
	cmp	w1, w8
	b.gt	LBB0_3
; %bb.1:
	mov	w8, #48032
	movk	w8, #13, lsl #16
	cmp	w1, w8
	b.eq	LBB0_7
; %bb.2:
	mov	w8, #58208
	movk	w8, #22, lsl #16
	cmp	w1, w8
	b.eq	LBB0_5
	b	LBB0_6
LBB0_3:
	mov	w8, #33920
	movk	w8, #30, lsl #16
	cmp	w1, w8
	b.eq	LBB0_5
; %bb.4:
	mov	w8, #9632
	movk	w8, #38, lsl #16
	cmp	w1, w8
	b.ne	LBB0_6
LBB0_5:
	sub	w8, w1, #244, lsl #12           ; =999424
	sub	w8, w8, #576
	mov	w9, #56963
	movk	w9, #17179, lsl #16
	umull	x8, w8, w9
	lsr	x3, x8, #49
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _AXP20X_VBUS_IPSOUT_MGMT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AXP20X_VBUS_IPSOUT_MGMT@GOTPAGEOFF]
Lloh2:
	adrp	x9, _AXP20X_VBUS_CLIMIT_MASK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AXP20X_VBUS_CLIMIT_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w2, [x9]
                                        ; kill: def $w3 killed $w3 killed $x3
	b	_regmap_update_bits
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_7:
Lloh9:
	adrp	x8, _AXP20X_VBUS_IPSOUT_MGMT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AXP20X_VBUS_IPSOUT_MGMT@GOTPAGEOFF]
	ldr	w0, [x0]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _AXP20X_VBUS_CLIMIT_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AXP20X_VBUS_CLIMIT_MASK@GOTPAGEOFF]
Lloh14:
	adrp	x9, _AXP813_VBUS_CLIMIT_900mA@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AXP813_VBUS_CLIMIT_900mA@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	ldr	w3, [x9]
	b	_regmap_update_bits
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- 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	_AXP813_VBUS_CLIMIT_900mA,4,2   ; @AXP813_VBUS_CLIMIT_900mA
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_axp813_usb_power_set_current_max
.subsections_via_symbols
