	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prepare_iso_urb
_prepare_iso_urb:                       ## @prepare_iso_urb
	.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, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rcx
	xorl	%eax, %eax
	cmpq	$0, (%rcx)
	jne	LBB0_11
## %bb.1:
	movq	_SBUF_NUM@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_11
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_PK_PER_URB@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	xorl	%r14d, %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movq	_ISO_PKT_SIZE@GOTPCREL(%rip), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movq	_SBUF_NUM@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	jge	LBB0_10
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movl	(%r12), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_usb_alloc_urb
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	movq	%r12, %rcx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	8(%r12), %rax
	movq	%rbx, (%rax,%r14,8)
	movl	(%r13), %esi
	imull	(%r15), %esi
	movl	(%rcx), %edx
	movq	%rbx, %rcx
	addq	$52, %rcx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_usb_buffer_alloc
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_urb_complete_iso@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	%r13, 40(%rbx)
	movl	4(%r12), %eax
	movl	%eax, 36(%rbx)
	movl	(%r12), %esi
	movq	%r13, %rdi
	movq	_PK_PER_URB@GOTPCREL(%rip), %r13
	callq	_usb_rcvisocpipe
	movl	%eax, 32(%rbx)
	movl	$1, (%rbx)
	movq	_URB_NO_TRANSFER_DMA_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_URB_ISO_ASAP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 4(%rbx)
	movl	(%r13), %edi
	movl	%edi, 8(%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%rbx)
	movl	(%r15), %eax
	imull	%edi, %eax
	movl	%eax, 12(%rbx)
	testl	%edi, %edi
	jle	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbx), %rax
	movl	$0, (%rax)
	movl	(%r15), %ecx
	movl	%ecx, 4(%rax)
	movl	(%r13), %edi
	cmpl	$2, %edi
	jl	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15), %edx
	imull	%ecx, %edx
	movl	%edx, (%rax,%rcx,8)
	movl	(%r15), %edx
	movl	%edx, 4(%rax,%rcx,8)
	incq	%rcx
	movslq	(%r13), %rdi
	cmpq	%rdi, %rcx
	jl	LBB0_8
	jmp	LBB0_9
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SBUF_NUM,4,2                   ## @SBUF_NUM
	.comm	_PK_PER_URB,4,2                 ## @PK_PER_URB
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ISO_PKT_SIZE,4,2               ## @ISO_PKT_SIZE
	.comm	_urb_complete_iso,4,2           ## @urb_complete_iso
	.comm	_URB_ISO_ASAP,4,2               ## @URB_ISO_ASAP
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ## @URB_NO_TRANSFER_DMA_MAP
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_prepare_iso_urb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prepare_iso_urb
_prepare_iso_urb:                       ; @prepare_iso_urb
	.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	x8, [x0, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x23, _SBUF_NUM@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SBUF_NUM@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	x8, #0
	ccmp	w9, #1, #8, eq
	b.ge	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_10
LBB0_2:
	mov	x19, x0
	mov	x24, #0
	ldr	x8, [x0, #16]
	ldr	x20, [x8]
Lloh2:
	adrp	x25, _PK_PER_URB@GOTPAGE
Lloh3:
	ldr	x25, [x25, _PK_PER_URB@GOTPAGEOFF]
Lloh4:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	adrp	x27, _ISO_PKT_SIZE@GOTPAGE
Lloh7:
	ldr	x27, [x27, _ISO_PKT_SIZE@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh8:
	adrp	x28, _URB_NO_TRANSFER_DMA_MAP@GOTPAGE
Lloh9:
	ldr	x28, [x28, _URB_NO_TRANSFER_DMA_MAP@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x23]
	cmp	x24, x8
	b.ge	LBB0_1
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	w1, [x26]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_usb_alloc_urb
	cbz	x0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x0
	ldr	x8, [x19, #8]
	str	x0, [x8, x24, lsl #3]
	ldr	w8, [x27]
	ldr	w9, [x25]
	mul	w1, w9, w8
	ldr	w2, [x26]
	add	x3, x0, #52
	mov	x0, x20
	bl	_usb_buffer_alloc
	mov	x22, x0
Lloh10:
	adrp	x8, _urb_complete_iso@GOTPAGE
Lloh11:
	ldr	x8, [x8, _urb_complete_iso@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x21, #48]
	str	x20, [x21, #40]
	ldp	w1, w8, [x19]
	str	w8, [x21, #36]
	mov	x0, x20
	bl	_usb_rcvisocpipe
	str	w0, [x21, #32]
	mov	w8, #1
	str	w8, [x21]
Lloh13:
	adrp	x8, _URB_ISO_ASAP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _URB_ISO_ASAP@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x28]
	orr	w8, w9, w8
	ldr	w0, [x25]
	stp	w8, w0, [x21, #4]
	str	x22, [x21, #24]
	ldr	w8, [x27]
	mul	w8, w8, w0
	str	w8, [x21, #12]
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #16]
	str	wzr, [x8]
	ldr	w9, [x27]
	str	w9, [x8, #4]
	ldr	w0, [x25]
	cmp	w0, #2
	b.lt	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #12
	mov	w9, #1
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x27]
	mul	w10, w10, w9
	stur	w10, [x8, #-4]
	ldr	w10, [x27]
	str	w10, [x8], #8
	add	x9, x9, #1
	ldrsw	x0, [x25]
	cmp	x9, x0
	b.lt	LBB0_8
	b	LBB0_3
LBB0_9:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_SBUF_NUM,4,2                   ; @SBUF_NUM
	.comm	_PK_PER_URB,4,2                 ; @PK_PER_URB
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ISO_PKT_SIZE,4,2               ; @ISO_PKT_SIZE
	.comm	_urb_complete_iso,4,2           ; @urb_complete_iso
	.comm	_URB_ISO_ASAP,4,2               ; @URB_ISO_ASAP
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ; @URB_NO_TRANSFER_DMA_MAP
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_prepare_iso_urb
.subsections_via_symbols
