	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usX2Y_usbpcm_usbframe_complete
_usX2Y_usbpcm_usbframe_complete:        ## @usX2Y_usbpcm_usbframe_complete
	.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
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rdx), %rbx
	leaq	8(%rdx), %r15
	movq	%r15, %rdi
	callq	_atomic_read
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	movq	_state_RUNNING@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_usX2Y_urb_play_retire
	jmp	LBB0_10
LBB0_5:
	cmpl	$128, %eax
	je	LBB0_8
## %bb.6:
	cmpl	$129, %eax
	jne	LBB0_12
## %bb.7:
	movq	16(%r13), %rax
	jmp	LBB0_9
LBB0_3:
	movq	_state_PRERUNNING@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_10
## %bb.4:
	movq	%r15, %rdi
	callq	_atomic_inc
	jmp	LBB0_10
LBB0_8:
	movq	16(%r13), %rax
	addq	$8, %rax
LBB0_9:
	movq	(%rax), %rbx
	movq	%r15, %rdi
	callq	_atomic_inc
	testq	%rbx, %rbx
	je	LBB0_12
LBB0_10:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_usX2Y_hwdep_urb_play_prepare
	testl	%eax, %eax
	jne	LBB0_25
## %bb.11:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_usX2Y_urb_submit
	testl	%eax, %eax
	jne	LBB0_25
LBB0_12:
	movq	$0, (%r13)
	leaq	8(%r12), %rbx
	movq	%rbx, %rdi
	callq	_atomic_read
	movq	_state_PREPARED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_13
## %bb.22:
	movq	$0, (%r12)
	movq	%r14, %r12
	testq	%r14, %r14
	je	LBB0_24
LBB0_23:
	movq	$0, (%r12)
LBB0_24:
	xorl	%eax, %eax
	jmp	LBB0_25
LBB0_13:
	movq	_state_RUNNING@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_15
## %bb.14:
	movq	%r12, %rdi
	callq	_usX2Y_usbpcm_urb_capt_retire
	testl	%eax, %eax
	jne	LBB0_25
	jmp	LBB0_17
LBB0_15:
	movq	_state_PRERUNNING@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_17
## %bb.16:
	movq	%rbx, %rdi
	callq	_atomic_inc
LBB0_17:
	movq	(%r12), %rsi
	movq	%r12, %rdi
	callq	_usX2Y_usbpcm_urb_capt_iso_advance
	testq	%r14, %r14
	je	LBB0_18
## %bb.19:
	movq	(%r14), %rsi
	xorl	%edi, %edi
	callq	_usX2Y_usbpcm_urb_capt_iso_advance
	movq	(%r12), %rsi
	movq	%r12, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_usX2Y_urb_submit
	testl	%eax, %eax
	jne	LBB0_25
## %bb.20:
	movq	(%r14), %rsi
	movq	%r14, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_usX2Y_urb_submit
	testl	%eax, %eax
	jne	LBB0_25
## %bb.21:
	movq	$0, (%r12)
	movq	%r14, %r12
	jmp	LBB0_23
LBB0_18:
	movq	(%r12), %rsi
	movq	%r12, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_usX2Y_urb_submit
	testl	%eax, %eax
	je	LBB0_23
LBB0_25:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_state_RUNNING,4,2              ## @state_RUNNING
	.comm	_state_PRERUNNING,4,2           ## @state_PRERUNNING
	.comm	_state_PREPARED,4,2             ## @state_PREPARED
	.no_dead_strip	_usX2Y_usbpcm_usbframe_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usX2Y_usbpcm_usbframe_complete
_usX2Y_usbpcm_usbframe_complete:        ; @usX2Y_usbpcm_usbframe_complete
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	mov	x24, x2
	ldr	x23, [x24], #8
	mov	x0, x24
	bl	_atomic_read
	cbz	x23, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _state_RUNNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _state_RUNNING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x22
	mov	x1, x23
	bl	_usX2Y_urb_play_retire
	b	LBB0_10
LBB0_3:
	cmp	w0, #128
	b.eq	LBB0_8
; %bb.4:
	cmp	w0, #129
	b.ne	LBB0_12
; %bb.5:
	ldr	x8, [x22, #16]
	b	LBB0_9
LBB0_6:
Lloh3:
	adrp	x8, _state_PRERUNNING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _state_PRERUNNING@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.lt	LBB0_10
; %bb.7:
	mov	x0, x24
	bl	_atomic_inc
	b	LBB0_10
LBB0_8:
	ldr	x8, [x22, #16]
	add	x8, x8, #8
LBB0_9:
	ldr	x23, [x8]
	mov	x0, x24
	bl	_atomic_inc
	cbz	x23, LBB0_12
LBB0_10:
	mov	x0, x22
	mov	x1, x23
	bl	_usX2Y_hwdep_urb_play_prepare
	cbnz	w0, LBB0_25
; %bb.11:
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	bl	_usX2Y_urb_submit
	cbnz	w0, LBB0_25
LBB0_12:
	str	xzr, [x22]
	add	x22, x19, #8
	mov	x0, x22
	bl	_atomic_read
Lloh6:
	adrp	x8, _state_PREPARED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _state_PREPARED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_15
; %bb.13:
	str	xzr, [x19]
	mov	x19, x20
	cbz	x20, LBB0_23
LBB0_14:
	mov	w0, #0
	str	xzr, [x19]
	b	LBB0_25
LBB0_15:
Lloh9:
	adrp	x8, _state_RUNNING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _state_RUNNING@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_usX2Y_usbpcm_urb_capt_retire
	cbnz	w0, LBB0_25
	b	LBB0_19
LBB0_17:
Lloh12:
	adrp	x8, _state_PRERUNNING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _state_PRERUNNING@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, w8
	b.lt	LBB0_19
; %bb.18:
	mov	x0, x22
	bl	_atomic_inc
LBB0_19:
	ldr	x1, [x19]
	mov	x0, x19
	bl	_usX2Y_usbpcm_urb_capt_iso_advance
	cbz	x20, LBB0_24
; %bb.20:
	ldr	x1, [x20]
	mov	x0, #0
	bl	_usX2Y_usbpcm_urb_capt_iso_advance
	ldr	x1, [x19]
	mov	x0, x19
	mov	x2, x21
	bl	_usX2Y_urb_submit
	cbnz	w0, LBB0_25
; %bb.21:
	ldr	x1, [x20]
	mov	x0, x20
	mov	x2, x21
	bl	_usX2Y_urb_submit
	cbnz	w0, LBB0_25
; %bb.22:
	str	xzr, [x19]
	mov	x19, x20
	b	LBB0_14
LBB0_23:
	mov	w0, #0
	b	LBB0_25
LBB0_24:
	ldr	x1, [x19]
	mov	x0, x19
	mov	x2, x21
	bl	_usX2Y_urb_submit
	cbz	w0, LBB0_14
LBB0_25:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_state_RUNNING,4,2              ; @state_RUNNING
	.comm	_state_PRERUNNING,4,2           ; @state_PRERUNNING
	.comm	_state_PREPARED,4,2             ; @state_PREPARED
	.no_dead_strip	_usX2Y_usbpcm_usbframe_complete
.subsections_via_symbols
