	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipu_dc_init
_ipu_dc_init:                           ## @ipu_dc_init
	.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, %r15
	xorl	%ebx, %ebx
	testl	%esi, %esi
	sete	%bl
	leal	(%rbx,%rbx,2), %r14d
	leal	(%rbx,%rbx,2), %edx
	addl	$2, %edx
	movq	_DC_EVENT_NL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$3, %ecx
	callq	_ipu_dc_link_event
	movq	_DC_EVENT_EOL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	(%rbx,%rbx,2), %edx
	addl	$3, %edx
	movq	%r15, %rdi
	movl	$2, %ecx
	callq	_ipu_dc_link_event
	movq	_DC_EVENT_NEW_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	$4, %r14d
	movq	%r15, %rdi
	movl	%r14d, %edx
	movl	$1, %ecx
	callq	_ipu_dc_link_event
	movq	_DC_EVENT_NF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ipu_dc_link_event
	movq	_DC_EVENT_NFIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ipu_dc_link_event
	movq	_DC_EVENT_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ipu_dc_link_event
	movq	_DC_EVENT_EOFIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ipu_dc_link_event
	movq	_DC_EVENT_NEW_CHAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ipu_dc_link_event
	movq	_DC_EVENT_NEW_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ipu_dc_link_event
	movl	$2, %edi
	callq	_WRITE_CH_CONF_PROG_W_SIZE
	movl	%eax, %ebx
	movq	_DI_PORT@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_WRITE_CH_CONF_PROG_DISP_ID
	orl	%eax, %ebx
	movl	(%r14), %edi
	callq	_WRITE_CH_CONF_PROG_DI_ID
	orl	%eax, %ebx
	movq	_DC_WRITE_CH_CONF_5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_IPU_WRITE4
	movq	_DC_WRITE_CH_ADDR_5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_IPU_WRITE4
	movq	_DC_GEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DC_GEN_SYNC_PRIORITY@GOTPCREL(%rip), %rax
	movq	_DC_GEN_SYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IPU_WRITE4                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DC_EVENT_NL,4,2                ## @DC_EVENT_NL
	.comm	_DC_EVENT_EOL,4,2               ## @DC_EVENT_EOL
	.comm	_DC_EVENT_NEW_DATA,4,2          ## @DC_EVENT_NEW_DATA
	.comm	_DC_EVENT_NF,4,2                ## @DC_EVENT_NF
	.comm	_DC_EVENT_NFIELD,4,2            ## @DC_EVENT_NFIELD
	.comm	_DC_EVENT_EOF,4,2               ## @DC_EVENT_EOF
	.comm	_DC_EVENT_EOFIELD,4,2           ## @DC_EVENT_EOFIELD
	.comm	_DC_EVENT_NEW_CHAN,4,2          ## @DC_EVENT_NEW_CHAN
	.comm	_DC_EVENT_NEW_ADDR,4,2          ## @DC_EVENT_NEW_ADDR
	.comm	_DI_PORT,4,2                    ## @DI_PORT
	.comm	_DC_WRITE_CH_CONF_5,4,2         ## @DC_WRITE_CH_CONF_5
	.comm	_DC_WRITE_CH_ADDR_5,4,2         ## @DC_WRITE_CH_ADDR_5
	.comm	_DC_GEN,4,2                     ## @DC_GEN
	.comm	_DC_GEN_SYNC_PRIORITY,4,2       ## @DC_GEN_SYNC_PRIORITY
	.comm	_DC_GEN_SYNC,4,2                ## @DC_GEN_SYNC
	.no_dead_strip	_ipu_dc_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipu_dc_init
_ipu_dc_init:                           ; @ipu_dc_init
	.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, x0
	mov	w8, #2
	mov	w9, #5
	cmp	w1, #0
	csel	w20, w9, w8, eq
Lloh0:
	adrp	x8, _DC_EVENT_NL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DC_EVENT_NL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x20
	mov	w3, #3
	bl	_ipu_dc_link_event
Lloh3:
	adrp	x8, _DC_EVENT_EOL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DC_EVENT_EOL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	w2, w20, #1
	mov	x0, x19
	mov	w3, #2
	bl	_ipu_dc_link_event
Lloh6:
	adrp	x8, _DC_EVENT_NEW_DATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DC_EVENT_NEW_DATA@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	w2, w20, #2
	mov	x0, x19
	mov	w3, #1
	bl	_ipu_dc_link_event
Lloh9:
	adrp	x8, _DC_EVENT_NF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DC_EVENT_NF@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_ipu_dc_link_event
Lloh12:
	adrp	x8, _DC_EVENT_NFIELD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DC_EVENT_NFIELD@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_ipu_dc_link_event
Lloh15:
	adrp	x8, _DC_EVENT_EOF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DC_EVENT_EOF@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_ipu_dc_link_event
Lloh18:
	adrp	x8, _DC_EVENT_EOFIELD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DC_EVENT_EOFIELD@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_ipu_dc_link_event
Lloh21:
	adrp	x8, _DC_EVENT_NEW_CHAN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DC_EVENT_NEW_CHAN@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_ipu_dc_link_event
Lloh24:
	adrp	x8, _DC_EVENT_NEW_ADDR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DC_EVENT_NEW_ADDR@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_ipu_dc_link_event
	mov	w0, #2
	bl	_WRITE_CH_CONF_PROG_W_SIZE
	mov	x20, x0
Lloh27:
	adrp	x21, _DI_PORT@GOTPAGE
Lloh28:
	ldr	x21, [x21, _DI_PORT@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_WRITE_CH_CONF_PROG_DISP_ID
	orr	w20, w0, w20
	ldr	w0, [x21]
	bl	_WRITE_CH_CONF_PROG_DI_ID
	orr	w2, w20, w0
Lloh29:
	adrp	x8, _DC_WRITE_CH_CONF_5@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DC_WRITE_CH_CONF_5@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_IPU_WRITE4
Lloh32:
	adrp	x8, _DC_WRITE_CH_ADDR_5@GOTPAGE
Lloh33:
	ldr	x8, [x8, _DC_WRITE_CH_ADDR_5@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_IPU_WRITE4
Lloh35:
	adrp	x8, _DC_GEN@GOTPAGE
Lloh36:
	ldr	x8, [x8, _DC_GEN@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
Lloh38:
	adrp	x8, _DC_GEN_SYNC_PRIORITY@GOTPAGE
Lloh39:
	ldr	x8, [x8, _DC_GEN_SYNC_PRIORITY@GOTPAGEOFF]
Lloh40:
	adrp	x9, _DC_GEN_SYNC@GOTPAGE
Lloh41:
	ldr	x9, [x9, _DC_GEN_SYNC@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	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	_IPU_WRITE4
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh42
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DC_EVENT_NL,4,2                ; @DC_EVENT_NL
	.comm	_DC_EVENT_EOL,4,2               ; @DC_EVENT_EOL
	.comm	_DC_EVENT_NEW_DATA,4,2          ; @DC_EVENT_NEW_DATA
	.comm	_DC_EVENT_NF,4,2                ; @DC_EVENT_NF
	.comm	_DC_EVENT_NFIELD,4,2            ; @DC_EVENT_NFIELD
	.comm	_DC_EVENT_EOF,4,2               ; @DC_EVENT_EOF
	.comm	_DC_EVENT_EOFIELD,4,2           ; @DC_EVENT_EOFIELD
	.comm	_DC_EVENT_NEW_CHAN,4,2          ; @DC_EVENT_NEW_CHAN
	.comm	_DC_EVENT_NEW_ADDR,4,2          ; @DC_EVENT_NEW_ADDR
	.comm	_DI_PORT,4,2                    ; @DI_PORT
	.comm	_DC_WRITE_CH_CONF_5,4,2         ; @DC_WRITE_CH_CONF_5
	.comm	_DC_WRITE_CH_ADDR_5,4,2         ; @DC_WRITE_CH_ADDR_5
	.comm	_DC_GEN,4,2                     ; @DC_GEN
	.comm	_DC_GEN_SYNC_PRIORITY,4,2       ; @DC_GEN_SYNC_PRIORITY
	.comm	_DC_GEN_SYNC,4,2                ; @DC_GEN_SYNC
	.no_dead_strip	_ipu_dc_init
.subsections_via_symbols
