	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_instrument_zero
_update_instrument_zero:                ## @update_instrument_zero
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edi killed $edi def $rdi
	movq	_ym2413@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax), %r15
	xorl	%eax, %eax
	testb	$32, 8(%r14)
	sete	%al
	leaq	(%rax,%rax,2), %r12
	addq	$6, %r12
	andl	$7, %edi
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$2, %rbx
	decq	%r12
	je	LBB0_33
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	testb	$-16, (%rax,%rbx,2)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_set_mul
	jmp	LBB0_4
LBB0_5:
	movl	$1, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	addq	$2, %rbx
	decq	%r12
	je	LBB0_33
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	testb	$-16, -2(%rax,%rbx,2)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	4(%r15), %esi
	movq	%rbx, %rdi
	callq	_set_mul
	jmp	LBB0_8
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	je	LBB0_33
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	testb	$-16, (%rax,%rbx,4)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	8(%r15), %esi
	movq	%rbx, %rdi
	callq	_set_ksl_tl
	jmp	LBB0_12
LBB0_13:
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	je	LBB0_33
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	testb	$-16, (%rax,%rbx,4)
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	12(%r15), %esi
	movq	%rbx, %rdi
	callq	_set_ksl_wave_fb
	jmp	LBB0_16
LBB0_17:
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	addq	$2, %rbx
	decq	%r12
	je	LBB0_33
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	testb	$-16, (%rax,%rbx,2)
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	16(%r15), %esi
	movq	%rbx, %rdi
	callq	_set_ar_dr
	jmp	LBB0_20
LBB0_21:
	movl	$1, %ebx
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_22 Depth=1
	addq	$2, %rbx
	decq	%r12
	je	LBB0_33
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	testb	$-16, -2(%rax,%rbx,2)
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	20(%r15), %esi
	movq	%rbx, %rdi
	callq	_set_ar_dr
	jmp	LBB0_24
LBB0_25:
	xorl	%ebx, %ebx
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_26 Depth=1
	addq	$2, %rbx
	decq	%r12
	je	LBB0_33
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	testb	$-16, (%rax,%rbx,2)
	jne	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	movl	24(%r15), %esi
	movq	%rbx, %rdi
	callq	_set_sl_rr
	jmp	LBB0_28
LBB0_29:
	movl	$1, %ebx
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_30 Depth=1
	addq	$2, %rbx
	decq	%r12
	je	LBB0_33
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	testb	$-16, -2(%rax,%rbx,2)
	jne	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=1
	movl	28(%r15), %esi
	movq	%rbx, %rdi
	callq	_set_sl_rr
	jmp	LBB0_32
LBB0_33:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_1, LBB0_1-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
LJTI0_0:
	.long	L0_0_set_1
	.long	L0_0_set_5
	.long	L0_0_set_9
	.long	L0_0_set_13
	.long	L0_0_set_17
	.long	L0_0_set_21
	.long	L0_0_set_25
	.long	L0_0_set_29
	.end_data_region
                                        ## -- End function
	.comm	_ym2413,24,3                    ## @ym2413
	.no_dead_strip	_update_instrument_zero
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_instrument_zero
_update_instrument_zero:                ; @update_instrument_zero
	.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	x20, _ym2413@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ym2413@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x21, [x8]
	ldrb	w8, [x20, #8]
	tst	w8, #0x20
	mov	w8, #6
	mov	w9, #9
	csel	x22, x9, x8, eq
	and	w8, w0, #0x7
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_1
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_1:
	mov	x19, #0
	mov	x23, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	add	x19, x19, #2
	cmp	x22, x23
	b.eq	LBB0_33
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	w8, [x8, x23, lsl #2]
	tst	w8, #0xf0
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_set_mul
	b	LBB0_2
LBB0_5:
	mov	x23, #0
	mov	w19, #1
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x23, #1
	add	x19, x19, #2
	cmp	x22, x23
	b.eq	LBB0_33
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	w8, [x8, x23, lsl #2]
	tst	w8, #0xf0
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x21, #4]
	mov	x0, x19
	bl	_set_mul
	b	LBB0_6
LBB0_9:
	mov	x19, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x19, x19, #1
	cmp	x22, x19
	b.eq	LBB0_33
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	w8, [x8, x19, lsl #2]
	tst	w8, #0xf0
	b.ne	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w1, [x21, #8]
	mov	x0, x19
	bl	_set_ksl_tl
	b	LBB0_10
LBB0_13:
	mov	x19, #0
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x19, x19, #1
	cmp	x22, x19
	b.eq	LBB0_33
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	w8, [x8, x19, lsl #2]
	tst	w8, #0xf0
	b.ne	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w1, [x21, #12]
	mov	x0, x19
	bl	_set_ksl_wave_fb
	b	LBB0_14
LBB0_17:
	mov	x19, #0
	mov	x23, #0
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x23, x23, #1
	add	x19, x19, #2
	cmp	x22, x23
	b.eq	LBB0_33
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	w8, [x8, x23, lsl #2]
	tst	w8, #0xf0
	b.ne	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w1, [x21, #16]
	mov	x0, x19
	bl	_set_ar_dr
	b	LBB0_18
LBB0_21:
	mov	x23, #0
	mov	w19, #1
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x23, x23, #1
	add	x19, x19, #2
	cmp	x22, x23
	b.eq	LBB0_33
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	w8, [x8, x23, lsl #2]
	tst	w8, #0xf0
	b.ne	LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	w1, [x21, #20]
	mov	x0, x19
	bl	_set_ar_dr
	b	LBB0_22
LBB0_25:
	mov	x19, #0
	mov	x23, #0
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=1
	add	x23, x23, #1
	add	x19, x19, #2
	cmp	x22, x23
	b.eq	LBB0_33
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	w8, [x8, x23, lsl #2]
	tst	w8, #0xf0
	b.ne	LBB0_26
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	w1, [x21, #24]
	mov	x0, x19
	bl	_set_sl_rr
	b	LBB0_26
LBB0_29:
	mov	x23, #0
	mov	w19, #1
	b	LBB0_31
LBB0_30:                                ;   in Loop: Header=BB0_31 Depth=1
	add	x23, x23, #1
	add	x19, x19, #2
	cmp	x22, x23
	b.eq	LBB0_33
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	w8, [x8, x23, lsl #2]
	tst	w8, #0xf0
	b.ne	LBB0_30
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=1
	ldr	w1, [x21, #28]
	mov	x0, x19
	bl	_set_sl_rr
	b	LBB0_30
LBB0_33:
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_13-LBB0_1)>>2
	.byte	(LBB0_17-LBB0_1)>>2
	.byte	(LBB0_21-LBB0_1)>>2
	.byte	(LBB0_25-LBB0_1)>>2
	.byte	(LBB0_29-LBB0_1)>>2
                                        ; -- End function
	.comm	_ym2413,24,3                    ; @ym2413
	.no_dead_strip	_update_instrument_zero
.subsections_via_symbols
