	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function loopback_open
_loopback_open:                         ## @loopback_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	%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, %rbx
	movq	16(%rdi), %r14
	movq	24(%rdi), %r15
	callq	_get_cable_index
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%r14, 24(%rax)
	movq	%rbx, 16(%rax)
	movq	%rax, %rdi
	addq	$8, %rdi
	movq	_loopback_timer_function@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdx
	callq	_setup_timer
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rax
	movslq	%r12d, %r14
	movq	(%rax,%r14,8), %r12
	testq	%r12, %r12
	jne	LBB0_6
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movq	%rax, %rdi
	addq	$16, %rdi
	callq	_spin_lock_init
	movq	_loopback_pcm_hardware@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%r12, (%rax,%r14,8)
LBB0_6:
	movq	%r12, (%r13)
	movq	8(%r12), %rax
	movq	8(%rbx), %rcx
	movq	%r13, (%rax,%rcx,8)
	movq	_SNDRV_PCM_HW_PARAM_PERIODS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_snd_pcm_hw_constraint_integer
	movq	_SNDRV_PCM_HW_PARAM_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_rule_format@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$-1, (%rsp)
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r15, %r8
	movl	%edx, %r9d
	callq	_snd_pcm_hw_rule_add
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	_SNDRV_PCM_HW_PARAM_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_rule_rate@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$-1, (%rsp)
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r15, %r8
	movl	%edx, %r9d
	callq	_snd_pcm_hw_rule_add
	testl	%eax, %eax
	js	LBB0_7
## %bb.9:
	movq	_SNDRV_PCM_HW_PARAM_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_rule_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$-1, (%rsp)
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r15, %r8
	movl	%edx, %r9d
	callq	_snd_pcm_hw_rule_add
	movl	%eax, %ebx
	testl	%eax, %eax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	js	LBB0_14
## %bb.10:
	movq	%r13, 16(%r15)
	movq	_loopback_runtime_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	%r13, %rdi
	callq	_get_notify
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_loopback_pcm_hardware@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_13
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_7:
	movl	%eax, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_4:
	movq	%r13, %rdi
	callq	_kfree
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_12:
	movq	(%r12), %rax
LBB0_13:
	movq	%rax, (%r15)
LBB0_14:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_loopback_timer_function,4,2    ## @loopback_timer_function
	.comm	_loopback_pcm_hardware,8,3      ## @loopback_pcm_hardware
	.comm	_SNDRV_PCM_HW_PARAM_PERIODS,4,2 ## @SNDRV_PCM_HW_PARAM_PERIODS
	.comm	_SNDRV_PCM_HW_PARAM_FORMAT,4,2  ## @SNDRV_PCM_HW_PARAM_FORMAT
	.comm	_rule_format,4,2                ## @rule_format
	.comm	_SNDRV_PCM_HW_PARAM_RATE,4,2    ## @SNDRV_PCM_HW_PARAM_RATE
	.comm	_rule_rate,4,2                  ## @rule_rate
	.comm	_SNDRV_PCM_HW_PARAM_CHANNELS,4,2 ## @SNDRV_PCM_HW_PARAM_CHANNELS
	.comm	_rule_channels,4,2              ## @rule_channels
	.comm	_loopback_runtime_free,4,2      ## @loopback_runtime_free
	.no_dead_strip	_loopback_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function loopback_open
_loopback_open:                         ; @loopback_open
	.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	x23, x0
	ldp	x19, x20, [x0, #16]
	bl	_get_cable_index
	mov	x24, x0
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.1:
	mov	x21, x0
	stp	x23, x19, [x0, #16]
	add	x0, x0, #8
Lloh2:
	adrp	x8, _loopback_timer_function@GOTPAGE
Lloh3:
	ldr	x8, [x8, _loopback_timer_function@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_setup_timer
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x22, [x8, w24, sxtw #3]
	cbnz	x22, LBB0_4
; %bb.2:
	ldr	w1, [x25]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.3:
	mov	x22, x0
	sxtw	x24, w24
	add	x0, x0, #16
	bl	_spin_lock_init
Lloh5:
	adrp	x8, _loopback_pcm_hardware@GOTPAGE
Lloh6:
	ldr	x8, [x8, _loopback_pcm_hardware@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x22]
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	ldr	x8, [x8, x9, lsl #3]
	str	x22, [x8, x24, lsl #3]
LBB0_4:
	str	x22, [x21]
	ldr	x8, [x22, #8]
	ldr	x9, [x23, #8]
	str	x21, [x8, x9, lsl #3]
Lloh8:
	adrp	x8, _SNDRV_PCM_HW_PARAM_PERIODS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_PERIODS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_snd_pcm_hw_constraint_integer
Lloh11:
	adrp	x8, _SNDRV_PCM_HW_PARAM_FORMAT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_FORMAT@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _rule_format@GOTPAGE
Lloh15:
	ldr	x8, [x8, _rule_format@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w1, #0
	mov	x4, x20
	mov	x5, x2
	mov	w6, #-1
	bl	_snd_pcm_hw_rule_add
	tbnz	w0, #31, LBB0_9
; %bb.5:
Lloh17:
	adrp	x8, _SNDRV_PCM_HW_PARAM_RATE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_RATE@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x8, _rule_rate@GOTPAGE
Lloh21:
	ldr	x8, [x8, _rule_rate@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w1, #0
	mov	x4, x20
	mov	x5, x2
	mov	w6, #-1
	bl	_snd_pcm_hw_rule_add
	tbnz	w0, #31, LBB0_9
; %bb.6:
Lloh23:
	adrp	x8, _SNDRV_PCM_HW_PARAM_CHANNELS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_CHANNELS@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x8, _rule_channels@GOTPAGE
Lloh27:
	ldr	x8, [x8, _rule_channels@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w1, #0
	mov	x4, x20
	mov	x5, x2
	mov	w6, #-1
	bl	_snd_pcm_hw_rule_add
	mov	x23, x0
	tbnz	w0, #31, LBB0_14
; %bb.7:
	str	x21, [x20, #16]
Lloh29:
	adrp	x8, _loopback_runtime_free@GOTPAGE
Lloh30:
	ldr	x8, [x8, _loopback_runtime_free@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	mov	x0, x21
	bl	_get_notify
	cbz	x0, LBB0_12
; %bb.8:
Lloh32:
	adrp	x8, _loopback_pcm_hardware@GOTPAGE
Lloh33:
	ldr	x8, [x8, _loopback_pcm_hardware@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	b	LBB0_13
LBB0_9:
	mov	x23, x0
	b	LBB0_14
LBB0_10:
	mov	x0, x21
	bl	_kfree
LBB0_11:
Lloh35:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_14
LBB0_12:
	ldr	x8, [x22]
LBB0_13:
	str	x8, [x20]
LBB0_14:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x23
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_loopback_timer_function,4,2    ; @loopback_timer_function
	.comm	_loopback_pcm_hardware,8,3      ; @loopback_pcm_hardware
	.comm	_SNDRV_PCM_HW_PARAM_PERIODS,4,2 ; @SNDRV_PCM_HW_PARAM_PERIODS
	.comm	_SNDRV_PCM_HW_PARAM_FORMAT,4,2  ; @SNDRV_PCM_HW_PARAM_FORMAT
	.comm	_rule_format,4,2                ; @rule_format
	.comm	_SNDRV_PCM_HW_PARAM_RATE,4,2    ; @SNDRV_PCM_HW_PARAM_RATE
	.comm	_rule_rate,4,2                  ; @rule_rate
	.comm	_SNDRV_PCM_HW_PARAM_CHANNELS,4,2 ; @SNDRV_PCM_HW_PARAM_CHANNELS
	.comm	_rule_channels,4,2              ; @rule_channels
	.comm	_loopback_runtime_free,4,2      ; @loopback_runtime_free
	.no_dead_strip	_loopback_open
.subsections_via_symbols
