	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function start_usb_playback
_start_usb_playback:                    ## @start_usb_playback
	.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, %r15
	movq	_DISCONNECTED@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	40(%r15), %r14
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_3:
	movq	_USB_PLAYBACK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_4
LBB0_17:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	24(%r15), %r12
	movq	%r12, %rdi
	callq	_kill_stream_urbs
	leaq	56(%r15), %rdi
	callq	_tasklet_kill
	movq	_INTF_PLAYBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_enable_iso_interface
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	_PLAYBACK_URB_COMPLETED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movq	_first_playback_urb_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	32(%r15), %rcx
	movq	(%rcx), %rcx
	movl	%eax, 12(%rcx)
	leaq	44(%r15), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irq
	leaq	52(%r15), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	movl	(%r15), %eax
	movl	48(%r15), %edi
	movl	$1, %ebx
	cmpl	24(%r15), %eax
	jae	LBB0_9
## %bb.7:
	movq	_USB_CAPTURE_RUNNING@GOTPCREL(%rip), %rax
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_test_bit
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
LBB0_9:
	movl	%ebx, %esi
	callq	_wait_event
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	callq	_stop_usb_playback
	jmp	LBB0_1
LBB0_5:
	movl	%eax, %ebx
	jmp	LBB0_17
LBB0_11:
	movq	_USB_CAPTURE_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_18
## %bb.12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	je	LBB0_15
## %bb.13:
	leaq	16(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_spin_lock_irq
	movq	8(%r15), %rax
	movq	16(%r15), %rcx
	movl	(%rax,%rcx,4), %ebx
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_add_with_wraparound
	decl	(%r15)
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	movq	32(%r15), %rax
	imull	28(%r15), %ebx
	movq	(%rax,%r13,8), %rax
	movq	(%rax), %rcx
	movl	%ebx, (%rcx)
	movl	8(%rax), %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	incq	%r13
	movl	24(%r15), %eax
	cmpq	%rax, %r13
	jb	LBB0_14
LBB0_15:
	movq	_USB_PLAYBACK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_submit_stream_urbs
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_17
## %bb.16:
	movq	%r15, %rdi
	callq	_stop_usb_playback
	jmp	LBB0_17
LBB0_18:
	movq	%r15, %rdi
	callq	_stop_usb_playback
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_DISCONNECTED,4,2               ## @DISCONNECTED
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_USB_PLAYBACK_RUNNING,4,2       ## @USB_PLAYBACK_RUNNING
	.comm	_INTF_PLAYBACK,4,2              ## @INTF_PLAYBACK
	.comm	_PLAYBACK_URB_COMPLETED,4,2     ## @PLAYBACK_URB_COMPLETED
	.comm	_first_playback_urb_complete,4,2 ## @first_playback_urb_complete
	.comm	_USB_CAPTURE_RUNNING,4,2        ## @USB_CAPTURE_RUNNING
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_start_usb_playback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function start_usb_playback
_start_usb_playback:                    ; @start_usb_playback
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x25, _DISCONNECTED@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DISCONNECTED@GOTPAGEOFF]
	ldr	w0, [x25]
	add	x20, x19, #40
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_3
LBB0_1:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_5
LBB0_3:
Lloh4:
	adrp	x24, _USB_PLAYBACK_RUNNING@GOTPAGE
Lloh5:
	ldr	x24, [x24, _USB_PLAYBACK_RUNNING@GOTPAGEOFF]
	ldr	w0, [x24]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_6
; %bb.4:
	mov	w22, #0
LBB0_5:
	mov	x0, x22
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
	add	x21, x19, #24
	mov	x0, x21
	bl	_kill_stream_urbs
	add	x0, x19, #56
	bl	_tasklet_kill
Lloh6:
	adrp	x8, _INTF_PLAYBACK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INTF_PLAYBACK@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_enable_iso_interface
	tbnz	w0, #31, LBB0_13
; %bb.7:
Lloh9:
	adrp	x8, _PLAYBACK_URB_COMPLETED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PLAYBACK_URB_COMPLETED@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_clear_bit
Lloh12:
	adrp	x8, _first_playback_urb_complete@GOTPAGE
Lloh13:
	ldr	x8, [x8, _first_playback_urb_complete@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	x9, [x19, #32]
	ldr	x9, [x9]
	str	w8, [x9, #12]
	add	x22, x19, #44
	mov	x0, x22
	bl	_spin_lock_irq
	add	x0, x19, #52
	bl	_INIT_LIST_HEAD
	mov	x0, x22
	bl	_spin_unlock_irq
	ldr	w23, [x19, #48]
	ldr	w8, [x19]
	ldr	w9, [x19, #24]
	cmp	w8, w9
	b.hs	LBB0_10
; %bb.8:
Lloh15:
	adrp	x8, _USB_CAPTURE_RUNNING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _USB_CAPTURE_RUNNING@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w0, [x25]
	mov	x1, x20
	bl	_test_bit
	cmp	x0, #0
	cset	w1, ne
	b	LBB0_11
LBB0_10:
	mov	w1, #1
LBB0_11:
	mov	x0, x23
	bl	_wait_event
	ldr	w0, [x25]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_14
; %bb.12:
	mov	x0, x19
	bl	_stop_usb_playback
	b	LBB0_1
LBB0_13:
	mov	x22, x0
	b	LBB0_5
LBB0_14:
Lloh18:
	adrp	x8, _USB_CAPTURE_RUNNING@GOTPAGE
Lloh19:
	ldr	x8, [x8, _USB_CAPTURE_RUNNING@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_20
; %bb.15:
	ldr	w8, [x21]
	cbz	w8, LBB0_18
; %bb.16:
	mov	x25, #0
	add	x23, x19, #16
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_spin_lock_irq
	ldp	x8, x9, [x19, #8]
	ldr	w26, [x8, x9, lsl #2]
	mov	x0, x19
	mov	x1, x23
	mov	w2, #1
	bl	_add_with_wraparound
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
	mov	x0, x22
	bl	_spin_unlock_irq
	ldr	x8, [x19, #32]
	ldr	x8, [x8, x25, lsl #3]
	ldr	w9, [x19, #28]
	mul	w2, w9, w26
	ldr	x9, [x8]
	str	w2, [x9]
	ldr	w0, [x8, #8]
	mov	w1, #0
	bl	_memset
	add	x25, x25, #1
	ldr	w8, [x19, #24]
	cmp	x25, x8
	b.lo	LBB0_17
LBB0_18:
	ldr	w0, [x24]
	mov	x1, x20
	bl	_set_bit
	mov	x0, x19
	mov	x1, x21
	bl	_submit_stream_urbs
	mov	x22, x0
	tbz	w0, #31, LBB0_5
; %bb.19:
	mov	x0, x19
	bl	_stop_usb_playback
	b	LBB0_5
LBB0_20:
	mov	x0, x19
	bl	_stop_usb_playback
Lloh21:
	adrp	x8, _EIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_DISCONNECTED,4,2               ; @DISCONNECTED
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_USB_PLAYBACK_RUNNING,4,2       ; @USB_PLAYBACK_RUNNING
	.comm	_INTF_PLAYBACK,4,2              ; @INTF_PLAYBACK
	.comm	_PLAYBACK_URB_COMPLETED,4,2     ; @PLAYBACK_URB_COMPLETED
	.comm	_first_playback_urb_complete,4,2 ; @first_playback_urb_complete
	.comm	_USB_CAPTURE_RUNNING,4,2        ; @USB_CAPTURE_RUNNING
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_start_usb_playback
.subsections_via_symbols
