	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ohci_iso_recv_bufferfill_task
_ohci_iso_recv_bufferfill_task:         ## @ohci_iso_recv_bufferfill_task
	.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
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rsi)
	jle	LBB0_15
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$4, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	cmpl	%ecx, %r15d
	jge	LBB0_15
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %r14
	movq	24(%rbx), %r12
	movl	(%r12,%r14,4), %edi
	callq	_le32_to_cpu
	movl	%eax, %r13d
	shrl	$16, %r13d
	movl	(%r12,%r14,4), %edi
	callq	_le32_to_cpu
	andb	$31, %r13b
	cmpb	$17, %r13b
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	%r13b, %r13b
	je	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	callq	_atomic_inc
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movzbl	%r13b, %edx
	leaq	L_.str(%rip), %rsi
	callq	_PRINT
	movl	-52(%rbp), %eax                 ## 4-byte Reload
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	testw	%ax, %ax
	jne	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rbx), %edx
	movl	8(%rbx), %esi
	imull	%edx, %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_dma_region_sync_for_cpu
	movl	16(%rbx), %eax
	movl	%eax, (%r12,%r14,4)
	movq	8(%rbx), %rax
	incq	%rax
	movl	(%rbx), %ecx
	movslq	%ecx, %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	divq	%rsi
	movq	%rdx, %rax
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %eax
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, 8(%rbx)
	incq	%rax
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	20(%rbx), %rax
	cmpq	%rax, %rdx
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_inc
	leaq	L_.str.1(%rip), %rdi
	callq	_DBGMSG
	movl	(%rbx), %ecx
	jmp	LBB0_14
LBB0_15:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ohci_iso_recv_bufferfill_parse ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IR DMA error - OHCI error code 0x%02x\n"

L_.str.1:                               ## @.str.1
	.asciz	"ISO reception overflow - ran out of DMA blocks"

	.no_dead_strip	_ohci_iso_recv_bufferfill_task
.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_bufferfill_task
_ohci_iso_recv_bufferfill_task:         ; @ohci_iso_recv_bufferfill_task
	.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	x19, x1
	mov	x20, x0
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	w26, #0
	add	x21, x20, #4
Lloh0:
	adrp	x27, _KERN_ERR@GOTPAGE
Lloh1:
	ldr	x27, [x27, _KERN_ERR@GOTPAGEOFF]
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w26, w26, #1
	cmp	w26, w8
	b.ge	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x19, #24]
	ldr	x22, [x19, #8]
	lsl	x24, x22, #2
	ldr	w0, [x28, x24]
	bl	_le32_to_cpu
	mov	x25, x0
	ldr	w0, [x28, x24]
	bl	_le32_to_cpu
	mov	x24, x0
	ubfx	w25, w25, #16, #5
	cmp	w25, #17
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w25, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_atomic_inc
	ldr	w0, [x27]
	mov	x1, x23
	mov	x2, x25
	bl	_PRINT
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	and	w8, w24, #0xffff
	cbnz	w8, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #8]
	ldr	w2, [x19, #16]
	mul	w1, w2, w8
	mov	x0, x21
	bl	_dma_region_sync_for_cpu
	ldp	w8, w9, [x19, #16]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	str	w8, [x28, x22, lsl #2]
	ldr	x8, [x19, #8]
	add	x10, x8, #1
	ldrsw	x8, [x19]
	udiv	x11, x10, x8
	msub	x10, x11, x8, x10
	str	x10, [x19, #8]
	add	x10, x10, #1
	udiv	x11, x10, x8
	msub	x10, x11, x8, x10
	cmp	x10, x9
	b.ne	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_atomic_inc
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DBGMSG
	ldr	w8, [x19]
	b	LBB0_2
LBB0_9:
	mov	x0, x20
	mov	x1, 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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ohci_iso_recv_bufferfill_parse
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IR DMA error - OHCI error code 0x%02x\n"

l_.str.1:                               ; @.str.1
	.asciz	"ISO reception overflow - ran out of DMA blocks"

	.no_dead_strip	_ohci_iso_recv_bufferfill_task
.subsections_via_symbols
