	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ctl_open
_snd_ctl_open:                          ## @snd_ctl_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	%rsi, %r14
	movq	%rdi, %rbx
	callq	_nonseekable_open
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_iminor
	movq	_SNDRV_DEVICE_TYPE_CONTROL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_snd_lookup_minor_data
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_snd_card_file_add
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	movl	(%r15), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.12:
	movq	%rax, %rbx
	leaq	32(%rax), %rdi
	callq	_INIT_LIST_HEAD
	leaq	28(%rbx), %rdi
	callq	_init_waitqueue_head
	leaq	24(%rbx), %rdi
	callq	_spin_lock_init
	movq	%r15, 16(%rbx)
	movq	$-1, (%rbx)
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	%rbx, (%r14)
	leaq	4(%r15), %r14
	movq	%r14, %rdi
	callq	_write_lock_irqsave
	addq	$8, %rbx
	addq	$8, %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_list_add_tail
	movq	%r14, %rdi
	callq	_write_unlock_irqrestore
	xorl	%r12d, %r12d
	jmp	LBB0_11
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_10
LBB0_1:
	movl	%eax, %r12d
	jmp	LBB0_11
LBB0_6:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_9
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r15), %edi
	callq	_module_put
LBB0_9:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_snd_card_file_remove
LBB0_10:
	negl	%r12d
LBB0_11:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_DEVICE_TYPE_CONTROL,4,2  ## @SNDRV_DEVICE_TYPE_CONTROL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_current,8,3                    ## @current
	.no_dead_strip	_snd_ctl_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ctl_open
_snd_ctl_open:                          ; @snd_ctl_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	x19, x1
	mov	x20, x0
	bl	_nonseekable_open
	tbnz	w0, #31, LBB0_11
; %bb.1:
	mov	x0, x20
	bl	_iminor
Lloh0:
	adrp	x8, _SNDRV_DEVICE_TYPE_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_DEVICE_TYPE_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_snd_lookup_minor_data
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	mov	x1, x19
	bl	_snd_card_file_add
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldr	w0, [x20]
	bl	_try_module_get
	cbz	w0, LBB0_7
; %bb.4:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.5:
	mov	x21, x0
	add	x0, x0, #32
	bl	_INIT_LIST_HEAD
	add	x0, x21, #28
	bl	_init_waitqueue_head
	add	x0, x21, #24
	bl	_spin_lock_init
	str	x20, [x21, #16]
	movi.2d	v0, #0xffffffffffffffff
Lloh6:
	adrp	x8, _current@GOTPAGE
Lloh7:
	ldr	x8, [x8, _current@GOTPAGEOFF]
	str	d0, [x21]
Lloh8:
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w8, [x21, #12]
	str	x21, [x19]
	add	x19, x20, #4
	mov	x0, x19
	bl	_write_lock_irqsave
	add	x0, x21, #8
	add	x1, x20, #8
	bl	_list_add_tail
	mov	x0, x19
	bl	_write_unlock_irqrestore
	mov	w0, #0
	b	LBB0_11
LBB0_6:
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	b	LBB0_10
LBB0_7:
Lloh12:
	adrp	x8, _EFAULT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
	b	LBB0_9
LBB0_8:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w21, [x8]
	ldr	w0, [x20]
	bl	_module_put
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	bl	_snd_card_file_remove
LBB0_10:
	neg	w0, w21
LBB0_11:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_DEVICE_TYPE_CONTROL,4,2  ; @SNDRV_DEVICE_TYPE_CONTROL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_current,8,3                    ; @current
	.no_dead_strip	_snd_ctl_open
.subsections_via_symbols
