	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sc27xx_fgu_set_clbcnt
_sc27xx_fgu_set_clbcnt:                 ## @sc27xx_fgu_set_clbcnt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	movq	_SC27XX_FGU_CLBCNT_SETL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movq	_SC27XX_FGU_CLBCNT_MASK@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	%r14d, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	movq	_SC27XX_FGU_CLBCNT_SETH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movl	(%r15), %edx
	movq	_SC27XX_FGU_CLBCNT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r14d
	movl	%r14d, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_3
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	8(%rbx), %edi
	movq	_SC27XX_FGU_START@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movq	_SC27XX_WRITE_SELCLB_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SC27XX_FGU_CLBCNT_SETL,8,3     ## @SC27XX_FGU_CLBCNT_SETL
	.comm	_SC27XX_FGU_CLBCNT_MASK,4,2     ## @SC27XX_FGU_CLBCNT_MASK
	.comm	_SC27XX_FGU_CLBCNT_SETH,8,3     ## @SC27XX_FGU_CLBCNT_SETH
	.comm	_SC27XX_FGU_CLBCNT_SHIFT,4,2    ## @SC27XX_FGU_CLBCNT_SHIFT
	.comm	_SC27XX_FGU_START,8,3           ## @SC27XX_FGU_START
	.comm	_SC27XX_WRITE_SELCLB_EN,4,2     ## @SC27XX_WRITE_SELCLB_EN
	.no_dead_strip	_sc27xx_fgu_set_clbcnt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sc27xx_fgu_set_clbcnt
_sc27xx_fgu_set_clbcnt:                 ; @sc27xx_fgu_set_clbcnt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x8, _SC27XX_FGU_CLBCNT_SETL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SC27XX_FGU_CLBCNT_SETL@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh2:
	ldr	x8, [x8]
	add	x1, x8, x9
Lloh3:
	adrp	x21, _SC27XX_FGU_CLBCNT_MASK@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SC27XX_FGU_CLBCNT_MASK@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x3, x20
	bl	_regmap_update_bits
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _SC27XX_FGU_CLBCNT_SETH@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SC27XX_FGU_CLBCNT_SETH@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldr	w2, [x21]
Lloh8:
	adrp	x8, _SC27XX_FGU_CLBCNT_SHIFT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SC27XX_FGU_CLBCNT_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	asr	w3, w20, w8
	bl	_regmap_update_bits
	cbz	w0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
Lloh11:
	adrp	x9, _SC27XX_FGU_START@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SC27XX_FGU_START@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _SC27XX_WRITE_SELCLB_EN@GOTPAGE
Lloh15:
	ldr	x10, [x10, _SC27XX_WRITE_SELCLB_EN@GOTPAGEOFF]
	add	x1, x9, x8
Lloh16:
	ldr	w2, [x10]
	mov	x3, x2
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_regmap_update_bits
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SC27XX_FGU_CLBCNT_SETL,8,3     ; @SC27XX_FGU_CLBCNT_SETL
	.comm	_SC27XX_FGU_CLBCNT_MASK,4,2     ; @SC27XX_FGU_CLBCNT_MASK
	.comm	_SC27XX_FGU_CLBCNT_SETH,8,3     ; @SC27XX_FGU_CLBCNT_SETH
	.comm	_SC27XX_FGU_CLBCNT_SHIFT,4,2    ; @SC27XX_FGU_CLBCNT_SHIFT
	.comm	_SC27XX_FGU_START,8,3           ; @SC27XX_FGU_START
	.comm	_SC27XX_WRITE_SELCLB_EN,4,2     ; @SC27XX_WRITE_SELCLB_EN
	.no_dead_strip	_sc27xx_fgu_set_clbcnt
.subsections_via_symbols
