	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axi_dmac_transfer_done
_axi_dmac_transfer_done:                ## @axi_dmac_transfer_done
	.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
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	callq	_axi_dmac_active_desc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.3:
	movq	_AXI_DMAC_FLAG_PARTIAL_XFER_DONE@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_axi_dmac_dequeue_partial_xfers
LBB0_5:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	_AXI_DMAC_SG_UNUSED@GOTPCREL(%rip), %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, 24(%rbx)
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	$0, (%rbx)
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	testq	%rbx, %rbx
	je	LBB0_20
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movq	32(%rbx), %r12
	leaq	(%rax,%rax,2), %r14
	movq	(%r12,%r14,8), %rdi
	cmpq	(%r13), %rdi
	je	LBB0_20
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	callq	_BIT
	testl	%eax, -48(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_20
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	(%r12,%r14,8), %rax
	incq	(%rbx)
	movq	(%r13), %rcx
	movq	%rcx, (%rax)
	cmpl	$0, 8(%r12,%r14,8)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	(%r12,%r14,8), %rax
	addq	$8, %rax
	movl	$0, (%rax)
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, 16(%r12,%r14,8)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_axi_dmac_compute_residue
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, 24(%rbx)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	16(%rbx), %rdi
	callq	_vchan_cyclic_callback
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	(%r12,%r14,8), %rax
	addq	$16, %rax
	cmpq	$0, (%rax)
	jne	LBB0_16
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_list_del
	movq	%rbx, %rdi
	callq	_vchan_cookie_complete
	movq	%r15, %rdi
	callq	_axi_dmac_active_desc
	movq	%rax, %rbx
	jmp	LBB0_19
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_20:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AXI_DMAC_FLAG_PARTIAL_XFER_DONE,4,2 ## @AXI_DMAC_FLAG_PARTIAL_XFER_DONE
	.comm	_AXI_DMAC_SG_UNUSED,8,3         ## @AXI_DMAC_SG_UNUSED
	.no_dead_strip	_axi_dmac_transfer_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axi_dmac_transfer_done
_axi_dmac_transfer_done:                ; @axi_dmac_transfer_done
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	bl	_axi_dmac_active_desc
	cbz	x0, LBB0_19
; %bb.1:
	mov	x22, x0
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _AXI_DMAC_FLAG_PARTIAL_XFER_DONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AXI_DMAC_FLAG_PARTIAL_XFER_DONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_axi_dmac_dequeue_partial_xfers
LBB0_4:
	mov	w21, #0
	mov	w23, #24
Lloh3:
	adrp	x24, _AXI_DMAC_SG_UNUSED@GOTPAGE
Lloh4:
	ldr	x24, [x24, _AXI_DMAC_SG_UNUSED@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_18
; %bb.6:                                ;   in Loop: Header=BB0_8 Depth=1
	str	xzr, [x22]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	cbz	x22, LBB0_20
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x22, #32]
	ldr	x26, [x22]
	madd	x27, x26, x23, x25
	ldr	x0, [x27]
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_20
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	bl	_BIT
	tst	w0, w19
	b.eq	LBB0_20
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x22]
	add	x8, x8, #1
	str	x8, [x22]
	ldr	x8, [x24]
	str	x8, [x27]
	madd	x8, x26, x23, x25
	ldr	w9, [x8, #8]!
	cbz	w9, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	str	wzr, [x8]
	mov	w21, #1
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	madd	x25, x26, x23, x25
	ldr	x8, [x25, #16]!
	cbz	x8, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_axi_dmac_compute_residue
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x0, x22, #16
	bl	_vchan_cyclic_callback
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=1
	ldp	x8, x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.17:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x25]
	cbnz	x8, LBB0_5
	b	LBB0_7
LBB0_18:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #16
	mov	x0, x22
	bl	_list_del
	mov	x0, x22
	bl	_vchan_cookie_complete
	mov	x0, x20
	bl	_axi_dmac_active_desc
	mov	x22, x0
	b	LBB0_7
LBB0_19:
	mov	w21, #0
LBB0_20:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AXI_DMAC_FLAG_PARTIAL_XFER_DONE,4,2 ; @AXI_DMAC_FLAG_PARTIAL_XFER_DONE
	.comm	_AXI_DMAC_SG_UNUSED,8,3         ; @AXI_DMAC_SG_UNUSED
	.no_dead_strip	_axi_dmac_transfer_done
.subsections_via_symbols
