	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sound_alloc_synthdev           ## -- Begin function sound_alloc_synthdev
	.p2align	4, 0x90
_sound_alloc_synthdev:                  ## @sound_alloc_synthdev
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MAX_SYNTH_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$-1, %eax
	testl	%edx, %edx
	jle	LBB0_4
## %bb.1:
	movq	_synth_devs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rsi,%rcx,8)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	cmpq	%rcx, %rdx
	jne	LBB0_2
LBB0_4:
	popq	%rbp
	retq
LBB0_5:
	movq	_num_synths@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	%ecx, %edx
	jg	LBB0_6
## %bb.7:
	incl	%edx
	movl	%edx, (%rax)
LBB0_6:
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SYNTH_DEV,4,2              ## @MAX_SYNTH_DEV
	.comm	_synth_devs,8,3                 ## @synth_devs
	.comm	_num_synths,4,2                 ## @num_synths
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sound_alloc_synthdev           ; -- Begin function sound_alloc_synthdev
	.p2align	2
_sound_alloc_synthdev:                  ; @sound_alloc_synthdev
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MAX_SYNTH_DEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_SYNTH_DEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x0, #0
Lloh3:
	adrp	x9, _synth_devs@GOTPAGE
Lloh4:
	ldr	x9, [x9, _synth_devs@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x0, lsl #3]
	cbz	x10, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x0, #1
	cmp	x8, x0
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #-1
LBB0_5:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_6:
Lloh6:
	adrp	x8, _num_synths@GOTPAGE
Lloh7:
	ldr	x8, [x8, _num_synths@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, w0
	b.gt	LBB0_5
; %bb.7:
	add	w9, w9, #1
	str	w9, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SYNTH_DEV,4,2              ; @MAX_SYNTH_DEV
	.comm	_synth_devs,8,3                 ; @synth_devs
	.comm	_num_synths,4,2                 ; @num_synths
.subsections_via_symbols
