	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_hdmi_pll_get_frac
_meson_hdmi_pll_get_frac:               ## @meson_hdmi_pll_get_frac
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_XTAL_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_HDMI_FRAC_MAX_GXL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_VPU_COMPATIBLE_GXBB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_meson_vpu_is_compatible
	testq	%rax, %rax
	setne	%cl
	je	LBB0_2
## %bb.1:
	movq	_HDMI_FRAC_MAX_GXBB@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_2:
	shll	%cl, %r13d
	movq	_VPU_COMPATIBLE_G12A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_meson_vpu_is_compatible
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_HDMI_FRAC_MAX_G12A@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_4:
	xorl	%ecx, %ecx
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%r14d
	cmpl	%r13d, %eax
	jne	LBB0_6
## %bb.5:
	testl	%edx, %edx
	je	LBB0_8
LBB0_6:
	imull	%r12d, %r15d
	movl	%r15d, %edi
	movl	%r13d, %esi
	callq	_div_u64
	imull	%r12d, %r14d
	subl	%r14d, %eax
	jae	LBB0_9
## %bb.7:
	movl	%r12d, %ecx
LBB0_8:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	decl	%r12d
	movl	%eax, %edi
	movl	%r12d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_min                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XTAL_FREQ,4,2                  ## @XTAL_FREQ
	.comm	_HDMI_FRAC_MAX_GXL,4,2          ## @HDMI_FRAC_MAX_GXL
	.comm	_VPU_COMPATIBLE_GXBB,4,2        ## @VPU_COMPATIBLE_GXBB
	.comm	_HDMI_FRAC_MAX_GXBB,4,2         ## @HDMI_FRAC_MAX_GXBB
	.comm	_VPU_COMPATIBLE_G12A,4,2        ## @VPU_COMPATIBLE_G12A
	.comm	_HDMI_FRAC_MAX_G12A,4,2         ## @HDMI_FRAC_MAX_G12A
	.no_dead_strip	_meson_hdmi_pll_get_frac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meson_hdmi_pll_get_frac
_meson_hdmi_pll_get_frac:               ; @meson_hdmi_pll_get_frac
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _XTAL_FREQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XTAL_FREQ@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _HDMI_FRAC_MAX_GXL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDMI_FRAC_MAX_GXL@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
Lloh6:
	adrp	x8, _VPU_COMPATIBLE_GXBB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VPU_COMPATIBLE_GXBB@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_meson_vpu_is_compatible
	cmp	x0, #0
	cset	w8, ne
Lloh9:
	adrp	x9, _HDMI_FRAC_MAX_GXBB@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HDMI_FRAC_MAX_GXBB@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	lsl	w22, w22, w8
	csel	w23, w23, w9, eq
Lloh12:
	adrp	x8, _VPU_COMPATIBLE_G12A@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VPU_COMPATIBLE_G12A@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_meson_vpu_is_compatible
Lloh15:
	adrp	x8, _HDMI_FRAC_MAX_G12A@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HDMI_FRAC_MAX_G12A@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w21, w23, w8, eq
	udiv	w8, w20, w19
	cmp	w8, w22
	b.ne	LBB0_2
; %bb.1:
	msub	w8, w8, w19, w20
	cbz	w8, LBB0_4
LBB0_2:
	mul	w0, w21, w20
	mov	x1, x22
	bl	_div_u64
	mul	w8, w21, w19
	subs	w0, w0, w8
	b.lo	LBB0_5
; %bb.3:
	sub	w1, w21, #1
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_min
LBB0_4:
	mov	w21, #0
LBB0_5:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_XTAL_FREQ,4,2                  ; @XTAL_FREQ
	.comm	_HDMI_FRAC_MAX_GXL,4,2          ; @HDMI_FRAC_MAX_GXL
	.comm	_VPU_COMPATIBLE_GXBB,4,2        ; @VPU_COMPATIBLE_GXBB
	.comm	_HDMI_FRAC_MAX_GXBB,4,2         ; @HDMI_FRAC_MAX_GXBB
	.comm	_VPU_COMPATIBLE_G12A,4,2        ; @VPU_COMPATIBLE_G12A
	.comm	_HDMI_FRAC_MAX_G12A,4,2         ; @HDMI_FRAC_MAX_G12A
	.no_dead_strip	_meson_hdmi_pll_get_frac
.subsections_via_symbols
