	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_audio_init                     ## -- Begin function audio_init
	.p2align	4, 0x90
_audio_init:                            ## @audio_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_audio_initialized@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	je	LBB0_1
## %bb.3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_audio_config@GOTPCREL(%rip), %r12
	movl	$1, (%r12)
	movq	_GPIOA@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_PAL_MODE_INPUT_ANALOG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	$4, %esi
	callq	_palSetPadMode
	movl	(%r14), %edi
	movl	(%rbx), %edx
	movl	$5, %esi
	callq	_palSetPadMode
	movq	_DACD1@GOTPCREL(%rip), %r15
	movq	_dac1cfg1@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_dacStart
	movq	_DACD2@GOTPCREL(%rip), %r14
	movq	_dac1cfg2@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_dacStart
	xorl	%eax, %eax
	callq	_START_CHANNEL_1
	xorl	%eax, %eax
	callq	_START_CHANNEL_2
	movq	_dac_buffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_DAC_BUFFER_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	_dacgrpcfg1@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_dacStartConversion
	movq	_dac_buffer_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	(%rbx), %ecx
	movq	_dacgrpcfg2@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_dacStartConversion
	movl	$1, (%r13)
	cmpl	$0, (%r12)
	je	LBB0_2
## %bb.4:
	movq	_startup_song@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PLAY_SONG                      ## TAILCALL
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_stop_all_notes                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_audio_initialized,4,2          ## @audio_initialized
	.comm	_audio_config,12,2              ## @audio_config
	.comm	_GPIOA,4,2                      ## @GPIOA
	.comm	_PAL_MODE_INPUT_ANALOG,4,2      ## @PAL_MODE_INPUT_ANALOG
	.comm	_DACD1,4,2                      ## @DACD1
	.comm	_dac1cfg1,4,2                   ## @dac1cfg1
	.comm	_DACD2,4,2                      ## @DACD2
	.comm	_dac1cfg2,4,2                   ## @dac1cfg2
	.comm	_dacgrpcfg1,4,2                 ## @dacgrpcfg1
	.comm	_dac_buffer,8,3                 ## @dac_buffer
	.comm	_DAC_BUFFER_SIZE,4,2            ## @DAC_BUFFER_SIZE
	.comm	_dacgrpcfg2,4,2                 ## @dacgrpcfg2
	.comm	_dac_buffer_2,8,3               ## @dac_buffer_2
	.comm	_startup_song,4,2               ## @startup_song
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_audio_init                     ; -- Begin function audio_init
	.p2align	2
_audio_init:                            ; @audio_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x21, _audio_initialized@GOTPAGE
Lloh1:
	ldr	x21, [x21, _audio_initialized@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w8, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh2:
	adrp	x22, _audio_config@GOTPAGE
Lloh3:
	ldr	x22, [x22, _audio_config@GOTPAGEOFF]
	mov	w23, #1
	str	w23, [x22]
Lloh4:
	adrp	x19, _GPIOA@GOTPAGE
Lloh5:
	ldr	x19, [x19, _GPIOA@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh6:
	adrp	x20, _PAL_MODE_INPUT_ANALOG@GOTPAGE
Lloh7:
	ldr	x20, [x20, _PAL_MODE_INPUT_ANALOG@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	w1, #4
	bl	_palSetPadMode
	ldr	w0, [x19]
	ldr	w2, [x20]
	mov	w1, #5
	bl	_palSetPadMode
Lloh8:
	adrp	x19, _DACD1@GOTPAGE
Lloh9:
	ldr	x19, [x19, _DACD1@GOTPAGEOFF]
Lloh10:
	adrp	x1, _dac1cfg1@GOTPAGE
Lloh11:
	ldr	x1, [x1, _dac1cfg1@GOTPAGEOFF]
	mov	x0, x19
	bl	_dacStart
Lloh12:
	adrp	x20, _DACD2@GOTPAGE
Lloh13:
	ldr	x20, [x20, _DACD2@GOTPAGEOFF]
Lloh14:
	adrp	x1, _dac1cfg2@GOTPAGE
Lloh15:
	ldr	x1, [x1, _dac1cfg2@GOTPAGEOFF]
	mov	x0, x20
	bl	_dacStart
	bl	_START_CHANNEL_1
	bl	_START_CHANNEL_2
Lloh16:
	adrp	x8, _dac_buffer@GOTPAGE
Lloh17:
	ldr	x8, [x8, _dac_buffer@GOTPAGEOFF]
Lloh18:
	ldr	x2, [x8]
Lloh19:
	adrp	x24, _DAC_BUFFER_SIZE@GOTPAGE
Lloh20:
	ldr	x24, [x24, _DAC_BUFFER_SIZE@GOTPAGEOFF]
	ldr	w3, [x24]
Lloh21:
	adrp	x1, _dacgrpcfg1@GOTPAGE
Lloh22:
	ldr	x1, [x1, _dacgrpcfg1@GOTPAGEOFF]
	mov	x0, x19
	bl	_dacStartConversion
Lloh23:
	adrp	x8, _dac_buffer_2@GOTPAGE
Lloh24:
	ldr	x8, [x8, _dac_buffer_2@GOTPAGEOFF]
Lloh25:
	ldr	x2, [x8]
	ldr	w3, [x24]
Lloh26:
	adrp	x1, _dacgrpcfg2@GOTPAGE
Lloh27:
	ldr	x1, [x1, _dacgrpcfg2@GOTPAGEOFF]
	mov	x0, x20
	bl	_dacStartConversion
	str	w23, [x21]
	ldr	w8, [x22]
	cbz	w8, LBB0_4
; %bb.3:
Lloh28:
	adrp	x8, _startup_song@GOTPAGE
Lloh29:
	ldr	x8, [x8, _startup_song@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PLAY_SONG
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_stop_all_notes
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_audio_initialized,4,2          ; @audio_initialized
	.comm	_audio_config,12,2              ; @audio_config
	.comm	_GPIOA,4,2                      ; @GPIOA
	.comm	_PAL_MODE_INPUT_ANALOG,4,2      ; @PAL_MODE_INPUT_ANALOG
	.comm	_DACD1,4,2                      ; @DACD1
	.comm	_dac1cfg1,4,2                   ; @dac1cfg1
	.comm	_DACD2,4,2                      ; @DACD2
	.comm	_dac1cfg2,4,2                   ; @dac1cfg2
	.comm	_dacgrpcfg1,4,2                 ; @dacgrpcfg1
	.comm	_dac_buffer,8,3                 ; @dac_buffer
	.comm	_DAC_BUFFER_SIZE,4,2            ; @DAC_BUFFER_SIZE
	.comm	_dacgrpcfg2,4,2                 ; @dacgrpcfg2
	.comm	_dac_buffer_2,8,3               ; @dac_buffer_2
	.comm	_startup_song,4,2               ; @startup_song
.subsections_via_symbols
