	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp20x_set_constant_charge_current
_axp20x_set_constant_charge_current:    ## @axp20x_set_constant_charge_current
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	%esi, (%rdi)
	jl	LBB0_3
## %bb.1:
	movq	8(%rdi), %rcx
	subl	(%rcx), %esi
	movl	%esi, %eax
	cltd
	idivl	4(%rcx)
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	movq	_AXP20X_CHRG_CTRL1_TGT_CURR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpl	%edx, %eax
	jg	LBB0_3
## %bb.4:
	movl	4(%rdi), %edi
	movq	_AXP20X_CHRG_CTRL1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %ecx
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AXP20X_CHRG_CTRL1_TGT_CURR,4,2 ## @AXP20X_CHRG_CTRL1_TGT_CURR
	.comm	_AXP20X_CHRG_CTRL1,4,2          ## @AXP20X_CHRG_CTRL1
	.no_dead_strip	_axp20x_set_constant_charge_current
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp20x_set_constant_charge_current
_axp20x_set_constant_charge_current:    ; @axp20x_set_constant_charge_current
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, w1
	b.lt	LBB0_4
; %bb.1:
	ldr	x8, [x0, #8]
	ldp	w9, w8, [x8]
	sub	w9, w1, w9
	sdiv	w3, w9, w8
	tbnz	w3, #31, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _AXP20X_CHRG_CTRL1_TGT_CURR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AXP20X_CHRG_CTRL1_TGT_CURR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	cmp	w3, w2
	b.gt	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _AXP20X_CHRG_CTRL1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AXP20X_CHRG_CTRL1@GOTPAGEOFF]
	ldr	w0, [x0, #4]
Lloh5:
	ldr	w1, [x8]
	b	_regmap_update_bits
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AXP20X_CHRG_CTRL1_TGT_CURR,4,2 ; @AXP20X_CHRG_CTRL1_TGT_CURR
	.comm	_AXP20X_CHRG_CTRL1,4,2          ; @AXP20X_CHRG_CTRL1
	.no_dead_strip	_axp20x_set_constant_charge_current
.subsections_via_symbols
