	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dma64_txidle
_dma64_txidle:                          ## @dma64_txidle
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movl	8(%rdi), %r14d
	movq	_status0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DMA64TXREGOFFS
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_bcma_read32
	movl	%eax, %r14d
	movq	_D64_XS0_CD_MASK@GOTPCREL(%rip), %r12
	andl	(%r12), %r14d
	movl	8(%rbx), %r15d
	movq	_ptr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_DMA64TXREGOFFS
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_bcma_read32
	movl	%eax, %ecx
	andl	(%r12), %ecx
	xorl	%eax, %eax
	cmpl	%ecx, %r14d
	sete	%al
	jmp	LBB0_3
LBB0_1:
	movl	$1, %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_status0,4,2                    ## @status0
	.comm	_D64_XS0_CD_MASK,4,2            ## @D64_XS0_CD_MASK
	.comm	_ptr,4,2                        ## @ptr
	.no_dead_strip	_dma64_txidle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dma64_txidle
_dma64_txidle:                          ; @dma64_txidle
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w20, [x0, #8]
Lloh0:
	adrp	x8, _status0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _status0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_DMA64TXREGOFFS
	mov	x1, x0
	mov	x0, x20
	bl	_bcma_read32
Lloh3:
	adrp	x21, _D64_XS0_CD_MASK@GOTPAGE
Lloh4:
	ldr	x21, [x21, _D64_XS0_CD_MASK@GOTPAGEOFF]
	ldr	w8, [x21]
	and	w22, w8, w0
	ldr	w20, [x19, #8]
Lloh5:
	adrp	x8, _ptr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ptr@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_DMA64TXREGOFFS
	mov	x1, x0
	mov	x0, x20
	bl	_bcma_read32
	ldr	w8, [x21]
	and	w8, w8, w0
	cmp	w22, w8
	cset	w0, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #1
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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_status0,4,2                    ; @status0
	.comm	_D64_XS0_CD_MASK,4,2            ; @D64_XS0_CD_MASK
	.comm	_ptr,4,2                        ; @ptr
	.no_dead_strip	_dma64_txidle
.subsections_via_symbols
