	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gem_mdc_clk_div
_gem_mdc_clk_div:                       ## @gem_mdc_clk_div
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %edi
	callq	_clk_get_rate
	cmpq	$20000001, %rax                 ## imm = 0x1312D01
	jae	LBB0_2
## %bb.1:
	movq	_GEM_CLK_DIV8@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_2:
	cmpq	$40000001, %rax                 ## imm = 0x2625A01
	jae	LBB0_4
## %bb.3:
	movq	_GEM_CLK_DIV16@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_4:
	cmpq	$80000001, %rax                 ## imm = 0x4C4B401
	jae	LBB0_6
## %bb.5:
	movq	_GEM_CLK_DIV32@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_6:
	cmpq	$120000001, %rax                ## imm = 0x7270E01
	jae	LBB0_8
## %bb.7:
	movq	_GEM_CLK_DIV48@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:
	cmpq	$160000001, %rax                ## imm = 0x9896801
	jae	LBB0_9
## %bb.10:
	movq	_GEM_CLK_DIV64@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_GEM_CLK_DIV96@GOTPCREL(%rip), %rax
LBB0_11:
	movq	_CLK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	popq	%rbp
	jmp	_GEM_BF                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CLK,4,2                        ## @CLK
	.comm	_GEM_CLK_DIV8,4,2               ## @GEM_CLK_DIV8
	.comm	_GEM_CLK_DIV16,4,2              ## @GEM_CLK_DIV16
	.comm	_GEM_CLK_DIV32,4,2              ## @GEM_CLK_DIV32
	.comm	_GEM_CLK_DIV48,4,2              ## @GEM_CLK_DIV48
	.comm	_GEM_CLK_DIV64,4,2              ## @GEM_CLK_DIV64
	.comm	_GEM_CLK_DIV96,4,2              ## @GEM_CLK_DIV96
	.no_dead_strip	_gem_mdc_clk_div
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gem_mdc_clk_div
_gem_mdc_clk_div:                       ; @gem_mdc_clk_div
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w0, [x0]
	bl	_clk_get_rate
Lloh0:
	adrp	x8, _GEM_CLK_DIV8@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEM_CLK_DIV8@GOTPAGEOFF]
	mov	w9, #11521
	movk	w9, #305, lsl #16
Lloh2:
	adrp	x10, _GEM_CLK_DIV16@GOTPAGE
Lloh3:
	ldr	x10, [x10, _GEM_CLK_DIV16@GOTPAGEOFF]
	mov	w11, #23041
	movk	w11, #610, lsl #16
Lloh4:
	adrp	x12, _GEM_CLK_DIV32@GOTPAGE
Lloh5:
	ldr	x12, [x12, _GEM_CLK_DIV32@GOTPAGEOFF]
	mov	w13, #46081
	movk	w13, #1220, lsl #16
Lloh6:
	adrp	x14, _GEM_CLK_DIV48@GOTPAGE
Lloh7:
	ldr	x14, [x14, _GEM_CLK_DIV48@GOTPAGEOFF]
Lloh8:
	adrp	x15, _GEM_CLK_DIV96@GOTPAGE
Lloh9:
	ldr	x15, [x15, _GEM_CLK_DIV96@GOTPAGEOFF]
Lloh10:
	adrp	x16, _GEM_CLK_DIV64@GOTPAGE
Lloh11:
	ldr	x16, [x16, _GEM_CLK_DIV64@GOTPAGEOFF]
	mov	w17, #3585
	movk	w17, #1831, lsl #16
	mov	w1, #26625
	movk	w1, #2441, lsl #16
	cmp	x0, x1
	csel	x15, x16, x15, lo
	cmp	x0, x17
	csel	x14, x14, x15, lo
	cmp	x0, x13
	csel	x12, x12, x14, lo
	cmp	x0, x11
	csel	x10, x10, x12, lo
	cmp	x0, x9
	csel	x8, x8, x10, lo
Lloh12:
	adrp	x9, _CLK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CLK@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x9]
	ldr	w1, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_GEM_BF
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CLK,4,2                        ; @CLK
	.comm	_GEM_CLK_DIV8,4,2               ; @GEM_CLK_DIV8
	.comm	_GEM_CLK_DIV16,4,2              ; @GEM_CLK_DIV16
	.comm	_GEM_CLK_DIV32,4,2              ; @GEM_CLK_DIV32
	.comm	_GEM_CLK_DIV48,4,2              ; @GEM_CLK_DIV48
	.comm	_GEM_CLK_DIV64,4,2              ; @GEM_CLK_DIV64
	.comm	_GEM_CLK_DIV96,4,2              ; @GEM_CLK_DIV96
	.no_dead_strip	_gem_mdc_clk_div
.subsections_via_symbols
