	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EFFECT_MOD_TO_GB               ## -- Begin function EFFECT_MOD_TO_GB
	.p2align	4, 0x90
_EFFECT_MOD_TO_GB:                      ## @EFFECT_MOD_TO_GB
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%r8d, %r10d
	movl	%ecx, %eax
	movl	%edx, %r8d
	movl	%esi, %edx
	movl	%edi, %esi
	cmpl	$15, %ecx
	ja	LBB0_16
## %bb.1:
	movq	16(%rbp), %rbx
	movl	%eax, %ecx
	leaq	LJTI0_0(%rip), %rdi
	movslq	(%rdi,%rcx,4), %rcx
	addq	%rdi, %rcx
	jmpq	*%rcx
LBB0_2:
	movl	$1, (%r9)
	jmp	LBB0_3
LBB0_16:
	leaq	L_.str.1(%rip), %rdi
	movl	%r8d, %ecx
	movl	%eax, %r8d
	jmp	LBB0_17
LBB0_4:
	movl	$8, (%r9)
	jmp	LBB0_3
LBB0_5:
	leaq	L_.str(%rip), %rdi
	movl	%r8d, %ecx
	movl	$12, %r8d
	jmp	LBB0_17
LBB0_6:
	movl	$9, (%r9)
	movl	%r10d, %eax
	shrl	$4, %eax
	andl	$15, %eax
	leal	(%rax,%rax,4), %eax
	andl	$15, %r10d
	leal	(%r10,%rax,2), %eax
	jmp	LBB0_7
LBB0_8:
	movl	%r10d, %eax
	andb	$-16, %al
	cmpb	$-64, %al
	je	LBB0_11
## %bb.9:
	cmpb	$-128, %al
	jne	LBB0_12
## %bb.10:
	andl	$15, %r10d
	leaq	l_switch.table.EFFECT_MOD_TO_GB(%rip), %rax
	movl	(%rax,%r10,4), %eax
	leaq	l_switch.table.EFFECT_MOD_TO_GB.3(%rip), %rcx
	movl	(%rcx,%r10,4), %edx
	leal	3(%r8), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	decb	%r8b
	movl	%r8d, %ecx
	shll	%cl, %edx
	movl	$0, (%r9)
	orl	%eax, %edx
	movl	%edx, (%rbx)
	movl	$1, %eax
	jmp	LBB0_18
LBB0_13:
	cmpl	$32, %r10d
	jl	LBB0_15
## %bb.14:
	leaq	L_.str.2(%rip), %rdi
	movl	%r8d, %ecx
	movl	$15, %r8d
	jmp	LBB0_17
LBB0_15:
	movl	$10, (%r9)
	movl	%r10d, %edi
	callq	_SPEED_MOD_TO_GB
LBB0_7:
	movl	%eax, (%rbx)
	movl	$1, %eax
	jmp	LBB0_18
LBB0_11:
	movl	$2, (%r9)
	andl	$15, %r10d
LBB0_3:
	movl	%r10d, (%rbx)
	movl	$1, %eax
	jmp	LBB0_18
LBB0_12:
	leaq	L_.str.1(%rip), %rdi
	movl	%r8d, %ecx
	movl	$14, %r8d
LBB0_17:
	movl	%r10d, %r9d
	callq	_printf
	xorl	%eax, %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Strange error at pattern %d, step %d, channel %d: %01X%02X\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unsupported effect at pattern %d, step %d, channel %d: %01X%02X\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unsupported BPM speed effect at pattern %d, step %d, channel %d: %01X%02X\n"

	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.EFFECT_MOD_TO_GB
l_switch.table.EFFECT_MOD_TO_GB:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.p2align	2                               ## @switch.table.EFFECT_MOD_TO_GB.3
l_switch.table.EFFECT_MOD_TO_GB.3:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EFFECT_MOD_TO_GB               ; -- Begin function EFFECT_MOD_TO_GB
	.p2align	2
_EFFECT_MOD_TO_GB:                      ; @EFFECT_MOD_TO_GB
	.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
	mov	x8, x4
	mov	x4, x3
	mov	x3, x2
	mov	x2, x1
	mov	x1, x0
	cmp	w4, #15
	b.hi	LBB0_3
; %bb.1:
	mov	x19, x6
	mov	w9, w4
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	mov	w0, #1
	str	w0, [x5]
	str	w8, [x19]
	b	LBB0_17
LBB0_3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_4:
	mov	w9, #8
	str	w9, [x5]
	b	LBB0_14
LBB0_5:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	w4, #12
	b	LBB0_16
LBB0_6:
	mov	w9, #9
	str	w9, [x5]
	ubfx	w9, w8, #4, #4
	mov	w10, #10
	and	w8, w8, #0xf
	madd	w8, w9, w10, w8
	b	LBB0_14
LBB0_7:
	and	w9, w8, #0xf0
	cmp	w9, #192
	b.eq	LBB0_13
; %bb.8:
	cmp	w9, #128
	b.ne	LBB0_15
; %bb.9:
	and	w8, w8, #0xf
	lsl	x8, x8, #2
Lloh6:
	adrp	x9, l_switch.table.EFFECT_MOD_TO_GB@PAGE
Lloh7:
	add	x9, x9, l_switch.table.EFFECT_MOD_TO_GB@PAGEOFF
	ldr	w9, [x9, x8]
Lloh8:
	adrp	x10, l_switch.table.EFFECT_MOD_TO_GB.3@PAGE
Lloh9:
	add	x10, x10, l_switch.table.EFFECT_MOD_TO_GB.3@PAGEOFF
	ldr	w8, [x10, x8]
	str	wzr, [x5]
	add	w10, w3, #3
	lsl	w9, w9, w10
	sub	w10, w3, #1
	lsl	w8, w8, w10
	orr	w8, w8, w9
	b	LBB0_14
LBB0_10:
	cmp	w8, #32
	b.lt	LBB0_12
; %bb.11:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w4, #15
	b	LBB0_16
LBB0_12:
	mov	w9, #10
	str	w9, [x5]
	mov	x0, x8
	bl	_SPEED_MOD_TO_GB
	str	w0, [x19]
	mov	w0, #1
	b	LBB0_17
LBB0_13:
	mov	w9, #2
	str	w9, [x5]
	and	w8, w8, #0xf
LBB0_14:
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_17
LBB0_15:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w4, #14
LBB0_16:
	mov	x5, x8
	bl	_printf
	mov	w0, #0
LBB0_17:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Strange error at pattern %d, step %d, channel %d: %01X%02X\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unsupported effect at pattern %d, step %d, channel %d: %01X%02X\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unsupported BPM speed effect at pattern %d, step %d, channel %d: %01X%02X\n"

	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.EFFECT_MOD_TO_GB
l_switch.table.EFFECT_MOD_TO_GB:
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.p2align	2                               ; @switch.table.EFFECT_MOD_TO_GB.3
l_switch.table.EFFECT_MOD_TO_GB.3:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1

.subsections_via_symbols
