	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_stream_urbs
_alloc_stream_urbs:                     ## @alloc_stream_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %r14d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	24(%rsi), %rdi
	callq	_ARRAY_SIZE
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, %r12d
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	leaq	(,%r14,4), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rdx), %rdi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jae	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	24(%rdx), %rdi
	movq	%rbx, %rax
	shlq	$4, %rax
	movl	(%rdi,%rax), %r15d
	cmpl	%r14d, %r15d
	jb	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	4(%rdi,%rax), %r13d
	movq	8(%rdi,%rax), %r14
	movl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	4(%rdx), %eax
	cmpq	%rax, %r12
	jae	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$72, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_usb_init_urb
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	%rax, 64(%rbx)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	16(%rdx), %eax
	movl	%eax, 56(%rbx)
	movq	_URB_NO_TRANSFER_DMA_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_URB_ISO_ASAP@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	movl	%eax, (%rbx)
	movq	%r14, 48(%rbx)
	movl	%r13d, 4(%rbx)
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%esi, 8(%rbx)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 12(%rbx)
	movq	%rcx, 40(%rbx)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%rbx)
	movq	32(%rbx), %rax
	movq	$0, 8(%rax)
	movl	%esi, (%rax)
	movq	8(%rdx), %rax
	movq	%rbx, (%rax,%r12,8)
	incq	%r12
	subl	%esi, %r15d
	addl	%esi, %r13d
	addq	-88(%rbp), %r14                 ## 8-byte Folded Reload
	cmpl	%esi, %r15d
	jae	LBB0_4
	jmp	LBB0_8
LBB0_10:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	4(%rax), %r12d
	je	LBB0_13
LBB0_11:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_12:
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
LBB0_13:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_URB_ISO_ASAP,4,2               ## @URB_ISO_ASAP
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ## @URB_NO_TRANSFER_DMA_MAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"internal buffer size error\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_alloc_stream_urbs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_stream_urbs
_alloc_stream_urbs:                     ; @alloc_stream_urbs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	mov	x20, x1
	mov	x19, x0
	ldr	w23, [x1]
	ldr	x0, [x1, #24]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_9
; %bb.1:
	mov	x24, #0
	mov	w26, #0
	lsl	x8, x23, #2
	str	x8, [sp]                        ; 8-byte Folded Spill
	movi.2s	v8, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	bl	_ARRAY_SIZE
	cmp	x24, w0, uxtw
	b.hs	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x0, [x20, #24]
	lsl	x8, x24, #4
	ldr	w27, [x0, x8]
	cmp	w27, w23
	b.lo	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x0, x24, lsl #4
	ldr	w25, [x8, #4]
	ldr	x21, [x8, #8]
	mov	w28, w26
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x20, #4]
	cmp	x28, x8
	b.hs	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #72
	bl	_kmalloc
	cbz	x0, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x22, x0
	bl	_usb_init_urb
	ldr	x8, [x19]
	str	x8, [x22, #64]
	ldr	w8, [x20, #16]
	str	w8, [x22, #56]
Lloh3:
	adrp	x8, _URB_ISO_ASAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _URB_ISO_ASAP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _URB_NO_TRANSFER_DMA_MAP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _URB_NO_TRANSFER_DMA_MAP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	stp	w8, w25, [x22]
	str	w23, [x22, #8]
	stp	x19, x21, [x22, #40]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	x8, [x22, #24]
	ldr	x8, [x22, #32]
	ldr	x9, [x20, #8]
	str	x22, [x9, x28, lsl #3]
	add	x26, x28, #1
	stur	d8, [x22, #12]
	add	w25, w25, w23
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	add	x21, x21, x9
	str	xzr, [x8, #8]
	sub	w27, w27, w23
	cmp	w27, w23
	mov	x28, x26
	str	w23, [x8]
	b.hs	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x20, #24]
	b	LBB0_2
LBB0_9:
	mov	w26, #0
LBB0_10:
	ldr	w8, [x20, #4]
	cmp	w26, w8
	b.ne	LBB0_12
; %bb.11:
	mov	w0, #0
	b	LBB0_15
LBB0_12:
	ldr	x0, [x19]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh11:
	adrp	x8, _ENXIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_URB_ISO_ASAP,4,2               ; @URB_ISO_ASAP
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ; @URB_NO_TRANSFER_DMA_MAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"internal buffer size error\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_alloc_stream_urbs
.subsections_via_symbols
