	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usX2Y_usbpcm_urbs_allocate
_usX2Y_usbpcm_urbs_allocate:            ## @usX2Y_usbpcm_urbs_allocate
	.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, %rbx
	movq	8(%rdi), %rax
	movq	8(%rax), %r14
	movq	16(%rax), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	xorl	%r12d, %r12d
	movl	(%rdi), %esi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rdi, %rax
	sete	%r12b
	movq	%r14, %rdi
	je	LBB0_1
## %bb.2:
	callq	_usb_rcvisocpipe
	jmp	LBB0_3
LBB0_1:
	callq	_usb_sndisocpipe
LBB0_3:
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_usb_maxpacket
	movl	%eax, 24(%rbx)
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movq	_NRURBS@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_17
## %bb.5:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	callq	_usb_kill_urb
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r13
	movslq	(%r12), %rax
	cmpq	%rax, %r13
	jge	LBB0_17
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %r15
	movq	(%r15,%r13,8), %rdi
	testq	%rdi, %rdi
	jne	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	xorl	%eax, %eax
	callq	_nr_of_packs
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_usb_alloc_urb
	movq	%rax, (%r15,%r13,8)
	testq	%rax, %rax
	je	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rbx, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$8, (%rbx)
	movq	8(%rbx), %rcx
	movq	(%rcx), %rcx
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	addq	$4, %rcx
	jmp	LBB0_15
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rbx), %rcx
	movq	(%rcx), %rcx
	addq	$8, %rcx
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rcx), %ecx
	movl	%ecx, 40(%rax)
	movq	%r14, 32(%rax)
	movq	(%r15,%r13,8), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	xorl	%eax, %eax
	callq	_nr_of_packs
	movq	(%r15,%r13,8), %rcx
	movl	%eax, 24(%rcx)
	movq	%rbx, 16(%rcx)
	movq	(%r15,%r13,8), %rax
	movl	$1, 4(%rax)
	movq	_i_usX2Y_usbpcm_subs_startup@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	jmp	LBB0_16
LBB0_17:
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_19:
	movq	%rbx, %rdi
	callq	_usX2Y_usbpcm_urbs_release
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_9:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NRURBS,4,2                     ## @NRURBS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_i_usX2Y_usbpcm_subs_startup,4,2 ## @i_usX2Y_usbpcm_subs_startup
	.no_dead_strip	_usX2Y_usbpcm_urbs_allocate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usX2Y_usbpcm_urbs_allocate
_usX2Y_usbpcm_urbs_allocate:            ; @usX2Y_usbpcm_urbs_allocate
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldp	x20, x10, [x8, #8]
	ldr	x23, [x10, x9, lsl #3]
	ldr	w1, [x0]
	cmp	x23, x0
	cset	w22, eq
	mov	x0, x20
	b.eq	LBB0_2
; %bb.1:
	bl	_usb_rcvisocpipe
	b	LBB0_3
LBB0_2:
	bl	_usb_sndisocpipe
LBB0_3:
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_usb_maxpacket
	str	w0, [x19, #24]
	cbz	w0, LBB0_15
; %bb.4:
Lloh3:
	adrp	x22, _NRURBS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _NRURBS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.5:
	mov	x24, #0
Lloh5:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	adrp	x27, _i_usX2Y_usbpcm_subs_startup@GOTPAGE
Lloh8:
	ldr	x27, [x27, _i_usX2Y_usbpcm_subs_startup@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	bl	_usb_kill_urb
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x22]
	cmp	x24, x8
	b.ge	LBB0_14
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x19, #16]
	ldr	x0, [x28, x24, lsl #3]
	cbnz	x0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	bl	_nr_of_packs
	ldr	w1, [x25]
	bl	_usb_alloc_urb
	str	x0, [x28, x24, lsl #3]
	cbz	x0, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	x23, x19
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x19]
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
	cmp	w8, #8
	add	x8, x9, #4
	csel	x8, x9, x8, ne
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	add	x8, x8, #8
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x8]
	str	w8, [x0, #40]
	str	x20, [x0, #32]
	lsl	x26, x24, #3
	ldr	x8, [x28, x26]
	str	w21, [x8]
	bl	_nr_of_packs
	ldr	x8, [x28, x26]
	str	w0, [x8, #24]
	str	x19, [x8, #16]
	ldr	x8, [x28, x26]
	ldr	w9, [x27]
	mov	w10, #1
	stp	w10, w9, [x8, #4]
	b	LBB0_7
LBB0_14:
	mov	w0, #0
	b	LBB0_18
LBB0_15:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
	mov	x0, x19
	bl	_usX2Y_usbpcm_urbs_release
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NRURBS,4,2                     ; @NRURBS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_i_usX2Y_usbpcm_subs_startup,4,2 ; @i_usX2Y_usbpcm_subs_startup
	.no_dead_strip	_usX2Y_usbpcm_urbs_allocate
.subsections_via_symbols
