	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_dac_audio_timer
_sh_dac_audio_timer:                    ## @sh_dac_audio_timer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_empty@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_1
LBB0_5:
	movq	_HRTIMER_NORESTART@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	_buffer_begin@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_CONFIG_SOUND_SH_DAC_AUDIO_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sh_dac_output
	movq	(%r14), %rax
	addq	$4, %rax
	movq	_data_buffer@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_BUFFER_SIZE@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	leaq	(%rcx,%rdx,4), %rdx
	cmpq	%rdx, %rax
	cmoveq	%rcx, %rax
	movq	%rax, (%r14)
	movq	_buffer_end@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.3:
	cmpl	$0, (%rbx)
	jne	LBB0_5
## %bb.4:
	movq	_wakeups_per_second@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HRTIMER_MODE_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_hrtimer@GOTPCREL(%rip), %rdi
	callq	_hrtimer_start
	jmp	LBB0_5
LBB0_2:
	movl	$1, (%rbx)
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_empty,4,2                      ## @empty
	.comm	_buffer_begin,8,3               ## @buffer_begin
	.comm	_CONFIG_SOUND_SH_DAC_AUDIO_CHANNEL,4,2 ## @CONFIG_SOUND_SH_DAC_AUDIO_CHANNEL
	.comm	_data_buffer,8,3                ## @data_buffer
	.comm	_BUFFER_SIZE,4,2                ## @BUFFER_SIZE
	.comm	_buffer_end,8,3                 ## @buffer_end
	.comm	_hrtimer,4,2                    ## @hrtimer
	.comm	_wakeups_per_second,4,2         ## @wakeups_per_second
	.comm	_HRTIMER_MODE_REL,4,2           ## @HRTIMER_MODE_REL
	.comm	_HRTIMER_NORESTART,4,2          ## @HRTIMER_NORESTART
	.no_dead_strip	_sh_dac_audio_timer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_dac_audio_timer
_sh_dac_audio_timer:                    ; @sh_dac_audio_timer
	.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	x19, _empty@GOTPAGE
Lloh1:
	ldr	x19, [x19, _empty@GOTPAGEOFF]
	ldr	w8, [x19]
	cbz	w8, LBB0_2
LBB0_1:
Lloh2:
	adrp	x8, _HRTIMER_NORESTART@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HRTIMER_NORESTART@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh5:
	adrp	x20, _buffer_begin@GOTPAGE
Lloh6:
	ldr	x20, [x20, _buffer_begin@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh7:
	adrp	x8, _CONFIG_SOUND_SH_DAC_AUDIO_CHANNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CONFIG_SOUND_SH_DAC_AUDIO_CHANNEL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_sh_dac_output
	ldr	x8, [x20]
	add	x8, x8, #4
Lloh10:
	adrp	x9, _data_buffer@GOTPAGE
Lloh11:
	ldr	x9, [x9, _data_buffer@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
Lloh13:
	adrp	x10, _BUFFER_SIZE@GOTPAGE
Lloh14:
	ldr	x10, [x10, _BUFFER_SIZE@GOTPAGEOFF]
Lloh15:
	ldrsw	x10, [x10]
	add	x10, x9, x10, lsl #2
	cmp	x8, x10
	csel	x8, x9, x8, eq
	str	x8, [x20]
Lloh16:
	adrp	x9, _buffer_end@GOTPAGE
Lloh17:
	ldr	x9, [x9, _buffer_end@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.3:
	ldr	w8, [x19]
	cbnz	w8, LBB0_1
; %bb.4:
Lloh19:
	adrp	x8, _wakeups_per_second@GOTPAGE
Lloh20:
	ldr	x8, [x8, _wakeups_per_second@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _HRTIMER_MODE_REL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _HRTIMER_MODE_REL@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
Lloh25:
	adrp	x0, _hrtimer@GOTPAGE
Lloh26:
	ldr	x0, [x0, _hrtimer@GOTPAGEOFF]
	bl	_hrtimer_start
	b	LBB0_1
LBB0_5:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_empty,4,2                      ; @empty
	.comm	_buffer_begin,8,3               ; @buffer_begin
	.comm	_CONFIG_SOUND_SH_DAC_AUDIO_CHANNEL,4,2 ; @CONFIG_SOUND_SH_DAC_AUDIO_CHANNEL
	.comm	_data_buffer,8,3                ; @data_buffer
	.comm	_BUFFER_SIZE,4,2                ; @BUFFER_SIZE
	.comm	_buffer_end,8,3                 ; @buffer_end
	.comm	_hrtimer,4,2                    ; @hrtimer
	.comm	_wakeups_per_second,4,2         ; @wakeups_per_second
	.comm	_HRTIMER_MODE_REL,4,2           ; @HRTIMER_MODE_REL
	.comm	_HRTIMER_NORESTART,4,2          ; @HRTIMER_NORESTART
	.no_dead_strip	_sh_dac_audio_timer
.subsections_via_symbols
