	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipu_dp_setup_channel           ## -- Begin function ipu_dp_setup_channel
	.p2align	4, 0x90
_ipu_dp_setup_channel:                  ## @ipu_dp_setup_channel
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_to_flow
	movq	%rax, %r13
	movq	24(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	%r12d, (%rbx)
	cmpl	$0, 4(%rbx)
	jne	LBB0_2
## %bb.1:
	movl	%r15d, (%r13)
LBB0_2:
	movq	8(%r13), %rsi
	movq	16(%r13), %rax
	cmpq	%rax, %rsi
	jne	LBB0_4
## %bb.3:
	movl	(%r13), %edx
	movq	_DP_COM_CONF_CSC_DEF_BOTH@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	_IPUV3_COLORSPACE_UNKNOWN@GOTPCREL(%rip), %rcx
	movl	(%r13), %edx
	cmpq	(%rcx), %rsi
	je	LBB0_6
## %bb.5:
	movslq	%edx, %rcx
	cmpq	%rcx, %rsi
	je	LBB0_6
## %bb.7:
	movq	_DP_COM_CONF_CSC_DEF_FG@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %ecx
	movq	%r13, %rdi
	jmp	LBB0_9
LBB0_6:
	movq	_DP_COM_CONF_CSC_DEF_BG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r13, %rdi
	movq	%rax, %rsi
LBB0_9:
	callq	_ipu_dp_csc_init
	movl	4(%r14), %edi
	movl	$1, %esi
	callq	_ipu_srm_dp_update
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_COM_CONF_CSC_DEF_BOTH,4,2   ## @DP_COM_CONF_CSC_DEF_BOTH
	.comm	_IPUV3_COLORSPACE_UNKNOWN,8,3   ## @IPUV3_COLORSPACE_UNKNOWN
	.comm	_DP_COM_CONF_CSC_DEF_BG,4,2     ## @DP_COM_CONF_CSC_DEF_BG
	.comm	_DP_COM_CONF_CSC_DEF_FG,4,2     ## @DP_COM_CONF_CSC_DEF_FG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipu_dp_setup_channel           ; -- Begin function ipu_dp_setup_channel
	.p2align	2
_ipu_dp_setup_channel:                  ; @ipu_dp_setup_channel
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	bl	_to_flow
	mov	x20, x0
	ldr	x19, [x0, #24]
	mov	x0, x19
	bl	_mutex_lock
	str	w22, [x23]
	ldr	w8, [x23, #4]
	cbnz	w8, LBB0_2
; %bb.1:
	str	w21, [x20]
LBB0_2:
	ldp	x1, x8, [x20, #8]
	cmp	x1, x8
	b.ne	LBB0_4
; %bb.3:
	ldr	w2, [x20]
Lloh0:
	adrp	x8, _DP_COM_CONF_CSC_DEF_BOTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DP_COM_CONF_CSC_DEF_BOTH@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x20
	b	LBB0_8
LBB0_4:
Lloh3:
	adrp	x9, _IPUV3_COLORSPACE_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IPUV3_COLORSPACE_UNKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w2, [x20]
	sxtw	x10, w2
	cmp	x1, x9
	ccmp	x1, x10, #4, ne
	b.ne	LBB0_6
; %bb.5:
Lloh6:
	adrp	x9, _DP_COM_CONF_CSC_DEF_BG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DP_COM_CONF_CSC_DEF_BG@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x9]
	mov	x0, x20
	mov	x1, x8
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _DP_COM_CONF_CSC_DEF_FG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DP_COM_CONF_CSC_DEF_FG@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x20
LBB0_7:
                                        ; kill: def $w2 killed $w2 killed $x2
LBB0_8:
	bl	_ipu_dp_csc_init
	ldr	w0, [x19, #4]
	mov	w1, #1
	bl	_ipu_srm_dp_update
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_COM_CONF_CSC_DEF_BOTH,4,2   ; @DP_COM_CONF_CSC_DEF_BOTH
	.comm	_IPUV3_COLORSPACE_UNKNOWN,8,3   ; @IPUV3_COLORSPACE_UNKNOWN
	.comm	_DP_COM_CONF_CSC_DEF_BG,4,2     ; @DP_COM_CONF_CSC_DEF_BG
	.comm	_DP_COM_CONF_CSC_DEF_FG,4,2     ; @DP_COM_CONF_CSC_DEF_FG
.subsections_via_symbols
