	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ohci_iso_recv_packetperbuf_task
_ohci_iso_recv_packetperbuf_task:       ## @ohci_iso_recv_packetperbuf_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rsi)
	jle	LBB0_12
## %bb.1:
	movq	%rsi, %r13
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	8(%rcx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %eax
	movb	$1, %r12b
	xorl	%r15d, %r15d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r12d, %r12d
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_PRINT
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r13), %edx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %esi
	imull	%edx, %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_dma_region_sync_for_cpu
	movl	4(%r13), %ecx
	movl	(%r14), %eax
	imull	%ecx, %eax
	movq	8(%r14), %rdx
	movzbl	(%rdx,%rax), %edi
	movzbl	1(%rdx,%rax), %r8d
	movzbl	5(%rdx,%rax), %r9d
	movzbl	4(%rdx,%rax), %ebx
	movl	%eax, %esi
	addl	$8, %esi
	addl	$-8, %r12d
	andl	$31, %r8d
	shll	$8, %r8d
	orl	%edi, %r8d
	movl	%r9d, %eax
	shrb	$6, %al
	andl	$15, %ebx
	movzbl	%al, %eax
	andl	$63, %r9d
	movq	%r14, %rdi
	movl	%r12d, %edx
	pushq	%rbx
	pushq	%rax
	callq	_hpsb_iso_packet_received
	addq	$16, %rsp
	movl	4(%r13), %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rcx,%rdx,4)
	movl	(%r14), %eax
	movl	%eax, 8(%r13)
	incl	%r15d
	xorl	%r12d, %r12d
	cmpl	(%r13), %r15d
	jge	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %r14
	movslq	%eax, %r13
	movl	(%r14,%r13,4), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	shrl	$16, %ebx
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movl	(%r14,%r13,4), %edi
	callq	_le32_to_cpu
	andb	$31, %bl
	cmpb	$2, %bl
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$17, %bl
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	%bl, %bl
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%bl, %edx
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r12d, %r12d
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_PRINT
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movzwl	%ax, %eax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	4(%r13), %r12d
	subl	%eax, %r12d
	jmp	LBB0_9
LBB0_11:
	testb	$1, %r12b
	je	LBB0_10
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	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 - packet too long for buffer\n"

L_.str.1:                               ## @.str.1
	.asciz	"IR DMA error - OHCI error code 0x%02x\n"

	.no_dead_strip	_ohci_iso_recv_packetperbuf_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_packetperbuf_task
_ohci_iso_recv_packetperbuf_task:       ; @ohci_iso_recv_packetperbuf_task
	.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
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	x21, x0
	ldrsw	x8, [x21], #8
	ldr	x9, [x1, #16]
	add	x25, x9, x8, lsl #2
	ldr	w0, [x25]
	bl	_le32_to_cpu
	mov	x22, x0
	ldr	w0, [x25]
	bl	_le32_to_cpu
	ubfx	w26, w22, #16, #5
	cbz	w26, LBB0_13
; %bb.2:
	mov	w27, #0
Lloh0:
	adrp	x28, _KERN_ERR@GOTPAGE
Lloh1:
	ldr	x28, [x28, _KERN_ERR@GOTPAGEOFF]
	lsr	w22, w22, #16
	mov	x8, x26
Lloh2:
	adrp	x23, l_.str.1@PAGE
Lloh3:
	add	x23, x23, l_.str.1@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	and	w9, w22, #0x1f
	cmp	w9, #2
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w9, #17
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #4]
	sub	w22, w8, w0, uxth
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x28]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x28]
	str	x8, [sp]
	mov	x1, x23
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_PRINT
	mov	w22, #0
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19]
	ldr	w2, [x20, #4]
	mul	w1, w2, w8
	mov	x0, x21
	bl	_dma_region_sync_for_cpu
	ldr	w8, [x19]
	ldr	w3, [x20, #4]
	mul	w8, w3, w8
	ldr	x9, [x19, #8]
	add	x9, x9, x8
	add	w1, w8, #8
	sub	w2, w22, #8
	ldrb	w4, [x9]
	ldrb	w8, [x9, #1]
	bfi	w4, w8, #8, #5
	ldrb	w8, [x9, #5]
	lsr	w6, w8, #6
	ldrb	w9, [x9, #4]
	and	w5, w8, #0x3f
	and	w7, w9, #0xf
	mov	x0, x19
	bl	_hpsb_iso_packet_received
	ldp	w9, w8, [x20]
	str	w8, [x25]
	ldrsw	x8, [x19]
	str	w8, [x20, #8]
	add	w27, w27, #1
	cmp	w27, w9
	b.ge	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x20, #16]
	add	x25, x9, x8, lsl #2
	ldr	w0, [x25]
	bl	_le32_to_cpu
	mov	x24, x0
	lsr	w22, w0, #16
	ldr	w0, [x25]
	bl	_le32_to_cpu
	ubfx	w8, w24, #16, #5
	cbnz	w8, LBB0_3
; %bb.11:
	cbz	w26, LBB0_13
LBB0_12:
	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
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
	.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 - packet too long for buffer\n"

l_.str.1:                               ; @.str.1
	.asciz	"IR DMA error - OHCI error code 0x%02x\n"

	.no_dead_strip	_ohci_iso_recv_packetperbuf_task
.subsections_via_symbols
