	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_urbs
_alloc_urbs:                            ## @alloc_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r12
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rax
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	cmpl	%esi, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_ENDPOINT_PLAYBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_usb_sndisocpipe
	jmp	LBB0_3
LBB0_2:
	movq	_ENDPOINT_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_usb_rcvisocpipe
LBB0_3:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_N_URBS@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	shll	$3, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_kmalloc
	movq	%rax, %rbx
	xorl	%eax, %eax
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.6:
	cmpl	$0, (%r13)
	jle	LBB0_19
## %bb.7:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	_FRAMES_PER_URB@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	xorl	%r12d, %r12d
	movq	_BYTES_PER_FRAME@GOTPCREL(%rip), %r13
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	incq	%r12
	movq	_N_URBS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r12
	jge	LBB0_18
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movl	(%r14), %esi
	callq	_usb_alloc_urb
	movq	%rax, (%rbx,%r12,8)
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r13), %edi
	imull	(%r15), %edi
	movl	(%r14), %esi
	callq	_kmalloc
	movq	(%rbx,%r12,8), %rcx
	movq	%rax, 48(%rcx)
	movq	(%rbx,%r12,8), %rax
	cmpq	$0, 48(%rax)
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$0, (%r15)
	jle	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	40(%rax), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %esi
	imull	%edx, %esi
	movl	%esi, (%rcx,%rdx,8)
	movl	(%r13), %esi
	movl	%esi, 4(%rcx,%rdx,8)
	incq	%rdx
	movslq	(%r15), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 32(%rax)
	movq	(%rbx,%r12,8), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movl	(%r15), %edi
	movl	(%r13), %ecx
	imull	%edi, %ecx
	movl	%ecx, 4(%rax)
	leaq	(,%r12,4), %rcx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	addq	(%rdx), %rcx
	movq	%rcx, 24(%rax)
	movq	(%rbx,%r12,8), %rax
	movl	$1, 8(%rax)
	movq	_URB_ISO_ASAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	movl	%edi, 12(%rax)
	movq	_write_completed@GOTPCREL(%rip), %rcx
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movq	_SNDRV_PCM_STREAM_CAPTURE@GOTPCREL(%rip), %rsi
	cmpl	%edx, (%rsi)
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_read_completed@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_4:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_18:
	xorl	%eax, %eax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_9:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_5
LBB0_11:
	leaq	L_.str.2(%rip), %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_5:
	callq	_log
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
	movl	%eax, (%r15)
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,4,2  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_ENDPOINT_PLAYBACK,4,2          ## @ENDPOINT_PLAYBACK
	.comm	_ENDPOINT_CAPTURE,4,2           ## @ENDPOINT_CAPTURE
	.comm	_N_URBS,4,2                     ## @N_URBS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to kmalloc() urbs, OOM!?\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_FRAMES_PER_URB,4,2             ## @FRAMES_PER_URB
L_.str.1:                               ## @.str.1
	.asciz	"unable to usb_alloc_urb(), OOM!?\n"

	.comm	_BYTES_PER_FRAME,4,2            ## @BYTES_PER_FRAME
L_.str.2:                               ## @.str.2
	.asciz	"unable to kmalloc() transfer buffer, OOM!?\n"

	.comm	_URB_ISO_ASAP,4,2               ## @URB_ISO_ASAP
	.comm	_SNDRV_PCM_STREAM_CAPTURE,4,2   ## @SNDRV_PCM_STREAM_CAPTURE
	.comm	_read_completed,4,2             ## @read_completed
	.comm	_write_completed,4,2            ## @write_completed
	.no_dead_strip	_alloc_urbs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_urbs
_alloc_urbs:                            ; @alloc_urbs
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x23, [x0, #8]
Lloh0:
	adrp	x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ENDPOINT_PLAYBACK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENDPOINT_PLAYBACK@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_usb_sndisocpipe
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _ENDPOINT_CAPTURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENDPOINT_CAPTURE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_usb_rcvisocpipe
LBB0_3:
	mov	x24, x0
Lloh9:
	adrp	x26, _N_URBS@GOTPAGE
Lloh10:
	ldr	x26, [x26, _N_URBS@GOTPAGEOFF]
	ldr	w8, [x26]
	lsl	w0, w8, #3
Lloh11:
	adrp	x27, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x27, [x27, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x27]
	bl	_kmalloc
	mov	x20, x0
	cbz	x0, LBB0_12
; %bb.4:
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.5:
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	mov	x28, #0
Lloh13:
	adrp	x19, _FRAMES_PER_URB@GOTPAGE
Lloh14:
	ldr	x19, [x19, _FRAMES_PER_URB@GOTPAGEOFF]
Lloh15:
	adrp	x25, _BYTES_PER_FRAME@GOTPAGE
Lloh16:
	ldr	x25, [x25, _BYTES_PER_FRAME@GOTPAGEOFF]
	ldr	w0, [x19]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	x23, [x9, #32]
	ldr	x9, [x20, x8]
	str	w24, [x9]
	ldr	w0, [x19]
	ldr	w10, [x25]
	mul	w10, w10, w0
	str	w10, [x9, #4]
	ldr	x10, [x22]
	add	x10, x10, x28, lsl #2
	str	x10, [x9, #24]
	ldr	x8, [x20, x8]
Lloh17:
	adrp	x9, _URB_ISO_ASAP@GOTPAGE
Lloh18:
	ldr	x9, [x9, _URB_ISO_ASAP@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	str	w9, [x8, #20]
	mov	w9, #1
	stp	w9, w0, [x8, #8]
Lloh20:
	adrp	x9, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w9, w21
Lloh23:
	adrp	x9, _read_completed@GOTPAGE
Lloh24:
	ldr	x9, [x9, _read_completed@GOTPAGEOFF]
Lloh25:
	adrp	x10, _write_completed@GOTPAGE
Lloh26:
	ldr	x10, [x10, _write_completed@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	str	w9, [x8, #16]
	add	x28, x28, #1
	ldrsw	x8, [x26]
	cmp	x28, x8
	b.ge	LBB0_14
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	w1, [x27]
	bl	_usb_alloc_urb
	str	x0, [x20, x28, lsl #3]
	cbz	x0, LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x25]
	mul	w0, w9, w8
	ldr	w1, [x27]
	bl	_kmalloc
	lsl	x8, x28, #3
	ldr	x9, [x20, x8]
	str	x0, [x9, #48]
	ldr	x9, [x20, x8]
	ldr	x10, [x9, #48]
	cbz	x10, LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w10, [x19]
	cmp	w10, #1
	b.lt	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x10, #0
	ldr	x11, [x9, #40]
	add	x11, x11, #4
LBB0_11:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w12, [x25]
	mul	w12, w12, w10
	stur	w12, [x11, #-4]
	ldr	w12, [x25]
	str	w12, [x11], #8
	add	x10, x10, #1
	ldrsw	x12, [x19]
	cmp	x10, x12
	b.lt	LBB0_11
	b	LBB0_6
LBB0_12:
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_17
LBB0_13:
	mov	w8, #0
	b	LBB0_18
LBB0_14:
	mov	w8, #0
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_18
LBB0_15:
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
Lloh29:
	adrp	x0, l_.str.1@PAGE
Lloh30:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_16:
Lloh31:
	adrp	x0, l_.str.2@PAGE
Lloh32:
	add	x0, x0, l_.str.2@PAGEOFF
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
LBB0_17:
	bl	_log
Lloh33:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_18:
	str	w8, [x19]
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,4,2  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_ENDPOINT_PLAYBACK,4,2          ; @ENDPOINT_PLAYBACK
	.comm	_ENDPOINT_CAPTURE,4,2           ; @ENDPOINT_CAPTURE
	.comm	_N_URBS,4,2                     ; @N_URBS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to kmalloc() urbs, OOM!?\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_FRAMES_PER_URB,4,2             ; @FRAMES_PER_URB
l_.str.1:                               ; @.str.1
	.asciz	"unable to usb_alloc_urb(), OOM!?\n"

	.comm	_BYTES_PER_FRAME,4,2            ; @BYTES_PER_FRAME
l_.str.2:                               ; @.str.2
	.asciz	"unable to kmalloc() transfer buffer, OOM!?\n"

	.comm	_URB_ISO_ASAP,4,2               ; @URB_ISO_ASAP
	.comm	_SNDRV_PCM_STREAM_CAPTURE,4,2   ; @SNDRV_PCM_STREAM_CAPTURE
	.comm	_read_completed,4,2             ; @read_completed
	.comm	_write_completed,4,2            ; @write_completed
	.no_dead_strip	_alloc_urbs
.subsections_via_symbols
