	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pll_adjust_pix_clk
_pll_adjust_pix_clk:                    ## @pll_adjust_pix_clk
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, -40(%rbp)
	movq	$0, -24(%rbp)
	movl	(%rsi), %eax
	leal	-129(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_1
## %bb.10:
	movl	4(%rsi), %r14d
	movl	8(%rsi), %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	jmp	LBB0_13
LBB0_1:
	cmpl	$128, %eax
	jne	LBB0_11
## %bb.2:
	movl	4(%rsi), %r14d
	movl	24(%rsi), %ecx
	movq	_PIXEL_ENCODING_YCBCR422@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_12
## %bb.3:
	movl	20(%rsi), %ecx
	cmpl	$132, %ecx
	je	LBB0_9
## %bb.4:
	cmpl	$133, %ecx
	je	LBB0_8
## %bb.5:
	cmpl	$134, %ecx
	jne	LBB0_12
## %bb.6:
	leal	(%r14,%r14,4), %r14d
	sarl	$2, %r14d
	jmp	LBB0_12
LBB0_11:
	movl	4(%rsi), %r14d
LBB0_12:
	movl	%r14d, %ecx
LBB0_13:
	movslq	%ecx, %rcx
	imulq	$1717986919, %rcx, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$34, %rcx
	addl	%edx, %ecx
	movl	%ecx, -48(%rbp)
	movl	16(%rsi), %ecx
	movl	%ecx, -24(%rbp)
	movl	%eax, -44(%rbp)
	movl	12(%rsi), %eax
	movl	%eax, -28(%rbp)
	movq	(%rdi), %rdi
	movq	(%rdi), %rax
	leaq	-48(%rbp), %rsi
	callq	*(%rax)
	movl	%eax, %ecx
	movq	_BP_RESULT_OK@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpl	(%rdx), %ecx
	jne	LBB0_15
## %bb.14:
	movl	%r14d, (%rbx)
	movl	-40(%rbp), %eax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	movl	%eax, 4(%rbx)
	movl	-32(%rbp), %eax
	movl	%eax, 12(%rbx)
	movl	-36(%rbp), %eax
	movl	%eax, 8(%rbx)
	movl	$1, %eax
LBB0_15:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	addl	%r14d, %r14d
	jmp	LBB0_12
LBB0_8:
	addl	%r14d, %r14d
	leal	(%r14,%r14,2), %r14d
	sarl	$2, %r14d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_PIXEL_ENCODING_YCBCR422,4,2    ## @PIXEL_ENCODING_YCBCR422
	.comm	_BP_RESULT_OK,4,2               ## @BP_RESULT_OK
	.no_dead_strip	_pll_adjust_pix_clk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pll_adjust_pix_clk
_pll_adjust_pix_clk:                    ; @pll_adjust_pix_clk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x2
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
	ldr	w8, [x1]
	sub	w9, w8, #129
	cmp	w9, #3
	b.hs	LBB0_2
; %bb.1:
	ldp	w20, w9, [x1, #4]
	add	w9, w9, w9, lsl #2
	lsl	w9, w9, #1
	b	LBB0_6
LBB0_2:
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.3:
	ldr	w20, [x1, #4]
	ldr	w10, [x1, #24]
Lloh0:
	adrp	x9, _PIXEL_ENCODING_YCBCR422@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PIXEL_ENCODING_YCBCR422@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x9]
	mov	x9, x20
	cmp	w10, w11
	b.eq	LBB0_6
; %bb.4:
	ldr	w9, [x1, #20]
	lsl	w10, w20, #1
	add	w11, w20, w20, lsl #1
	sbfx	w11, w11, #1, #30
	add	w12, w20, w20, lsl #2
	asr	w12, w12, #2
	cmp	w9, #134
	csel	w12, w20, w12, ne
	cmp	w9, #133
	csel	w11, w11, w12, eq
	cmp	w9, #132
	csel	w20, w10, w11, eq
	csel	w9, w10, w11, eq
	b	LBB0_6
LBB0_5:
	ldr	w20, [x1, #4]
	mov	x9, x20
LBB0_6:
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #34
	add	w9, w9, w10
	stp	w9, w8, [sp]
	ldur	d0, [x1, #12]
	stur	d0, [sp, #20]
	ldr	x0, [x0]
	ldr	x8, [x0]
	ldr	x8, [x8]
	mov	x1, sp
	blr	x8
Lloh3:
	adrp	x8, _BP_RESULT_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BP_RESULT_OK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [sp, #8]
	add	w8, w8, w8, lsl #2
	lsl	w8, w8, #1
	stp	w20, w8, [x19]
	ldur	d0, [sp, #12]
	str	d0, [x19, #8]
	mov	w0, #1
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PIXEL_ENCODING_YCBCR422,4,2    ; @PIXEL_ENCODING_YCBCR422
	.comm	_BP_RESULT_OK,4,2               ; @BP_RESULT_OK
	.no_dead_strip	_pll_adjust_pix_clk
.subsections_via_symbols
