	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CLK_set_gclk_freq              ## -- Begin function CLK_set_gclk_freq
	.p2align	4, 0x90
_CLK_set_gclk_freq:                     ## @CLK_set_gclk_freq
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	_GCLK@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_DC_CLK_SET_GCLK_FREQ_BEGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DBGC
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.1:
	movq	_DC_CLK_SET_GCLK_FREQ_SYNC_1@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_DBGC
	cmpq	$0, 8(%rbx)
	jne	LBB0_2
LBB0_3:
	movq	_USE_DPLL_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rsi
	movq	%r12, %rbx
	shlq	$5, %rbx
	movl	%eax, 24(%rsi,%rbx)
	movq	_system_clks@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movl	(%rcx), %eax
	cltd
	idivl	%r14d
	movl	%eax, %r8d
	movslq	%eax, %rdi
	movq	%rdi, (%rsi,%rbx)
	movq	$0, 16(%rsi,%rbx)
	movl	$1, 8(%rsi,%rbx)
	movslq	(%rcx), %rax
	movq	8(%r15), %rsi
	movq	%rax, %rcx
	orq	%rdi, %rcx
	shrq	$32, %rcx
	je	LBB0_4
## %bb.5:
	xorl	%edx, %edx
	divq	%rdi
	jmp	LBB0_6
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r8d
                                        ## kill: def $eax killed $eax def $rax
LBB0_6:
	movl	%eax, (%rsi,%r12,4)
	movq	_DC_CLK_SET_GCLK_FREQ_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DBGC
	movq	8(%r15), %rax
	movl	(%rax,%r12,4), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GCLK,8,3                       ## @GCLK
	.comm	_DC_CLK_SET_GCLK_FREQ_BEGIN,4,2 ## @DC_CLK_SET_GCLK_FREQ_BEGIN
	.comm	_DC_CLK_SET_GCLK_FREQ_SYNC_1,4,2 ## @DC_CLK_SET_GCLK_FREQ_SYNC_1
	.comm	_USE_DPLL_DEF,4,2               ## @USE_DPLL_DEF
	.comm	_DC_CLK_SET_GCLK_FREQ_SYNC_2,4,2 ## @DC_CLK_SET_GCLK_FREQ_SYNC_2
	.comm	_system_clks,16,3               ## @system_clks
	.comm	_DC_CLK_SET_GCLK_FREQ_SYNC_3,4,2 ## @DC_CLK_SET_GCLK_FREQ_SYNC_3
	.comm	_DC_CLK_SET_GCLK_FREQ_SYNC_4,4,2 ## @DC_CLK_SET_GCLK_FREQ_SYNC_4
	.comm	_DC_CLK_SET_GCLK_FREQ_SYNC_5,4,2 ## @DC_CLK_SET_GCLK_FREQ_SYNC_5
	.comm	_DC_CLK_SET_GCLK_FREQ_COMPLETE,4,2 ## @DC_CLK_SET_GCLK_FREQ_COMPLETE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CLK_set_gclk_freq              ; -- Begin function CLK_set_gclk_freq
	.p2align	2
_CLK_set_gclk_freq:                     ; @CLK_set_gclk_freq
	.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
Lloh0:
	adrp	x8, _GCLK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GCLK@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x8, _DC_CLK_SET_GCLK_FREQ_BEGIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DC_CLK_SET_GCLK_FREQ_BEGIN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_DBGC
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh6:
	adrp	x22, _DC_CLK_SET_GCLK_FREQ_SYNC_1@GOTPAGE
Lloh7:
	ldr	x22, [x22, _DC_CLK_SET_GCLK_FREQ_SYNC_1@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_DBGC
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_2
LBB0_3:
Lloh8:
	adrp	x8, _USE_DPLL_DEF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _USE_DPLL_DEF@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	x9, [x21]
	add	x9, x9, x19, lsl #5
Lloh11:
	adrp	x21, _system_clks@GOTPAGE
Lloh12:
	ldr	x21, [x21, _system_clks@GOTPAGEOFF]
	str	w8, [x9, #24]
	ldp	x8, x10, [x21]
	ldr	w11, [x8]
	sdiv	w11, w11, w20
	mov	w12, #1
	str	w12, [x9, #8]
	sxtw	x11, w11
	str	x11, [x9]
	str	xzr, [x9, #16]
	ldrsw	x8, [x8]
	udiv	x8, x8, x11
	lsl	x19, x19, #2
	str	w8, [x10, x19]
Lloh13:
	adrp	x8, _DC_CLK_SET_GCLK_FREQ_COMPLETE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DC_CLK_SET_GCLK_FREQ_COMPLETE@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_DBGC
	ldr	x8, [x21, #8]
	ldr	w0, [x8, x19]
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GCLK,8,3                       ; @GCLK
	.comm	_DC_CLK_SET_GCLK_FREQ_BEGIN,4,2 ; @DC_CLK_SET_GCLK_FREQ_BEGIN
	.comm	_DC_CLK_SET_GCLK_FREQ_SYNC_1,4,2 ; @DC_CLK_SET_GCLK_FREQ_SYNC_1
	.comm	_USE_DPLL_DEF,4,2               ; @USE_DPLL_DEF
	.comm	_DC_CLK_SET_GCLK_FREQ_SYNC_2,4,2 ; @DC_CLK_SET_GCLK_FREQ_SYNC_2
	.comm	_system_clks,16,3               ; @system_clks
	.comm	_DC_CLK_SET_GCLK_FREQ_SYNC_3,4,2 ; @DC_CLK_SET_GCLK_FREQ_SYNC_3
	.comm	_DC_CLK_SET_GCLK_FREQ_SYNC_4,4,2 ; @DC_CLK_SET_GCLK_FREQ_SYNC_4
	.comm	_DC_CLK_SET_GCLK_FREQ_SYNC_5,4,2 ; @DC_CLK_SET_GCLK_FREQ_SYNC_5
	.comm	_DC_CLK_SET_GCLK_FREQ_COMPLETE,4,2 ; @DC_CLK_SET_GCLK_FREQ_COMPLETE
.subsections_via_symbols
