	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_dma_iso_ctx
_alloc_dma_iso_ctx:                     ## @alloc_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r12d
	movl	%ecx, %ebx
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$168, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r13, 160(%rax)
	movl	%r14d, (%rax)
	movl	%r12d, 4(%rax)
	movl	%r15d, 8(%rax)
	movl	%ebx, 12(%rax)
	movl	%ebx, %edi
	movq	%rax, %r15
	callq	_PAGE_ALIGN
	movl	%eax, 16(%r15)
	movl	$-1, 20(%r15)
	leaq	156(%r15), %rdi
	callq	_INIT_LIST_HEAD
	leaq	152(%r15), %rdi
	callq	_init_waitqueue_head
	leaq	148(%r15), %rbx
	movq	%rbx, %rdi
	callq	_dma_region_init
	movl	8(%r15), %esi
	decl	%esi
	imull	16(%r15), %esi
	movl	8(%r13), %edx
	movq	_PCI_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_dma_region_alloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r13), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_4:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_PRINT
LBB0_5:
	movq	%r15, %rdi
	callq	_free_dma_iso_ctx
	jmp	LBB0_45
LBB0_1:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r13), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_PRINT
LBB0_45:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_OHCI_ISO_RECEIVE@GOTPCREL(%rip), %rax
	leaq	144(%r15), %rbx
	cmpl	%r14d, (%rax)
	jne	LBB0_7
## %bb.8:
	movq	_wakeup_dma_ir_ctx@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_wakeup_dma_it_ctx@GOTPCREL(%rip), %rax
LBB0_9:
	movq	%r13, %r12
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r15, %rcx
	callq	_ohci1394_init_iso_tasklet
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ohci1394_register_iso_tasklet
	testq	%rax, %rax
	js	LBB0_10
## %bb.11:
	movl	8(%r15), %edi
	movl	144(%r15), %eax
	movl	%eax, 24(%r15)
	shll	$3, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movq	%rax, 88(%r15)
	testq	%rax, %rax
	je	LBB0_46
## %bb.12:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	8(%r15), %edi
	testl	%edi, %edi
	movq	%r15, %r14
	jle	LBB0_17
## %bb.13:
	movq	%rax, %rdi
	callq	_dma_prog_region_init
	movq	%r14, %r15
	movl	8(%r14), %edi
	cmpl	$2, %edi
	jl	LBB0_17
## %bb.14:
	movl	$1, %r12d
	movl	$8, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	88(%r15), %rdi
	addq	%rbx, %rdi
	callq	_dma_prog_region_init
	movq	%r14, %r15
	incq	%r12
	movslq	8(%r14), %rdi
	addq	$8, %rbx
	cmpq	%rdi, %r12
	jl	LBB0_15
## %bb.16:
	movq	%r13, %r12
LBB0_17:
	movq	_OHCI_ISO_RECEIVE@GOTPCREL(%rip), %r13
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%r13)
	jne	LBB0_25
## %bb.18:
	movq	_OHCI1394_IsoRcvContextControlSet@GOTPCREL(%rip), %rax
	movslq	24(%r15), %rdx
	shlq	$5, %rdx
	movq	(%rax), %rax
	addq	%rdx, %rax
	movq	%rax, 120(%r15)
	movq	_OHCI1394_IsoRcvContextControlClear@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%rdx, %rax
	movq	%rax, 112(%r15)
	movq	_OHCI1394_IsoRcvCommandPtr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%rdx, %rax
	movq	%rax, 104(%r15)
	movq	_OHCI1394_IsoRcvContextMatch@GOTPCREL(%rip), %rax
	addq	(%rax), %rdx
	movq	%rdx, 136(%r15)
	shll	$3, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_kzalloc
	movq	%r14, %r15
	movq	%rax, 128(%r14)
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:
	movl	16(%r15), %eax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cltd
	idivl	%ecx
	movl	%eax, %esi
	incl	%esi
	movl	%esi, 28(%r15)
	movl	8(%r15), %edi
	movl	12(%r15), %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	cmovel	%ecx, %edx
	movl	%edx, 32(%r15)
	testl	%edi, %edi
	jle	LBB0_38
## %bb.21:
	movq	88(%r15), %rdi
	shll	$2, %esi
	movl	8(%r12), %edx
	callq	_dma_prog_region_alloc
	testq	%rax, %rax
	jne	LBB0_19
## %bb.22:
	xorl	%ebx, %ebx
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	88(%r15), %rax
	movq	128(%r15), %rcx
	movq	(%rax,%rbx,8), %rax
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movslq	8(%r15), %rdi
	cmpq	%rdi, %rbx
	jge	LBB0_38
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	28(%r15), %esi
	leaq	(,%rbx,8), %rdi
	addq	88(%r15), %rdi
	shll	$2, %esi
	movl	8(%r12), %edx
	callq	_dma_prog_region_alloc
	testq	%rax, %rax
	je	LBB0_23
LBB0_19:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
	jmp	LBB0_4
LBB0_10:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rax
	movl	(%rax), %esi
	movq	_OHCI_ISO_RECEIVE@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str.2(%rip), %rdx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_PRINT
	jmp	LBB0_5
LBB0_46:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_4
LBB0_25:
	movq	_OHCI1394_IsoXmitContextControlSet@GOTPCREL(%rip), %rax
	movslq	24(%r15), %rdx
	shlq	$4, %rdx
	movq	(%rax), %rax
	addq	%rdx, %rax
	movq	%rax, 120(%r15)
	movq	_OHCI1394_IsoXmitContextControlClear@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%rdx, %rax
	movq	%rax, 112(%r15)
	movq	_OHCI1394_IsoXmitCommandPtr@GOTPCREL(%rip), %rax
	addq	(%rax), %rdx
	movq	%rdx, 104(%r15)
	shll	$3, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_kzalloc
	movq	%r14, %rbx
	movq	%rax, 96(%r14)
	testq	%rax, %rax
	je	LBB0_26
## %bb.29:
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 36(%rbx)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r8d, %eax
	xorl	%edx, %edx
	divl	%ecx
	cmpl	$4096, %ecx                     ## imm = 0x1000
	ja	LBB0_31
## %bb.30:
	testl	%edx, %edx
	jne	LBB0_31
## %bb.32:
	movl	8(%rbx), %edi
	movl	12(%rbx), %eax
	xorl	%edx, %edx
	divl	%ecx
	xorl	%esi, %esi
	testl	%edx, %edx
	setne	%sil
	cmovel	%ecx, %edx
	addl	%eax, %esi
	movl	%esi, 28(%rbx)
	movl	%edx, 32(%rbx)
	testl	%edi, %edi
	jle	LBB0_38
## %bb.33:
	movq	88(%rbx), %rdi
	shll	$2, %esi
	movl	8(%r12), %edx
	movq	%rbx, %r15
	callq	_dma_prog_region_alloc
	testq	%rax, %rax
	jne	LBB0_37
## %bb.34:
	xorl	%ebx, %ebx
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movq	88(%r15), %rax
	movq	96(%r15), %rcx
	movq	(%rax,%rbx,8), %rax
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movslq	8(%r15), %rdi
	cmpq	%rdi, %rbx
	jge	LBB0_38
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=1
	movl	28(%r15), %esi
	leaq	(,%rbx,8), %rdi
	addq	88(%r15), %rdi
	shll	$2, %esi
	movl	8(%r12), %edx
	callq	_dma_prog_region_alloc
	testq	%rax, %rax
	je	LBB0_35
LBB0_37:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdx
	jmp	LBB0_4
LBB0_38:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_kzalloc
	movq	%rax, 80(%r14)
	movl	8(%r14), %edi
	movl	(%rbx), %esi
	callq	_kzalloc
	movq	%rax, 72(%r14)
	movl	8(%r14), %edi
	movl	(%rbx), %esi
	callq	_kzalloc
	movq	%rax, 64(%r14)
	movl	8(%r14), %edi
	movl	(%rbx), %esi
	callq	_kzalloc
	movq	%rax, 56(%r14)
	movl	8(%r14), %edi
	movl	(%rbx), %esi
	callq	_kzalloc
	movq	%r14, %rbx
	movq	%rax, 48(%r14)
	cmpq	$0, 80(%r14)
	je	LBB0_43
## %bb.39:
	cmpq	$0, 72(%rbx)
	je	LBB0_43
## %bb.40:
	cmpq	$0, 64(%rbx)
	je	LBB0_43
## %bb.41:
	cmpq	$0, 56(%rbx)
	je	LBB0_43
## %bb.42:
	testq	%rax, %rax
	je	LBB0_43
## %bb.44:
	movq	%rbx, %rdi
	addq	$40, %rdi
	callq	_spin_lock_init
	movq	(%r12), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%r13)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rdx
	cmoveq	%rax, %rdx
	movl	8(%rbx), %ecx
	movl	12(%rbx), %r9d
	decl	%ecx
	movl	16(%rbx), %r8d
	movl	28(%rbx), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.10(%rip), %rsi
	callq	_DBGMSG
	movq	%rbx, %r14
	jmp	LBB0_45
LBB0_43:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rax
	movl	(%rax), %esi
	leaq	L_.str.9(%rip), %rdx
	jmp	LBB0_27
LBB0_26:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdx
LBB0_27:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_PRINT
	jmp	LBB0_28
LBB0_31:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rax
	movl	(%rax), %esi
	leaq	L_.str.8(%rip), %rdx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_PRINT
LBB0_28:
	movq	%rbx, %rdi
	callq	_free_dma_iso_ctx
	jmp	LBB0_45
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate dma_iso_ctx"

	.comm	_PCI_DMA_BIDIRECTIONAL,4,2      ## @PCI_DMA_BIDIRECTIONAL
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate dma buffer"

	.comm	_OHCI_ISO_RECEIVE,4,2           ## @OHCI_ISO_RECEIVE
	.comm	_wakeup_dma_ir_ctx,4,2          ## @wakeup_dma_ir_ctx
	.comm	_wakeup_dma_it_ctx,4,2          ## @wakeup_dma_it_ctx
L_.str.2:                               ## @.str.2
	.asciz	"no free iso %s contexts"

L_.str.3:                               ## @.str.3
	.asciz	"receive"

L_.str.4:                               ## @.str.4
	.asciz	"transmit"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to allocate ir prg regs"

	.comm	_OHCI1394_IsoRcvContextControlSet,8,3 ## @OHCI1394_IsoRcvContextControlSet
	.comm	_OHCI1394_IsoRcvContextControlClear,8,3 ## @OHCI1394_IsoRcvContextControlClear
	.comm	_OHCI1394_IsoRcvCommandPtr,8,3  ## @OHCI1394_IsoRcvCommandPtr
	.comm	_OHCI1394_IsoRcvContextMatch,8,3 ## @OHCI1394_IsoRcvContextMatch
L_.str.6:                               ## @.str.6
	.asciz	"Failed to allocate dma ir prg"

	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_OHCI1394_IsoXmitContextControlSet,8,3 ## @OHCI1394_IsoXmitContextControlSet
	.comm	_OHCI1394_IsoXmitContextControlClear,8,3 ## @OHCI1394_IsoXmitContextControlClear
	.comm	_OHCI1394_IsoXmitCommandPtr,8,3 ## @OHCI1394_IsoXmitCommandPtr
L_.str.7:                               ## @.str.7
	.asciz	"Failed to allocate dma it prg"

L_.str.8:                               ## @.str.8
	.asciz	"Packet size %d (page_size: %ld) not yet supported\n"

L_.str.9:                               ## @.str.9
	.asciz	"Failed to allocate dma_iso_ctx member"

L_.str.10:                              ## @.str.10
	.asciz	"Iso %s DMA: %d buffers of size %d allocated for a frame size %d, each with %d prgs"

	.no_dead_strip	_alloc_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 alloc_dma_iso_ctx
_alloc_dma_iso_ctx:                     ; @alloc_dma_iso_ctx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x22, x5
	mov	x24, x4
	mov	x23, x3
	mov	x25, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	w0, #168
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	str	x20, [x19, #160]
	stp	w21, w24, [x19]
	stp	w25, w23, [x19, #8]
	mov	x0, x23
	bl	_PAGE_ALIGN
	mov	w8, #-1
	stp	w0, w8, [x19, #16]
	add	x0, x19, #156
	bl	_INIT_LIST_HEAD
	add	x0, x19, #152
	bl	_init_waitqueue_head
	add	x23, x19, #148
	mov	x0, x23
	bl	_dma_region_init
	ldr	w8, [x19, #8]
	sub	w8, w8, #1
	ldr	w9, [x19, #16]
	mul	w1, w8, w9
	ldr	w2, [x20, #8]
Lloh2:
	adrp	x8, _PCI_DMA_BIDIRECTIONAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCI_DMA_BIDIRECTIONAL@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x23
	bl	_dma_region_alloc
	cbz	x0, LBB0_6
; %bb.2:
Lloh5:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x8, [x20]
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_3:
	bl	_PRINT
	mov	x0, x19
	bl	_free_dma_iso_ctx
	mov	x19, #0
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	x8, [x20]
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	bl	_PRINT
LBB0_5:
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
LBB0_6:
Lloh15:
	adrp	x24, _OHCI_ISO_RECEIVE@GOTPAGE
Lloh16:
	ldr	x24, [x24, _OHCI_ISO_RECEIVE@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh17:
	adrp	x9, _wakeup_dma_ir_ctx@GOTPAGE
Lloh18:
	ldr	x9, [x9, _wakeup_dma_ir_ctx@GOTPAGEOFF]
	add	x23, x19, #144
Lloh19:
	adrp	x10, _wakeup_dma_it_ctx@GOTPAGE
Lloh20:
	ldr	x10, [x10, _wakeup_dma_it_ctx@GOTPAGEOFF]
	cmp	w8, w21
	csel	x8, x9, x10, eq
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x21
	mov	x3, x19
	bl	_ohci1394_init_iso_tasklet
	mov	x0, x20
	mov	x1, x23
	bl	_ohci1394_register_iso_tasklet
	tbnz	x0, #63, LBB0_20
; %bb.7:
	ldr	w8, [x19, #144]
	str	w8, [x19, #24]
	ldr	w8, [x19, #8]
	lsl	w0, w8, #3
	ldr	w1, [x26]
	bl	_kmalloc
	str	x0, [x19, #88]
	cbz	x0, LBB0_21
; %bb.8:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.9:
	bl	_dma_prog_region_init
	ldr	w8, [x19, #8]
	cmp	w8, #2
	b.lt	LBB0_12
; %bb.10:
	mov	w23, #1
	mov	w25, #8
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #88]
	add	x0, x8, x25
	bl	_dma_prog_region_init
	add	x23, x23, #1
	ldrsw	x8, [x19, #8]
	add	x25, x25, #8
	cmp	x23, x8
	b.lt	LBB0_11
LBB0_12:
	ldr	w9, [x24]
	cmp	w9, w21
	b.ne	LBB0_22
; %bb.13:
Lloh21:
	adrp	x9, _OHCI1394_IsoRcvContextControlSet@GOTPAGE
Lloh22:
	ldr	x9, [x9, _OHCI1394_IsoRcvContextControlSet@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	ldrsw	x10, [x19, #24]
	lsl	x10, x10, #5
	add	x9, x9, x10
	str	x9, [x19, #120]
Lloh24:
	adrp	x9, _OHCI1394_IsoRcvContextControlClear@GOTPAGE
Lloh25:
	ldr	x9, [x9, _OHCI1394_IsoRcvContextControlClear@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
Lloh27:
	adrp	x11, _OHCI1394_IsoRcvCommandPtr@GOTPAGE
Lloh28:
	ldr	x11, [x11, _OHCI1394_IsoRcvCommandPtr@GOTPAGEOFF]
	add	x9, x9, x10
Lloh29:
	ldr	x11, [x11]
	add	x11, x11, x10
Lloh30:
	adrp	x12, _OHCI1394_IsoRcvContextMatch@GOTPAGE
Lloh31:
	ldr	x12, [x12, _OHCI1394_IsoRcvContextMatch@GOTPAGEOFF]
	stp	x11, x9, [x19, #104]
Lloh32:
	ldr	x9, [x12]
	add	x9, x9, x10
	str	x9, [x19, #136]
	lsl	w0, w8, #3
	ldr	w1, [x26]
	bl	_kzalloc
	str	x0, [x19, #128]
	cbz	x0, LBB0_19
; %bb.14:
	ldp	w10, w8, [x19, #12]
Lloh33:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh34:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	sdiv	w8, w8, w9
	add	w8, w8, #1
	ldr	w0, [x19, #8]
	sdiv	w11, w10, w9
	msub	w10, w11, w9, w10
	cmp	w10, #0
	csel	w9, w9, w10, eq
	stp	w8, w9, [x19, #28]
	cmp	w0, #1
	b.lt	LBB0_33
; %bb.15:
	ldr	x0, [x19, #88]
	lsl	w1, w8, #2
	ldr	w2, [x20, #8]
	bl	_dma_prog_region_alloc
	cbnz	x0, LBB0_19
; %bb.16:
	mov	x22, #0
	mov	w23, #1
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #88]
	ldr	x8, [x8, x22]
	ldr	x9, [x19, #128]
	str	x8, [x9, x22]
	ldrsw	x0, [x19, #8]
	cmp	x23, x0
	b.ge	LBB0_33
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w8, [x19, #28]
	ldr	x9, [x19, #88]
	add	x9, x9, x22
	add	x0, x9, #8
	lsl	w1, w8, #2
	ldr	w2, [x20, #8]
	bl	_dma_prog_region_alloc
	add	x22, x22, #8
	add	x23, x23, #1
	cbz	x0, LBB0_17
LBB0_19:
Lloh36:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	ldr	x8, [x20]
	ldr	w1, [x8]
Lloh39:
	adrp	x2, l_.str.6@PAGE
Lloh40:
	add	x2, x2, l_.str.6@PAGEOFF
	b	LBB0_3
LBB0_20:
Lloh41:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	ldr	x8, [x20]
	ldr	w1, [x8]
	ldr	w8, [x24]
Lloh44:
	adrp	x9, l_.str.4@PAGE
Lloh45:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh46:
	adrp	x10, l_.str.3@PAGE
Lloh47:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	w8, w21
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh48:
	adrp	x2, l_.str.2@PAGE
Lloh49:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_21:
Lloh50:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh51:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	ldr	x8, [x20]
	ldr	w1, [x8]
Lloh53:
	adrp	x2, l_.str.5@PAGE
Lloh54:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_3
LBB0_22:
Lloh55:
	adrp	x9, _OHCI1394_IsoXmitContextControlSet@GOTPAGE
Lloh56:
	ldr	x9, [x9, _OHCI1394_IsoXmitContextControlSet@GOTPAGEOFF]
Lloh57:
	ldr	x9, [x9]
	ldrsw	x10, [x19, #24]
	lsl	x10, x10, #4
	add	x9, x9, x10
	str	x9, [x19, #120]
Lloh58:
	adrp	x9, _OHCI1394_IsoXmitContextControlClear@GOTPAGE
Lloh59:
	ldr	x9, [x9, _OHCI1394_IsoXmitContextControlClear@GOTPAGEOFF]
Lloh60:
	ldr	x9, [x9]
	add	x9, x9, x10
Lloh61:
	adrp	x11, _OHCI1394_IsoXmitCommandPtr@GOTPAGE
Lloh62:
	ldr	x11, [x11, _OHCI1394_IsoXmitCommandPtr@GOTPAGEOFF]
Lloh63:
	ldr	x11, [x11]
	add	x10, x11, x10
	stp	x10, x9, [x19, #104]
	lsl	w0, w8, #3
	ldr	w1, [x26]
	bl	_kzalloc
	str	x0, [x19, #96]
	cbz	x0, LBB0_30
; %bb.23:
	str	w22, [x19, #36]
Lloh64:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh65:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh66:
	ldr	w8, [x8]
	cmp	w22, #1, lsl #12                ; =4096
	b.hi	LBB0_31
; %bb.24:
	udiv	w9, w8, w22
	msub	w9, w9, w22, w8
	cbnz	w9, LBB0_31
; %bb.25:
	ldp	w0, w8, [x19, #8]
	udiv	w9, w8, w22
	msub	w8, w9, w22, w8
	cmp	w8, #0
	csel	w10, w22, w8, eq
	cinc	w8, w9, ne
	stp	w8, w10, [x19, #28]
	cmp	w0, #1
	b.lt	LBB0_33
; %bb.26:
	ldr	x0, [x19, #88]
	lsl	w1, w8, #2
	ldr	w2, [x20, #8]
	bl	_dma_prog_region_alloc
	cbnz	x0, LBB0_30
; %bb.27:
	mov	x22, #0
	mov	w23, #1
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x19, #88]
	ldr	x8, [x8, x22]
	str	x8, [x9, x22]
	ldrsw	x0, [x19, #8]
	cmp	x23, x0
	b.ge	LBB0_32
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	ldr	w8, [x19, #28]
	ldr	x9, [x19, #88]
	add	x9, x9, x22
	add	x0, x9, #8
	lsl	w1, w8, #2
	ldr	w2, [x20, #8]
	bl	_dma_prog_region_alloc
	add	x22, x22, #8
	add	x23, x23, #1
	cbz	x0, LBB0_28
LBB0_30:
Lloh67:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh68:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh69:
	ldr	w0, [x8]
	ldr	x8, [x20]
	ldr	w1, [x8]
Lloh70:
	adrp	x2, l_.str.7@PAGE
Lloh71:
	add	x2, x2, l_.str.7@PAGEOFF
	b	LBB0_3
LBB0_31:
Lloh72:
	adrp	x9, _KERN_ERR@GOTPAGE
Lloh73:
	ldr	x9, [x9, _KERN_ERR@GOTPAGEOFF]
Lloh74:
	ldr	w0, [x9]
	ldr	x9, [x20]
	ldr	w1, [x9]
	stp	x22, x8, [sp]
Lloh75:
	adrp	x2, l_.str.8@PAGE
Lloh76:
	add	x2, x2, l_.str.8@PAGEOFF
	b	LBB0_3
LBB0_32:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
LBB0_33:
	ldr	w1, [x26]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_kzalloc
	str	x0, [x19, #80]
	ldr	w0, [x19, #8]
	ldr	w1, [x26]
	bl	_kzalloc
	str	x0, [x19, #72]
	ldr	w0, [x19, #8]
	ldr	w1, [x26]
	bl	_kzalloc
	str	x0, [x19, #64]
	ldr	w0, [x19, #8]
	ldr	w1, [x26]
	bl	_kzalloc
	str	x0, [x19, #56]
	ldr	w0, [x19, #8]
	ldr	w1, [x26]
	bl	_kzalloc
	str	x0, [x19, #48]
	ldr	x8, [x19, #80]
	cbz	x8, LBB0_39
; %bb.34:
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_39
; %bb.35:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_39
; %bb.36:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_39
; %bb.37:
	cbz	x0, LBB0_39
; %bb.38:
	add	x0, x19, #40
	bl	_spin_lock_init
	ldr	x8, [x20]
	ldr	w0, [x8]
	ldr	w8, [x24]
Lloh77:
	adrp	x9, l_.str.4@PAGE
Lloh78:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh79:
	adrp	x10, l_.str.3@PAGE
Lloh80:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	w8, w21
	csel	x2, x10, x9, eq
	ldp	w8, w5, [x19, #8]
	sub	w3, w8, #1
	ldr	w4, [x19, #16]
	ldr	w6, [x19, #28]
Lloh81:
	adrp	x1, l_.str.10@PAGE
Lloh82:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_DBGMSG
	b	LBB0_5
LBB0_39:
Lloh83:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh84:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh85:
	ldr	w0, [x8]
	ldr	x8, [x20]
	ldr	w1, [x8]
Lloh86:
	adrp	x2, l_.str.9@PAGE
Lloh87:
	add	x2, x2, l_.str.9@PAGEOFF
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate dma_iso_ctx"

	.comm	_PCI_DMA_BIDIRECTIONAL,4,2      ; @PCI_DMA_BIDIRECTIONAL
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate dma buffer"

	.comm	_OHCI_ISO_RECEIVE,4,2           ; @OHCI_ISO_RECEIVE
	.comm	_wakeup_dma_ir_ctx,4,2          ; @wakeup_dma_ir_ctx
	.comm	_wakeup_dma_it_ctx,4,2          ; @wakeup_dma_it_ctx
l_.str.2:                               ; @.str.2
	.asciz	"no free iso %s contexts"

l_.str.3:                               ; @.str.3
	.asciz	"receive"

l_.str.4:                               ; @.str.4
	.asciz	"transmit"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to allocate ir prg regs"

	.comm	_OHCI1394_IsoRcvContextControlSet,8,3 ; @OHCI1394_IsoRcvContextControlSet
	.comm	_OHCI1394_IsoRcvContextControlClear,8,3 ; @OHCI1394_IsoRcvContextControlClear
	.comm	_OHCI1394_IsoRcvCommandPtr,8,3  ; @OHCI1394_IsoRcvCommandPtr
	.comm	_OHCI1394_IsoRcvContextMatch,8,3 ; @OHCI1394_IsoRcvContextMatch
l_.str.6:                               ; @.str.6
	.asciz	"Failed to allocate dma ir prg"

	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_OHCI1394_IsoXmitContextControlSet,8,3 ; @OHCI1394_IsoXmitContextControlSet
	.comm	_OHCI1394_IsoXmitContextControlClear,8,3 ; @OHCI1394_IsoXmitContextControlClear
	.comm	_OHCI1394_IsoXmitCommandPtr,8,3 ; @OHCI1394_IsoXmitCommandPtr
l_.str.7:                               ; @.str.7
	.asciz	"Failed to allocate dma it prg"

l_.str.8:                               ; @.str.8
	.asciz	"Packet size %d (page_size: %ld) not yet supported\n"

l_.str.9:                               ; @.str.9
	.asciz	"Failed to allocate dma_iso_ctx member"

l_.str.10:                              ; @.str.10
	.asciz	"Iso %s DMA: %d buffers of size %d allocated for a frame size %d, each with %d prgs"

	.no_dead_strip	_alloc_dma_iso_ctx
.subsections_via_symbols
