	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function loopback_check_format
_loopback_check_format:                 ## @loopback_check_format
	.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, %r14
	movq	(%rdi), %rax
	movq	_CABLE_VALID_BOTH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	8(%r14), %rdx
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %r15
	movslq	(%r15), %rax
	movq	(%rdx,%rax,8), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rcx
	movq	_SNDRV_PCM_STREAM_CAPTURE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdx,%rax,8), %rdx
	movq	8(%rdx), %rdi
	movq	(%rdi), %rdx
	movq	(%rcx), %rbx
	cmpq	(%rdx), %rbx
	jne	LBB0_5
## %bb.3:
	movq	8(%rcx), %rbx
	cmpq	8(%rdx), %rbx
	jne	LBB0_5
## %bb.4:
	movq	16(%rcx), %rcx
	xorl	%ebx, %ebx
	cmpq	16(%rdx), %rcx
	je	LBB0_14
LBB0_5:
	movslq	%esi, %rcx
	cmpq	%rcx, %rax
	jne	LBB0_7
## %bb.6:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_1:
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	%esi, (%rax)
	je	LBB0_8
	jmp	LBB0_14
LBB0_7:
	movq	_SNDRV_PCM_STATE_DRAINING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_snd_pcm_stop
	movl	(%r15), %esi
LBB0_8:
	movq	8(%r14), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %rdi
	movq	8(%rdi), %rax
	movq	(%rax), %r12
	callq	_get_setup
	movq	%rax, %r15
	movq	8(%r14), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	movq	(%r15), %rax
	cmpq	(%r12), %rax
	je	LBB0_10
## %bb.9:
	movq	_SNDRV_CTL_EVENT_MASK_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	32(%r15), %rdx
	movq	%r14, %rdi
	callq	_snd_ctl_notify
	movq	(%r12), %rax
	movq	%rax, (%r15)
LBB0_10:
	movq	8(%r15), %rax
	cmpq	8(%r12), %rax
	je	LBB0_12
## %bb.11:
	movq	_SNDRV_CTL_EVENT_MASK_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	28(%r15), %rdx
	movq	%r14, %rdi
	callq	_snd_ctl_notify
	movq	8(%r12), %rax
	movq	%rax, 8(%r15)
LBB0_12:
	movq	16(%r15), %rax
	xorl	%ebx, %ebx
	cmpq	16(%r12), %rax
	je	LBB0_14
## %bb.13:
	movq	_SNDRV_CTL_EVENT_MASK_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	addq	$24, %rdx
	movq	%r14, %rdi
	callq	_snd_ctl_notify
	movq	16(%r12), %rax
	movq	%rax, 16(%r15)
LBB0_14:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CABLE_VALID_BOTH,8,3           ## @CABLE_VALID_BOTH
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,4,2  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_SNDRV_PCM_STREAM_CAPTURE,8,3   ## @SNDRV_PCM_STREAM_CAPTURE
	.comm	_EIO,4,2                        ## @EIO
	.comm	_SNDRV_PCM_STATE_DRAINING,4,2   ## @SNDRV_PCM_STATE_DRAINING
	.comm	_SNDRV_CTL_EVENT_MASK_VALUE,4,2 ## @SNDRV_CTL_EVENT_MASK_VALUE
	.no_dead_strip	_loopback_check_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function loopback_check_format
_loopback_check_format:                 ; @loopback_check_format
	.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	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CABLE_VALID_BOTH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CABLE_VALID_BOTH@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	ldr	x9, [x19, #8]
Lloh3:
	adrp	x20, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh4:
	ldr	x20, [x20, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
	ldrsw	x8, [x20]
	ldr	x8, [x9, x8, lsl #3]
	ldr	x10, [x8, #8]
Lloh5:
	adrp	x8, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x11, [x9, x8, lsl #3]
	ldr	x9, [x10]
	ldr	x0, [x11, #8]
	ldr	x10, [x0]
	ldr	x11, [x9]
	ldr	x12, [x10]
	cmp	x11, x12
	b.ne	LBB0_4
; %bb.2:
	ldr	x11, [x9, #8]
	ldr	x12, [x10, #8]
	cmp	x11, x12
	b.ne	LBB0_4
; %bb.3:
	ldr	x9, [x9, #16]
	ldr	x10, [x10, #16]
	cmp	x9, x10
	b.eq	LBB0_13
LBB0_4:
	cmp	x8, w1, sxtw
	b.ne	LBB0_7
; %bb.5:
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_6:
Lloh11:
	adrp	x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w8, w1
	b.eq	LBB0_8
	b	LBB0_13
LBB0_7:
Lloh14:
	adrp	x8, _SNDRV_PCM_STATE_DRAINING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SNDRV_PCM_STATE_DRAINING@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_snd_pcm_stop
	ldr	w1, [x20]
LBB0_8:
	ldr	x8, [x19, #8]
	ldr	x0, [x8, w1, sxtw #3]
	ldr	x8, [x0, #8]
	ldr	x21, [x8]
	bl	_get_setup
	mov	x20, x0
	ldr	x8, [x19, #8]
Lloh17:
	adrp	x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh19:
	ldrsw	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x8, [x8]
	ldr	x19, [x8]
	ldr	x8, [x0]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.9:
Lloh20:
	adrp	x8, _SNDRV_CTL_EVENT_MASK_VALUE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SNDRV_CTL_EVENT_MASK_VALUE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	add	x2, x20, #32
	mov	x0, x19
	bl	_snd_ctl_notify
	ldr	x8, [x21]
	str	x8, [x20]
LBB0_10:
	ldr	x8, [x20, #8]
	ldr	x9, [x21, #8]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.11:
Lloh23:
	adrp	x8, _SNDRV_CTL_EVENT_MASK_VALUE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SNDRV_CTL_EVENT_MASK_VALUE@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	add	x2, x20, #28
	mov	x0, x19
	bl	_snd_ctl_notify
	ldr	x8, [x21, #8]
	str	x8, [x20, #8]
LBB0_12:
	ldr	x8, [x20, #16]
	ldr	x9, [x21, #16]
	cmp	x8, x9
	b.ne	LBB0_14
LBB0_13:
	mov	w0, #0
	b	LBB0_15
LBB0_14:
Lloh26:
	adrp	x8, _SNDRV_CTL_EVENT_MASK_VALUE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SNDRV_CTL_EVENT_MASK_VALUE@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	add	x2, x20, #24
	mov	x0, x19
	bl	_snd_ctl_notify
	mov	w0, #0
	ldr	x8, [x21, #16]
	str	x8, [x20, #16]
LBB0_15:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_CABLE_VALID_BOTH,8,3           ; @CABLE_VALID_BOTH
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,4,2  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_SNDRV_PCM_STREAM_CAPTURE,8,3   ; @SNDRV_PCM_STREAM_CAPTURE
	.comm	_EIO,4,2                        ; @EIO
	.comm	_SNDRV_PCM_STATE_DRAINING,4,2   ; @SNDRV_PCM_STATE_DRAINING
	.comm	_SNDRV_CTL_EVENT_MASK_VALUE,4,2 ; @SNDRV_CTL_EVENT_MASK_VALUE
	.no_dead_strip	_loopback_check_format
.subsections_via_symbols
