	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_ctl_remove                 ## -- Begin function snd_ctl_remove
	.p2align	4, 0x90
_snd_ctl_remove:                        ## @snd_ctl_remove
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	testq	%rdi, %rdi
	sete	%al
	testq	%rsi, %rsi
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	leaq	12(%r12), %rdi
	callq	_list_del
	movl	(%r12), %eax
	subl	%eax, (%r14)
	movq	4(%r12), %rcx
	movq	%rcx, -48(%rbp)
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	movq	_SNDRV_CTL_EVENT_MASK_REMOVE@GOTPCREL(%rip), %r13
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_snd_ctl_notify
	incl	-44(%rbp)
	incl	-48(%rbp)
	incl	%ebx
	cmpl	(%r12), %ebx
	jb	LBB0_4
LBB0_5:
	movq	%r12, %rdi
	callq	_snd_ctl_free_one
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SNDRV_CTL_EVENT_MASK_REMOVE,4,2 ## @SNDRV_CTL_EVENT_MASK_REMOVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_ctl_remove                 ; -- Begin function snd_ctl_remove
	.p2align	2
_snd_ctl_remove:                        ; @snd_ctl_remove
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
	mov	x19, x1
	mov	x20, x0
	cmp	x0, #0
	ccmp	x1, #0, #4, ne
	cset	w0, eq
	bl	_snd_BUG_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	add	x0, x19, #12
	bl	_list_del
	ldr	w8, [x19]
	ldr	w9, [x20]
	sub	w9, w9, w8
	str	w9, [x20]
	ldur	x9, [x19, #4]
	str	x9, [sp, #8]
	cbz	w8, LBB0_5
; %bb.3:
	mov	w21, #0
Lloh3:
	adrp	x22, _SNDRV_CTL_EVENT_MASK_REMOVE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SNDRV_CTL_EVENT_MASK_REMOVE@GOTPAGEOFF]
	movi.2s	v8, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	add	x2, sp, #8
	mov	x0, x20
	bl	_snd_ctl_notify
	add	w21, w21, #1
	ldr	d0, [sp, #8]
	add.2s	v0, v0, v8
	str	d0, [sp, #8]
	ldr	w8, [x19]
	cmp	w21, w8
	b.lo	LBB0_4
LBB0_5:
	mov	x0, x19
	bl	_snd_ctl_free_one
	mov	w0, #0
LBB0_6:
	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	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SNDRV_CTL_EVENT_MASK_REMOVE,4,2 ; @SNDRV_CTL_EVENT_MASK_REMOVE
.subsections_via_symbols
