	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dwc_tx_status
_dwc_tx_status:                         ## @dwc_tx_status
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_to_dw_dma_chan
	movq	%rax, %r14
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	callq	_dma_cookie_status
	movl	%eax, %r13d
	movq	_DMA_COMPLETE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_5
## %bb.1:
	movl	(%rbx), %edi
	callq	_to_dw_dma
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_dwc_scan_descriptors
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	callq	_dma_cookie_status
	movl	%eax, %r13d
	movq	_DMA_COMPLETE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_5
## %bb.2:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_dwc_get_residue
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dma_set_residue
	movq	_DW_DMA_IS_PAUSED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	movq	_DMA_IN_PROGRESS@GOTPCREL(%rip), %rdx
	movl	%r13d, %ecx
	cmpl	(%rdx), %r13d
	jne	LBB0_4
## %bb.3:
	movq	_DMA_PAUSED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_4:
	testq	%rax, %rax
	cmovnel	%ecx, %r13d
LBB0_5:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_COMPLETE,4,2               ## @DMA_COMPLETE
	.comm	_DW_DMA_IS_PAUSED,4,2           ## @DW_DMA_IS_PAUSED
	.comm	_DMA_IN_PROGRESS,4,2            ## @DMA_IN_PROGRESS
	.comm	_DMA_PAUSED,4,2                 ## @DMA_PAUSED
	.no_dead_strip	_dwc_tx_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dwc_tx_status
_dwc_tx_status:                         ; @dwc_tx_status
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
	bl	_to_dw_dma_chan
	mov	x19, x0
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	bl	_dma_cookie_status
	mov	x22, x0
Lloh0:
	adrp	x24, _DMA_COMPLETE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DMA_COMPLETE@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	w0, [x23]
	bl	_to_dw_dma
	mov	x1, x19
	bl	_dwc_scan_descriptors
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	bl	_dma_cookie_status
	mov	x22, x0
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	bl	_dwc_get_residue
	mov	x1, x0
	mov	x0, x20
	bl	_dma_set_residue
Lloh2:
	adrp	x8, _DW_DMA_IS_PAUSED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DW_DMA_IS_PAUSED@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
Lloh5:
	adrp	x8, _DMA_IN_PROGRESS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_IN_PROGRESS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w22, w8
	ccmp	x0, #0, #4, eq
Lloh8:
	adrp	x8, _DMA_PAUSED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DMA_PAUSED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	csel	w22, w8, w22, ne
LBB0_3:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_COMPLETE,4,2               ; @DMA_COMPLETE
	.comm	_DW_DMA_IS_PAUSED,4,2           ; @DW_DMA_IS_PAUSED
	.comm	_DMA_IN_PROGRESS,4,2            ; @DMA_IN_PROGRESS
	.comm	_DMA_PAUSED,4,2                 ; @DMA_PAUSED
	.no_dead_strip	_dwc_tx_status
.subsections_via_symbols
