	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i_usX2Y_usbpcm_urb_complete
_i_usX2Y_usbpcm_urb_complete:           ## @i_usX2Y_usbpcm_urb_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
	movq	%rdi, %r15
	movq	16(%rdi), %rbx
	movq	24(%rbx), %r14
	movq	%rbx, %rdi
	callq	_atomic_read
	movq	_state_PREPARED@GOTPCREL(%rip), %r13
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.12:
	movl	16(%r14), %edi
	callq	_usb_get_current_frame_number
	movl	%eax, %r14d
	movl	16(%rbx), %ebx
	movl	8(%r15), %edi
	callq	_usb_pipein
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	movl	(%r15), %r8d
	movl	4(%r15), %r9d
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_printdd                    ## TAILCALL
LBB0_1:
	movl	(%r15), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.13:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usX2Y_error_urb_status         ## TAILCALL
LBB0_2:
	movl	4(%r15), %eax
	movl	(%r14), %ecx
	xorl	%edi, %edi
	xorw	%ax, %cx
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	movq	%r15, 8(%rbx)
	movq	8(%r14), %rax
	movq	_SNDRV_PCM_STREAM_CAPTURE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rbx
	cmpq	$0, 8(%rbx)
	je	LBB0_11
## %bb.4:
	movq	16(%rax,%rcx,8), %r12
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_atomic_read
	cmpq	(%r13), %rax
	jge	LBB0_5
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usX2Y_error_sequence           ## TAILCALL
LBB0_5:
	testq	%r12, %r12
	je	LBB0_7
## %bb.6:
	cmpq	$0, 8(%r12)
	je	LBB0_11
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	jne	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_read
	cmpq	(%r13), %rax
	jge	LBB0_11
LBB0_9:
	movl	4(%r15), %ecx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_usX2Y_usbpcm_usbframe_complete
	testl	%eax, %eax
	je	LBB0_10
## %bb.15:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_snd_printdd
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usX2Y_clients_stop             ## TAILCALL
LBB0_10:
	xorl	%eax, %eax
	callq	_nr_of_packs
	addl	%eax, (%r14)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_state_PREPARED,8,3             ## @state_PREPARED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hcd_frame=%i ep=%i%s status=%i start_frame=%i\n"

L_.str.1:                               ## @.str.1
	.asciz	"in"

L_.str.2:                               ## @.str.2
	.asciz	"out"

	.comm	_SNDRV_PCM_STREAM_CAPTURE,8,3   ## @SNDRV_PCM_STREAM_CAPTURE
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
L_.str.3:                               ## @.str.3
	.asciz	"\n"

	.no_dead_strip	_i_usX2Y_usbpcm_urb_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i_usX2Y_usbpcm_urb_complete
_i_usX2Y_usbpcm_urb_complete:           ; @i_usX2Y_usbpcm_urb_complete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x0
	ldr	x21, [x0, #16]
	ldr	x20, [x21, #24]
	mov	x0, x21
	bl	_atomic_read
Lloh0:
	adrp	x24, _state_PREPARED@GOTPAGE
Lloh1:
	ldr	x24, [x24, _state_PREPARED@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x20, #16]
	bl	_usb_get_current_frame_number
	mov	x20, x0
	ldr	w0, [x19, #8]
	ldr	w21, [x21, #16]
	bl	_usb_pipein
Lloh2:
	adrp	x8, l_.str.1@PAGE
Lloh3:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh4:
	adrp	x9, l_.str.2@PAGE
Lloh5:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldp	w9, w10, [x19]
	stp	x9, x10, [sp, #24]
	stp	x21, x8, [sp, #8]
	str	x20, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_snd_printdd
LBB0_2:
	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
	add	sp, sp, #112
	ret
LBB0_3:
	ldr	w0, [x19]
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	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
	add	sp, sp, #112
	b	_usX2Y_error_urb_status
LBB0_5:
	ldrh	w8, [x19, #4]
	ldrh	w9, [x20]
	eor	w8, w9, w8
	cmp	w8, #0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_14
; %bb.6:
	str	x19, [x21, #8]
	ldr	x8, [x20, #8]
Lloh8:
	adrp	x9, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x9, x8, x9, lsl #3
	ldr	x21, [x9]
	ldr	x10, [x21, #8]
	cbz	x10, LBB0_2
; %bb.7:
	ldr	x22, [x9, #16]
Lloh11:
	adrp	x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldr	x23, [x8, x9, lsl #3]
	mov	x0, x21
	bl	_atomic_read
	ldr	x8, [x24]
	cmp	x0, x8
	b.lt	LBB0_2
; %bb.8:
	cbz	x22, LBB0_10
; %bb.9:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_2
LBB0_10:
	ldr	x8, [x23, #8]
	cbnz	x8, LBB0_12
; %bb.11:
	mov	x0, x23
	bl	_atomic_read
	ldr	x8, [x24]
	cmp	x0, x8
	b.ge	LBB0_2
LBB0_12:
	ldr	w3, [x19, #4]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_usX2Y_usbpcm_usbframe_complete
	cbz	w0, LBB0_15
; %bb.13:
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_snd_printdd
	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
	add	sp, sp, #112
	b	_usX2Y_clients_stop
LBB0_14:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	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
	add	sp, sp, #112
	b	_usX2Y_error_sequence
LBB0_15:
	bl	_nr_of_packs
	ldr	w8, [x20]
	add	w8, w8, w0
	str	w8, [x20]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_state_PREPARED,8,3             ; @state_PREPARED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hcd_frame=%i ep=%i%s status=%i start_frame=%i\n"

l_.str.1:                               ; @.str.1
	.asciz	"in"

l_.str.2:                               ; @.str.2
	.asciz	"out"

	.comm	_SNDRV_PCM_STREAM_CAPTURE,8,3   ; @SNDRV_PCM_STREAM_CAPTURE
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
l_.str.3:                               ; @.str.3
	.asciz	"\n"

	.no_dead_strip	_i_usX2Y_usbpcm_urb_complete
.subsections_via_symbols
