	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipu_dp_enable_channel          ## -- Begin function ipu_dp_enable_channel
	.p2align	4, 0x90
_ipu_dp_enable_channel:                 ## @ipu_dp_enable_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_to_flow
	cmpl	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rax, %r15
	movq	8(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_DP_COM_CONF@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	(%r15), %rdi
	callq	_readl
	movq	_DP_COM_CONF_FG_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%rbx), %rsi
	addq	(%r15), %rsi
	movl	%eax, %edi
	callq	_writel
	movl	4(%r14), %edi
	movl	$1, %esi
	callq	_ipu_srm_dp_update
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_COM_CONF,8,3                ## @DP_COM_CONF
	.comm	_DP_COM_CONF_FG_EN,4,2          ## @DP_COM_CONF_FG_EN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipu_dp_enable_channel          ; -- Begin function ipu_dp_enable_channel
	.p2align	2
_ipu_dp_enable_channel:                 ; @ipu_dp_enable_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	x20, x0
	bl	_to_flow
	ldr	w8, [x20]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #8]
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x19]
Lloh0:
	adrp	x21, _DP_COM_CONF@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DP_COM_CONF@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x8, _DP_COM_CONF_FG_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DP_COM_CONF_FG_EN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x20, #4]
	mov	w1, #1
	bl	_ipu_srm_dp_update
	mov	x0, x20
	bl	_mutex_unlock
LBB0_2:
	mov	w0, #0
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_COM_CONF,8,3                ; @DP_COM_CONF
	.comm	_DP_COM_CONF_FG_EN,4,2          ; @DP_COM_CONF_FG_EN
.subsections_via_symbols
