	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smb347_set_current_limits
_smb347_set_current_limits:             ## @smb347_set_current_limits
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_4
## %bb.1:
	movq	_icl_tbl@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	8(%r14), %rcx
	movq	8(%rcx), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_current_to_hw
	testl	%eax, %eax
	js	LBB0_8
## %bb.2:
	movl	(%r14), %edi
	movq	_CFG_CURRENT_LIMIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_CFG_CURRENT_LIMIT_DC_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_CFG_CURRENT_LIMIT_DC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	%eax, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	js	LBB0_8
## %bb.3:
	movq	8(%r14), %rax
LBB0_4:
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.5:
	movq	_icl_tbl@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	8(%r14), %rcx
	movq	(%rcx), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_current_to_hw
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:
	movl	(%r14), %edi
	movq	_CFG_CURRENT_LIMIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_CFG_CURRENT_LIMIT_USB_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	js	LBB0_8
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_icl_tbl,4,2                    ## @icl_tbl
	.comm	_CFG_CURRENT_LIMIT,4,2          ## @CFG_CURRENT_LIMIT
	.comm	_CFG_CURRENT_LIMIT_DC_MASK,4,2  ## @CFG_CURRENT_LIMIT_DC_MASK
	.comm	_CFG_CURRENT_LIMIT_DC_SHIFT,4,2 ## @CFG_CURRENT_LIMIT_DC_SHIFT
	.comm	_CFG_CURRENT_LIMIT_USB_MASK,4,2 ## @CFG_CURRENT_LIMIT_USB_MASK
	.no_dead_strip	_smb347_set_current_limits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smb347_set_current_limits
_smb347_set_current_limits:             ; @smb347_set_current_limits
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _icl_tbl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _icl_tbl@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x1, x0
	ldr	x8, [x19, #8]
	ldr	x2, [x8, #8]
	mov	x0, x20
	bl	_current_to_hw
	mov	x3, x0
	tbnz	w0, #31, LBB0_9
; %bb.2:
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _CFG_CURRENT_LIMIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CFG_CURRENT_LIMIT@GOTPAGEOFF]
Lloh5:
	adrp	x9, _CFG_CURRENT_LIMIT_DC_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CFG_CURRENT_LIMIT_DC_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	ldr	w2, [x9]
Lloh9:
	adrp	x8, _CFG_CURRENT_LIMIT_DC_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CFG_CURRENT_LIMIT_DC_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	lsl	w3, w3, w8
	bl	_regmap_update_bits
	tbnz	w0, #31, LBB0_8
; %bb.3:
	ldr	x8, [x19, #8]
LBB0_4:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.5:
Lloh12:
	adrp	x8, _icl_tbl@GOTPAGE
Lloh13:
	ldr	x8, [x8, _icl_tbl@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x1, x0
	ldr	x8, [x19, #8]
	ldr	x2, [x8]
	mov	x0, x20
	bl	_current_to_hw
	mov	x3, x0
	tbnz	w0, #31, LBB0_9
; %bb.6:
	ldr	w0, [x19]
Lloh15:
	adrp	x8, _CFG_CURRENT_LIMIT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CFG_CURRENT_LIMIT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _CFG_CURRENT_LIMIT_USB_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CFG_CURRENT_LIMIT_USB_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	bl	_regmap_update_bits
	tbnz	w0, #31, LBB0_8
LBB0_7:
	mov	w3, #0
	b	LBB0_9
LBB0_8:
	mov	x3, x0
LBB0_9:
	mov	x0, x3
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_icl_tbl,4,2                    ; @icl_tbl
	.comm	_CFG_CURRENT_LIMIT,4,2          ; @CFG_CURRENT_LIMIT
	.comm	_CFG_CURRENT_LIMIT_DC_MASK,4,2  ; @CFG_CURRENT_LIMIT_DC_MASK
	.comm	_CFG_CURRENT_LIMIT_DC_SHIFT,4,2 ; @CFG_CURRENT_LIMIT_DC_SHIFT
	.comm	_CFG_CURRENT_LIMIT_USB_MASK,4,2 ; @CFG_CURRENT_LIMIT_USB_MASK
	.no_dead_strip	_smb347_set_current_limits
.subsections_via_symbols
