	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ddb_output_start
_ddb_output_start:                      ## @ddb_output_start
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	8(%rax), %r14
	movl	$284, -36(%rbp)                 ## imm = 0x11C
	movl	$0, -40(%rbp)
	movq	(%rdi), %rdi
	addq	$8, %rdi
	callq	_spin_lock_irq
	movq	(%r12), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rdi)
	movq	$0, 32(%rdi)
	callq	_DMA_BUFFER_CONTROL
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_ddbwritel
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_DDB_PORT_LOOP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	$8212, -36(%rbp)                ## imm = 0x2014
	jmp	LBB0_3
LBB0_2:
	leaq	-36(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_calc_con
LBB0_3:
	movq	%r12, %rdi
	callq	_TS_CONTROL
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_ddbwritel
	movq	%r12, %rdi
	callq	_TS_CONTROL
	movq	%r14, %rdi
	movl	$2, %esi
	movl	%eax, %edx
	callq	_ddbwritel
	movq	%r12, %rdi
	callq	_TS_CONTROL
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_ddbwritel
	movl	-36(%rbp), %r15d
	movq	%r12, %rdi
	callq	_TS_CONTROL
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_ddbwritel
	movl	-40(%rbp), %r15d
	movq	%r12, %rdi
	callq	_TS_CONTROL2
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_ddbwritel
	movq	(%r12), %rdi
	movl	(%rdi), %r15d
	callq	_DMA_BUFFER_SIZE
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_ddbwritel
	movq	(%r12), %rdi
	callq	_DMA_BUFFER_ACK
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_ddbwritel
	movq	_DMA_BASE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_ddbwritel
	movq	(%r12), %rdi
	callq	_DMA_BUFFER_CONTROL
	movq	%r14, %rdi
	movl	$7, %esi
	movl	%eax, %edx
	callq	_ddbwritel
	movl	-36(%rbp), %ebx
	orl	$1, %ebx
	movq	%r12, %rdi
	callq	_TS_CONTROL
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_ddbwritel
	movq	(%r12), %rdi
	movl	$1, 4(%rdi)
	addq	$8, %rdi
	callq	_spin_unlock_irq
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DDB_PORT_LOOP,8,3              ## @DDB_PORT_LOOP
	.comm	_DMA_BASE_READ,4,2              ## @DMA_BASE_READ
	.no_dead_strip	_ddb_output_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ddb_output_start
_ddb_output_start:                      ; @ddb_output_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldp	x9, x8, [x0]
	ldr	x20, [x8, #8]
	mov	w8, #284
	stp	wzr, w8, [sp, #8]
	add	x0, x9, #8
	bl	_spin_lock_irq
	ldr	x0, [x19]
	stp	xzr, xzr, [x0, #24]
	str	xzr, [x0, #16]
	bl	_DMA_BUFFER_CONTROL
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_ddbwritel
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _DDB_PORT_LOOP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DDB_PORT_LOOP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #8212
	str	w8, [sp, #12]
	b	LBB0_3
LBB0_2:
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #0
	bl	_calc_con
LBB0_3:
	mov	x0, x19
	bl	_TS_CONTROL
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_ddbwritel
	mov	x0, x19
	bl	_TS_CONTROL
	mov	x2, x0
	mov	x0, x20
	mov	w1, #2
	bl	_ddbwritel
	mov	x0, x19
	bl	_TS_CONTROL
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_ddbwritel
	ldr	w21, [sp, #12]
	mov	x0, x19
	bl	_TS_CONTROL
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_ddbwritel
	ldr	w21, [sp, #8]
	mov	x0, x19
	bl	_TS_CONTROL2
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_ddbwritel
	ldr	x0, [x19]
	ldr	w21, [x0]
	bl	_DMA_BUFFER_SIZE
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_ddbwritel
	ldr	x0, [x19]
	bl	_DMA_BUFFER_ACK
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_ddbwritel
Lloh3:
	adrp	x8, _DMA_BASE_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_BASE_READ@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w22, #1
	mov	x0, x20
	mov	w1, #1
	bl	_ddbwritel
	ldr	x0, [x19]
	bl	_DMA_BUFFER_CONTROL
	mov	x2, x0
	mov	x0, x20
	mov	w1, #7
	bl	_ddbwritel
	ldr	w8, [sp, #12]
	orr	w21, w8, #0x1
	mov	x0, x19
	bl	_TS_CONTROL
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_ddbwritel
	ldr	x8, [x19]
	str	w22, [x8, #4]
	add	x0, x8, #8
	bl	_spin_unlock_irq
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DDB_PORT_LOOP,8,3              ; @DDB_PORT_LOOP
	.comm	_DMA_BASE_READ,4,2              ; @DMA_BASE_READ
	.no_dead_strip	_ddb_output_start
.subsections_via_symbols
