	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sc2731_charger_set_current_limit
_sc2731_charger_set_current_limit:      ## @sc2731_charger_set_current_limit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_SC2731_CURRENT_LIMIT_100@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jge	LBB0_1
## %bb.2:
	movq	_SC2731_CURRENT_LIMIT_500@GOTPCREL(%rip), %rcx
	movl	$3, %eax
	cmpq	%rsi, (%rcx)
	jge	LBB0_4
## %bb.3:
	movq	_SC2731_CURRENT_LIMIT_900@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpq	%rsi, (%rax)
	setl	%cl
	movl	$2, %eax
	subq	%rcx, %rax
	jmp	LBB0_4
LBB0_1:
	xorl	%eax, %eax
LBB0_4:
	movq	_SC2731_CHG_CFG5@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rdi), %rsi
	movl	8(%rdi), %edi
	movq	_SC2731_CUR_LIMIT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_SC2731_CUR_LIMIT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rax
	movq	%rax, %rcx
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SC2731_CURRENT_LIMIT_100,8,3   ## @SC2731_CURRENT_LIMIT_100
	.comm	_SC2731_CURRENT_LIMIT_500,8,3   ## @SC2731_CURRENT_LIMIT_500
	.comm	_SC2731_CURRENT_LIMIT_900,8,3   ## @SC2731_CURRENT_LIMIT_900
	.comm	_SC2731_CHG_CFG5,8,3            ## @SC2731_CHG_CFG5
	.comm	_SC2731_CUR_LIMIT_MASK,4,2      ## @SC2731_CUR_LIMIT_MASK
	.comm	_SC2731_CUR_LIMIT_SHIFT,8,3     ## @SC2731_CUR_LIMIT_SHIFT
	.no_dead_strip	_sc2731_charger_set_current_limit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sc2731_charger_set_current_limit
_sc2731_charger_set_current_limit:      ; @sc2731_charger_set_current_limit
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _SC2731_CURRENT_LIMIT_100@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SC2731_CURRENT_LIMIT_100@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ge	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _SC2731_CURRENT_LIMIT_500@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SC2731_CURRENT_LIMIT_500@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ge	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _SC2731_CURRENT_LIMIT_900@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SC2731_CURRENT_LIMIT_900@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x1
	mov	w8, #1
	cinc	x9, x8, ge
	b	LBB0_5
LBB0_3:
	mov	x9, #0
	b	LBB0_5
LBB0_4:
	mov	w9, #3
LBB0_5:
	ldr	w8, [x0, #8]
	ldr	x10, [x0]
Lloh9:
	adrp	x11, _SC2731_CHG_CFG5@GOTPAGE
Lloh10:
	ldr	x11, [x11, _SC2731_CHG_CFG5@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	add	x1, x11, x10
Lloh12:
	adrp	x10, _SC2731_CUR_LIMIT_MASK@GOTPAGE
Lloh13:
	ldr	x10, [x10, _SC2731_CUR_LIMIT_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x10]
Lloh15:
	adrp	x10, _SC2731_CUR_LIMIT_SHIFT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _SC2731_CUR_LIMIT_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	lsl	x3, x9, x10
	mov	x0, x8
	b	_regmap_update_bits
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SC2731_CURRENT_LIMIT_100,8,3   ; @SC2731_CURRENT_LIMIT_100
	.comm	_SC2731_CURRENT_LIMIT_500,8,3   ; @SC2731_CURRENT_LIMIT_500
	.comm	_SC2731_CURRENT_LIMIT_900,8,3   ; @SC2731_CURRENT_LIMIT_900
	.comm	_SC2731_CHG_CFG5,8,3            ; @SC2731_CHG_CFG5
	.comm	_SC2731_CUR_LIMIT_MASK,4,2      ; @SC2731_CUR_LIMIT_MASK
	.comm	_SC2731_CUR_LIMIT_SHIFT,8,3     ; @SC2731_CUR_LIMIT_SHIFT
	.no_dead_strip	_sc2731_charger_set_current_limit
.subsections_via_symbols
