	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function free_dma_iso_ctx
_free_dma_iso_ctx:                      ## @free_dma_iso_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	%rdi, %r14
	movq	88(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	100(%r14), %edx
	leaq	L_.str(%rip), %rsi
	callq	_DBGMSG
	movq	88(%r14), %rdi
	movl	96(%r14), %esi
	xorl	%edx, %edx
	callq	_ohci1394_stop_context
	cmpq	$0, 80(%r14)
	je	LBB0_2
## %bb.1:
	leaq	80(%r14), %rsi
	movq	88(%r14), %rdi
	callq	_ohci1394_unregister_iso_tasklet
LBB0_2:
	leaq	72(%r14), %rdi
	callq	_dma_region_free
	movq	64(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.3:
	cmpl	$0, (%r14)
	jle	LBB0_6
## %bb.4:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	addq	%r15, %rdi
	callq	_dma_prog_region_free
	incq	%rbx
	movslq	(%r14), %rax
	movq	64(%r14), %rdi
	addq	$104, %r15
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	callq	_kfree
LBB0_7:
	movq	56(%r14), %rdi
	callq	_kfree
	movq	48(%r14), %rdi
	callq	_kfree
	movq	40(%r14), %rdi
	callq	_kfree
	movq	32(%r14), %rdi
	callq	_kfree
	movq	24(%r14), %rdi
	callq	_kfree
	movq	16(%r14), %rdi
	callq	_kfree
	movq	8(%r14), %rdi
	callq	_kfree
	leaq	4(%r14), %rdi
	callq	_list_del
	movq	%r14, %rdi
	callq	_kfree
	xorl	%eax, %eax
	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_iso_ctx %d"

	.no_dead_strip	_free_dma_iso_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_iso_ctx
_free_dma_iso_ctx:                      ; @free_dma_iso_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
	mov	x19, x0
	ldr	x8, [x0, #88]
	ldr	x8, [x8]
	ldr	w0, [x8]
	ldr	w2, [x19, #100]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DBGMSG
	ldr	x0, [x19, #88]
	ldr	w1, [x19, #96]
	mov	x2, #0
	bl	_ohci1394_stop_context
	mov	x1, x19
	ldr	x8, [x1, #80]!
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x0, [x19, #88]
	bl	_ohci1394_unregister_iso_tasklet
LBB0_2:
	add	x0, x19, #72
	bl	_dma_region_free
	ldr	x0, [x19, #64]
	cbz	x0, LBB0_7
; %bb.3:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x20, #0
	mov	x21, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x0, x20
	bl	_dma_prog_region_free
	add	x21, x21, #1
	ldrsw	x8, [x19]
	ldr	x0, [x19, #64]
	add	x20, x20, #104
	cmp	x21, x8
	b.lt	LBB0_5
LBB0_6:
	bl	_kfree
LBB0_7:
	ldr	x0, [x19, #56]
	bl	_kfree
	ldr	x0, [x19, #48]
	bl	_kfree
	ldr	x0, [x19, #40]
	bl	_kfree
	ldr	x0, [x19, #32]
	bl	_kfree
	ldr	x0, [x19, #24]
	bl	_kfree
	ldr	x0, [x19, #16]
	bl	_kfree
	ldr	x0, [x19, #8]
	bl	_kfree
	add	x0, x19, #4
	bl	_list_del
	mov	x0, x19
	bl	_kfree
	mov	w0, #0
	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_iso_ctx %d"

	.no_dead_strip	_free_dma_iso_ctx
.subsections_via_symbols
