	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Update_Counter
_Update_Counter:                        ## @Update_Counter
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_POKEY_CHAN1@GOTPCREL(%rip), %r9
	movslq	(%r9), %rcx
	btl	%ecx, %edi
	jae	LBB0_6
## %bb.1:
	movq	_POKEY_AUDCTL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	_POKEY_CH1_179@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	movq	_POKEY_AUDF@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%rcx,4), %edx
	testl	%eax, (%rsi)
	je	LBB0_3
## %bb.2:
	addl	$4, %edx
	jmp	LBB0_4
LBB0_3:
	incl	%edx
	movq	_POKEY_Base_mult@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	imull	(%rax), %edx
LBB0_4:
	movq	_POKEY_DivNMax@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%edx, (%rsi,%rcx,4)
	movslq	(%r9), %rcx
	movq	_ANTIC_LINE_C@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	%edx, (%rsi,%rcx,4)
	jge	LBB0_6
## %bb.5:
	movl	%edx, (%rsi,%rcx,4)
LBB0_6:
	movq	_POKEY_CHAN2@GOTPCREL(%rip), %r8
	movslq	(%r8), %rdx
	btl	%edx, %edi
	jae	LBB0_15
## %bb.7:
	movq	_POKEY_AUDCTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movq	_POKEY_CH1_CH2@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_12
## %bb.8:
	movq	_POKEY_CH1_179@GOTPCREL(%rip), %r10
	movq	_POKEY_AUDF@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	movl	(%r11,%rdx,4), %esi
	shll	$8, %esi
	movslq	(%r9), %rax
	movl	(%r11,%rax,4), %eax
	testl	%ecx, (%r10)
	je	LBB0_11
## %bb.9:
	orl	$7, %esi
	addl	%eax, %esi
	jmp	LBB0_10
LBB0_12:
	movq	_POKEY_AUDF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rdx,4), %ecx
	incl	%ecx
	movq	_POKEY_Base_mult@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	imull	(%rax), %ecx
	movq	_POKEY_DivNMax@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ecx, (%rax,%rdx,4)
	jmp	LBB0_13
LBB0_11:
	orl	$1, %esi
	addl	%eax, %esi
	movq	_POKEY_Base_mult@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	imull	(%rax), %esi
LBB0_10:
	movq	_POKEY_DivNMax@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%esi, (%rax,%rdx,4)
LBB0_13:
	movslq	(%r8), %rcx
	movq	_ANTIC_LINE_C@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%edx, (%rax,%rcx,4)
	jge	LBB0_15
## %bb.14:
	movl	%edx, (%rax,%rcx,4)
LBB0_15:
	movq	_POKEY_CHAN4@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	btl	%ecx, %edi
	jae	LBB0_24
## %bb.16:
	movq	_POKEY_AUDCTL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx), %esi
	movq	_POKEY_CH3_CH4@GOTPCREL(%rip), %rdx
	testl	%esi, (%rdx)
	je	LBB0_20
## %bb.17:
	movq	_POKEY_CH3_179@GOTPCREL(%rip), %r8
	movq	_POKEY_AUDF@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_POKEY_CHAN3@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movl	(%rdx,%rdi,4), %edi
	movl	(%rdx,%rcx,4), %edx
	shll	$8, %edx
	testl	%esi, (%r8)
	je	LBB0_19
## %bb.18:
	orl	$7, %edx
	addl	%edi, %edx
	jmp	LBB0_22
LBB0_20:
	movq	_POKEY_AUDF@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%rcx,4), %edx
	incl	%edx
	jmp	LBB0_21
LBB0_19:
	orl	$1, %edx
	addl	%edi, %edx
LBB0_21:
	movq	_POKEY_Base_mult@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	imull	(%rsi), %edx
LBB0_22:
	movq	_POKEY_DivNMax@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	%edx, (%rsi,%rcx,4)
	movslq	(%rax), %rax
	movq	_ANTIC_LINE_C@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, (%rsi,%rax,4)
	jge	LBB0_24
## %bb.23:
	movl	%ecx, (%rsi,%rax,4)
LBB0_24:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POKEY_CHAN1,4,2                ## @POKEY_CHAN1
	.comm	_POKEY_AUDCTL,8,3               ## @POKEY_AUDCTL
	.comm	_POKEY_CH1_179,4,2              ## @POKEY_CH1_179
	.comm	_POKEY_AUDF,8,3                 ## @POKEY_AUDF
	.comm	_POKEY_DivNMax,8,3              ## @POKEY_DivNMax
	.comm	_POKEY_Base_mult,8,3            ## @POKEY_Base_mult
	.comm	_ANTIC_LINE_C,4,2               ## @ANTIC_LINE_C
	.comm	_POKEY_CHAN2,4,2                ## @POKEY_CHAN2
	.comm	_POKEY_CH1_CH2,4,2              ## @POKEY_CH1_CH2
	.comm	_POKEY_CHAN4,4,2                ## @POKEY_CHAN4
	.comm	_POKEY_CH3_CH4,4,2              ## @POKEY_CH3_CH4
	.comm	_POKEY_CH3_179,4,2              ## @POKEY_CH3_179
	.comm	_POKEY_CHAN3,8,3                ## @POKEY_CHAN3
	.no_dead_strip	_Update_Counter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Update_Counter
_Update_Counter:                        ; @Update_Counter
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x11, _POKEY_CHAN1@GOTPAGE
Lloh1:
	ldr	x11, [x11, _POKEY_CHAN1@GOTPAGEOFF]
	ldr	w13, [x11]
	lsr	w14, w0, w13
Lloh2:
	adrp	x10, _POKEY_AUDCTL@GOTPAGE
Lloh3:
	ldr	x10, [x10, _POKEY_AUDCTL@GOTPAGEOFF]
Lloh4:
	adrp	x12, _POKEY_CH1_179@GOTPAGE
Lloh5:
	ldr	x12, [x12, _POKEY_CH1_179@GOTPAGEOFF]
Lloh6:
	adrp	x9, _POKEY_AUDF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _POKEY_AUDF@GOTPAGEOFF]
Lloh8:
	adrp	x8, _ANTIC_LINE_C@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ANTIC_LINE_C@GOTPAGEOFF]
	tbz	w14, #0, LBB0_6
; %bb.1:
	sxtw	x13, w13
	ldr	x14, [x10]
	ldr	w15, [x14]
	ldr	w16, [x12]
	ldr	x14, [x9]
	ldr	w14, [x14, x13, lsl #2]
	tst	w16, w15
	b.eq	LBB0_3
; %bb.2:
	add	w15, w14, #4
	b	LBB0_4
LBB0_3:
Lloh10:
	adrp	x15, _POKEY_Base_mult@GOTPAGE
Lloh11:
	ldr	x15, [x15, _POKEY_Base_mult@GOTPAGEOFF]
Lloh12:
	ldr	x15, [x15]
	ldr	w15, [x15]
	madd	w15, w15, w14, w15
LBB0_4:
Lloh13:
	adrp	x14, _POKEY_DivNMax@GOTPAGE
Lloh14:
	ldr	x14, [x14, _POKEY_DivNMax@GOTPAGEOFF]
Lloh15:
	ldr	x14, [x14]
	str	w15, [x14, x13, lsl #2]
	ldrsw	x13, [x11]
	ldr	w16, [x14, x13, lsl #2]
	ldr	w15, [x8]
	cmp	w16, w15
	b.ge	LBB0_6
; %bb.5:
	str	w15, [x14, x13, lsl #2]
LBB0_6:
Lloh16:
	adrp	x13, _POKEY_CHAN2@GOTPAGE
Lloh17:
	ldr	x13, [x13, _POKEY_CHAN2@GOTPAGEOFF]
	ldr	w14, [x13]
	lsr	w15, w0, w14
	tbz	w15, #0, LBB0_15
; %bb.7:
	sxtw	x14, w14
	ldr	x15, [x10]
	ldr	w15, [x15]
Lloh18:
	adrp	x16, _POKEY_CH1_CH2@GOTPAGE
Lloh19:
	ldr	x16, [x16, _POKEY_CH1_CH2@GOTPAGEOFF]
Lloh20:
	ldr	w16, [x16]
	tst	w16, w15
	b.eq	LBB0_10
; %bb.8:
	ldr	x16, [x9]
	ldr	w17, [x16, x14, lsl #2]
	ldr	w1, [x12]
	lsl	w12, w17, #8
	ldrsw	x11, [x11]
	ldr	w11, [x16, x11, lsl #2]
	tst	w1, w15
	b.eq	LBB0_11
; %bb.9:
	orr	w12, w12, #0x7
	add	w12, w12, w11
	b	LBB0_12
LBB0_10:
	ldr	x11, [x9]
	lsl	x12, x14, #2
	ldr	w11, [x11, x12]
Lloh21:
	adrp	x14, _POKEY_Base_mult@GOTPAGE
Lloh22:
	ldr	x14, [x14, _POKEY_Base_mult@GOTPAGEOFF]
Lloh23:
	ldr	x14, [x14]
	ldr	w14, [x14]
	madd	w14, w14, w11, w14
Lloh24:
	adrp	x11, _POKEY_DivNMax@GOTPAGE
Lloh25:
	ldr	x11, [x11, _POKEY_DivNMax@GOTPAGEOFF]
Lloh26:
	ldr	x11, [x11]
	str	w14, [x11, x12]
	b	LBB0_13
LBB0_11:
	orr	w12, w12, #0x1
	add	w11, w12, w11
Lloh27:
	adrp	x12, _POKEY_Base_mult@GOTPAGE
Lloh28:
	ldr	x12, [x12, _POKEY_Base_mult@GOTPAGEOFF]
Lloh29:
	ldr	x12, [x12]
	ldr	w12, [x12]
	mul	w12, w12, w11
LBB0_12:
Lloh30:
	adrp	x11, _POKEY_DivNMax@GOTPAGE
Lloh31:
	ldr	x11, [x11, _POKEY_DivNMax@GOTPAGEOFF]
Lloh32:
	ldr	x11, [x11]
	str	w12, [x11, x14, lsl #2]
LBB0_13:
	ldrsw	x12, [x13]
	ldr	w14, [x11, x12, lsl #2]
	ldr	w13, [x8]
	cmp	w14, w13
	b.ge	LBB0_15
; %bb.14:
	str	w13, [x11, x12, lsl #2]
LBB0_15:
Lloh33:
	adrp	x11, _POKEY_CHAN4@GOTPAGE
Lloh34:
	ldr	x11, [x11, _POKEY_CHAN4@GOTPAGEOFF]
	ldr	w12, [x11]
	lsr	w13, w0, w12
	tbz	w13, #0, LBB0_24
; %bb.16:
	sxtw	x12, w12
	ldr	x10, [x10]
	ldr	w10, [x10]
Lloh35:
	adrp	x13, _POKEY_CH3_CH4@GOTPAGE
Lloh36:
	ldr	x13, [x13, _POKEY_CH3_CH4@GOTPAGEOFF]
Lloh37:
	ldr	w13, [x13]
	tst	w13, w10
	b.eq	LBB0_19
; %bb.17:
Lloh38:
	adrp	x13, _POKEY_CH3_179@GOTPAGE
Lloh39:
	ldr	x13, [x13, _POKEY_CH3_179@GOTPAGEOFF]
Lloh40:
	ldr	w14, [x13]
	ldr	x13, [x9]
	ldr	w9, [x13, x12, lsl #2]
	lsl	w9, w9, #8
Lloh41:
	adrp	x15, _POKEY_CHAN3@GOTPAGE
Lloh42:
	ldr	x15, [x15, _POKEY_CHAN3@GOTPAGEOFF]
Lloh43:
	ldr	x15, [x15]
	ldr	w13, [x13, x15, lsl #2]
	tst	w14, w10
	b.eq	LBB0_20
; %bb.18:
	orr	w9, w9, #0x7
	add	w10, w9, w13
	b	LBB0_21
LBB0_19:
	ldr	x9, [x9]
	lsl	x10, x12, #2
	ldr	w9, [x9, x10]
Lloh44:
	adrp	x12, _POKEY_Base_mult@GOTPAGE
Lloh45:
	ldr	x12, [x12, _POKEY_Base_mult@GOTPAGEOFF]
Lloh46:
	ldr	x12, [x12]
	ldr	w12, [x12]
	madd	w12, w12, w9, w12
Lloh47:
	adrp	x9, _POKEY_DivNMax@GOTPAGE
Lloh48:
	ldr	x9, [x9, _POKEY_DivNMax@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	str	w12, [x9, x10]
	b	LBB0_22
LBB0_20:
	orr	w9, w9, #0x1
	add	w9, w9, w13
Lloh50:
	adrp	x10, _POKEY_Base_mult@GOTPAGE
Lloh51:
	ldr	x10, [x10, _POKEY_Base_mult@GOTPAGEOFF]
Lloh52:
	ldr	x10, [x10]
	ldr	w10, [x10]
	mul	w10, w10, w9
LBB0_21:
Lloh53:
	adrp	x9, _POKEY_DivNMax@GOTPAGE
Lloh54:
	ldr	x9, [x9, _POKEY_DivNMax@GOTPAGEOFF]
Lloh55:
	ldr	x9, [x9]
	str	w10, [x9, x12, lsl #2]
LBB0_22:
	ldrsw	x10, [x11]
	ldr	w11, [x9, x10, lsl #2]
	ldr	w8, [x8]
	cmp	w11, w8
	b.ge	LBB0_24
; %bb.23:
	str	w8, [x9, x10, lsl #2]
LBB0_24:
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_POKEY_CHAN1,4,2                ; @POKEY_CHAN1
	.comm	_POKEY_AUDCTL,8,3               ; @POKEY_AUDCTL
	.comm	_POKEY_CH1_179,4,2              ; @POKEY_CH1_179
	.comm	_POKEY_AUDF,8,3                 ; @POKEY_AUDF
	.comm	_POKEY_DivNMax,8,3              ; @POKEY_DivNMax
	.comm	_POKEY_Base_mult,8,3            ; @POKEY_Base_mult
	.comm	_ANTIC_LINE_C,4,2               ; @ANTIC_LINE_C
	.comm	_POKEY_CHAN2,4,2                ; @POKEY_CHAN2
	.comm	_POKEY_CH1_CH2,4,2              ; @POKEY_CH1_CH2
	.comm	_POKEY_CHAN4,4,2                ; @POKEY_CHAN4
	.comm	_POKEY_CH3_CH4,4,2              ; @POKEY_CH3_CH4
	.comm	_POKEY_CH3_179,4,2              ; @POKEY_CH3_179
	.comm	_POKEY_CHAN3,8,3                ; @POKEY_CHAN3
	.no_dead_strip	_Update_Counter
.subsections_via_symbols
