	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_dma_rcv_ctx
_alloc_dma_rcv_ctx:                     ## @alloc_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	%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
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	16(%rbp), %eax
	movq	%rdi, 104(%rsi)
	movl	%edx, (%rsi)
	movl	%ecx, 4(%rsi)
	movl	%r8d, 8(%rsi)
	movl	%r9d, 12(%rsi)
	movl	%eax, 16(%rsi)
	leal	(,%r8,8), %edi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rsi)
	movq	$0, 40(%rsi)
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_kzalloc
	movq	%rax, 80(%r13)
	movl	8(%r13), %edi
	shll	$2, %edi
	movl	(%rbx), %esi
	callq	_kzalloc
	movq	%rax, 88(%r13)
	cmpq	$0, 80(%r13)
	je	LBB0_12
## %bb.1:
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movl	8(%r13), %edi
	shll	$3, %edi
	movl	(%rbx), %esi
	callq	_kzalloc
	movq	%rax, 56(%r13)
	movl	8(%r13), %edi
	shll	$2, %edi
	movl	(%rbx), %esi
	callq	_kzalloc
	movq	%rax, 64(%r13)
	cmpq	$0, 56(%r13)
	je	LBB0_13
## %bb.3:
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movl	16(%r13), %edi
	movl	(%rbx), %esi
	callq	_kmalloc
	movq	%rax, 96(%r13)
	testq	%rax, %rax
	je	LBB0_14
## %bb.5:
	movups	L_.str.4(%rip), %xmm0
	movaps	%xmm0, _alloc_dma_rcv_ctx.pool_name(%rip)
	movb	$0, _alloc_dma_rcv_ctx.pool_name+16(%rip)
	leaq	_alloc_dma_rcv_ctx.pool_name(%rip), %r12
	leaq	_alloc_dma_rcv_ctx.pool_name+16(%rip), %rdi
	movl	_alloc_dma_rcv_ctx.num_allocs(%rip), %edx
	leaq	L_.str.5(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_sprintf
	movl	(%r14), %esi
	movq	%r12, %rdi
	movl	$4, %edx
	movl	$4, %ecx
	xorl	%r8d, %r8d
	callq	_pci_pool_create
	movq	%rax, 72(%r13)
	testq	%rax, %rax
	je	LBB0_18
## %bb.6:
	incl	_alloc_dma_rcv_ctx.num_allocs(%rip)
	cmpl	$0, 8(%r13)
	jle	LBB0_11
## %bb.7:
	xorl	%ebx, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movl	12(%r13), %esi
	movq	88(%r13), %rdx
	addq	%rbx, %rdx
	callq	_pci_alloc_consistent
	movq	80(%r13), %rcx
	movq	%rax, (%rcx,%rbx,2)
	movq	80(%r13), %rax
	movq	(%rax,%rbx,2), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	12(%r13), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	72(%r13), %rdi
	movl	(%r15), %esi
	movq	64(%r13), %rdx
	addq	%rbx, %rdx
	callq	_pci_pool_alloc
	movq	56(%r13), %rcx
	movq	%rax, (%rcx,%rbx,2)
	movq	56(%r13), %rax
	movq	(%rax,%rbx,2), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	incq	%r12
	movslq	8(%r13), %rax
	addq	$4, %rbx
	cmpq	%rax, %r12
	jl	LBB0_8
LBB0_11:
	movl	24(%rbp), %ebx
	leaq	48(%r13), %rdi
	callq	_spin_lock_init
	movslq	%ebx, %rax
	movq	_OHCI1394_ContextControlSet@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%rax, %rcx
	movq	%rcx, 40(%r13)
	movq	_OHCI1394_ContextControlClear@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%rax, %rcx
	movq	%rcx, 32(%r13)
	movq	_OHCI1394_ContextCommandPtr@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, 24(%r13)
	leaq	20(%r13), %rdi
	movq	_dma_rcv_tasklet@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdx
	callq	_tasklet_init
	xorl	%r15d, %r15d
	jmp	LBB0_17
LBB0_12:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_15
LBB0_13:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_15
LBB0_14:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
LBB0_15:
	callq	_PRINT
	movq	%r13, %rdi
	callq	_free_dma_rcv_ctx
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
LBB0_16:
	subl	(%rax), %r15d
LBB0_17:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	leaq	_alloc_dma_rcv_ctx.pool_name(%rip), %rdx
	callq	_PRINT
	movq	%r13, %rdi
	callq	_free_dma_rcv_ctx
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_alloc_dma_rcv_ctx.num_allocs,4,2 ## @alloc_dma_rcv_ctx.num_allocs
.zerofill __DATA,__bss,_alloc_dma_rcv_ctx.pool_name,20,4 ## @alloc_dma_rcv_ctx.pool_name
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.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	"DMA buffer"

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

L_.str.3:                               ## @.str.3
	.asciz	"split buffer"

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

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

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

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_OHCI1394_ContextControlSet,8,3 ## @OHCI1394_ContextControlSet
	.comm	_OHCI1394_ContextControlClear,8,3 ## @OHCI1394_ContextControlClear
	.comm	_OHCI1394_ContextCommandPtr,8,3 ## @OHCI1394_ContextCommandPtr
	.comm	_dma_rcv_tasklet,4,2            ## @dma_rcv_tasklet
	.no_dead_strip	_alloc_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 alloc_dma_rcv_ctx
_alloc_dma_rcv_ctx:                     ; @alloc_dma_rcv_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	x20, x7
	mov	x19, x1
	mov	x21, x0
	str	x0, [x1, #104]
	stp	w2, w3, [x1]
	stp	w4, w5, [x1, #8]
	str	w6, [x1, #16]
	lsl	w0, w4, #3
	stp	xzr, xzr, [x1, #32]
	str	xzr, [x1, #24]
Lloh0:
	adrp	x22, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_kzalloc
	str	x0, [x19, #80]
	ldr	w8, [x19, #8]
	lsl	w0, w8, #2
	ldr	w1, [x22]
	bl	_kzalloc
	str	x0, [x19, #88]
	ldr	x8, [x19, #80]
	cbz	x8, LBB0_12
; %bb.1:
	cbz	x0, LBB0_12
; %bb.2:
	ldr	w8, [x19, #8]
	lsl	w0, w8, #3
	ldr	w1, [x22]
	bl	_kzalloc
	str	x0, [x19, #56]
	ldr	w8, [x19, #8]
	lsl	w0, w8, #2
	ldr	w1, [x22]
	bl	_kzalloc
	str	x0, [x19, #64]
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_13
; %bb.3:
	cbz	x0, LBB0_13
; %bb.4:
	ldr	w0, [x19, #16]
	ldr	w1, [x22]
	bl	_kmalloc
	str	x0, [x19, #96]
	cbz	x0, LBB0_14
; %bb.5:
Lloh2:
	adrp	x8, l_.str.4@PAGE
Lloh3:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh4:
	ldr	q0, [x8]
Lloh5:
	adrp	x22, _alloc_dma_rcv_ctx.pool_name@PAGE
Lloh6:
	add	x22, x22, _alloc_dma_rcv_ctx.pool_name@PAGEOFF
	str	q0, [x22]
	mov	x0, x22
	strb	wzr, [x0, #16]!
	adrp	x23, _alloc_dma_rcv_ctx.num_allocs@PAGE
	ldr	w8, [x23, _alloc_dma_rcv_ctx.num_allocs@PAGEOFF]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.5@PAGE
Lloh8:
	add	x1, x1, l_.str.5@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, #72]
	cbz	x0, LBB0_15
; %bb.6:
	ldr	w8, [x23, _alloc_dma_rcv_ctx.num_allocs@PAGEOFF]
	add	w8, w8, #1
	str	w8, [x23, _alloc_dma_rcv_ctx.num_allocs@PAGEOFF]
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.7:
	mov	x22, #0
	mov	x23, #0
Lloh9:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	ldr	w1, [x19, #12]
	ldr	x8, [x19, #88]
	add	x2, x8, x22
	bl	_pci_alloc_consistent
	ldr	x8, [x19, #80]
	lsl	x25, x23, #3
	str	x0, [x8, x25]
	ldr	x8, [x19, #80]
	ldr	x0, [x8, x25]
	cbz	x0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w2, [x19, #12]
	mov	w1, #0
	bl	_memset
	ldr	w1, [x24]
	ldp	x8, x0, [x19, #64]
	add	x2, x8, x22
	bl	_pci_pool_alloc
	ldr	x8, [x19, #56]
	str	x0, [x8, x25]
	ldr	x8, [x19, #56]
	ldr	x0, [x8, x25]
	cbz	x0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x23, x23, #1
	ldrsw	x8, [x19, #8]
	add	x22, x22, #4
	cmp	x23, x8
	b.lt	LBB0_8
LBB0_11:
	add	x0, x19, #48
	bl	_spin_lock_init
Lloh11:
	adrp	x8, _OHCI1394_ContextControlSet@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OHCI1394_ContextControlSet@GOTPAGEOFF]
	sxtw	x9, w20
Lloh13:
	ldr	x8, [x8]
	add	x8, x8, x9
	str	x8, [x19, #40]
Lloh14:
	adrp	x8, _OHCI1394_ContextControlClear@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OHCI1394_ContextControlClear@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	add	x8, x8, x9
Lloh17:
	adrp	x10, _OHCI1394_ContextCommandPtr@GOTPAGE
Lloh18:
	ldr	x10, [x10, _OHCI1394_ContextCommandPtr@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	add	x9, x10, x9
	stp	x9, x8, [x19, #24]
	add	x0, x19, #20
Lloh20:
	adrp	x8, _dma_rcv_tasklet@GOTPAGE
Lloh21:
	ldr	x8, [x8, _dma_rcv_tasklet@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_tasklet_init
	mov	w0, #0
	b	LBB0_17
LBB0_12:
Lloh23:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
Lloh28:
	adrp	x2, l_.str.1@PAGE
Lloh29:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_13:
Lloh30:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
Lloh33:
	adrp	x1, l_.str@PAGE
Lloh34:
	add	x1, x1, l_.str@PAGEOFF
Lloh35:
	adrp	x2, l_.str.2@PAGE
Lloh36:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_14:
Lloh37:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh38:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
Lloh40:
	adrp	x1, l_.str@PAGE
Lloh41:
	add	x1, x1, l_.str@PAGEOFF
Lloh42:
	adrp	x2, l_.str.3@PAGE
Lloh43:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_16
LBB0_15:
Lloh44:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh45:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
Lloh47:
	adrp	x1, l_.str.6@PAGE
Lloh48:
	add	x1, x1, l_.str.6@PAGEOFF
Lloh49:
	adrp	x2, _alloc_dma_rcv_ctx.pool_name@PAGE
Lloh50:
	add	x2, x2, _alloc_dma_rcv_ctx.pool_name@PAGEOFF
LBB0_16:
	bl	_PRINT
	mov	x0, x19
	bl	_free_dma_rcv_ctx
Lloh51:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh52:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAddLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_alloc_dma_rcv_ctx.num_allocs,4,2 ; @alloc_dma_rcv_ctx.num_allocs
.zerofill __DATA,__bss,_alloc_dma_rcv_ctx.pool_name,20,0 ; @alloc_dma_rcv_ctx.pool_name
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.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	"DMA buffer"

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

l_.str.3:                               ; @.str.3
	.asciz	"split buffer"

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

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

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

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_OHCI1394_ContextControlSet,8,3 ; @OHCI1394_ContextControlSet
	.comm	_OHCI1394_ContextControlClear,8,3 ; @OHCI1394_ContextControlClear
	.comm	_OHCI1394_ContextCommandPtr,8,3 ; @OHCI1394_ContextCommandPtr
	.comm	_dma_rcv_tasklet,4,2            ; @dma_rcv_tasklet
	.no_dead_strip	_alloc_dma_rcv_ctx
.subsections_via_symbols
