	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calculate_src_freq
_calculate_src_freq:                    ## @calculate_src_freq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	movq	_ICS932S401_REG_SRC_M_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rcx,%rax,4), %eax
	movq	_ICS932S401_M_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	andl	%eax, %esi
	movq	_ICS932S401_REG_SRC_N_CTRL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	leal	(%rax,%rax), %edi
	andl	$256, %edi                      ## imm = 0x100
	andl	$64, %eax
	leal	(%rdi,%rax,8), %eax
	orl	(%rcx,%rdx,4), %eax
	movq	_BASE_CLOCK@GOTPCREL(%rip), %rdx
	addl	$8, %eax
	imull	(%rdx), %eax
	addl	$2, %esi
	cltd
	idivl	%esi
	movq	_divisors@GOTPCREL(%rip), %rdx
	movq	_ICS932S401_REG_PCISRC_DIVISOR@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movslq	(%rcx,%rsi,4), %rcx
	movq	_ICS932S401_SRC_DIVISOR_MASK@GOTPCREL(%rip), %rsi
	andq	(%rsi), %rcx
	movq	(%rdx), %rsi
	cltd
	idivl	(%rsi,%rcx,4)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICS932S401_REG_SRC_M_CTRL,8,3  ## @ICS932S401_REG_SRC_M_CTRL
	.comm	_ICS932S401_M_MASK,4,2          ## @ICS932S401_M_MASK
	.comm	_ICS932S401_REG_SRC_N_CTRL,8,3  ## @ICS932S401_REG_SRC_N_CTRL
	.comm	_BASE_CLOCK,4,2                 ## @BASE_CLOCK
	.comm	_divisors,8,3                   ## @divisors
	.comm	_ICS932S401_REG_PCISRC_DIVISOR,8,3 ## @ICS932S401_REG_PCISRC_DIVISOR
	.comm	_ICS932S401_SRC_DIVISOR_MASK,8,3 ## @ICS932S401_SRC_DIVISOR_MASK
	.no_dead_strip	_calculate_src_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calculate_src_freq
_calculate_src_freq:                    ; @calculate_src_freq
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ICS932S401_REG_SRC_M_CTRL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ICS932S401_REG_SRC_M_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	lsr	w10, w9, #6
Lloh3:
	adrp	x11, _ICS932S401_M_MASK@GOTPAGE
Lloh4:
	ldr	x11, [x11, _ICS932S401_M_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	and	w11, w11, w9
Lloh6:
	adrp	x12, _ICS932S401_REG_SRC_N_CTRL@GOTPAGE
Lloh7:
	ldr	x12, [x12, _ICS932S401_REG_SRC_N_CTRL@GOTPAGEOFF]
Lloh8:
	ldr	x12, [x12]
	ldr	w12, [x8, x12, lsl #2]
	lsl	w9, w9, #1
	and	w9, w9, #0x100
	bfi	w9, w10, #9, #1
	orr	w9, w9, w12
Lloh9:
	adrp	x10, _BASE_CLOCK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _BASE_CLOCK@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	add	w9, w9, #8
	mul	w9, w9, w10
	add	w10, w11, #2
	sdiv	w9, w9, w10
Lloh12:
	adrp	x10, _divisors@GOTPAGE
Lloh13:
	ldr	x10, [x10, _divisors@GOTPAGEOFF]
Lloh14:
	adrp	x11, _ICS932S401_REG_PCISRC_DIVISOR@GOTPAGE
Lloh15:
	ldr	x11, [x11, _ICS932S401_REG_PCISRC_DIVISOR@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
Lloh17:
	ldr	x11, [x11]
	ldrsw	x8, [x8, x11, lsl #2]
Lloh18:
	adrp	x11, _ICS932S401_SRC_DIVISOR_MASK@GOTPAGE
Lloh19:
	ldr	x11, [x11, _ICS932S401_SRC_DIVISOR_MASK@GOTPAGEOFF]
Lloh20:
	ldr	x11, [x11]
	and	x8, x11, x8
	ldr	w8, [x10, x8, lsl #2]
	sdiv	w0, w9, w8
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ICS932S401_REG_SRC_M_CTRL,8,3  ; @ICS932S401_REG_SRC_M_CTRL
	.comm	_ICS932S401_M_MASK,4,2          ; @ICS932S401_M_MASK
	.comm	_ICS932S401_REG_SRC_N_CTRL,8,3  ; @ICS932S401_REG_SRC_N_CTRL
	.comm	_BASE_CLOCK,4,2                 ; @BASE_CLOCK
	.comm	_divisors,8,3                   ; @divisors
	.comm	_ICS932S401_REG_PCISRC_DIVISOR,8,3 ; @ICS932S401_REG_PCISRC_DIVISOR
	.comm	_ICS932S401_SRC_DIVISOR_MASK,8,3 ; @ICS932S401_SRC_DIVISOR_MASK
	.no_dead_strip	_calculate_src_freq
.subsections_via_symbols
