	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function free_dma_rcv_ctx
_free_dma_rcv_ctx:                      ## @free_dma_rcv_ctx
	.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	8(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_19
## %bb.1:
	movq	%rdi, %r15
	movl	68(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DBGMSG
	movq	56(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.2:
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	movq	56(%r15), %rdi
	cmpq	%rcx, %rbx
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rbx,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	48(%r15), %rcx
	movq	(%rcx,%rbx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r14), %edi
	movl	64(%r15), %esi
	callq	_pci_free_consistent
	movl	(%r15), %eax
	jmp	LBB0_7
LBB0_8:
	callq	_kfree
	movq	48(%r15), %rdi
	callq	_kfree
LBB0_9:
	movq	32(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.10:
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_17
## %bb.11:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	-8(%rcx,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	24(%r15), %rcx
	movq	-8(%rcx,%rbx,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	40(%r15), %edi
	callq	_pci_pool_free
	movl	(%r15), %eax
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	32(%r15), %rcx
	incq	%rbx
	jmp	LBB0_12
LBB0_17:
	movl	40(%r15), %edi
	callq	_pci_pool_destroy
	movq	32(%r15), %rdi
	callq	_kfree
	movq	24(%r15), %rdi
	callq	_kfree
LBB0_18:
	movq	16(%r15), %rdi
	callq	_kfree
	movq	$0, 8(%r15)
LBB0_19:
	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	"Freeing dma_rcv_ctx %d"

	.no_dead_strip	_free_dma_rcv_ctx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function free_dma_rcv_ctx
_free_dma_rcv_ctx:                      ; @free_dma_rcv_ctx
	.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	x20, [x0, #8]
	cbz	x20, LBB0_18
; %bb.1:
	mov	x19, x0
	ldr	w1, [x0, #68]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBGMSG
	ldr	x0, [x19, #56]
	cbz	x0, LBB0_9
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x21, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldr	x0, [x19, #56]
	cmp	x21, w8, sxtw
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x2, [x0, x21, lsl #3]
	cbz	x2, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x19, #48]
	ldr	x3, [x9, x21, lsl #3]
	cbz	x3, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x20]
	ldr	w1, [x19, #64]
	bl	_pci_free_consistent
	ldr	w8, [x19]
	b	LBB0_4
LBB0_8:
	bl	_kfree
	ldr	x0, [x19, #48]
	bl	_kfree
LBB0_9:
	ldr	x9, [x19, #32]
	cbz	x9, LBB0_17
; %bb.10:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.11:
	mov	x20, #0
	ldr	x1, [x9, x20, lsl #3]
	cbz	x1, LBB0_14
LBB0_12:
	ldr	x9, [x19, #24]
	ldr	x2, [x9, x20, lsl #3]
	cbz	x2, LBB0_14
; %bb.13:
	ldr	w0, [x19, #40]
	bl	_pci_pool_free
	ldr	w8, [x19]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.ge	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x9, [x19, #32]
	ldr	x1, [x9, x20, lsl #3]
	cbnz	x1, LBB0_12
	b	LBB0_14
LBB0_16:
	ldr	w0, [x19, #40]
	bl	_pci_pool_destroy
	ldr	x0, [x19, #32]
	bl	_kfree
	ldr	x0, [x19, #24]
	bl	_kfree
LBB0_17:
	ldr	x0, [x19, #16]
	bl	_kfree
	str	xzr, [x19, #8]
LBB0_18:
	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	"Freeing dma_rcv_ctx %d"

	.no_dead_strip	_free_dma_rcv_ctx
.subsections_via_symbols
