	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usb6fire_pcm_stream_start
_usb6fire_pcm_stream_start:             ## @usb6fire_pcm_stream_start
	.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	(%rdi), %rax
	movq	_STREAM_DISABLED@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.1:
	movq	%rdi, %r14
	movl	$0, 8(%rdi)
	movq	_STREAM_STARTING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdi)
	movq	_PCM_N_URBS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_2
## %bb.3:
	xorl	%r13d, %r13d
	movq	_PCM_N_PACKETS_PER_URB@GOTPCREL(%rip), %r15
	xorps	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	cmpl	$0, (%r15)
	movq	24(%r14), %rdi
	jle	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rax
	shlq	$4, %rax
	movq	8(%rdi,%rax), %rax
	movl	12(%r14), %ecx
	addq	$8, %rax
	xorl	%edx, %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%edx, -8(%rax)
	movl	%ecx, -4(%rax)
	incq	%rsi
	movups	%xmm0, (%rax)
	movslq	(%r15), %rbx
	addl	%ecx, %edx
	addq	$24, %rax
	cmpq	%rbx, %rsi
	jl	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rax
	shlq	$4, %rax
	addq	%rax, %rdi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_submit_urb
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r13
	movq	_PCM_N_URBS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	xorps	%xmm0, %xmm0
	jl	LBB0_5
## %bb.10:
	movl	8(%r14), %esi
	jmp	LBB0_11
LBB0_2:
	xorl	%esi, %esi
LBB0_11:
	movl	16(%r14), %edi
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_wait_event_timeout
	cmpl	$0, 8(%r14)
	je	LBB0_13
## %bb.12:
	movq	_STREAM_RUNNING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_9:
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_usb6fire_pcm_stream_stop
	jmp	LBB0_14
LBB0_13:
	movq	%r14, %rdi
	callq	_usb6fire_pcm_stream_stop
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_14:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STREAM_DISABLED,8,3            ## @STREAM_DISABLED
	.comm	_STREAM_STARTING,8,3            ## @STREAM_STARTING
	.comm	_PCM_N_URBS,4,2                 ## @PCM_N_URBS
	.comm	_PCM_N_PACKETS_PER_URB,4,2      ## @PCM_N_PACKETS_PER_URB
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_HZ,4,2                         ## @HZ
	.comm	_STREAM_RUNNING,8,3             ## @STREAM_RUNNING
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_usb6fire_pcm_stream_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usb6fire_pcm_stream_start
_usb6fire_pcm_stream_start:             ; @usb6fire_pcm_stream_start
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _STREAM_DISABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STREAM_DISABLED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.1:
	mov	x19, x0
	str	wzr, [x0, #8]
Lloh3:
	adrp	x8, _STREAM_STARTING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STREAM_STARTING@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x0]
Lloh6:
	adrp	x21, _PCM_N_URBS@GOTPAGE
Lloh7:
	ldr	x21, [x21, _PCM_N_URBS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x22, #0
Lloh8:
	adrp	x23, _PCM_N_PACKETS_PER_URB@GOTPAGE
Lloh9:
	ldr	x23, [x23, _PCM_N_PACKETS_PER_URB@GOTPAGEOFF]
Lloh10:
	adrp	x24, _GFP_ATOMIC@GOTPAGE
Lloh11:
	ldr	x24, [x24, _GFP_ATOMIC@GOTPAGEOFF]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w9, [x23]
	ldr	x8, [x19, #24]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w9, #0
	mov	x10, #0
	add	x11, x8, x22, lsl #4
	ldr	x12, [x11, #8]
	ldr	w11, [x19, #12]
	add	x12, x12, #4
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stp	w9, w11, [x12, #-4]
	add	x10, x10, #1
	stur	xzr, [x12, #12]
	stur	xzr, [x12, #4]
	ldrsw	x13, [x23]
	add	w9, w9, w11
	add	x12, x12, #24
	cmp	x10, x13
	b.lt	LBB0_5
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x8, x22, lsl #4
	ldr	w1, [x24]
	bl	_usb_submit_urb
	cbnz	w0, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_3
; %bb.8:
	ldr	w1, [x19, #8]
	b	LBB0_11
LBB0_9:
	mov	w20, #0
	b	LBB0_15
LBB0_10:
	mov	w1, #0
LBB0_11:
	ldr	w0, [x19, #16]
Lloh12:
	adrp	x8, _HZ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_wait_event_timeout
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_14
; %bb.12:
	mov	w20, #0
Lloh15:
	adrp	x8, _STREAM_RUNNING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _STREAM_RUNNING@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_15
LBB0_13:
	mov	x20, x0
	mov	x0, x19
	bl	_usb6fire_pcm_stream_stop
	b	LBB0_15
LBB0_14:
	mov	x0, x19
	bl	_usb6fire_pcm_stream_stop
Lloh18:
	adrp	x8, _EIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_STREAM_DISABLED,8,3            ; @STREAM_DISABLED
	.comm	_STREAM_STARTING,8,3            ; @STREAM_STARTING
	.comm	_PCM_N_URBS,4,2                 ; @PCM_N_URBS
	.comm	_PCM_N_PACKETS_PER_URB,4,2      ; @PCM_N_PACKETS_PER_URB
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_HZ,4,2                         ; @HZ
	.comm	_STREAM_RUNNING,8,3             ; @STREAM_RUNNING
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_usb6fire_pcm_stream_start
.subsections_via_symbols
