	.file	"extr_mod2gbt.c_convert_channel4.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Invalid command at pattern %d, step %d, channel 4: %01X%02X\n"
	.align 8
.LC1:
	.string	"You need to set the volume when using a new note."
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"$"
.LC3:
	.string	"0x"
.LC4:
	.string	",$"
.LC5:
	.string	",0x"
	.text
	.p2align 4
	.globl	convert_channel4
	.type	convert_channel4, @function
convert_channel4:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, r9d
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	r13d, DWORD PTR 80[rsp]
	cmp	edx, 71
	jle	.L2
	mov	r15d, r9d
	or	r15d, r13d
	jne	.L23
.L3:
	lea	rdi, .LC3[rip]
	lea	rsi, .LC2[rip]
	call	out_write_str@PLT
	mov	edi, r15d
	call	out_write_hex@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	cmp	r9d, 12
	je	.L25
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	r8d, r13d
	mov	ecx, ebp
	mov	edx, 4
	lea	rax, 12[rsp]
	push	rax
	.cfi_def_cfa_offset 96
	lea	r9, 16[rsp]
	call	EFFECT_MOD_TO_GB@PLT
	pop	rsi
	.cfi_def_cfa_offset 88
	pop	rdi
	.cfi_def_cfa_offset 80
	cmp	eax, 1
	je	.L26
	xor	r15d, r15d
	mov	ebx, 1
	test	ebp, ebp
	jne	.L27
.L6:
	xor	r12d, r12d
.L7:
	lea	rdi, .LC3[rip]
	lea	rsi, .LC2[rip]
	call	out_write_str@PLT
	mov	edi, ebp
	call	out_write_hex@PLT
	cmp	ebx, 1
	je	.L1
	lea	rdi, .LC5[rip]
	lea	rsi, .LC4[rip]
	call	out_write_str@PLT
	mov	edi, r15d
	call	out_write_hex@PLT
	cmp	ebx, 3
	jne	.L1
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	out_write_str@PLT
	mov	edi, r12d
	call	out_write_hex@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	sub	ecx, 16
	mov	ebx, ecx
	and	ebx, 31
	cmp	r9d, 12
	je	.L28
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	ecx, ebp
	mov	edx, 4
	mov	r8d, r13d
	lea	rax, 12[rsp]
	push	rax
	.cfi_def_cfa_offset 96
	lea	r9, 16[rsp]
	call	EFFECT_MOD_TO_GB@PLT
	pop	rdx
	.cfi_def_cfa_offset 88
	pop	rcx
	.cfi_def_cfa_offset 80
	cmp	eax, 1
	je	.L29
	xor	eax, eax
	mov	r8d, r13d
	mov	ecx, ebp
	mov	edx, r14d
	mov	esi, r12d
	lea	rdi, .LC0[rip]
	call	printf@PLT
	test	ebp, ebp
	je	.L30
	xor	r12d, r12d
	xor	r15d, r15d
	xor	ebp, ebp
	mov	ebx, 1
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L25:
	mov	edi, 5
	call	BIT@PLT
	mov	edi, r13d
	mov	r15d, eax
	call	VOLUME_MOD_TO_GB@PLT
	or	r15d, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L30:
	lea	rdi, .LC1[rip]
	xor	r12d, r12d
	xor	r15d, r15d
	mov	ebx, 1
	call	puts@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L28:
	mov	edi, 7
	xor	r12d, r12d
	call	BIT@PLT
	mov	edi, r13d
	or	eax, ebx
	mov	ebx, 2
	mov	ebp, eax
	call	VOLUME_MOD_TO_GB@PLT
	mov	r15d, eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L29:
	mov	edi, 7
	call	BIT@PLT
	mov	edi, 7
	or	eax, ebx
	mov	ebx, 3
	mov	ebp, eax
	call	BIT@PLT
	or	eax, DWORD PTR [rsp]
	mov	r12d, DWORD PTR 4[rsp]
	mov	r15d, eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L27:
	mov	ecx, ebp
	mov	r8d, r13d
	mov	edx, r14d
	mov	esi, r12d
	lea	rdi, .LC0[rip]
	xor	eax, eax
	xor	ebp, ebp
	call	printf@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L26:
	mov	edi, 6
	mov	ebx, 2
	call	BIT@PLT
	or	eax, DWORD PTR [rsp]
	mov	r15d, DWORD PTR 4[rsp]
	mov	ebp, eax
	jmp	.L6
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	convert_channel4, .-convert_channel4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_mod2gbt.c_convert_channel4.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Invalid command at pattern %d, step %d, channel 4: "
	.ascii	"%01X%02X\012\000"
	.align	2
.LC1:
	.ascii	"You need to set the volume when using a new note.\000"
	.align	2
.LC2:
	.ascii	"$\000"
	.align	2
.LC3:
	.ascii	"0x\000"
	.align	2
.LC4:
	.ascii	",$\000"
	.align	2
.LC5:
	.ascii	",0x\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	convert_channel4
	.syntax unified
	.arm
	.fpu softvfp
	.type	convert_channel4, %function
convert_channel4:
	@ args = 12, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r2, #71
	ldr	r2, .L30
	sub	sp, sp, #32
	ldr	r2, [r2]
	str	r2, [sp, #28]
	mov	r2,#0
	mov	r8, r0
	mov	r6, r1
	ldr	r4, [sp, #60]
	ldr	r7, [sp, #64]
	ble	.L2
	orrs	r5, r4, r7
	bne	.L22
.L3:
	ldr	r1, .L30+4
	ldr	r0, .L30+8
	bl	out_write_str
	mov	r0, r5
	bl	out_write_hex
.L1:
	ldr	r3, .L30
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L22:
	cmp	r4, #12
	beq	.L24
	add	r2, sp, #24
	add	r3, sp, #20
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	mov	r2, #4
	mov	r3, r4
	str	r7, [sp]
	bl	EFFECT_MOD_TO_GB
	cmp	r0, #1
	beq	.L25
	cmp	r4, #0
	moveq	r6, r4
	moveq	r5, #1
	bne	.L26
.L6:
	mov	r7, #0
.L7:
	ldr	r1, .L30+4
	ldr	r0, .L30+8
	bl	out_write_str
	mov	r0, r4
	bl	out_write_hex
	cmp	r5, #1
	beq	.L1
	ldr	r1, .L30+12
	ldr	r0, .L30+16
	bl	out_write_str
	mov	r0, r6
	bl	out_write_hex
	cmp	r5, #3
	bne	.L1
	ldr	r1, .L30+12
	ldr	r0, .L30+16
	bl	out_write_str
	mov	r0, r7
	bl	out_write_hex
	b	.L1
.L2:
	sub	r3, r3, #16
	cmp	r4, #12
	and	r5, r3, #31
	beq	.L27
	add	r2, sp, #24
	add	r3, sp, #20
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	mov	r2, #4
	mov	r3, r4
	str	r7, [sp]
	bl	EFFECT_MOD_TO_GB
	cmp	r0, #1
	beq	.L28
	mov	r2, r6
	mov	r1, r8
	mov	r3, r4
	ldr	r0, .L30+20
	str	r7, [sp]
	bl	printf
	cmp	r4, #0
	beq	.L29
	mov	r7, #0
	mov	r5, #1
	mov	r6, r7
	mov	r4, r7
	b	.L7
.L24:
	mov	r0, #5
	bl	BIT
	mov	r5, r0
	mov	r0, r7
	bl	VOLUME_MOD_TO_GB
	orr	r5, r5, r0
	b	.L3
.L29:
	ldr	r0, .L30+24
	bl	puts
	mov	r7, r4
	mov	r6, r4
	mov	r5, #1
	b	.L7
.L27:
	mov	r0, #7
	bl	BIT
	mov	r4, r0
	mov	r0, r7
	bl	VOLUME_MOD_TO_GB
	orr	r4, r4, r5
	mov	r7, #0
	mov	r6, r0
	mov	r5, #2
	b	.L7
.L28:
	mov	r0, #7
	bl	BIT
	mov	r4, r0
	mov	r0, #7
	bl	BIT
	ldr	r6, [sp, #20]
	orr	r4, r4, r5
	ldr	r7, [sp, #24]
	mov	r5, #3
	orr	r6, r0, r6
	b	.L7
.L26:
	mov	r3, r4
	mov	r4, #0
	mov	r2, r6
	mov	r1, r8
	ldr	r0, .L30+20
	str	r7, [sp]
	bl	printf
	mov	r6, r4
	mov	r5, #1
	b	.L6
.L25:
	mov	r0, #6
	bl	BIT
	ldr	r3, [sp, #20]
	mov	r5, #2
	ldr	r6, [sp, #24]
	orr	r4, r0, r3
	b	.L6
.L23:
	bl	__stack_chk_fail
.L31:
	.align	2
.L30:
	.word	.LC6
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.size	convert_channel4, .-convert_channel4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
