	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_norm_pix_clk
_get_norm_pix_clk:                      ## @get_norm_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	(%rdi), %ebx
	movq	8(%rdi), %rcx
	movq	_PIXEL_ENCODING_YCBCR420@GOTPCREL(%rip), %rdx
	movl	%ebx, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	movl	%ebx, %eax
	shrl	$31, %eax
	addl	%ebx, %eax
	sarl	%eax
LBB0_2:
	movq	_PIXEL_ENCODING_YCBCR422@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
LBB0_10:
	movl	%ebx, %eax
	jmp	LBB0_11
LBB0_3:
	movl	16(%rdi), %ecx
	addl	$-128, %ecx
	cmpl	$4, %ecx
	ja	LBB0_9
## %bb.4:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_8:
	addl	%eax, %eax
	jmp	LBB0_11
LBB0_9:
	xorl	%edi, %edi
	callq	_ASSERT
	jmp	LBB0_10
LBB0_6:
	shll	$2, %eax
	leal	(%rax,%rax,8), %eax
	cltq
	jmp	LBB0_7
LBB0_5:
	movl	%eax, %ecx
	shll	$5, %ecx
	subl	%eax, %ecx
	subl	%eax, %ecx
	movslq	%ecx, %rax
LBB0_7:
	imulq	$715827883, %rax, %rax          ## imm = 0x2AAAAAAB
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
LBB0_11:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_PIXEL_ENCODING_YCBCR420,8,3    ## @PIXEL_ENCODING_YCBCR420
	.comm	_PIXEL_ENCODING_YCBCR422,8,3    ## @PIXEL_ENCODING_YCBCR422
	.no_dead_strip	_get_norm_pix_clk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_norm_pix_clk
_get_norm_pix_clk:                      ; @get_norm_pix_clk
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w19, [x0]
	ldr	x9, [x0, #8]
Lloh0:
	adrp	x8, _PIXEL_ENCODING_YCBCR420@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIXEL_ENCODING_YCBCR420@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	w19, #0
	cinc	w10, w19, lt
	asr	w10, w10, #1
	cmp	x9, x8
	csel	w8, w10, w19, eq
Lloh3:
	adrp	x10, _PIXEL_ENCODING_YCBCR422@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PIXEL_ENCODING_YCBCR422@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_8
; %bb.1:
	ldr	w9, [x0, #16]
	sub	w9, w9, #128
	cmp	w9, #4
	b.hi	LBB0_4
; %bb.2:
Lloh6:
	adrp	x10, lJTI0_0@PAGE
Lloh7:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_3
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	mov	x19, x8
	br	x11
LBB0_3:
	lsl	w19, w8, #1
	b	LBB0_8
LBB0_4:
	mov	w0, #0
	bl	_ASSERT
	b	LBB0_8
LBB0_5:
	add	w8, w8, w8, lsl #3
	lsl	w8, w8, #2
	b	LBB0_7
LBB0_6:
	mov	w9, #30
	mul	w8, w8, w9
LBB0_7:
	mov	w9, #43691
	movk	w9, #10922, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w19, w8, w9
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
                                        ; -- End function
	.comm	_PIXEL_ENCODING_YCBCR420,8,3    ; @PIXEL_ENCODING_YCBCR420
	.comm	_PIXEL_ENCODING_YCBCR422,8,3    ; @PIXEL_ENCODING_YCBCR422
	.no_dead_strip	_get_norm_pix_clk
.subsections_via_symbols
