	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function round_clock_rate
_round_clock_rate:                      ## @round_clock_rate
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_prcmu_base@GOTPCREL(%rip), %rax
	movq	_clk_mgt@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	%rdi, %rbx
	shlq	$5, %rbx
	movq	24(%rcx,%rbx), %rdi
	addq	(%rax), %rdi
	callq	_readl
	movl	%eax, %r13d
	movq	(%r12), %rax
	movl	(%rax,%rbx), %edi
	orl	%r13d, %edi
	movl	16(%rax,%rbx), %esi
	callq	_clock_source_rate
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_clock_divider
	movq	_PRCM_CLK_MGT_CLK38@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_clk_mgt@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$2, %eax
	movl	$2, %edx
	cmovll	%eax, %edx
	cmpq	$0, 8(%rcx,%rbx)
	movl	$1, %eax
	cmovnel	%edx, %eax
LBB0_5:
	movl	%eax, %edi
	movl	$31, %esi
	callq	_min
	movq	%rax, %rcx
	movq	%r12, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_6
## %bb.7:
	movq	%r12, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rax, %rbx
	jmp	LBB0_8
LBB0_2:
	movq	_PRCMU_SGACLK@GOTPCREL(%rip), %rcx
	cmpq	%r15, (%rcx)
	jne	LBB0_5
## %bb.3:
	cmpl	$3, %eax
	jne	LBB0_5
## %bb.4:
	leaq	(%r12,%r12), %rax
	leaq	(%rax,%rax,4), %rbx
	movq	%rbx, %rdi
	movl	$25, %esi
	callq	_do_div
	movl	$3, %eax
	cmpq	%r14, %rbx
	ja	LBB0_5
	jmp	LBB0_8
LBB0_6:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %ebx
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_prcmu_base,8,3                 ## @prcmu_base
	.comm	_clk_mgt,8,3                    ## @clk_mgt
	.comm	_PRCM_CLK_MGT_CLK38,4,2         ## @PRCM_CLK_MGT_CLK38
	.comm	_PRCMU_SGACLK,8,3               ## @PRCMU_SGACLK
	.no_dead_strip	_round_clock_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function round_clock_rate
_round_clock_rate:                      ; @round_clock_rate
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _prcmu_base@GOTPAGE
Lloh1:
	ldr	x8, [x8, _prcmu_base@GOTPAGEOFF]
Lloh2:
	adrp	x23, _clk_mgt@GOTPAGE
Lloh3:
	ldr	x23, [x23, _clk_mgt@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x9, [x23]
	lsl	x19, x0, #5
	add	x9, x9, x19
	ldr	x9, [x9, #24]
	add	x0, x9, x8
	bl	_readl
	mov	x22, x0
	ldr	x8, [x23]
	add	x8, x8, x19
	ldr	w9, [x8]
	orr	w0, w9, w0
	ldr	w1, [x8, #16]
	bl	_clock_source_rate
	mov	x19, x0
	mov	x1, x20
	bl	_clock_divider
Lloh5:
	adrp	x8, _PRCM_CLK_MGT_CLK38@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PRCM_CLK_MGT_CLK38@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x23]
	add	x8, x8, x21, lsl #5
	ldr	x8, [x8, #8]
	mov	w9, #2
	cmp	w0, #2
	csel	w9, w0, w9, lt
	cmp	x8, #0
	csinc	w0, w9, wzr, ne
	b	LBB0_5
LBB0_2:
Lloh8:
	adrp	x8, _PRCMU_SGACLK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PRCMU_SGACLK@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, x21
	ccmp	w0, #3, #0, eq
	b.ne	LBB0_5
; %bb.3:
	add	x8, x19, x19, lsl #2
	lsl	x21, x8, #1
	mov	x0, x21
	mov	w1, #25
	bl	_do_div
	cmp	x21, x20
	b.ls	LBB0_6
; %bb.4:
	mov	w0, #3
LBB0_5:
	mov	w1, #31
	bl	_min
	udiv	x21, x19, x0
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_prcmu_base,8,3                 ; @prcmu_base
	.comm	_clk_mgt,8,3                    ; @clk_mgt
	.comm	_PRCM_CLK_MGT_CLK38,4,2         ; @PRCM_CLK_MGT_CLK38
	.comm	_PRCMU_SGACLK,8,3               ; @PRCMU_SGACLK
	.no_dead_strip	_round_clock_rate
.subsections_via_symbols
