	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_pixel_clock_parameters
_get_pixel_clock_parameters:            ## @get_pixel_clock_parameters
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	8(%rdi), %r14
	movl	$4, %ebx
	movq	%rdi, %rax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rax), %rax
	decl	%ebx
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movl	(%r14), %eax
	movl	%eax, (%r15)
	movq	40(%r14), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 52(%r15)
	movl	32(%r14), %ecx
	movl	%ecx, 48(%r15)
	movq	(%rdi), %rcx
	movq	(%rcx), %rcx
	incq	%rcx
	movq	%rcx, 40(%r15)
	movq	_LINK_RATE_LOW@GOTPCREL(%rip), %rcx
	movq	_LINK_RATE_REF_FREQ_IN_KHZ@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	imull	(%rcx), %edx
	movl	%edx, 4(%r15)
	movq	$0, 32(%r15)
	movl	24(%r14), %ecx
	movl	%ecx, 16(%r15)
	movl	$1, 24(%r15)
	movq	8(%r14), %rcx
	movq	%rcx, 8(%r15)
	movq	_PIXEL_ENCODING_YCBCR422@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.3:
	movq	_COLOR_DEPTH_888@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%r15)
LBB0_4:
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.6:
	movq	%r14, %rdi
	callq	_optc1_is_two_pixels_per_containter
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	cmpl	$2, %ebx
	jne	LBB0_10
LBB0_8:
	movl	(%r15), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	jmp	LBB0_9
LBB0_5:
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
LBB0_9:
	movl	%ecx, (%r15)
LBB0_10:
	movq	16(%r14), %rax
	movq	_TIMING_3D_FORMAT_HW_FRAME_PACKING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	shll	(%r15)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LINK_RATE_LOW,4,2              ## @LINK_RATE_LOW
	.comm	_LINK_RATE_REF_FREQ_IN_KHZ,4,2  ## @LINK_RATE_REF_FREQ_IN_KHZ
	.comm	_PIXEL_ENCODING_YCBCR422,8,3    ## @PIXEL_ENCODING_YCBCR422
	.comm	_COLOR_DEPTH_888,4,2            ## @COLOR_DEPTH_888
	.comm	_TIMING_3D_FORMAT_HW_FRAME_PACKING,8,3 ## @TIMING_3D_FORMAT_HW_FRAME_PACKING
	.no_dead_strip	_get_pixel_clock_parameters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_pixel_clock_parameters
_get_pixel_clock_parameters:            ; @get_pixel_clock_parameters
	.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, x1
	ldr	x20, [x0, #8]
	mov	w21, #4
	mov	x8, x0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #16]
	sub	w21, w21, #1
	cbnz	x8, LBB0_1
; %bb.2:
	ldr	w8, [x20]
	str	w8, [x19]
	ldr	x9, [x20, #40]
	ldr	x9, [x9]
	ldr	w9, [x9]
	ldr	w10, [x20, #32]
	stp	w10, w9, [x19, #48]
Lloh0:
	adrp	x9, _LINK_RATE_LOW@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LINK_RATE_LOW@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _LINK_RATE_REF_FREQ_IN_KHZ@GOTPAGE
Lloh4:
	ldr	x10, [x10, _LINK_RATE_REF_FREQ_IN_KHZ@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	mul	w9, w10, w9
	ldr	x10, [x0]
	ldr	x10, [x10]
	add	x10, x10, #1
	str	w9, [x19, #4]
	stp	xzr, x10, [x19, #32]
	ldr	w9, [x20, #24]
	str	w9, [x19, #16]
	mov	w9, #1
	str	w9, [x19, #24]
	ldr	x9, [x20, #8]
	str	x9, [x19, #8]
Lloh6:
	adrp	x10, _PIXEL_ENCODING_YCBCR422@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PIXEL_ENCODING_YCBCR422@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
Lloh9:
	adrp	x9, _COLOR_DEPTH_888@GOTPAGE
Lloh10:
	ldr	x9, [x9, _COLOR_DEPTH_888@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	str	w9, [x19, #16]
LBB0_4:
	cbz	w21, LBB0_8
; %bb.5:
	mov	x0, x20
	bl	_optc1_is_two_pixels_per_containter
	cbnz	x0, LBB0_7
; %bb.6:
	cmp	w21, #2
	b.ne	LBB0_10
LBB0_7:
	ldr	w8, [x19]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	b	LBB0_9
LBB0_8:
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
LBB0_9:
	str	w8, [x19]
LBB0_10:
	ldr	x8, [x20, #16]
Lloh12:
	adrp	x9, _TIMING_3D_FORMAT_HW_FRAME_PACKING@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TIMING_3D_FORMAT_HW_FRAME_PACKING@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	ldr	w8, [x19]
	lsl	w8, w8, #1
	str	w8, [x19]
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_LINK_RATE_LOW,4,2              ; @LINK_RATE_LOW
	.comm	_LINK_RATE_REF_FREQ_IN_KHZ,4,2  ; @LINK_RATE_REF_FREQ_IN_KHZ
	.comm	_PIXEL_ENCODING_YCBCR422,8,3    ; @PIXEL_ENCODING_YCBCR422
	.comm	_COLOR_DEPTH_888,4,2            ; @COLOR_DEPTH_888
	.comm	_TIMING_3D_FORMAT_HW_FRAME_PACKING,8,3 ; @TIMING_3D_FORMAT_HW_FRAME_PACKING
	.no_dead_strip	_get_pixel_clock_parameters
.subsections_via_symbols
