	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ohci_iso_recv_start
_ohci_iso_recv_start:                   ## @ohci_iso_recv_start
	.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	%ecx, %r14d
	movl	%edx, %r13d
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	movq	24(%rbx), %rdi
	movl	56(%rbx), %esi
	movl	$-1, %edx
	callq	_reg_write
	xorl	%eax, %eax
	callq	_wmb
	movq	(%rbx), %rax
	movq	_BUFFER_FILL_MODE@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setne	%dl
	shll	$31, %edx
	addl	$-1073741824, %edx              ## imm = 0xC0000000
	movq	24(%rbx), %rdi
	movl	16(%rbx), %esi
	callq	_reg_write
	shll	$28, %r13d
	movl	(%r12), %eax
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	orl	%eax, %r13d
	cmpl	$-1, %r15d
	je	LBB0_5
LBB0_4:
	movq	24(%rbx), %rdi
	movl	16(%rbx), %esi
	movl	$536870912, %edx                ## imm = 0x20000000
	callq	_reg_write
	andl	$8191, %r15d                    ## imm = 0x1FFF
	movq	24(%rbx), %rdi
	movq	_OHCI1394_IsochronousCycleTimer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_reg_read
	shrl	$12, %eax
	andl	$24576, %eax                    ## imm = 0x6000
	addl	$8192, %eax                     ## imm = 0x2000
	andl	$24576, %eax                    ## imm = 0x6000
	orl	%r15d, %eax
	shll	$12, %eax
	orl	%eax, %r13d
LBB0_5:
	cmpl	$-1, %r14d
	je	LBB0_7
## %bb.6:
	movq	8(%rbx), %r15
	movq	48(%rbx), %r12
	movq	_DMA_CTL_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	orl	%eax, (%r12,%r15,4)
	andl	$15, %r14d
	shll	$8, %r14d
	orl	%r14d, %r13d
LBB0_7:
	movq	24(%rbx), %rdi
	movl	44(%rbx), %esi
	movl	%r13d, %edx
	callq	_reg_write
	leaq	40(%rbx), %rdi
	movl	8(%rbx), %esi
	shll	$2, %esi
	callq	_dma_prog_region_offset_to_bus
	orl	$1, %eax
	movq	24(%rbx), %rdi
	movl	36(%rbx), %esi
	movl	%eax, %edx
	callq	_reg_write
	movq	24(%rbx), %rdi
	movq	_OHCI1394_IsoRecvIntMaskSet@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movb	32(%rbx), %cl
	movl	$1, %edx
	shll	%cl, %edx
	callq	_reg_write
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_wmb
	movq	24(%rbx), %rdi
	movl	16(%rbx), %esi
	movl	$32768, %edx                    ## imm = 0x8000
	callq	_reg_write
	xorl	%eax, %eax
	callq	_mb
	movq	24(%rbx), %rdi
	movq	_OHCI1394_IsochronousCycleTimer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_reg_read
	movq	24(%rbx), %rdi
	movl	16(%rbx), %esi
	callq	_reg_read
	testl	$32768, %eax                    ## imm = 0x8000
	jne	LBB0_9
## %bb.8:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	24(%rbx), %rdi
	movl	16(%rbx), %esi
	callq	_reg_read
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_PRINT
	movl	$-1, %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	24(%rbx), %rdi
	movl	16(%rbx), %esi
	movl	$268435456, %edx                ## imm = 0x10000000
	callq	_reg_write
	cmpl	$-1, %r15d
	jne	LBB0_4
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFFER_FILL_MODE,8,3           ## @BUFFER_FILL_MODE
	.comm	_OHCI1394_IsochronousCycleTimer,4,2 ## @OHCI1394_IsochronousCycleTimer
	.comm	_DMA_CTL_WAIT,4,2               ## @DMA_CTL_WAIT
	.comm	_OHCI1394_IsoRecvIntMaskSet,4,2 ## @OHCI1394_IsoRecvIntMaskSet
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error starting IR DMA (ContextControl 0x%08x)\n"

	.no_dead_strip	_ohci_iso_recv_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ohci_iso_recv_start
_ohci_iso_recv_start:                   ; @ohci_iso_recv_start
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x23, [x0, #8]
	ldr	x0, [x23, #24]
	ldr	w1, [x23, #56]
	mov	w2, #-1
	bl	_reg_write
	bl	_wmb
	ldr	x8, [x23]
Lloh0:
	adrp	x9, _BUFFER_FILL_MODE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BUFFER_FILL_MODE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #-1073741824
	cneg	w2, w8, ne
	ldr	x0, [x23, #24]
	ldr	w1, [x23, #16]
	bl	_reg_write
	lsl	w20, w20, #28
	ldr	w8, [x22]
	cmn	w8, #1
	b.eq	LBB0_2
; %bb.1:
	orr	w20, w8, w20
	b	LBB0_3
LBB0_2:
	ldr	x0, [x23, #24]
	ldr	w1, [x23, #16]
	mov	w2, #268435456
	bl	_reg_write
LBB0_3:
Lloh3:
	adrp	x22, _OHCI1394_IsochronousCycleTimer@GOTPAGE
Lloh4:
	ldr	x22, [x22, _OHCI1394_IsochronousCycleTimer@GOTPAGEOFF]
	cmn	w21, #1
	b.eq	LBB0_5
; %bb.4:
	ldr	x0, [x23, #24]
	ldr	w1, [x23, #16]
	mov	w2, #536870912
	bl	_reg_write
	ldr	x0, [x23, #24]
	ldr	w1, [x22]
	bl	_reg_read
	lsr	w8, w0, #12
	and	w8, w8, #0x6000
	add	w8, w8, #2, lsl #12             ; =8192
	and	w8, w8, #0x6000
	bfxil	w8, w21, #0, #13
	orr	w20, w20, w8, lsl #12
LBB0_5:
	cmn	w19, #1
	b.eq	LBB0_7
; %bb.6:
	ldr	x21, [x23, #48]
	ldr	x24, [x23, #8]
Lloh5:
	adrp	x8, _DMA_CTL_WAIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_CTL_WAIT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	lsl	x8, x24, #2
	ldr	w9, [x21, x8]
	orr	w9, w9, w0
	str	w9, [x21, x8]
	ubfiz	w8, w19, #8, #4
	orr	w20, w20, w8
LBB0_7:
	ldr	x0, [x23, #24]
	ldr	w1, [x23, #44]
	mov	x2, x20
	bl	_reg_write
	add	x0, x23, #40
	ldr	w8, [x23, #8]
	lsl	w1, w8, #2
	bl	_dma_prog_region_offset_to_bus
	orr	w2, w0, #0x1
	ldr	x0, [x23, #24]
	ldr	w1, [x23, #36]
	bl	_reg_write
	ldr	x0, [x23, #24]
Lloh8:
	adrp	x8, _OHCI1394_IsoRecvIntMaskSet@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OHCI1394_IsoRecvIntMaskSet@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w8, [x23, #32]
	mov	w9, #1
	lsl	w2, w9, w8
	bl	_reg_write
	bl	_wmb
	ldr	x0, [x23, #24]
	ldr	w1, [x23, #16]
	mov	w2, #32768
	bl	_reg_write
	bl	_mb
	ldr	x0, [x23, #24]
	ldr	w1, [x22]
	bl	_reg_read
	ldr	x0, [x23, #24]
	ldr	w1, [x23, #16]
	bl	_reg_read
	tbnz	w0, #15, LBB0_9
; %bb.8:
Lloh11:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh13:
	ldr	w19, [x8]
	ldr	x0, [x23, #24]
	ldr	w1, [x23, #16]
	bl	_reg_read
	mov	x2, x0
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_PRINT
	mov	w0, #-1
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFFER_FILL_MODE,8,3           ; @BUFFER_FILL_MODE
	.comm	_OHCI1394_IsochronousCycleTimer,4,2 ; @OHCI1394_IsochronousCycleTimer
	.comm	_DMA_CTL_WAIT,4,2               ; @DMA_CTL_WAIT
	.comm	_OHCI1394_IsoRecvIntMaskSet,4,2 ; @OHCI1394_IsoRecvIntMaskSet
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error starting IR DMA (ContextControl 0x%08x)\n"

	.no_dead_strip	_ohci_iso_recv_start
.subsections_via_symbols
