	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_S_Update                       ## -- Begin function S_Update
	.p2align	4, 0x90
_S_Update:                              ## @S_Update
	.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	_s_soundStarted@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_12
## %bb.1:
	movq	_s_soundMuted@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_12
## %bb.2:
	movq	_s_show@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$2, (%rax)
	jne	LBB0_11
## %bb.3:
	movq	_MAX_CHANNELS@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.5:
	movq	_s_channels@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	addq	$16, %rbx
	leaq	L_.str.1(%rip), %r14
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	incl	%r13d
	addq	$24, %rbx
	cmpl	%eax, %r13d
	jge	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-16(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-8(%rbx), %rdx
	movq	(%rbx), %rsi
	movq	%rsi, %rdi
	orq	%rdx, %rdi
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rcx), %ecx
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_Com_Printf
	incl	%r12d
	movl	(%r15), %eax
	jmp	LBB0_9
LBB0_12:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Com_DPrintf                    ## TAILCALL
LBB0_4:
	xorl	%r12d, %r12d
LBB0_10:
	movq	_s_paintedtime@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_Com_Printf
LBB0_11:
	xorl	%eax, %eax
	callq	_S_UpdateBackgroundTrack
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_S_Update_                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_s_soundStarted,4,2             ## @s_soundStarted
	.comm	_s_soundMuted,8,3               ## @s_soundMuted
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"not started or muted\n"

	.comm	_s_show,8,3                     ## @s_show
	.comm	_s_channels,8,3                 ## @s_channels
	.comm	_MAX_CHANNELS,4,2               ## @MAX_CHANNELS
L_.str.1:                               ## @.str.1
	.asciz	"%f %f %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"----(%i)---- painted: %i\n"

	.comm	_s_paintedtime,4,2              ## @s_paintedtime
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_S_Update                       ; -- Begin function S_Update
	.p2align	2
_S_Update:                              ; @S_Update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x8, _s_soundStarted@GOTPAGE
Lloh1:
	ldr	x8, [x8, _s_soundStarted@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _s_soundMuted@GOTPAGE
Lloh4:
	ldr	x9, [x9, _s_soundMuted@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	w8, #0
	ccmp	x9, #0, #0, ne
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_Com_DPrintf
LBB0_2:
Lloh8:
	adrp	x8, _s_show@GOTPAGE
Lloh9:
	ldr	x8, [x8, _s_show@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, #2
	b.ne	LBB0_11
; %bb.3:
Lloh11:
	adrp	x21, _MAX_CHANNELS@GOTPAGE
Lloh12:
	ldr	x21, [x21, _MAX_CHANNELS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.4:
	mov	w19, #0
	mov	w22, #0
Lloh13:
	adrp	x9, _s_channels@GOTPAGE
Lloh14:
	ldr	x9, [x9, _s_channels@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	add	x23, x9, #16
Lloh16:
	adrp	x20, l_.str.1@PAGE
Lloh17:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w22, w22, #1
	add	x23, x23, #24
	cmp	w22, w8
	b.ge	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x9, [x23, #-16]
	cbz	x9, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	x2, x1, [x23, #-8]
	orr	x10, x1, x2
	cbz	x10, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x9]
	str	x8, [sp]
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_Com_Printf
	add	w19, w19, #1
	ldr	w8, [x21]
	b	LBB0_5
LBB0_9:
	mov	w19, #0
LBB0_10:
Lloh18:
	adrp	x8, _s_paintedtime@GOTPAGE
Lloh19:
	ldr	x8, [x8, _s_paintedtime@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_Com_Printf
LBB0_11:
	bl	_S_UpdateBackgroundTrack
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_S_Update_
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_s_soundStarted,4,2             ; @s_soundStarted
	.comm	_s_soundMuted,8,3               ; @s_soundMuted
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"not started or muted\n"

	.comm	_s_show,8,3                     ; @s_show
	.comm	_s_channels,8,3                 ; @s_channels
	.comm	_MAX_CHANNELS,4,2               ; @MAX_CHANNELS
l_.str.1:                               ; @.str.1
	.asciz	"%f %f %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"----(%i)---- painted: %i\n"

	.comm	_s_paintedtime,4,2              ; @s_paintedtime
.subsections_via_symbols
