	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function pipe_ctx_to_e2e_pipe_params
LCPI0_0:
	.quad	0x3df0000000000000              ## double 2.3283064365386963E-10
	.quad	0x3df0000000000000              ## double 2.3283064365386963E-10
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x3df0000000000000              ## double 2.3283064365386963E-10
LCPI0_2:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_3:
	.quad	0x40c3880000000000              ## double 1.0E+4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_pipe_ctx_to_e2e_pipe_params:           ## @pipe_ctx_to_e2e_pipe_params
	.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, %rbx
	movq	%rdi, %r14
	movl	$0, 168(%rsi)
	movq	136(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rax), %rax
	cmpq	120(%r14), %rax
	je	LBB0_4
LBB0_2:
	movq	128(%r14), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	(%rax), %rax
	cmpq	120(%r14), %rax
	jne	LBB0_5
LBB0_4:
	movl	$1, 168(%rbx)
LBB0_5:
	movq	112(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_7
## %bb.6:
	movq	120(%r14), %rax
	movq	24(%rax), %rax
	jmp	LBB0_8
LBB0_7:
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	120(%r14), %rcx
	movl	(%rcx), %edi
	leaq	-28(%rbp), %rsi
	callq	*(%rax)
LBB0_8:
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	%ecx, 172(%rbx)
	movl	$1, 176(%rbx)
	movq	120(%r14), %rax
	movl	16(%rax), %ecx
	movl	%ecx, 232(%rbx)
	movq	_dm_horz@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	%rcx, 216(%rbx)
	movl	8(%rax), %edi
	movl	%edi, 228(%rbx)
	movq	104(%r14), %xmm0                ## xmm0 = mem[0],zero
	pshufd	$4, %xmm0, %xmm0                ## xmm0 = xmm0[0,1,0,0]
	movdqu	%xmm0, 180(%rbx)
	movabsq	$137438953600, %rax             ## imm = 0x2000000080
	movq	%rax, 196(%rbx)
	callq	_swizzle_mode_to_macro_tile_size
	movl	%eax, 224(%rbx)
	movq	120(%r14), %rax
	movl	4(%rax), %ecx
	leal	-135(%rcx), %edx
	cmpl	$2, %edx
	jb	LBB0_11
## %bb.9:
	addl	$-137, %ecx
	cmpl	$1, %ecx
	ja	LBB0_12
## %bb.10:
	movq	(%r15), %rcx
	movq	%rcx, 216(%rbx)
	jmp	LBB0_13
LBB0_11:
	movq	_dm_vert@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 216(%rbx)
	jmp	LBB0_13
LBB0_12:
	xorl	%edi, %edi
	callq	_ASSERT
	movq	120(%r14), %rax
LBB0_13:
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_20
## %bb.14:
	movl	$112, %ecx
	btl	%eax, %ecx
	jb	LBB0_19
## %bb.15:
	movl	$3, %ecx
	btl	%eax, %ecx
	jae	LBB0_18
## %bb.16:
	movq	_dm_420_8@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_19:
	movq	_dm_444_64@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_18:
	movq	_dm_420_10@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	movl	%eax, 212(%rbx)
	movl	180(%rbx), %eax
	movl	184(%rbx), %ecx
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	%edx, 204(%rbx)
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	jmp	LBB0_22
LBB0_20:
	movq	_dm_444_32@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %eax
	movl	%eax, 212(%rbx)
	movl	180(%rbx), %ecx
	movl	184(%rbx), %eax
	movl	%ecx, 204(%rbx)
LBB0_22:
	movl	%eax, 208(%rbx)
	movupd	72(%r14), %xmm0
	movapd	LCPI0_0(%rip), %xmm1            ## xmm1 = [2.3283064365386963E-10,2.3283064365386963E-10]
	mulpd	%xmm1, %xmm0
	shufpd	$1, %xmm0, %xmm0                ## xmm0 = xmm0[1,0]
	movupd	%xmm0, 96(%rbx)
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	movsd	48(%r14), %xmm2                 ## xmm2 = mem[0],zero
	mulsd	%xmm0, %xmm2
	movsd	LCPI0_2(%rip), %xmm3            ## xmm3 = mem[0],zero
	movapd	%xmm3, %xmm4
	maxsd	%xmm2, %xmm4
	movsd	%xmm4, 112(%rbx)
	movups	88(%r14), %xmm2
	movups	%xmm2, 152(%rbx)
	movupd	56(%r14), %xmm2
	mulpd	%xmm1, %xmm2
	shufpd	$1, %xmm2, %xmm2                ## xmm2 = xmm2[1,0]
	movupd	%xmm2, 120(%rbx)
	mulsd	40(%r14), %xmm0
	maxsd	%xmm0, %xmm3
	movsd	%xmm3, 136(%rbx)
	movl	32(%r14), %eax
	cmpl	$139, %eax
	movl	$36, %ecx
	movl	$24, %edx
	cmovel	%ecx, %edx
	cmpl	$140, %eax
	movl	$30, %eax
	cmovnel	%edx, %eax
	movl	%eax, 144(%rbx)
	movq	16(%r14), %rax
	movq	8(%rax), %rcx
	addq	24(%rax), %rcx
	addq	16(%rax), %rcx
	movq	%rcx, 88(%rbx)
	movq	24(%r14), %xmm0                 ## xmm0 = mem[0],zero
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	movdqu	%xmm0, 72(%rbx)
	movq	80(%rax), %rdx
	movq	%rdx, 64(%rbx)
	subq	72(%rax), %rdx
	movq	%rdx, 48(%rbx)
	movq	64(%rax), %rsi
	addq	56(%rax), %rsi
	addq	48(%rax), %rsi
	subq	%rsi, %rdx
	movq	%rdx, 56(%rbx)
	movq	40(%rax), %rdx
	movq	%rdx, 40(%rbx)
	subq	32(%rax), %rdx
	movq	%rdx, 24(%rbx)
	subq	%rcx, %rdx
	movq	%rdx, 32(%rbx)
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	divsd	LCPI0_3(%rip), %xmm0
	movsd	%xmm0, (%rbx)
	movl	8(%r14), %eax
	movl	%eax, 16(%rbx)
	movl	4(%r14), %eax
	movl	%eax, 12(%rbx)
	movl	(%r14), %eax
	movl	%eax, 8(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dm_horz,8,3                    ## @dm_horz
	.comm	_dm_vert,8,3                    ## @dm_vert
	.comm	_dm_420_8,4,2                   ## @dm_420_8
	.comm	_dm_420_10,4,2                  ## @dm_420_10
	.comm	_dm_444_64,4,2                  ## @dm_444_64
	.comm	_dm_444_32,4,2                  ## @dm_444_32
	.no_dead_strip	_pipe_ctx_to_e2e_pipe_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function pipe_ctx_to_e2e_pipe_params
lCPI0_0:
	.long	128                             ; 0x80
	.long	32                              ; 0x20
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_pipe_ctx_to_e2e_pipe_params:           ; @pipe_ctx_to_e2e_pipe_params
	.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	x19, x1
	mov	x20, x0
	str	wzr, [x1, #168]
	ldr	x8, [x0, #136]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x8]
	ldr	x9, [x20, #120]
	cmp	x8, x9
	b.eq	LBB0_4
LBB0_2:
	ldr	x8, [x20, #128]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x8]
	ldr	x9, [x20, #120]
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_4:
	mov	w8, #1
	str	w8, [x19, #168]
LBB0_5:
	ldr	x8, [x20, #112]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_7
; %bb.6:
	ldr	x8, [x20, #120]
	ldr	x0, [x8, #24]
	b	LBB0_8
LBB0_7:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x9, [x20, #120]
	ldr	w0, [x9]
	add	x1, sp, #12
	blr	x8
LBB0_8:
	cmp	x0, #0
	cset	w8, ne
	mov	w9, #1
	stp	w8, w9, [x19, #172]
	ldr	x8, [x20, #120]
Lloh0:
	adrp	x21, _dm_horz@GOTPAGE
Lloh1:
	ldr	x21, [x21, _dm_horz@GOTPAGEOFF]
	ldr	x9, [x21]
	str	x9, [x19, #216]
	ldr	w9, [x8, #16]
	ldr	w0, [x8, #8]
	stp	w0, w9, [x19, #228]
	ldr	d0, [x20, #104]
	dup.4s	v1, v0[0]
	mov.s	v1[1], v0[1]
	stur	q1, [x19, #180]
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #196]
	bl	_swizzle_mode_to_macro_tile_size
	str	w0, [x19, #224]
	ldr	x8, [x20, #120]
	ldr	w9, [x8, #4]
	sub	w10, w9, #135
	cmp	w10, #2
	b.lo	LBB0_11
; %bb.9:
	sub	w9, w9, #137
	cmp	w9, #1
	b.hi	LBB0_12
; %bb.10:
	ldr	x9, [x21]
	str	x9, [x19, #216]
	b	LBB0_13
LBB0_11:
Lloh4:
	adrp	x9, _dm_vert@GOTPAGE
Lloh5:
	ldr	x9, [x9, _dm_vert@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	str	x9, [x19, #216]
	b	LBB0_13
LBB0_12:
	mov	w0, #0
	bl	_ASSERT
	ldr	x8, [x20, #120]
LBB0_13:
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #6
	b.hi	LBB0_20
; %bb.14:
	mov	w9, #1
	lsl	w8, w9, w8
	tst	w8, #0x70
	b.ne	LBB0_17
; %bb.15:
	tst	w8, #0x3
	b.eq	LBB0_18
; %bb.16:
Lloh7:
	adrp	x8, _dm_420_8@GOTPAGE
Lloh8:
	ldr	x8, [x8, _dm_420_8@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:
Lloh9:
	adrp	x8, _dm_444_64@GOTPAGE
Lloh10:
	ldr	x8, [x8, _dm_444_64@GOTPAGEOFF]
	b	LBB0_21
LBB0_18:
Lloh11:
	adrp	x8, _dm_420_10@GOTPAGE
Lloh12:
	ldr	x8, [x8, _dm_420_10@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	str	w8, [x19, #212]
	ldp	w8, w9, [x19, #180]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	str	w8, [x19, #204]
	cmp	w9, #0
	cinc	w8, w9, lt
	asr	w8, w8, #1
	b	LBB0_22
LBB0_20:
Lloh13:
	adrp	x8, _dm_444_32@GOTPAGE
Lloh14:
	ldr	x8, [x8, _dm_444_32@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	str	w8, [x19, #212]
	ldp	w9, w8, [x19, #180]
	str	w9, [x19, #204]
LBB0_22:
	str	w8, [x19, #208]
	ldur	q0, [x20, #72]
	mov	x8, #4463067230724161536
	dup.2d	v1, x8
	fmul.2d	v0, v0, v1
	ext.16b	v0, v0, v0, #8
	str	q0, [x19, #96]
	ldr	d0, [x20, #48]
	fmov	d2, x8
	fmul	d0, d0, d2
	fmov	d3, #1.00000000
	fmax	d0, d0, d3
	str	d0, [x19, #112]
	ldur	q0, [x20, #88]
	stur	q0, [x19, #152]
	ldur	q0, [x20, #56]
	fmul.2d	v0, v0, v1
	ext.16b	v0, v0, v0, #8
	stur	q0, [x19, #120]
	ldr	d0, [x20, #40]
	fmul	d0, d0, d2
	fmax	d0, d0, d3
	str	d0, [x19, #136]
	ldr	w8, [x20, #32]
	mov	w9, #24
	mov	w10, #36
	cmp	w8, #139
	csel	w9, w10, w9, eq
	mov	w10, #30
	cmp	w8, #140
	csel	w8, w10, w9, eq
	str	w8, [x19, #144]
	ldr	x8, [x20, #16]
	ldp	x9, x10, [x8, #8]
	ldp	x11, x12, [x8, #24]
	add	x9, x9, x11
	add	x9, x9, x10
	str	x9, [x19, #88]
	ldr	d0, [x20, #24]
	mov.d	v0[1], v0[0]
	stur	q0, [x19, #72]
	ldp	x11, x10, [x8, #56]
	ldp	x14, x13, [x8, #40]
	add	x10, x10, x11
	add	x10, x10, x13
	ldp	x13, x11, [x8, #72]
	sub	x13, x11, x13
	sub	x10, x13, x10
	stp	x10, x11, [x19, #56]
	stp	x14, x13, [x19, #40]
	sub	x10, x14, x12
	sub	x9, x10, x9
	stp	x10, x9, [x19, #24]
	ldr	d0, [x8]
	mov	x8, #149533581377536
	movk	x8, #16579, lsl #48
	fmov	d1, x8
	fdiv	d0, d0, d1
	ldr	w8, [x20, #8]
	str	w8, [x19, #16]
	ldr	d1, [x20]
	stp	d0, d1, [x19]
	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 AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_dm_horz,8,3                    ; @dm_horz
	.comm	_dm_vert,8,3                    ; @dm_vert
	.comm	_dm_420_8,4,2                   ; @dm_420_8
	.comm	_dm_420_10,4,2                  ; @dm_420_10
	.comm	_dm_444_64,4,2                  ; @dm_444_64
	.comm	_dm_444_32,4,2                  ; @dm_444_32
	.no_dead_strip	_pipe_ctx_to_e2e_pipe_params
.subsections_via_symbols
