	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce110_program_front_end_for_pipe
_dce110_program_front_end_for_pipe:     ## @dce110_program_front_end_for_pipe
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	56(%rsi), %r15
	movq	72(%rsi), %r13
	xorl	%eax, %eax
	callq	_DC_LOGGER_INIT
	leaq	-144(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	leaq	-112(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_GRAPHICS_GAMUT_ADJUST_TYPE_BYPASS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
	movl	24(%r14), %edi
	movl	8(%r15), %esi
	movl	$1, %edx
	callq	_dce_enable_fe_clock
	movq	%rbx, %rdi
	callq	_set_default_colors
	movq	80(%rbx), %rax
	cmpl	$1, 16(%rax)
	jne	LBB0_2
## %bb.1:
	movl	32(%rax), %ecx
	movl	%ecx, -120(%rbp)
	movq	24(%rax), %rax
	movq	-128(%rbp), %rcx
	movl	(%rax), %edx
	movl	%edx, (%rcx)
	movl	4(%rax), %edx
	movl	%edx, 4(%rcx)
	movl	8(%rax), %edx
	movl	%edx, 8(%rcx)
	movl	12(%rax), %edx
	movl	%edx, 12(%rcx)
	movl	16(%rax), %edx
	movl	%edx, 16(%rcx)
	movl	20(%rax), %edx
	movl	%edx, 20(%rcx)
	movl	24(%rax), %edx
	movl	%edx, 24(%rcx)
	movl	28(%rax), %edx
	movl	%edx, 28(%rcx)
	movl	32(%rax), %edx
	movl	%edx, 32(%rcx)
	movl	36(%rax), %edx
	movl	%edx, 36(%rcx)
	movl	40(%rax), %edx
	movl	%edx, 40(%rcx)
	movl	44(%rax), %eax
	movl	%eax, 44(%rcx)
	movq	64(%rbx), %rdi
	movq	(%rdi), %rax
	leaq	-144(%rbp), %rsi
	callq	*8(%rax)
	movq	80(%rbx), %rax
LBB0_2:
	cmpl	$1, (%rax)
	jne	LBB0_6
## %bb.3:
	movq	_GRAPHICS_GAMUT_ADJUST_TYPE_SW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -104(%rbp)
	movq	_CSC_TEMPERATURE_MATRIX_SIZE@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_6
## %bb.4:
	movq	8(%rax), %rax
	movq	-112(%rbp), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rsi,4), %edi
	movl	%edi, (%rdx,%rsi,4)
	incq	%rsi
	movl	(%rcx), %edi
	cmpq	%rdi, %rsi
	jb	LBB0_5
LBB0_6:
	movq	64(%rbx), %rdi
	movq	(%rdi), %rax
	leaq	-112(%rbp), %rsi
	callq	*(%rax)
	xorl	%eax, %eax
	cmpq	$0, 8(%rbx)
	setne	%al
	movl	%eax, 48(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_program_scaler
	movq	(%r15), %rax
	movl	80(%r13), %r8d
	movl	88(%r13), %esi
	leaq	84(%r13), %r12
	leaq	96(%r13), %rcx
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	%r12, %rdx
	xorl	%r9d, %r9d
	pushq	$0
	callq	*16(%rax)
	addq	$16, %rsp
	movq	(%r15), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	72(%rbx), %rcx
	movl	92(%rcx), %esi
	movq	%r15, %rdi
	callq	*%rax
LBB0_8:
	cmpq	$0, 16(%r14)
	je	LBB0_10
## %bb.9:
	movq	(%r15), %rax
	movq	56(%rbx), %rdi
	movl	80(%r13), %ecx
	movl	88(%r13), %esi
	movq	%r12, %rdx
	callq	*(%rax)
LBB0_10:
	movq	72(%rbx), %rdx
	cmpq	$0, 56(%rdx)
	jne	LBB0_13
## %bb.11:
	cmpq	$0, 72(%rdx)
	jne	LBB0_13
## %bb.12:
	cmpq	$0, 64(%rdx)
	je	LBB0_15
LBB0_13:
	movq	%rbx, %rdi
	movq	%rdx, %rsi
	callq	*8(%r14)
	movq	72(%rbx), %rdx
	cmpq	$0, 56(%rdx)
	je	LBB0_15
## %bb.14:
	movq	80(%rbx), %rsi
	movq	%rbx, %rdi
	callq	*(%r14)
	movq	72(%rbx), %rdx
LBB0_15:
	movq	(%rbx), %rsi
	movl	52(%rdx), %ecx
	movl	48(%rdx), %r8d
	movl	44(%rdx), %r9d
	movl	40(%rdx), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	36(%rdx), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	32(%rdx), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	28(%rdx), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	24(%rdx), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	20(%rdx), %r13d
	movl	16(%rdx), %r10d
	movl	12(%rdx), %r11d
	movl	8(%rdx), %r14d
	movl	(%rdx), %r15d
	movl	4(%rdx), %r12d
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	pushq	%r15
	pushq	%r12
	pushq	%r14
	pushq	%r11
	pushq	%r10
	pushq	%r13
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	callq	_DC_LOG_SURFACE
	addq	$96, %rsp
	movq	(%rbx), %rsi
	movslq	44(%rbx), %rdx
	movl	40(%rbx), %ecx
	movl	36(%rbx), %r8d
	movl	32(%rbx), %r9d
	movl	28(%rbx), %r10d
	movl	24(%rbx), %r11d
	movl	20(%rbx), %r14d
	movl	16(%rbx), %ebx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r14
	pushq	%r11
	pushq	%r10
	callq	_DC_LOG_SURFACE
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRAPHICS_GAMUT_ADJUST_TYPE_BYPASS,4,2 ## @GRAPHICS_GAMUT_ADJUST_TYPE_BYPASS
	.comm	_GRAPHICS_GAMUT_ADJUST_TYPE_SW,4,2 ## @GRAPHICS_GAMUT_ADJUST_TYPE_SW
	.comm	_CSC_TEMPERATURE_MATRIX_SIZE,4,2 ## @CSC_TEMPERATURE_MATRIX_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Pipe:%d %p: addr hi:0x%x, addr low:0x%x, src: %d, %d, %d, %d; dst: %d, %d, %d, %d;clip: %d, %d, %d, %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Pipe %d: width, height, x, y\nviewport:%d, %d, %d, %d\nrecout:  %d, %d, %d, %d\n"

	.no_dead_strip	_dce110_program_front_end_for_pipe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce110_program_front_end_for_pipe
_dce110_program_front_end_for_pipe:     ; @dce110_program_front_end_for_pipe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x1, #56]
	ldr	x23, [x1, #72]
	bl	_DC_LOGGER_INIT
	add	x0, sp, #64
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	sub	x0, x29, #80
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh0:
	adrp	x8, _GRAPHICS_GAMUT_ADJUST_TYPE_BYPASS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GRAPHICS_GAMUT_ADJUST_TYPE_BYPASS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stur	w8, [x29, #-72]
	ldr	w0, [x20, #24]
	ldr	w1, [x21, #8]
	mov	w2, #1
	bl	_dce_enable_fe_clock
	mov	x0, x19
	bl	_set_default_colors
	ldr	x8, [x19, #80]
	ldr	w9, [x8, #16]
	cmp	w9, #1
	b.ne	LBB0_2
; %bb.1:
	ldr	w9, [x8, #32]
	str	w9, [sp, #88]
	ldr	x8, [x8, #24]
	ldr	x9, [sp, #80]
	ldr	w10, [x8]
	str	w10, [x9]
	ldr	w10, [x8, #4]
	str	w10, [x9, #4]
	ldr	w10, [x8, #8]
	str	w10, [x9, #8]
	ldr	w10, [x8, #12]
	str	w10, [x9, #12]
	ldr	w10, [x8, #16]
	str	w10, [x9, #16]
	ldr	w10, [x8, #20]
	str	w10, [x9, #20]
	ldr	w10, [x8, #24]
	str	w10, [x9, #24]
	ldr	w10, [x8, #28]
	str	w10, [x9, #28]
	ldr	w10, [x8, #32]
	str	w10, [x9, #32]
	ldr	w10, [x8, #36]
	str	w10, [x9, #36]
	ldr	w10, [x8, #40]
	str	w10, [x9, #40]
	ldr	w8, [x8, #44]
	str	w8, [x9, #44]
	ldr	x0, [x19, #64]
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	add	x1, sp, #64
	blr	x8
	ldr	x8, [x19, #80]
LBB0_2:
	ldr	w9, [x8]
	cmp	w9, #1
	b.ne	LBB0_6
; %bb.3:
Lloh3:
	adrp	x9, _GRAPHICS_GAMUT_ADJUST_TYPE_SW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GRAPHICS_GAMUT_ADJUST_TYPE_SW@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stur	w9, [x29, #-72]
Lloh6:
	adrp	x9, _CSC_TEMPERATURE_MATRIX_SIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CSC_TEMPERATURE_MATRIX_SIZE@GOTPAGEOFF]
	ldr	w10, [x9]
	cbz	w10, LBB0_6
; %bb.4:
	mov	x10, #0
	ldr	x8, [x8, #8]
	ldur	x11, [x29, #-80]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x12, x10, #2
	ldr	w13, [x8, x12]
	str	w13, [x11, x12]
	add	x10, x10, #1
	ldr	w12, [x9]
	cmp	x10, x12
	b.lo	LBB0_5
LBB0_6:
	ldr	x0, [x19, #64]
	ldr	x8, [x0]
	ldr	x8, [x8]
	sub	x1, x29, #80
	blr	x8
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w8, ne
	str	w8, [x19, #48]
	mov	x0, x20
	mov	x1, x19
	bl	_program_scaler
	ldr	x8, [x21]
	ldr	x8, [x8, #16]
	ldr	w1, [x23, #88]
	add	x22, x23, #84
	add	x3, x23, #96
	ldr	w4, [x23, #80]
	mov	x0, x21
	mov	x2, x22
	mov	x5, #0
	mov	w6, #0
	blr	x8
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	x9, [x19, #72]
	ldr	w1, [x9, #92]
	mov	x0, x21
	blr	x8
LBB0_8:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x0, [x19, #56]
	ldr	w1, [x23, #88]
	ldr	w3, [x23, #80]
	mov	x2, x22
	blr	x8
LBB0_10:
	ldr	x2, [x19, #72]
	ldr	x8, [x2, #56]
	cbnz	x8, LBB0_13
; %bb.11:
	ldr	x8, [x2, #72]
	cbnz	x8, LBB0_13
; %bb.12:
	ldr	x8, [x2, #64]
	cbz	x8, LBB0_15
LBB0_13:
	ldr	x8, [x20, #8]
	mov	x0, x19
	mov	x1, x2
	blr	x8
	ldr	x2, [x19, #72]
	ldr	x8, [x2, #56]
	cbz	x8, LBB0_15
; %bb.14:
	ldr	x8, [x20]
	ldr	x1, [x19, #80]
	mov	x0, x19
	blr	x8
	ldr	x2, [x19, #72]
LBB0_15:
	ldr	x1, [x19]
	ldp	w4, w3, [x2, #48]
	ldp	w6, w5, [x2, #40]
	ldp	w8, w7, [x2, #32]
	ldp	w10, w9, [x2, #24]
	ldp	w12, w11, [x2, #16]
	ldp	w14, w13, [x2, #8]
	ldp	w16, w15, [x2]
	stp	x15, x16, [sp, #48]
	stp	x13, x14, [sp, #32]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	stp	x11, x12, [sp, #16]
	str	x10, [sp, #8]
	stp	w8, w9, [sp]
	bl	_DC_LOG_SURFACE
	ldr	x1, [x19]
	ldp	w3, w2, [x19, #40]
                                        ; kill: def $w2 killed $w2 def $x2
	sxtw	x2, w2
	ldp	w5, w4, [x19, #32]
	ldp	w7, w6, [x19, #24]
	ldp	w9, w8, [x19, #16]
	stp	w8, w9, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DC_LOG_SURFACE
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GRAPHICS_GAMUT_ADJUST_TYPE_BYPASS,4,2 ; @GRAPHICS_GAMUT_ADJUST_TYPE_BYPASS
	.comm	_GRAPHICS_GAMUT_ADJUST_TYPE_SW,4,2 ; @GRAPHICS_GAMUT_ADJUST_TYPE_SW
	.comm	_CSC_TEMPERATURE_MATRIX_SIZE,4,2 ; @CSC_TEMPERATURE_MATRIX_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Pipe:%d %p: addr hi:0x%x, addr low:0x%x, src: %d, %d, %d, %d; dst: %d, %d, %d, %d;clip: %d, %d, %d, %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Pipe %d: width, height, x, y\nviewport:%d, %d, %d, %d\nrecout:  %d, %d, %d, %d\n"

	.no_dead_strip	_dce110_program_front_end_for_pipe
.subsections_via_symbols
