	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ddb_input_avail
_ddb_input_avail:                       ## @ddb_input_avail
	.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
	movq	(%rdi), %rdi
	movq	8(%rbx), %rax
	movq	(%rax), %r15
	movl	(%rdi), %r14d
	callq	_DMA_BUFFER_CONTROL
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ddbreadl
	movl	%r14d, %edx
	shrl	$11, %edx
	andl	$31, %edx
	testb	$4, %al
	jne	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	xorl	%ecx, %ecx
	cmpl	%edx, 4(%rax)
	movl	$188, %eax
	cmovel	%ecx, %eax
	jmp	LBB0_3
LBB0_1:
	movl	%r14d, %ecx
	shll	$7, %ecx
	andl	$262016, %ecx                   ## imm = 0x3FF80
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %r8d
	callq	_dev_err
	movq	(%rbx), %rdi
	callq	_DMA_BUFFER_ACK
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_ddbwritel
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IA %d %d %08x\n"

	.no_dead_strip	_ddb_input_avail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ddb_input_avail
_ddb_input_avail:                       ; @ddb_input_avail
	.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	x21, x0
	ldp	x0, x8, [x0]
	ldr	x20, [x8]
	ldr	w19, [x0]
	bl	_DMA_BUFFER_CONTROL
	mov	x1, x0
	mov	x0, x20
	bl	_ddbreadl
	ubfx	w2, w19, #11, #5
	tbnz	w0, #2, LBB0_2
; %bb.1:
	ldr	x8, [x21]
	ldr	w8, [x8, #4]
	mov	w9, #188
	cmp	w8, w2
	csel	w0, wzr, w9, eq
	b	LBB0_3
LBB0_2:
	mov	x4, x0
	ubfiz	w3, w19, #7, #11
	ldr	w0, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	x0, [x21]
	bl	_DMA_BUFFER_ACK
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_ddbwritel
	mov	w0, #0
LBB0_3:
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IA %d %d %08x\n"

	.no_dead_strip	_ddb_input_avail
.subsections_via_symbols
