	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_dma_trm_ctx
_alloc_dma_trm_ctx:                     ## @alloc_dma_trm_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	%rdi, 72(%rsi)
	movl	%edx, (%rsi)
	movl	%ecx, 4(%rsi)
	movl	%r8d, 8(%rsi)
	leal	(,%r8,8), %edi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsi)
	movq	$0, 32(%rsi)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_kzalloc
	movq	%rax, 48(%r13)
	movl	8(%r13), %edi
	shll	$2, %edi
	movl	(%r14), %esi
	callq	_kzalloc
	movq	%rax, 56(%r13)
	cmpq	$0, 48(%r13)
	je	LBB0_2
## %bb.1:
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movups	L_.str.2(%rip), %xmm0
	movaps	%xmm0, _alloc_dma_trm_ctx.pool_name(%rip)
	movb	$0, _alloc_dma_trm_ctx.pool_name+16(%rip)
	leaq	_alloc_dma_trm_ctx.pool_name(%rip), %rbx
	leaq	_alloc_dma_trm_ctx.pool_name+16(%rip), %rdi
	movl	_alloc_dma_trm_ctx.num_allocs(%rip), %edx
	leaq	L_.str.3(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_sprintf
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	movl	$4, %ecx
	xorl	%r8d, %r8d
	callq	_pci_pool_create
	movq	%rax, 64(%r13)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	incl	_alloc_dma_trm_ctx.num_allocs(%rip)
	cmpl	$0, 8(%r13)
	jle	LBB0_10
## %bb.6:
	movl	(%r14), %esi
	movq	56(%r13), %rdx
	movq	%rax, %rdi
	callq	_pci_pool_alloc
	movq	48(%r13), %rcx
	movq	%rax, (%rcx)
	movq	48(%r13), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.7:
	movl	$4, %ebx
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movslq	8(%r13), %rax
	cmpq	%rax, %r15
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	64(%r13), %rdi
	movl	(%r14), %esi
	movq	56(%r13), %rdx
	addq	%rbx, %rdx
	callq	_pci_pool_alloc
	movq	48(%r13), %rcx
	movq	%rax, (%rcx,%rbx,2)
	movq	48(%r13), %rax
	movq	(%rax,%rbx,2), %rdi
	addq	$4, %rbx
	incq	%r15
	testq	%rdi, %rdi
	jne	LBB0_8
LBB0_2:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	callq	_PRINT
	movq	%r13, %rdi
	callq	_free_dma_trm_ctx
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_11
LBB0_4:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	leaq	_alloc_dma_trm_ctx.pool_name(%rip), %rdx
	callq	_PRINT
	movq	%r13, %rdi
	callq	_free_dma_trm_ctx
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_11
LBB0_10:
	leaq	40(%r13), %rdi
	callq	_spin_lock_init
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	movq	_OHCI1394_ContextControlSet@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%rax, %rcx
	movq	%rcx, 32(%r13)
	movq	_OHCI1394_ContextControlClear@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%rax, %rcx
	movq	%rcx, 24(%r13)
	movq	_OHCI1394_ContextCommandPtr@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, 16(%r13)
	leaq	12(%r13), %rdi
	movq	_dma_trm_tasklet@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdx
	callq	_tasklet_init
	xorl	%r15d, %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_alloc_dma_trm_ctx.pool_name,20,4 ## @alloc_dma_trm_ctx.pool_name
.zerofill __DATA,__bss,_alloc_dma_trm_ctx.num_allocs,4,2 ## @alloc_dma_trm_ctx.num_allocs
	.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 %s"

L_.str.1:                               ## @.str.1
	.asciz	"AT DMA prg"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"ohci1394_trm_prg"

L_.str.3:                               ## @.str.3
	.asciz	"%d"

L_.str.4:                               ## @.str.4
	.asciz	"pci_pool_create failed for %s"

	.comm	_OHCI1394_ContextControlSet,8,3 ## @OHCI1394_ContextControlSet
	.comm	_OHCI1394_ContextControlClear,8,3 ## @OHCI1394_ContextControlClear
	.comm	_OHCI1394_ContextCommandPtr,8,3 ## @OHCI1394_ContextCommandPtr
	.comm	_dma_trm_tasklet,4,2            ## @dma_trm_tasklet
	.no_dead_strip	_alloc_dma_trm_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_trm_ctx
_alloc_dma_trm_ctx:                     ; @alloc_dma_trm_ctx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x5
	mov	x19, x1
	mov	x21, x0
	str	x0, [x1, #72]
	stp	w2, w3, [x1]
	str	w4, [x1, #8]
	lsl	w0, w4, #3
	stp	xzr, xzr, [x1, #24]
	str	xzr, [x1, #16]
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_kzalloc
	str	x0, [x19, #48]
	ldr	w8, [x19, #8]
	lsl	w0, w8, #2
	ldr	w1, [x23]
	bl	_kzalloc
	str	x0, [x19, #56]
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_8
; %bb.1:
	cbz	x0, LBB0_8
; %bb.2:
Lloh2:
	adrp	x8, l_.str.2@PAGE
Lloh3:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh4:
	ldr	q0, [x8]
Lloh5:
	adrp	x22, _alloc_dma_trm_ctx.pool_name@PAGE
Lloh6:
	add	x22, x22, _alloc_dma_trm_ctx.pool_name@PAGEOFF
	str	q0, [x22]
	mov	x0, x22
	strb	wzr, [x0, #16]!
	adrp	x24, _alloc_dma_trm_ctx.num_allocs@PAGE
	ldr	w8, [x24, _alloc_dma_trm_ctx.num_allocs@PAGEOFF]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_sprintf
	ldr	w1, [x21]
	mov	x0, x22
	mov	w2, #4
	mov	w3, #4
	mov	w4, #0
	bl	_pci_pool_create
	str	x0, [x19, #64]
	cbz	x0, LBB0_9
; %bb.3:
	ldr	w8, [x24, _alloc_dma_trm_ctx.num_allocs@PAGEOFF]
	add	w8, w8, #1
	str	w8, [x24, _alloc_dma_trm_ctx.num_allocs@PAGEOFF]
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.4:
	ldr	w1, [x23]
	ldr	x2, [x19, #56]
	bl	_pci_pool_alloc
	ldr	x8, [x19, #48]
	str	x0, [x8]
	ldr	x8, [x19, #48]
	ldr	x0, [x8]
	cbz	x0, LBB0_8
; %bb.5:
	mov	w21, #4
	mov	w22, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldrsw	x8, [x19, #8]
	cmp	x22, x8
	b.ge	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x23]
	ldp	x8, x0, [x19, #56]
	add	x2, x8, x21
	bl	_pci_pool_alloc
	ldr	x8, [x19, #48]
	lsl	x9, x22, #3
	str	x0, [x8, x9]
	ldr	x8, [x19, #48]
	ldr	x0, [x8, x9]
	add	x21, x21, #4
	add	x22, x22, #1
	cbnz	x0, LBB0_6
LBB0_8:
Lloh9:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh16:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
Lloh21:
	adrp	x2, _alloc_dma_trm_ctx.pool_name@PAGE
Lloh22:
	add	x2, x2, _alloc_dma_trm_ctx.pool_name@PAGEOFF
LBB0_10:
	bl	_PRINT
	mov	x0, x19
	bl	_free_dma_trm_ctx
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
	add	x0, x19, #40
	bl	_spin_lock_init
Lloh26:
	adrp	x8, _OHCI1394_ContextControlSet@GOTPAGE
Lloh27:
	ldr	x8, [x8, _OHCI1394_ContextControlSet@GOTPAGEOFF]
	sxtw	x9, w20
Lloh28:
	ldr	x8, [x8]
	add	x8, x8, x9
	str	x8, [x19, #32]
Lloh29:
	adrp	x8, _OHCI1394_ContextControlClear@GOTPAGE
Lloh30:
	ldr	x8, [x8, _OHCI1394_ContextControlClear@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	add	x8, x8, x9
Lloh32:
	adrp	x10, _OHCI1394_ContextCommandPtr@GOTPAGE
Lloh33:
	ldr	x10, [x10, _OHCI1394_ContextCommandPtr@GOTPAGEOFF]
Lloh34:
	ldr	x10, [x10]
	add	x9, x10, x9
	stp	x9, x8, [x19, #16]
	add	x0, x19, #12
Lloh35:
	adrp	x8, _dma_trm_tasklet@GOTPAGE
Lloh36:
	ldr	x8, [x8, _dma_trm_tasklet@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_tasklet_init
	mov	w0, #0
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAddLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_alloc_dma_trm_ctx.pool_name,20,0 ; @alloc_dma_trm_ctx.pool_name
.zerofill __DATA,__bss,_alloc_dma_trm_ctx.num_allocs,4,2 ; @alloc_dma_trm_ctx.num_allocs
	.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 %s"

l_.str.1:                               ; @.str.1
	.asciz	"AT DMA prg"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"ohci1394_trm_prg"

l_.str.3:                               ; @.str.3
	.asciz	"%d"

l_.str.4:                               ; @.str.4
	.asciz	"pci_pool_create failed for %s"

	.comm	_OHCI1394_ContextControlSet,8,3 ; @OHCI1394_ContextControlSet
	.comm	_OHCI1394_ContextControlClear,8,3 ; @OHCI1394_ContextControlClear
	.comm	_OHCI1394_ContextCommandPtr,8,3 ; @OHCI1394_ContextCommandPtr
	.comm	_dma_trm_tasklet,4,2            ; @dma_trm_tasklet
	.no_dead_strip	_alloc_dma_trm_ctx
.subsections_via_symbols
