	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sm501_select_clock
_sm501_select_clock:                    ## @sm501_select_clock
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	$999999999, -40(%rbp)           ## imm = 0x3B9AC9FF
	leaq	-40(%rbp), %r12
	movl	$288000000, %ecx                ## imm = 0x112A8800
	movq	%r12, %r8
	callq	_sm501_calc_clock
	movl	$336000000, %ecx                ## imm = 0x1406F400
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	movq	%r12, %r8
	callq	_sm501_calc_clock
	movq	8(%rbx), %rsi
	movb	16(%rbx), %cl
	shlq	%cl, %rsi
	movq	(%rbx), %rax
	movq	%rax, %rcx
	orq	%rsi, %rcx
	shrq	$32, %rcx
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sm501_select_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sm501_select_clock
_sm501_select_clock:                    ; @sm501_select_clock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w8, #51711
	movk	w8, #15258, lsl #16
	str	x8, [sp, #8]
	add	x4, sp, #8
	mov	w3, #34816
	movk	w3, #4394, lsl #16
	bl	_sm501_calc_clock
	add	x4, sp, #8
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w3, #62464
	movk	w3, #5126, lsl #16
	bl	_sm501_calc_clock
	ldp	x8, x9, [x20]
	ldr	x10, [x20, #16]
	lsl	x9, x9, x10
	udiv	x0, x8, x9
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sm501_select_clock
.subsections_via_symbols
