	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ctl_dev_register
_snd_ctl_dev_register:                  ## @snd_ctl_dev_register
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	(%rdi), %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movl	(%rbx), %r14d
	testl	%r14d, %r14d
	sets	%al
	movq	_SNDRV_CARDS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r14d
	setge	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_sprintf
	movq	_SNDRV_DEVICE_TYPE_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_snd_ctl_f_ops@GOTPCREL(%rip), %rcx
	movq	%rbx, %rsi
	movl	$-1, %edx
	movq	%rbx, %r8
	movq	%r15, %r9
	callq	_snd_register_device
	movl	%eax, %ecx
	sarl	$31, %eax
	andl	%ecx, %eax
	jmp	LBB0_4
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_SNDRV_CARDS,4,2                ## @SNDRV_CARDS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"controlC%i"

	.comm	_SNDRV_DEVICE_TYPE_CONTROL,4,2  ## @SNDRV_DEVICE_TYPE_CONTROL
	.comm	_snd_ctl_f_ops,4,2              ## @snd_ctl_f_ops
	.no_dead_strip	_snd_ctl_dev_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ctl_dev_register
_snd_ctl_dev_register:                  ; @snd_ctl_dev_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x19, [x0]
	cmp	x19, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w20, [x19]
	cmp	w20, #0
Lloh3:
	adrp	x8, _SNDRV_CARDS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNDRV_CARDS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ccmp	w20, w8, #0, ge
	cset	w0, ge
	bl	_snd_BUG_ON
	cbz	x0, LBB0_5
LBB0_2:
Lloh6:
	adrp	x8, _ENXIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldr	x8, [sp, #24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	x2, x20
	bl	_sprintf
Lloh14:
	adrp	x8, _SNDRV_DEVICE_TYPE_CONTROL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SNDRV_DEVICE_TYPE_CONTROL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x3, _snd_ctl_f_ops@GOTPAGE
Lloh18:
	ldr	x3, [x3, _snd_ctl_f_ops@GOTPAGEOFF]
	add	x5, sp, #8
	mov	x1, x19
	mov	w2, #-1
	mov	x4, x19
	bl	_snd_register_device
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	b	LBB0_3
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_SNDRV_CARDS,4,2                ; @SNDRV_CARDS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"controlC%i"

	.comm	_SNDRV_DEVICE_TYPE_CONTROL,4,2  ; @SNDRV_DEVICE_TYPE_CONTROL
	.comm	_snd_ctl_f_ops,4,2              ; @snd_ctl_f_ops
	.no_dead_strip	_snd_ctl_dev_register
.subsections_via_symbols
