	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function capture_urb_complete
_capture_urb_complete:                  ## @capture_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, %r12
	movl	8(%rdi), %eax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	movl	$1, %edi
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_4
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_4
## %bb.2:
	movq	_ECONNRESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_4
## %bb.3:
	movq	_ESHUTDOWN@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	addl	(%rcx), %eax
	sete	%dil
LBB0_4:
	movq	16(%r12), %rbx
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	callq	_abort_usb_playback
	movq	%rbx, %rdi
	callq	_abort_usb_capture
	movq	%rbx, %rdi
	callq	_abort_alsa_playback
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_abort_alsa_capture             ## TAILCALL
LBB0_6:
	cmpl	$0, 8(%r12)
	js	LBB0_11
## %bb.7:
	movq	(%r12), %rax
	cmpq	$0, (%rax)
	js	LBB0_11
## %bb.8:
	movl	8(%rax), %r15d
	movl	56(%rbx), %r13d
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%r13d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	cmpl	%r15d, %r13d
	ja	LBB0_12
## %bb.9:
	movq	_ALSA_CAPTURE_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	28(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	leaq	56(%rbx), %rdi
	movq	%r12, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_copy_capture_data
	movl	%eax, %r13d
	jmp	LBB0_14
LBB0_11:
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
LBB0_12:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_13:
	xorl	%r13d, %r13d
LBB0_14:
	movq	_USB_CAPTURE_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	28(%rbx), %r15
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_24
## %bb.15:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_usb_submit_urb
	movl	%eax, %r12d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	48(%rbx), %r14
	movl	%r12d, %edi
	callq	_usb_error_string
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_dev_err
	jmp	LBB0_5
LBB0_17:
	movl	(%rbx), %eax
	movl	%eax, -48(%rbp)
	movl	4(%rbx), %edx
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_add_with_wraparound
	movq	8(%rbx), %rax
	movl	-48(%rbp), %ecx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, (%rax,%rcx,4)
	movslq	4(%rbx), %rax
	movq	40(%rbx), %rcx
	cmpq	%rax, %rcx
	jle	LBB0_20
## %bb.18:
	incq	%rax
	movl	%eax, 4(%rbx)
	cmpq	%rax, %rcx
	jne	LBB0_21
## %bb.19:
	leaq	32(%rbx), %rdi
	callq	_wake_up
	jmp	LBB0_21
LBB0_20:
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_add_with_wraparound
LBB0_21:
	movq	_USB_PLAYBACK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_24
## %bb.22:
	leaq	24(%rbx), %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_24
## %bb.23:
	leaq	20(%rbx), %rdi
	callq	_tasklet_schedule
LBB0_24:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	testl	%r13d, %r13d
	je	LBB0_26
## %bb.25:
	movl	60(%rbx), %edi
	callq	_snd_pcm_period_elapsed
LBB0_26:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ECONNRESET,4,2                 ## @ECONNRESET
	.comm	_ESHUTDOWN,4,2                  ## @ESHUTDOWN
	.comm	_ALSA_CAPTURE_RUNNING,4,2       ## @ALSA_CAPTURE_RUNNING
	.comm	_USB_CAPTURE_RUNNING,4,2        ## @USB_CAPTURE_RUNNING
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"USB request error %d: %s\n"

	.comm	_USB_PLAYBACK_RUNNING,4,2       ## @USB_PLAYBACK_RUNNING
	.no_dead_strip	_capture_urb_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function capture_urb_complete
_capture_urb_complete:                  ; @capture_urb_complete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	ldr	x19, [x0, #16]
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x9, _ENOENT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmn	w8, w9
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _ENODEV@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ENODEV@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmn	w8, w9
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x9, _ECONNRESET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ECONNRESET@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmn	w8, w9
	b.ne	LBB0_15
LBB0_3:
	mov	w0, #1
	bl	_unlikely
	cbnz	x0, LBB0_16
LBB0_4:
	ldr	w8, [x21, #8]
	tbnz	w8, #31, LBB0_9
; %bb.5:
	ldr	x8, [x21]
	ldr	x9, [x8]
	tbnz	x9, #63, LBB0_9
; %bb.6:
	ldr	w22, [x8, #8]
	ldr	w23, [x19, #56]
	add	x20, x19, #16
	mov	x0, x20
	bl	_spin_lock_irqsave
	cmp	w23, w22
	b.hi	LBB0_10
; %bb.7:
Lloh9:
	adrp	x8, _ALSA_CAPTURE_RUNNING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ALSA_CAPTURE_RUNNING@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x1, x19, #28
	udiv	w23, w22, w23
	bl	_test_bit
	cbz	x0, LBB0_11
; %bb.8:
	add	x0, x19, #56
	mov	x1, x21
	mov	x2, x23
	bl	_copy_capture_data
	mov	x22, x0
	b	LBB0_12
LBB0_9:
	add	x20, x19, #16
	mov	x0, x20
	bl	_spin_lock_irqsave
LBB0_10:
	mov	w23, #0
LBB0_11:
	mov	w22, #0
LBB0_12:
Lloh12:
	adrp	x8, _USB_CAPTURE_RUNNING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _USB_CAPTURE_RUNNING@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	add	x24, x19, #28
	mov	x1, x24
	bl	_test_bit
	cbz	x0, LBB0_24
; %bb.13:
Lloh15:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_usb_submit_urb
	mov	x21, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_17
; %bb.14:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	x20, [x19, #48]
	mov	x0, x21
	bl	_usb_error_string
	mov	x3, x0
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_err
	b	LBB0_16
LBB0_15:
Lloh20:
	adrp	x9, _ESHUTDOWN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ESHUTDOWN@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmn	w8, w9
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_4
LBB0_16:
	mov	x0, x19
	bl	_abort_usb_playback
	mov	x0, x19
	bl	_abort_usb_capture
	mov	x0, x19
	bl	_abort_alsa_playback
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_abort_alsa_capture
LBB0_17:
	ldp	w8, w2, [x19]
	str	w8, [sp, #12]
	add	x1, sp, #12
	mov	x0, x19
	bl	_add_with_wraparound
	ldr	x8, [x19, #8]
	ldr	w9, [sp, #12]
	str	w23, [x8, x9, lsl #2]
	ldrsw	x9, [x19, #4]
	ldr	x8, [x19, #40]
	cmp	x8, x9
	b.le	LBB0_20
; %bb.18:
	add	x9, x9, #1
	str	w9, [x19, #4]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.19:
	add	x0, x19, #32
	bl	_wake_up
	b	LBB0_21
LBB0_20:
	mov	x0, x19
	mov	x1, x19
	mov	w2, #1
	bl	_add_with_wraparound
LBB0_21:
Lloh23:
	adrp	x8, _USB_PLAYBACK_RUNNING@GOTPAGE
Lloh24:
	ldr	x8, [x8, _USB_PLAYBACK_RUNNING@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	x1, x24
	bl	_test_bit
	cbz	x0, LBB0_24
; %bb.22:
	add	x0, x19, #24
	bl	_list_empty
	cbnz	w0, LBB0_24
; %bb.23:
	add	x0, x19, #20
	bl	_tasklet_schedule
LBB0_24:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	cbz	w22, LBB0_26
; %bb.25:
	ldr	w0, [x19, #60]
	bl	_snd_pcm_period_elapsed
LBB0_26:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	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
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ECONNRESET,4,2                 ; @ECONNRESET
	.comm	_ESHUTDOWN,4,2                  ; @ESHUTDOWN
	.comm	_ALSA_CAPTURE_RUNNING,4,2       ; @ALSA_CAPTURE_RUNNING
	.comm	_USB_CAPTURE_RUNNING,4,2        ; @USB_CAPTURE_RUNNING
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"USB request error %d: %s\n"

	.comm	_USB_PLAYBACK_RUNNING,4,2       ; @USB_PLAYBACK_RUNNING
	.no_dead_strip	_capture_urb_complete
.subsections_via_symbols
