	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipu_dp_disable_channel         ## -- Begin function ipu_dp_disable_channel
	.p2align	4, 0x90
_ipu_dp_disable_channel:                ## @ipu_dp_disable_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	%esi, %r14d
	movq	%rdi, %rbx
	callq	_to_flow
	movq	%rax, %r12
	movq	8(%rax), %r15
	movq	_IPUV3_COLORSPACE_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	cmpl	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_DP_COM_CONF@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	(%r12), %rdi
	callq	_readl
	movq	_DP_COM_CONF_CSC_DEF_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	andl	%eax, %edx
	notl	%ecx
	andl	%eax, %ecx
	movq	_DP_COM_CONF_CSC_DEF_BOTH@GOTPCREL(%rip), %rax
	movq	_DP_COM_CONF_CSC_DEF_BG@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	xorl	%ebx, %ebx
	cmpl	%esi, %edx
	cmovel	%esi, %ebx
	cmpl	(%rax), %edx
	cmovel	%esi, %ebx
	orl	%ecx, %ebx
	movq	_DP_COM_CONF_FG_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%edi
	andl	%ebx, %edi
	movq	(%r13), %rsi
	addq	(%r12), %rsi
	callq	_writel
	movq	_DP_FG_POS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	xorl	%edi, %edi
	callq	_writel
	movl	4(%r15), %edi
	movl	%r14d, %esi
	callq	_ipu_srm_dp_update
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPUV3_COLORSPACE_UNKNOWN,4,2   ## @IPUV3_COLORSPACE_UNKNOWN
	.comm	_DP_COM_CONF,8,3                ## @DP_COM_CONF
	.comm	_DP_COM_CONF_CSC_DEF_MASK,4,2   ## @DP_COM_CONF_CSC_DEF_MASK
	.comm	_DP_COM_CONF_CSC_DEF_BOTH,4,2   ## @DP_COM_CONF_CSC_DEF_BOTH
	.comm	_DP_COM_CONF_CSC_DEF_BG,4,2     ## @DP_COM_CONF_CSC_DEF_BG
	.comm	_DP_COM_CONF_FG_EN,4,2          ## @DP_COM_CONF_FG_EN
	.comm	_DP_FG_POS,8,3                  ## @DP_FG_POS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipu_dp_disable_channel         ; -- Begin function ipu_dp_disable_channel
	.p2align	2
_ipu_dp_disable_channel:                ; @ipu_dp_disable_channel
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x22, x0
	bl	_to_flow
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _IPUV3_COLORSPACE_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPUV3_COLORSPACE_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x22, #4]
	ldr	w8, [x22]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x21, x0
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x21]
Lloh3:
	adrp	x22, _DP_COM_CONF@GOTPAGE
Lloh4:
	ldr	x22, [x22, _DP_COM_CONF@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
Lloh5:
	adrp	x8, _DP_COM_CONF_CSC_DEF_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DP_COM_CONF_CSC_DEF_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w9, w8, w0
	bic	w8, w0, w8
Lloh8:
	adrp	x10, _DP_COM_CONF_CSC_DEF_BOTH@GOTPAGE
Lloh9:
	ldr	x10, [x10, _DP_COM_CONF_CSC_DEF_BOTH@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	adrp	x11, _DP_COM_CONF_CSC_DEF_BG@GOTPAGE
Lloh12:
	ldr	x11, [x11, _DP_COM_CONF_CSC_DEF_BG@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
	cmp	w9, w11
	ccmp	w9, w10, #4, ne
	csel	w9, w11, wzr, eq
Lloh14:
	adrp	x10, _DP_COM_CONF_FG_EN@GOTPAGE
Lloh15:
	ldr	x10, [x10, _DP_COM_CONF_FG_EN@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh16:
	ldr	w9, [x10]
	bic	w0, w8, w9
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x21]
Lloh17:
	adrp	x9, _DP_FG_POS@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DP_FG_POS@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	w0, [x20, #4]
	mov	x1, x19
	bl	_ipu_srm_dp_update
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mutex_unlock
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IPUV3_COLORSPACE_UNKNOWN,4,2   ; @IPUV3_COLORSPACE_UNKNOWN
	.comm	_DP_COM_CONF,8,3                ; @DP_COM_CONF
	.comm	_DP_COM_CONF_CSC_DEF_MASK,4,2   ; @DP_COM_CONF_CSC_DEF_MASK
	.comm	_DP_COM_CONF_CSC_DEF_BOTH,4,2   ; @DP_COM_CONF_CSC_DEF_BOTH
	.comm	_DP_COM_CONF_CSC_DEF_BG,4,2     ; @DP_COM_CONF_CSC_DEF_BG
	.comm	_DP_COM_CONF_FG_EN,4,2          ; @DP_COM_CONF_FG_EN
	.comm	_DP_FG_POS,8,3                  ; @DP_FG_POS
.subsections_via_symbols
