	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function initialize_dma_rcv_ctx
_initialize_dma_rcv_ctx:                ## @initialize_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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	80(%rdi), %rdi
	movl	48(%rbx), %esi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	callq	_ohci1394_stop_context
	cmpl	$0, (%rbx)
	jle	LBB0_8
## %bb.1:
	xorl	%r12d, %r12d
	movq	_DMA_CTL_BRANCH@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %edi
	andl	$-16, %edi
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_cpu_to_le32
	movq	72(%rbx), %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	%rax, 16(%rcx)
	movq	16(%rbx), %rax
	movl	(%rax,%r12,4), %edi
	callq	_cpu_to_le32
	movq	72(%rbx), %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	%rax, 8(%rcx)
	movl	4(%rbx), %edi
	callq	_cpu_to_le32
	movq	72(%rbx), %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	%rax, (%rcx)
	movslq	(%rbx), %rax
	movq	%r13, %r12
	cmpq	%rax, %r13
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_DMA_CTL_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DMA_CTL_INPUT_MORE@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	orl	(%r14), %edi
	movl	%r15d, %eax
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_DMA_CTL_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	orl	%eax, %edi
	orl	4(%rbx), %edi
	callq	_cpu_to_le32
	movq	72(%rbx), %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	%rax, 24(%rcx)
	leaq	1(%r12), %r13
	movslq	(%rbx), %rcx
	movq	8(%rbx), %rax
	cmpq	%rcx, %r13
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rax,%r12,4), %edi
	andl	$-16, %edi
	orl	$1, %edi
	jmp	LBB0_7
LBB0_8:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%rbx)
	movq	24(%rbx), %rax
	movq	_DMA_CTX_ISO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_10
## %bb.9:
	movl	48(%rbx), %esi
	movq	%r14, %rdi
	movl	$-1, %edx
	callq	_reg_write
	movl	36(%rbx), %esi
	movq	%r14, %rdi
	movl	$-805306368, %edx               ## imm = 0xD0000000
	callq	_reg_write
	movl	44(%rbx), %esi
	movq	%r14, %rdi
	movl	$-268435456, %edx               ## imm = 0xF0000000
	callq	_reg_write
	movq	_OHCI1394_IRMultiChanMaskHiClear@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$-1, %edx
	callq	_reg_write
	movq	_OHCI1394_IRMultiChanMaskLoClear@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$-1, %edx
	callq	_reg_write
	movq	_OHCI1394_IsoRecvIntMaskSet@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movb	32(%rbx), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movq	%r14, %rdi
	callq	_reg_write
LBB0_10:
	movl	40(%rbx), %esi
	movq	8(%rbx), %rax
	movl	(%rax), %edx
	orl	$1, %edx
	movq	%r14, %rdi
	callq	_reg_write
	movl	36(%rbx), %esi
	movq	%r14, %rdi
	movl	$32768, %edx                    ## imm = 0x8000
	callq	_reg_write
	movl	32(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DBGMSG                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_CTL_INPUT_MORE,4,2         ## @DMA_CTL_INPUT_MORE
	.comm	_DMA_CTL_UPDATE,4,2             ## @DMA_CTL_UPDATE
	.comm	_DMA_CTL_BRANCH,4,2             ## @DMA_CTL_BRANCH
	.comm	_DMA_CTL_IRQ,4,2                ## @DMA_CTL_IRQ
	.comm	_DMA_CTX_ISO,8,3                ## @DMA_CTX_ISO
	.comm	_OHCI1394_IRMultiChanMaskHiClear,4,2 ## @OHCI1394_IRMultiChanMaskHiClear
	.comm	_OHCI1394_IRMultiChanMaskLoClear,4,2 ## @OHCI1394_IRMultiChanMaskLoClear
	.comm	_OHCI1394_IsoRecvIntMaskSet,4,2 ## @OHCI1394_IsoRecvIntMaskSet
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Receive DMA ctx=%d initialized"

	.no_dead_strip	_initialize_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 initialize_dma_rcv_ctx
_initialize_dma_rcv_ctx:                ; @initialize_dma_rcv_ctx
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
	ldr	x20, [x0, #80]
	ldr	w1, [x0, #48]
	mov	x0, x20
	mov	x2, #0
	bl	_ohci1394_stop_context
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x26, #0
Lloh0:
	adrp	x22, _DMA_CTL_INPUT_MORE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DMA_CTL_INPUT_MORE@GOTPAGEOFF]
Lloh2:
	adrp	x23, _DMA_CTL_UPDATE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _DMA_CTL_UPDATE@GOTPAGEOFF]
Lloh4:
	adrp	x24, _DMA_CTL_BRANCH@GOTPAGE
Lloh5:
	ldr	x24, [x24, _DMA_CTL_BRANCH@GOTPAGEOFF]
Lloh6:
	adrp	x25, _DMA_CTL_IRQ@GOTPAGE
Lloh7:
	ldr	x25, [x25, _DMA_CTL_IRQ@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x8]
	and	w0, w8, #0xfffffff0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_cpu_to_le32
	ldr	x8, [x19, #72]
	lsl	x28, x26, #3
	ldr	x8, [x8, x28]
	str	x0, [x8, #16]
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x26, lsl #2]
	bl	_cpu_to_le32
	ldr	x8, [x19, #72]
	ldr	x8, [x8, x28]
	str	x0, [x8, #8]
	ldr	w0, [x19, #4]
	bl	_cpu_to_le32
	ldr	x8, [x19, #72]
	ldr	x8, [x8, x28]
	str	x0, [x8]
	ldrsw	x8, [x19]
	mov	x26, x27
	cmp	x27, x8
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x24]
	orr	w8, w8, w9
	ldr	w9, [x25]
	cmp	w21, #0
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
	ldr	w9, [x19, #4]
	orr	w0, w8, w9
	bl	_cpu_to_le32
	ldr	x8, [x19, #72]
	ldr	x8, [x8, x26, lsl #3]
	str	x0, [x8, #24]
	add	x27, x26, #1
	ldrsw	x9, [x19]
	ldr	x8, [x19, #8]
	cmp	x27, x9
	b.ge	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, x26, lsl #2
	ldr	w8, [x8, #4]
	and	w8, w8, #0xfffffff0
	orr	w0, w8, #0x1
	b	LBB0_3
LBB0_6:
	stp	xzr, xzr, [x19, #56]
	ldr	x8, [x19, #24]
Lloh8:
	adrp	x9, _DMA_CTX_ISO@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DMA_CTX_ISO@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	w1, [x19, #48]
	mov	x0, x20
	mov	w2, #-1
	bl	_reg_write
	ldr	w1, [x19, #36]
	mov	x0, x20
	mov	w2, #-805306368
	bl	_reg_write
	ldr	w1, [x19, #44]
	mov	x0, x20
	mov	w2, #-268435456
	bl	_reg_write
Lloh11:
	adrp	x8, _OHCI1394_IRMultiChanMaskHiClear@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OHCI1394_IRMultiChanMaskHiClear@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #-1
	bl	_reg_write
Lloh14:
	adrp	x8, _OHCI1394_IRMultiChanMaskLoClear@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OHCI1394_IRMultiChanMaskLoClear@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #-1
	bl	_reg_write
Lloh17:
	adrp	x8, _OHCI1394_IsoRecvIntMaskSet@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OHCI1394_IsoRecvIntMaskSet@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w8, [x19, #32]
	mov	w9, #1
	lsl	w2, w9, w8
	mov	x0, x20
	bl	_reg_write
LBB0_8:
	ldr	w1, [x19, #40]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	orr	w2, w8, #0x1
	mov	x0, x20
	bl	_reg_write
	ldr	w1, [x19, #36]
	mov	x0, x20
	mov	w2, #32768
	bl	_reg_write
	ldr	w1, [x19, #32]
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_DBGMSG
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_CTL_INPUT_MORE,4,2         ; @DMA_CTL_INPUT_MORE
	.comm	_DMA_CTL_UPDATE,4,2             ; @DMA_CTL_UPDATE
	.comm	_DMA_CTL_BRANCH,4,2             ; @DMA_CTL_BRANCH
	.comm	_DMA_CTL_IRQ,4,2                ; @DMA_CTL_IRQ
	.comm	_DMA_CTX_ISO,8,3                ; @DMA_CTX_ISO
	.comm	_OHCI1394_IRMultiChanMaskHiClear,4,2 ; @OHCI1394_IRMultiChanMaskHiClear
	.comm	_OHCI1394_IRMultiChanMaskLoClear,4,2 ; @OHCI1394_IRMultiChanMaskLoClear
	.comm	_OHCI1394_IsoRecvIntMaskSet,4,2 ; @OHCI1394_IsoRecvIntMaskSet
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Receive DMA ctx=%d initialized"

	.no_dead_strip	_initialize_dma_rcv_ctx
.subsections_via_symbols
