	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sc27xx_fgu_get_clbcnt
_sc27xx_fgu_get_clbcnt:                 ## @sc27xx_fgu_get_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	movq	_SC27XX_FGU_CLBCNT_VALL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	leaq	-24(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movl	8(%rbx), %edi
	movq	_SC27XX_FGU_CLBCNT_VALH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_SC27XX_FGU_CLBCNT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	-24(%rbp), %edx
	movl	%edx, (%r14)
	movl	(%rax), %eax
	andl	-20(%rbp), %eax
	movq	_SC27XX_FGU_CLBCNT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%edx, %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SC27XX_FGU_CLBCNT_VALL,8,3     ## @SC27XX_FGU_CLBCNT_VALL
	.comm	_SC27XX_FGU_CLBCNT_VALH,8,3     ## @SC27XX_FGU_CLBCNT_VALH
	.comm	_SC27XX_FGU_CLBCNT_MASK,4,2     ## @SC27XX_FGU_CLBCNT_MASK
	.comm	_SC27XX_FGU_CLBCNT_SHIFT,4,2    ## @SC27XX_FGU_CLBCNT_SHIFT
	.no_dead_strip	_sc27xx_fgu_get_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_get_clbcnt
_sc27xx_fgu_get_clbcnt:                 ; @sc27xx_fgu_get_clbcnt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _SC27XX_FGU_CLBCNT_VALL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SC27XX_FGU_CLBCNT_VALL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x20, #8]
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _SC27XX_FGU_CLBCNT_VALH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SC27XX_FGU_CLBCNT_VALH@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	add	x2, sp, #8
	bl	_regmap_read
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	w8, [sp, #12]
Lloh6:
	adrp	x9, _SC27XX_FGU_CLBCNT_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SC27XX_FGU_CLBCNT_MASK@GOTPAGEOFF]
	ldr	w10, [x9]
	and	w8, w10, w8
	str	w8, [x19]
	ldr	w10, [sp, #8]
	ldr	w9, [x9]
	and	w9, w9, w10
Lloh8:
	adrp	x10, _SC27XX_FGU_CLBCNT_SHIFT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _SC27XX_FGU_CLBCNT_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SC27XX_FGU_CLBCNT_VALL,8,3     ; @SC27XX_FGU_CLBCNT_VALL
	.comm	_SC27XX_FGU_CLBCNT_VALH,8,3     ; @SC27XX_FGU_CLBCNT_VALH
	.comm	_SC27XX_FGU_CLBCNT_MASK,4,2     ; @SC27XX_FGU_CLBCNT_MASK
	.comm	_SC27XX_FGU_CLBCNT_SHIFT,4,2    ; @SC27XX_FGU_CLBCNT_SHIFT
	.no_dead_strip	_sc27xx_fgu_get_clbcnt
.subsections_via_symbols
