	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function playback_pcm_open
_playback_pcm_open:                     ## @playback_pcm_open
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movq	%rdi, 24(%r12)
	movl	20(%r12), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_set_stream_hw
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	12(%r12), %esi
	movl	16(%r12), %edi
	imull	(%r12), %edi
	callq	_DIV_ROUND_CLOSEST
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	leaq	4(%r12), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	callq	_start_usb_capture
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%r12, %rdi
	callq	_start_usb_playback
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_5
## %bb.7:
	movq	_ALSA_PLAYBACK_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %r12
	movq	%r12, %rsi
	callq	_set_bit
	jmp	LBB0_8
LBB0_1:
	movl	%eax, %r15d
	jmp	LBB0_9
LBB0_3:
	movl	%eax, %r15d
	jmp	LBB0_8
LBB0_5:
	movq	_ALSA_CAPTURE_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r12), %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	%r12, %rdi
	callq	_stop_usb_capture
LBB0_8:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_9:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ALSA_CAPTURE_OPEN,4,2          ## @ALSA_CAPTURE_OPEN
	.comm	_ALSA_PLAYBACK_OPEN,4,2         ## @ALSA_PLAYBACK_OPEN
	.no_dead_strip	_playback_pcm_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function playback_pcm_open
_playback_pcm_open:                     ; @playback_pcm_open
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldr	x19, [x0, #8]
	str	x0, [x19, #24]
	ldr	w2, [x19, #20]
	mov	x0, x19
	mov	x1, x20
	bl	_set_stream_hw
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w8, [x19]
	ldp	w1, w9, [x19, #12]
	mul	w0, w9, w8
	bl	_DIV_ROUND_CLOSEST
	ldr	x8, [x20]
	str	w0, [x8]
	add	x20, x19, #4
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x19
	bl	_start_usb_capture
	tbnz	w0, #31, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_start_usb_playback
	mov	x21, x0
	tbnz	w0, #31, LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _ALSA_PLAYBACK_OPEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ALSA_PLAYBACK_OPEN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_set_bit
	b	LBB0_8
LBB0_4:
	mov	x21, x0
	b	LBB0_9
LBB0_5:
	mov	x21, x0
	b	LBB0_8
LBB0_6:
Lloh3:
	adrp	x8, _ALSA_CAPTURE_OPEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ALSA_CAPTURE_OPEN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_test_bit
	cbnz	w0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_stop_usb_capture
LBB0_8:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ALSA_CAPTURE_OPEN,4,2          ; @ALSA_CAPTURE_OPEN
	.comm	_ALSA_PLAYBACK_OPEN,4,2         ; @ALSA_PLAYBACK_OPEN
	.no_dead_strip	_playback_pcm_open
.subsections_via_symbols
