	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sound_timer_init               ## -- Begin function sound_timer_init
	.p2align	4, 0x90
_sound_timer_init:                      ## @sound_timer_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_initialized@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	(%rdi), %rcx
	movq	_tmr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpq	(%rdx), %rcx
	jle	LBB0_4
## %bb.2:
	movq	%rdi, (%rax)
	jmp	LBB0_4
LBB0_3:
	movq	%rsi, %r14
	movl	$1, (%rax)
	movq	_tmr@GOTPCREL(%rip), %rax
	movq	%rdi, (%rax)
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_sound_alloc_timerdev
	movl	%eax, %ebx
	cmpl	$-1, %eax
	cmovel	%r15d, %ebx
	movq	_sound_timer@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_strcpy
	movq	_sound_timer_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movq	%r15, (%rax,%rcx,8)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_initialized,4,2                ## @initialized
	.comm	_tmr,8,3                        ## @tmr
	.comm	_sound_timer,4,2                ## @sound_timer
	.comm	_sound_timer_devs,8,3           ## @sound_timer_devs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sound_timer_init               ; -- Begin function sound_timer_init
	.p2align	2
_sound_timer_init:                      ; @sound_timer_init
	.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
Lloh0:
	adrp	x8, _initialized@GOTPAGE
Lloh1:
	ldr	x8, [x8, _initialized@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_3
; %bb.1:
	ldr	x9, [x0]
Lloh2:
	adrp	x8, _tmr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tmr@GOTPAGEOFF]
	ldr	x10, [x8]
	ldr	x10, [x10]
	cmp	x9, x10
	b.le	LBB0_4
; %bb.2:
	str	x0, [x8]
	b	LBB0_4
LBB0_3:
	mov	x19, x1
	mov	w9, #1
	str	w9, [x8]
Lloh4:
	adrp	x8, _tmr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _tmr@GOTPAGEOFF]
Lloh6:
	str	x0, [x8]
	bl	_sound_alloc_timerdev
	cmn	w0, #1
	csel	w20, wzr, w0, eq
Lloh7:
	adrp	x21, _sound_timer@GOTPAGE
Lloh8:
	ldr	x21, [x21, _sound_timer@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x19
	bl	_strcpy
Lloh9:
	adrp	x8, _sound_timer_devs@GOTPAGE
Lloh10:
	ldr	x8, [x8, _sound_timer_devs@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x21, [x8, w20, sxtw #3]
LBB0_4:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_initialized,4,2                ; @initialized
	.comm	_tmr,8,3                        ; @tmr
	.comm	_sound_timer,4,2                ; @sound_timer
	.comm	_sound_timer_devs,8,3           ; @sound_timer_devs
.subsections_via_symbols
