	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sound_alloc_audiodev
_sound_alloc_audiodev:                  ## @sound_alloc_audiodev
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_oss_sound_fops@GOTPCREL(%rip), %rdi
	movl	$-1, %ebx
	movl	$-1, %esi
	callq	_register_sound_dsp
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.1:
	sarl	$4, %eax
	movq	_num_audiodevs@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_3
## %bb.2:
	leal	1(%rax), %edx
	movl	%edx, (%rcx)
LBB0_3:
	movl	%eax, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_oss_sound_fops,4,2             ## @oss_sound_fops
	.comm	_num_audiodevs,4,2              ## @num_audiodevs
	.no_dead_strip	_sound_alloc_audiodev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sound_alloc_audiodev
_sound_alloc_audiodev:                  ; @sound_alloc_audiodev
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x0, _oss_sound_fops@GOTPAGE
Lloh1:
	ldr	x0, [x0, _oss_sound_fops@GOTPAGEOFF]
	mov	w19, #-1
	mov	w1, #-1
	bl	_register_sound_dsp
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	asr	w19, w0, #4
Lloh2:
	adrp	x8, _num_audiodevs@GOTPAGE
Lloh3:
	ldr	x8, [x8, _num_audiodevs@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w19, w9
	b.lt	LBB0_3
; %bb.2:
	add	w9, w19, #1
	str	w9, [x8]
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_oss_sound_fops,4,2             ; @oss_sound_fops
	.comm	_num_audiodevs,4,2              ; @num_audiodevs
	.no_dead_strip	_sound_alloc_audiodev
.subsections_via_symbols
