	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ohci_iso_recv_program
_ohci_iso_recv_program:                 ## @ohci_iso_recv_program
	.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	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r13
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.1:
	leaq	20(%r13), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	%rbx, %r15
	incq	%r12
	movslq	(%r13), %rax
	addq	$32, %rbx
	cmpq	%rax, %r12
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r13), %edi
	movl	%r12d, %r8d
	imull	%edi, %r8d
	movq	8(%r13), %rdx
	xorl	%esi, %esi
	movq	_BUFFER_FILL_MODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	setne	%sil
	shll	$28, %esi
	orl	$671088640, %esi                ## imm = 0x28000000
	decl	%eax
	cmpq	%rax, %r12
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %eax
	cltd
	idivl	16(%r13)
	testl	%edx, %edx
	jne	LBB0_5
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	orl	$3145728, %esi                  ## imm = 0x300000
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r13), %r15
	movq	%r13, %r14
	movslq	%r8d, %r13
	orl	%esi, %edi
	orl	$786432, %edi                   ## imm = 0xC0000
	callq	_cpu_to_le32
	movq	%rax, 24(%r15,%rbx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r14, %r13
	callq	_dma_region_offset_to_bus
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%r15,%rbx)
	movl	$0, (%r15,%rbx)
	movl	4(%r14), %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%r15,%rbx)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_dma_prog_region_offset_to_bus
	orl	$1, %eax
	movl	%eax, %edi
	callq	_cpu_to_le32
	movl	%eax, (%r14)
	jmp	LBB0_7
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFFER_FILL_MODE,8,3           ## @BUFFER_FILL_MODE
	.no_dead_strip	_ohci_iso_recv_program
.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_program
_ohci_iso_recv_program:                 ; @ohci_iso_recv_program
	.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
	ldr	x23, [x0, #8]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x19, x0
	mov	x20, #0
	mov	x24, #0
	mov	x25, #0
	add	x21, x23, #20
	mov	w26, #939524096
	mov	w27, #671088640
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x23]
	add	x20, x20, #32
	mov	x25, x28
	cmp	x24, x8
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23, #8]
Lloh0:
	adrp	x10, _BUFFER_FILL_MODE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _BUFFER_FILL_MODE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	csel	w9, w27, w26, eq
	sub	w8, w8, #1
	cmp	x24, x8
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x23, #16]
	sdiv	w10, w24, w8
	msub	w8, w10, w8, w24
	cbnz	w8, LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	orr	w9, w9, #0x300000
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x28, [x23, #24]
	ldr	w8, [x23, #4]
	mul	w10, w8, w24
	sxtw	x22, w10
	orr	w8, w8, w9
	orr	w0, w8, #0xc0000
	bl	_cpu_to_le32
	add	x28, x28, x20
	str	x0, [x28, #24]
	mov	x0, x19
	mov	x1, x22
	bl	_dma_region_offset_to_bus
	bl	_cpu_to_le32
	str	x0, [x28, #16]
	str	wzr, [x28]
	ldr	w0, [x23, #4]
	bl	_cpu_to_le32
	str	x0, [x28, #8]
	cbz	x25, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_dma_prog_region_offset_to_bus
	orr	w0, w0, #0x1
	bl	_cpu_to_le32
	str	w0, [x25]
	b	LBB0_2
LBB0_8:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFFER_FILL_MODE,8,3           ; @BUFFER_FILL_MODE
	.no_dead_strip	_ohci_iso_recv_program
.subsections_via_symbols
