	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ohci_iso_recv_bufferfill_parse
_ohci_iso_recv_bufferfill_parse:        ## @ohci_iso_recv_bufferfill_parse
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %ecx
	movl	4(%rsi), %r8d
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%r8d
	movl	8(%rsi), %edx
	cmpl	%edx, %eax
	je	LBB0_16
## %bb.1:
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	$100001, %edi                   ## imm = 0x186A1
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edi, -60(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %r14
	leal	2(%rcx), %eax
	movzbl	(%r14,%rax), %eax
	leal	3(%rcx), %edx
	movzbl	(%r14,%rdx), %ebx
	shll	$8, %ebx
	orl	%eax, %ebx
	cmpl	$4097, %ebx                     ## imm = 0x1001
	jb	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_PRINT
	movl	(%r13), %ecx
	movl	4(%r13), %r8d
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%rcx), %eax
	movzbl	(%r14,%rax), %r12d
	movl	%ecx, %eax
	movzbl	(%r14,%rax), %r9d
	leal	4(%rcx), %eax
	movl	12(%r13), %edi
	imull	%r8d, %edi
	cmpl	%edi, %eax
	movl	%edi, %eax
	movl	$0, %edx
	cmovbl	%edx, %eax
	negl	%eax
	leal	(%rcx,%rax), %r11d
	addl	$4, %r11d
	leal	(%r11,%rbx), %eax
	movl	%eax, (%r13)
	leal	8(%rbx), %esi
	movl	%ebx, %ecx
	andl	$3, %ecx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$4, %edx
	subl	%ecx, %edx
	addl	%edx, %eax
	movl	%eax, (%r13)
	addl	%edx, %esi
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, %r15d
	andb	$63, %r15b
	shrb	$6, %r12b
	andb	$15, %r9b
	cmpl	%edi, %eax
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	jb	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r11d, %edx
	subl	%edi, %edx
	addl	%ebx, %edx
	testl	%edx, %edx
	jle	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r8d, %edx
	jae	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	addl	%esi, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	movb	%r9b, -41(%rbp)                 ## 1-byte Spill
	movq	%r11, -80(%rbp)                 ## 8-byte Spill
	callq	_memcpy
	movq	-80(%rbp), %r11                 ## 8-byte Reload
	movzbl	-41(%rbp), %r9d                 ## 1-byte Folded Reload
	movl	(%r13), %eax
	movl	12(%r13), %edi
	imull	4(%r13), %edi
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	subl	%edi, %eax
	movl	%eax, (%r13)
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ecx
	movzbl	(%r14,%rcx), %ecx
	leal	1(%rax), %edx
	movzbl	(%r14,%rdx), %r8d
	andl	$31, %r8d
	shll	$8, %r8d
	orl	%ecx, %r8d
	leal	4(%rax), %ecx
	cmpl	%edi, %ecx
	movl	$0, %ecx
	cmovbl	%ecx, %edi
	negl	%edi
	addl	%edi, %eax
	addl	$4, %eax
	movl	%eax, (%r13)
	movzbl	%r9b, %eax
	movzbl	%r12b, %r10d
	movzwl	%bx, %edx
	movzwl	-56(%rbp), %ecx                 ## 2-byte Folded Reload
	movzbl	%r15b, %r9d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r11d, %esi
	pushq	%rax
	pushq	%r10
	callq	_hpsb_iso_packet_received
	addq	$16, %rsp
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	decl	%edi
	je	LBB0_13
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %ecx
	movl	4(%r13), %r8d
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%r8d
	cmpl	8(%r13), %eax
	jne	LBB0_3
## %bb.15:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -52(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_14
LBB0_16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	8(%rbx), %rdi
	callq	_atomic_inc
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_PRINT
LBB0_14:
	movq	%rbx, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hpsb_iso_wake                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IR DMA error - Runaway during buffer parsing!\n"

L_.str.1:                               ## @.str.1
	.asciz	"IR DMA error - bogus 'len' value %u\n"

	.no_dead_strip	_ohci_iso_recv_bufferfill_parse
.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_parse
_ohci_iso_recv_bufferfill_parse:        ; @ohci_iso_recv_bufferfill_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldp	w9, w8, [x1]
	udiv	w10, w9, w8
	ldr	w11, [x1, #8]
	cmp	w10, w11
	b.eq	LBB0_13
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	stp	w11, w10, [sp, #8]              ; 8-byte Folded Spill
	mov	w27, #34465
	movk	w27, #1, lsl #16
	mov	w28, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x19]
	add	w10, w9, #2
	ldrb	w22, [x24, w10, uxtw]
	add	w10, w9, #3
	ldrb	w10, [x24, w10, uxtw]
	bfi	w22, w10, #8, #8
	cmp	w22, #1, lsl #12                ; =4096
	b.ls	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh0:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	str	x22, [sp]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_PRINT
	ldp	w9, w8, [x20]
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w10, w9, #1
	ldrb	w21, [x24, w10, uxtw]
	ldrb	w26, [x24, w9, uxtw]
	add	w10, w9, #4
	ldr	w9, [x20, #12]
	mul	w9, w9, w8
	cmp	w10, w9
	csel	w11, wzr, w9, lo
	sub	w23, w10, w11
	add	w10, w23, w22
	str	w10, [x20]
	add	w25, w22, #8
	ands	w11, w22, #0x3
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w11, w28, w11
	add	w10, w10, w11
	str	w10, [x20]
	add	w25, w25, w11
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w10, w9
	b.lo	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w11, w23, w9
	add	w2, w11, w22
	cmp	w2, #1
	ccmp	w2, w8, #2, ge
	b.hs	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [x19]
	add	w0, w1, w9
	bl	_memcpy
	ldr	w8, [x20, #12]
	ldp	w10, w9, [x20]
	mul	w9, w8, w9
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	sub	w10, w10, w9
	str	w10, [x20]
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	and	w5, w21, #0x3f
	lsr	w6, w21, #6
	and	w7, w26, #0xf
	ldrb	w4, [x24, w10, uxtw]
	add	w8, w10, #1
	ldrb	w8, [x24, w8, uxtw]
	bfi	w4, w8, #8, #5
	add	w8, w10, #4
	cmp	w8, w9
	csel	w9, wzr, w9, lo
	sub	w8, w8, w9
	str	w8, [x20]
	and	w3, w25, #0xffff
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_hpsb_iso_packet_received
	subs	w27, w27, #1
	b.eq	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	ldp	w9, w8, [x20]
	udiv	w10, w9, w8
	ldr	w11, [x20, #8]
	cmp	w10, w11
	b.ne	LBB0_2
; %bb.12:
	ldp	w9, w8, [sp, #8]                ; 8-byte Folded Reload
	cmp	w8, w9
	b.ne	LBB0_15
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_14:
	add	x0, x19, #8
	bl	_atomic_inc
Lloh5:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PRINT
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_hpsb_iso_wake
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IR DMA error - Runaway during buffer parsing!\n"

l_.str.1:                               ; @.str.1
	.asciz	"IR DMA error - bogus 'len' value %u\n"

	.no_dead_strip	_ohci_iso_recv_bufferfill_parse
.subsections_via_symbols
