	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dispc_calc_clock_rates         ## -- Begin function dispc_calc_clock_rates
	.p2align	4, 0x90
_dispc_calc_clock_rates:                ## @dispc_calc_clock_rates
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movslq	(%rdx), %rdi
	cmpq	$255, %rdi
	jg	LBB0_2
## %bb.1:
	testl	%edi, %edi
	je	LBB0_2
## %bb.3:
	movq	%rdx, %rcx
	movl	4(%rdx), %r8d
	leal	-256(%r8), %eax
	cmpl	$-256, %eax
	ja	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_4:
	movq	%rsi, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	je	LBB0_5
## %bb.6:
	movq	%rsi, %rax
	xorl	%edx, %edx
	divq	%rdi
	jmp	LBB0_7
LBB0_5:
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $eax killed $eax def $rax
LBB0_7:
	movq	%rax, 8(%rcx)
	movq	%rax, %rdx
	shrq	$32, %rdx
	je	LBB0_8
## %bb.9:
	xorl	%edx, %edx
	divq	%r8
	jmp	LBB0_10
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r8d
                                        ## kill: def $eax killed $eax def $rax
LBB0_10:
	movl	%eax, 16(%rcx)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dispc_calc_clock_rates         ; -- Begin function dispc_calc_clock_rates
	.p2align	2
_dispc_calc_clock_rates:                ; @dispc_calc_clock_rates
	.cfi_startproc
; %bb.0:
	ldr	w8, [x2]
	cmp	w8, #255
	ccmp	w8, #0, #4, le
	b.eq	LBB0_2
; %bb.1:
	ldr	w9, [x2, #4]
	sub	w10, w9, #256
	cmn	w10, #256
	b.hi	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_3:
	mov	w0, #0
	sxtw	x8, w8
	udiv	x8, x1, x8
	str	x8, [x2, #8]
	udiv	x8, x8, x9
	str	w8, [x2, #16]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
