	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function submit_urbs
_submit_urbs:                           ## @submit_urbs
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_NUM_SBUF@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_31
## %bb.1:
	movq	%rdi, %r14
	movq	(%rdi), %rcx
	movq	$-8, %rbx
	xorl	%r12d, %r12d
	movq	_FRAME_SIZE_PER_DESC@GOTPCREL(%rip), %rsi
	movq	_FRAMES_PER_DESC@GOTPCREL(%rip), %r8
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	%eax, %rdx
	addq	$16, %rbx
	cmpq	%rdx, %r12
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 16(%rcx,%rbx)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rsi), %edi
	movq	%r8, %r15
	movl	(%r8), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_kmalloc_array
	movq	(%r14), %rcx
	movq	%rax, 16(%rcx,%rbx)
	testq	%rax, %rax
	je	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %eax
	movq	%r15, %r8
	movq	_FRAME_SIZE_PER_DESC@GOTPCREL(%rip), %rsi
	jmp	LBB0_5
LBB0_6:
	testl	%eax, %eax
	jle	LBB0_31
## %bb.7:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rax
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_25:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_NUM_SBUF@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r14
	movslq	(%r13), %rcx
	cmpq	%rcx, %r14
	jge	LBB0_20
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_28 Depth 2
	movq	%r14, %r12
	shlq	$4, %r12
	cmpq	$0, (%rax,%r12)
	jne	LBB0_29
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r8), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r8, %r15
	callq	_usb_alloc_urb
	testq	%rax, %rax
	je	LBB0_10
## %bb.24:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %rbx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13), %rax
	movq	%rbx, (%rax,%r12)
	movl	8(%r13), %edi
	movl	%edi, 56(%rbx)
	movq	%r13, 48(%rbx)
	movl	$1, %esi
	callq	_usb_rcvisocpipe
	movl	%eax, 44(%rbx)
	movq	_URB_ISO_ASAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	(%r13), %rax
	movq	8(%rax,%r12), %rcx
	movq	%rcx, 32(%rbx)
	movq	_cpia2_usb_complete@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rbx)
	movl	(%r15), %ecx
	movl	%ecx, (%rbx)
	movl	$1, 4(%rbx)
	movl	(%r15), %ecx
	movq	_FRAME_SIZE_PER_DESC@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edx
	imull	%ecx, %edx
	movl	%edx, 8(%rbx)
	testl	%ecx, %ecx
	movq	%r15, %r8
	jle	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	16(%rbx), %rcx
	movl	$0, (%rcx)
	movl	(%rdi), %edx
	movl	%edx, 4(%rcx)
	cmpl	$2, (%r8)
	movq	_NUM_SBUF@GOTPCREL(%rip), %r13
	jl	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	$1, %edx
	.p2align	4, 0x90
LBB0_28:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdi), %esi
	imull	%edx, %esi
	movl	%esi, (%rcx,%rdx,8)
	movl	(%rdi), %esi
	movl	%esi, 4(%rcx,%rdx,8)
	incq	%rdx
	movslq	(%r8), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_28
	jmp	LBB0_29
LBB0_20:
	testl	%ecx, %ecx
	jle	LBB0_31
## %bb.21:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax,%rbx), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_submit_urb
	testl	%eax, %eax
	jne	LBB0_23
## %bb.30:                              ##   in Loop: Header=BB0_22 Depth=1
	incq	%r14
	movslq	(%r13), %rax
	addq	$16, %rbx
	cmpq	%rax, %r14
	jl	LBB0_22
LBB0_31:
	xorl	%r15d, %r15d
	jmp	LBB0_32
LBB0_16:
	testl	%r12d, %r12d
	je	LBB0_19
## %bb.17:
	incq	%r12
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rbx), %rdi
	callq	_kfree
	movq	(%r14), %rcx
	movq	$0, (%rcx,%rbx)
	decq	%r12
	addq	$-16, %rbx
	cmpq	$1, %r12
	jg	LBB0_18
	jmp	LBB0_19
LBB0_10:
	testl	%r14d, %r14d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_13
## %bb.11:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx), %rdi
	callq	_usb_free_urb
	addq	$16, %rbx
	decq	%r14
	jne	LBB0_12
LBB0_13:
	cmpl	$0, (%r13)
	jle	LBB0_19
## %bb.14:
	movq	(%r15), %rax
	movl	$8, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rbx), %rdi
	callq	_kfree
	movq	(%r15), %rax
	movq	$0, (%rax,%rbx)
	incq	%r14
	movslq	(%r13), %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r14
	jl	LBB0_15
LBB0_19:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_32:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_ERR
	jmp	LBB0_32
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_SBUF,4,2                   ## @NUM_SBUF
	.comm	_FRAME_SIZE_PER_DESC,4,2        ## @FRAME_SIZE_PER_DESC
	.comm	_FRAMES_PER_DESC,4,2            ## @FRAMES_PER_DESC
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_URB_ISO_ASAP,4,2               ## @URB_ISO_ASAP
	.comm	_cpia2_usb_complete,4,2         ## @cpia2_usb_complete
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usb_submit_urb[%d]() = %d\n"

	.no_dead_strip	_submit_urbs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function submit_urbs
_submit_urbs:                           ; @submit_urbs
	.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
Lloh0:
	adrp	x22, _NUM_SBUF@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NUM_SBUF@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w9, #1
	b.lt	LBB0_19
; %bb.1:
	mov	x19, x0
	mov	x20, #0
	ldr	x8, [x0]
	mov	w25, #8
Lloh2:
	adrp	x21, _FRAME_SIZE_PER_DESC@GOTPAGE
Lloh3:
	ldr	x21, [x21, _FRAME_SIZE_PER_DESC@GOTPAGEOFF]
Lloh4:
	adrp	x24, _FRAMES_PER_DESC@GOTPAGE
Lloh5:
	ldr	x24, [x24, _FRAMES_PER_DESC@GOTPAGEOFF]
Lloh6:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	add	x25, x25, #16
	cmp	x20, w9, sxtw
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8, x25]
	cbnz	x10, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21]
	ldr	w1, [x24]
	ldr	w2, [x23]
	bl	_kmalloc_array
	ldr	x8, [x19]
	str	x0, [x8, x25]
	cbz	x0, LBB0_20
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x22]
	b	LBB0_2
LBB0_6:
	cmp	w9, #1
	b.lt	LBB0_19
; %bb.7:
	mov	x25, #0
	ldr	x8, [x19]
Lloh8:
	adrp	x27, _URB_ISO_ASAP@GOTPAGE
Lloh9:
	ldr	x27, [x27, _URB_ISO_ASAP@GOTPAGEOFF]
Lloh10:
	adrp	x28, _cpia2_usb_complete@GOTPAGE
Lloh11:
	ldr	x28, [x28, _cpia2_usb_complete@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x25, x25, #1
	ldrsw	x9, [x22]
	cmp	x25, x9
	b.ge	LBB0_15
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	lsl	x26, x25, #4
	ldr	x9, [x8, x26]
	cbnz	x9, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x24]
	ldr	w1, [x23]
	bl	_usb_alloc_urb
	cbz	x0, LBB0_23
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x20, x0
	ldr	x8, [x19]
	str	x0, [x8, x26]
	ldr	w0, [x19, #8]
	str	w0, [x20, #56]
	str	x19, [x20, #48]
	mov	w1, #1
	bl	_usb_rcvisocpipe
	ldr	w8, [x27]
	stp	w8, w0, [x20, #40]
	ldr	x8, [x19]
	add	x9, x8, x26
	ldr	x9, [x9, #8]
	str	x9, [x20, #32]
	ldr	w9, [x28]
	str	w9, [x20, #24]
	ldr	w10, [x24]
	mov	w9, #1
	stp	w10, w9, [x20]
	ldr	w9, [x21]
	ldr	w10, [x24]
	mul	w9, w10, w9
	str	w9, [x20, #8]
	cmp	w10, #1
	b.lt	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x20, #16]
	str	wzr, [x9]
	ldr	w10, [x21]
	str	w10, [x9, #4]
	ldr	w10, [x24]
	cmp	w10, #2
	b.lt	LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x9, x9, #12
	mov	w10, #1
LBB0_14:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w11, [x21]
	mul	w11, w11, w10
	stur	w11, [x9, #-4]
	ldr	w11, [x21]
	str	w11, [x9], #8
	add	x10, x10, #1
	ldrsw	x11, [x24]
	cmp	x10, x11
	b.lt	LBB0_14
	b	LBB0_8
LBB0_15:
	cmp	w9, #1
	b.lt	LBB0_19
; %bb.16:
	mov	x24, #0
	mov	x20, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x0, [x8, x24]
	ldr	w1, [x23]
	bl	_usb_submit_urb
	cbnz	w0, LBB0_31
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x22]
	add	x24, x24, #16
	cmp	x20, x8
	b.lt	LBB0_17
LBB0_19:
	mov	w21, #0
	b	LBB0_30
LBB0_20:
	cbz	w20, LBB0_29
; %bb.21:
	sub	x21, x25, #16
	add	x20, x20, #1
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x8, x21]
	bl	_kfree
	ldr	x8, [x19]
	str	xzr, [x8, x21]
	sub	x20, x20, #1
	sub	x21, x21, #16
	cmp	x20, #1
	b.gt	LBB0_22
	b	LBB0_29
LBB0_23:
	cbz	w25, LBB0_26
; %bb.24:
	mov	x20, #0
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x0, [x8, x20]
	bl	_usb_free_urb
	add	x20, x20, #16
	subs	x25, x25, #1
	b.ne	LBB0_25
LBB0_26:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_29
; %bb.27:
	mov	x20, #0
	ldr	x8, [x19]
	mov	w21, #8
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x8, x21]
	bl	_kfree
	ldr	x8, [x19]
	str	xzr, [x8, x21]
	add	x20, x20, #1
	ldrsw	x9, [x22]
	add	x21, x21, #16
	cmp	x20, x9
	b.lt	LBB0_28
LBB0_29:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_30:
	mov	x0, x21
	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
LBB0_31:
	mov	x21, x0
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_ERR
	b	LBB0_30
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_SBUF,4,2                   ; @NUM_SBUF
	.comm	_FRAME_SIZE_PER_DESC,4,2        ; @FRAME_SIZE_PER_DESC
	.comm	_FRAMES_PER_DESC,4,2            ; @FRAMES_PER_DESC
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_URB_ISO_ASAP,4,2               ; @URB_ISO_ASAP
	.comm	_cpia2_usb_complete,4,2         ; @cpia2_usb_complete
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usb_submit_urb[%d]() = %d\n"

	.no_dead_strip	_submit_urbs
.subsections_via_symbols
