	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dispc_mgr_get_clock_div        ## -- Begin function dispc_mgr_get_clock_div
	.p2align	4, 0x90
_dispc_mgr_get_clock_div:               ## @dispc_mgr_get_clock_div
	.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
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_dispc_fclk_rate
	movq	%rax, %r14
	movl	%r12d, %edi
	callq	_DISPC_DIVISORo
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$23, %edx
	movl	$16, %ecx
	callq	_REG_GET
	movq	%rax, (%r15)
	movl	%r12d, %edi
	callq	_DISPC_DIVISORo
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$7, %edx
	xorl	%ecx, %ecx
	callq	_REG_GET
	movq	%rax, %rcx
	movl	%ecx, 8(%r15)
	movq	(%r15), %rsi
	movq	%r14, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rax
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_3
LBB0_1:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_3:
	movq	%rax, 16(%r15)
	movslq	%ecx, %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_4
## %bb.5:
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_6
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_6:
	movl	%eax, 24(%r15)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dispc_mgr_get_clock_div        ; -- Begin function dispc_mgr_get_clock_div
	.p2align	2
_dispc_mgr_get_clock_div:               ; @dispc_mgr_get_clock_div
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_dispc_fclk_rate
	mov	x22, x0
	mov	x0, x20
	bl	_DISPC_DIVISORo
	mov	x1, x0
	mov	x0, x21
	mov	w2, #23
	mov	w3, #16
	bl	_REG_GET
	str	x0, [x19]
	mov	x0, x20
	bl	_DISPC_DIVISORo
	mov	x1, x0
	mov	x0, x21
	mov	w2, #7
	mov	w3, #0
	bl	_REG_GET
	str	w0, [x19, #8]
	ldr	x8, [x19]
	udiv	x8, x22, x8
	str	x8, [x19, #16]
	sxtw	x9, w0
	udiv	x8, x8, x9
	str	w8, [x19, #24]
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
