	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_hdmi_pll_generic_set
_meson_hdmi_pll_generic_set:            ## @meson_hdmi_pll_generic_set
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	leaq	-40(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	leaq	-44(%rbp), %r8
	callq	_meson_hdmi_pll_find_params
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	-44(%rbp), %eax
	cmpl	$4, %eax
	jae	LBB0_3
## %bb.2:
	movl	$2, %r12d
	movl	$1, %ebx
	jmp	LBB0_4
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	callq	_DRM_ERROR
	jmp	LBB0_6
LBB0_3:
	movl	%eax, %ebx
	shrl	$2, %ebx
	xorl	%edx, %edx
	divl	%ebx
	movl	%eax, %r12d
LBB0_4:
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %ecx
	movl	$1, (%rsp)
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%r12d, %r8d
	movl	%ebx, %r9d
	callq	_DRM_DEBUG_DRIVER
	movl	-40(%rbp), %esi
	movl	-36(%rbp), %edx
	movq	%r14, %rdi
	movl	%r12d, %ecx
	movl	%ebx, %r8d
	movl	$1, %r9d
	callq	_meson_hdmi_pll_set_params
LBB0_6:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PLL params for %dkHz: m=%x frac=%x od=%d/%d/%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Fatal, unable to find parameters for PLL freq %d\n"

	.no_dead_strip	_meson_hdmi_pll_generic_set
.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_generic_set
_meson_hdmi_pll_generic_set:            ; @meson_hdmi_pll_generic_set
	.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	x20, x1
	mov	x19, x0
	add	x2, sp, #8
	add	x3, sp, #4
	add	x4, sp, #12
	bl	_meson_hdmi_pll_find_params
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [sp, #12]
	cmp	w8, #4
	b.hs	LBB0_4
; %bb.2:
	mov	w22, #2
	mov	w21, #1
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_DRM_ERROR
	b	LBB0_6
LBB0_4:
	lsr	w21, w8, #2
	udiv	w22, w8, w21
LBB0_5:
	ldp	w3, w2, [sp, #4]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x4, x22
	mov	x5, x21
	mov	w6, #1
	bl	_DRM_DEBUG_DRIVER
	ldp	w2, w1, [sp, #4]
	mov	x0, x19
	mov	x3, x22
	mov	x4, x21
	mov	w5, #1
	bl	_meson_hdmi_pll_set_params
LBB0_6:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PLL params for %dkHz: m=%x frac=%x od=%d/%d/%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Fatal, unable to find parameters for PLL freq %d\n"

	.no_dead_strip	_meson_hdmi_pll_generic_set
.subsections_via_symbols
