	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dc_bandwidth_in_kbps_from_timing ## -- Begin function dc_bandwidth_in_kbps_from_timing
	.p2align	4, 0x90
_dc_bandwidth_in_kbps_from_timing:      ## @dc_bandwidth_in_kbps_from_timing
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %eax
	addl	$-128, %eax
	xorl	%edi, %edi
	movl	$0, %r14d
	cmpl	$5, %eax
	ja	LBB0_2
## %bb.1:
	cltq
	leaq	l_switch.table.dc_bandwidth_in_kbps_from_timing(%rip), %rcx
	movl	(%rcx,%rax,4), %r14d
	movl	$1, %edi
LBB0_2:
	callq	_ASSERT
	movslq	(%rbx), %rax
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$34, %rcx
	addl	%eax, %ecx
	imull	%r14d, %ecx
	cmpl	$1, 16(%rbx)
	jne	LBB0_4
## %bb.3:
	movl	%ecx, %eax
	jmp	LBB0_8
LBB0_4:
	leal	(%rcx,%rcx,2), %eax
	movq	8(%rbx), %rdx
	movq	_PIXEL_ENCODING_YCBCR420@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_6
## %bb.5:
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, %eax
	jmp	LBB0_8
LBB0_6:
	movq	_PIXEL_ENCODING_YCBCR422@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_8
## %bb.7:
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,2), %eax
	cltq
	imulq	$1431655766, %rax, %rax         ## imm = 0x55555556
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	addl	%ecx, %eax
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIXEL_ENCODING_YCBCR420,8,3    ## @PIXEL_ENCODING_YCBCR420
	.comm	_PIXEL_ENCODING_YCBCR422,8,3    ## @PIXEL_ENCODING_YCBCR422
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.dc_bandwidth_in_kbps_from_timing
l_switch.table.dc_bandwidth_in_kbps_from_timing:
	.long	8                               ## 0x8
	.long	6                               ## 0x6
	.long	16                              ## 0x10
	.long	14                              ## 0xe
	.long	12                              ## 0xc
	.long	10                              ## 0xa

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dc_bandwidth_in_kbps_from_timing ; -- Begin function dc_bandwidth_in_kbps_from_timing
	.p2align	2
_dc_bandwidth_in_kbps_from_timing:      ; @dc_bandwidth_in_kbps_from_timing
	.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
	mov	x19, x0
	ldr	w8, [x0, #4]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.dc_bandwidth_in_kbps_from_timing@PAGE
Lloh1:
	add	x9, x9, l_switch.table.dc_bandwidth_in_kbps_from_timing@PAGEOFF
	ldr	w20, [x9, w8, sxtw #2]
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	mov	w0, #0
	mov	w20, #0
LBB0_3:
	bl	_ASSERT
	ldrsw	x8, [x19]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
	mul	w8, w8, w20
	ldr	w9, [x19, #16]
	mov	x0, x8
	cmp	w9, #1
	b.eq	LBB0_8
; %bb.4:
	add	w0, w8, w8, lsl #1
	ldr	x9, [x19, #8]
Lloh2:
	adrp	x10, _PIXEL_ENCODING_YCBCR420@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PIXEL_ENCODING_YCBCR420@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.5:
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w0, w8, #1
	b	LBB0_8
LBB0_6:
Lloh5:
	adrp	x10, _PIXEL_ENCODING_YCBCR422@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PIXEL_ENCODING_YCBCR422@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.7:
	add	w8, w8, w8, lsl #1
	lsl	w8, w8, #1
	mov	w9, #21846
	movk	w9, #21845, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w0, w8, w9
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PIXEL_ENCODING_YCBCR420,8,3    ; @PIXEL_ENCODING_YCBCR420
	.comm	_PIXEL_ENCODING_YCBCR422,8,3    ; @PIXEL_ENCODING_YCBCR422
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.dc_bandwidth_in_kbps_from_timing
l_switch.table.dc_bandwidth_in_kbps_from_timing:
	.long	8                               ; 0x8
	.long	6                               ; 0x6
	.long	16                              ; 0x10
	.long	14                              ; 0xe
	.long	12                              ; 0xc
	.long	10                              ; 0xa

.subsections_via_symbols
