	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	%rsi, %r14
	movl	%edi, %r15d
	leaq	L_str.51(%rip), %r12
	movq	%r12, %rdi
	callq	_puts
	leaq	L_str.50(%rip), %rbx
	movq	%rbx, %rdi
	callq	_puts
	leaq	L_str.43(%rip), %rdi
	callq	_puts
	movq	%rbx, %rdi
	callq	_puts
	movq	%rbx, %rdi
	callq	_puts
	leaq	L_str.46(%rip), %rdi
	callq	_puts
	leaq	L_str.47(%rip), %rdi
	callq	_puts
	movq	%rbx, %rdi
	callq	_puts
	leaq	L_str.49(%rip), %rdi
	callq	_puts
	movq	%rbx, %rdi
	callq	_puts
	movq	%r12, %rdi
	callq	_puts
	movl	$10, %edi
	callq	_putchar
	movl	%r15d, %eax
	andl	$-2, %eax
	cmpl	$4, %eax
	jne	LBB0_1
## %bb.2:
	movq	_label_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	16(%r14), %rsi
	callq	_strcpy
	movq	24(%r14), %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	24(%r14), %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	callq	_print_usage
	movl	$-1, %ebx
LBB0_27:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	$1, %eax
	jmp	LBB0_6
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	movq	_output_asm@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_DEFAULT_ROM_BANK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_current_output_bank@GOTPCREL(%rip), %r13
	movl	%eax, (%r13)
	cmpl	$5, %r15d
	jne	LBB0_10
## %bb.7:
	movq	32(%r14), %rdi
	leaq	L_.str.9(%rip), %rsi
	movq	_current_output_bank@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.9:
	movl	(%rbx), %esi
	leaq	L_.str.11(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_10:
	movq	8(%r14), %rdi
	callq	_load_file
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %r12
	movq	8(%r14), %rsi
	leaq	L_.str.12(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	40(%r12), %edi
	leaq	L_.str.13(%rip), %rsi
	movl	$4, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.28:
	leaq	L_str.52(%rip), %rdi
	callq	_puts
	movl	$-3, %ebx
	jmp	LBB0_27
LBB0_11:
	movl	$-2, %ebx
	jmp	LBB0_27
LBB0_8:
	movq	32(%r14), %rsi
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	xorl	%eax, %eax
	callq	_print_usage
	movl	$-2, %ebx
	jmp	LBB0_27
LBB0_13:
	leaq	L_str.53(%rip), %rdi
	callq	_puts
	leaq	L_.str.16(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	cmpq	$20, %rbx
	je	LBB0_17
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	testl	%edi, %edi
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	callq	_putchar
	jmp	LBB0_16
LBB0_17:
	leaq	L_str.54(%rip), %rdi
	callq	_puts
	leaq	L_.str.19(%rip), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%rbx
	cmpq	$31, %rbx
	je	LBB0_21
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rax
	movq	(%rax,%rbx,8), %rdx
	cmpb	$0, (%rdx)
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_20
LBB0_21:
	movl	$10, %edi
	callq	_putchar
	movq	8(%r12), %rax
	movdqu	(%rax), %xmm0
	movdqu	16(%rax), %xmm1
	movdqu	32(%rax), %xmm2
	pmaxsd	%xmm0, %xmm2
	movdqu	48(%rax), %xmm0
	pmaxsd	%xmm1, %xmm0
	movdqu	64(%rax), %xmm1
	movdqu	80(%rax), %xmm3
	movdqu	96(%rax), %xmm4
	pmaxsd	%xmm1, %xmm4
	pmaxsd	%xmm2, %xmm4
	movdqu	112(%rax), %xmm1
	pmaxsd	%xmm3, %xmm1
	pmaxsd	%xmm0, %xmm1
	movdqu	128(%rax), %xmm0
	movdqu	144(%rax), %xmm2
	movdqu	160(%rax), %xmm3
	pmaxsd	%xmm0, %xmm3
	movdqu	176(%rax), %xmm0
	pmaxsd	%xmm2, %xmm0
	movdqu	192(%rax), %xmm2
	pmaxsd	%xmm3, %xmm2
	pmaxsd	%xmm4, %xmm2
	movdqu	208(%rax), %xmm3
	pmaxsd	%xmm0, %xmm3
	pmaxsd	%xmm1, %xmm3
	movdqu	224(%rax), %xmm0
	movdqu	240(%rax), %xmm1
	movdqu	256(%rax), %xmm4
	pmaxsd	%xmm0, %xmm4
	movdqu	272(%rax), %xmm0
	pmaxsd	%xmm1, %xmm0
	movdqu	288(%rax), %xmm1
	pmaxsd	%xmm4, %xmm1
	movdqu	304(%rax), %xmm4
	pmaxsd	%xmm0, %xmm4
	movdqu	320(%rax), %xmm0
	pmaxsd	%xmm1, %xmm0
	pmaxsd	%xmm2, %xmm0
	movdqu	336(%rax), %xmm1
	pmaxsd	%xmm4, %xmm1
	pmaxsd	%xmm3, %xmm1
	movdqu	352(%rax), %xmm2
	movdqu	368(%rax), %xmm3
	movdqu	384(%rax), %xmm4
	pmaxsd	%xmm2, %xmm4
	movdqu	400(%rax), %xmm2
	pmaxsd	%xmm3, %xmm2
	movdqu	416(%rax), %xmm3
	pmaxsd	%xmm4, %xmm3
	movdqu	432(%rax), %xmm4
	pmaxsd	%xmm2, %xmm4
	movdqu	448(%rax), %xmm2
	pmaxsd	%xmm3, %xmm2
	movdqu	464(%rax), %xmm3
	pmaxsd	%xmm4, %xmm3
	movdqu	480(%rax), %xmm4
	pmaxsd	%xmm2, %xmm4
	pmaxsd	%xmm0, %xmm4
	movdqu	496(%rax), %xmm0
	pmaxsd	%xmm3, %xmm0
	pmaxsd	%xmm1, %xmm0
	pmaxsd	%xmm4, %xmm0
	pxor	%xmm1, %xmm1
	pmaxsd	%xmm0, %xmm1
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	pmaxsd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	pmaxsd	%xmm0, %xmm1
	movd	%xmm1, %r14d
	incl	%r14d
	leaq	L_.str.20(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_printf
	xorl	%eax, %eax
	callq	_out_open
	leaq	L_.str.21(%rip), %rdi
	leaq	L_.str.22(%rip), %rsi
	callq	_out_write_str
	leaq	L_.str.23(%rip), %rdi
	leaq	L_.str.24(%rip), %rsi
	callq	_out_write_str
	movq	_label_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.25(%rip), %rbx
	movq	%rbx, %rdi
	callq	_out_write_str
	leaq	L_.str.26(%rip), %rsi
	movq	%rbx, %rdi
	callq	_out_write_str
	movl	(%r13), %edi
	callq	_out_write_dec
	leaq	L_.str.27(%rip), %rdi
	leaq	L_.str.28(%rip), %rsi
	callq	_out_write_str
	leaq	L_str.55(%rip), %rdi
	callq	_puts
	leaq	L_.str.30(%rip), %r15
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	24(%r12), %rdi
	addq	%r13, %rdi
	movl	%ebx, %esi
	callq	_convert_pattern
	incq	%rbx
	addq	$4, %r13
	cmpq	%rbx, %r14
	jne	LBB0_22
## %bb.23:
	leaq	L_str.56(%rip), %rdi
	callq	_puts
	leaq	L_.str.32(%rip), %rdi
	leaq	L_.str.25(%rip), %rsi
	callq	_out_write_str
	movq	_label_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, %rsi
	callq	_out_write_str
	leaq	L_.str.33(%rip), %rdi
	leaq	L_.str.34(%rip), %rsi
	callq	_out_write_str
	cmpl	$0, 16(%r12)
	jle	LBB0_26
## %bb.24:
	xorl	%r14d, %r14d
	leaq	L_.str.36(%rip), %r15
	leaq	L_.str.37(%rip), %rbx
	leaq	L_.str.6(%rip), %r13
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	leaq	L_.str.35(%rip), %rdi
	movq	%r15, %rsi
	callq	_out_write_str
	movq	_label_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, %rsi
	callq	_out_write_str
	movq	8(%r12), %rax
	movl	(%rax,%r14,4), %edi
	callq	_out_write_dec
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_out_write_str
	incq	%r14
	movslq	16(%r12), %rax
	cmpq	%rax, %r14
	jl	LBB0_25
LBB0_26:
	leaq	L_.str.38(%rip), %rdi
	leaq	L_.str.39(%rip), %rsi
	callq	_out_write_str
	leaq	L_.str.40(%rip), %rdi
	leaq	L_.str.27(%rip), %rsi
	callq	_out_write_str
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_out_close
	leaq	L_str.57(%rip), %rdi
	callq	_puts
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str.6:                               ## @.str.6
	.asciz	"\n"

	.comm	_label_name,8,3                 ## @label_name
L_.str.7:                               ## @.str.7
	.asciz	"-a"

	.comm	_output_asm,4,2                 ## @output_asm
L_.str.8:                               ## @.str.8
	.asciz	"-c"

	.comm	_DEFAULT_ROM_BANK,4,2           ## @DEFAULT_ROM_BANK
	.comm	_current_output_bank,4,2        ## @current_output_bank
L_.str.9:                               ## @.str.9
	.asciz	"%d"

L_.str.10:                              ## @.str.10
	.asciz	"Invalid bank: %s\n\n"

L_.str.11:                              ## @.str.11
	.asciz	"Output to bank: %d\n"

L_.str.12:                              ## @.str.12
	.asciz	"\n%s loaded!\n"

L_.str.13:                              ## @.str.13
	.asciz	"M.K."

L_.str.16:                              ## @.str.16
	.asciz	"\nSong name: "

L_.str.19:                              ## @.str.19
	.asciz	"%d: %s\n"

L_.str.20:                              ## @.str.20
	.asciz	"Number of patterns: %d\n"

L_.str.21:                              ## @.str.21
	.asciz	"\n// File created by mod2gbt\n\n"

L_.str.22:                              ## @.str.22
	.asciz	"\n; File created by mod2gbt\n\n"

L_.str.23:                              ## @.str.23
	.asciz	"#pragma bank="

L_.str.24:                              ## @.str.24
	.asciz	"\tSECTION \""

L_.str.25:                              ## @.str.25
	.space	1

L_.str.26:                              ## @.str.26
	.asciz	"\", DATA, BANK["

L_.str.27:                              ## @.str.27
	.asciz	"\n\n"

L_.str.28:                              ## @.str.28
	.asciz	"]\n\n"

L_.str.30:                              ## @.str.30
	.asciz	"Pattern %d...\n"

L_.str.32:                              ## @.str.32
	.asciz	"const unsigned char * "

L_.str.33:                              ## @.str.33
	.asciz	"_Data[] = {\n"

L_.str.34:                              ## @.str.34
	.asciz	"_Data::\n"

L_.str.35:                              ## @.str.35
	.asciz	"    "

L_.str.36:                              ## @.str.36
	.asciz	"    DW  "

L_.str.37:                              ## @.str.37
	.asciz	",\n"

L_.str.38:                              ## @.str.38
	.asciz	"    0x0000\n"

L_.str.39:                              ## @.str.39
	.asciz	"    DW  $0000\n"

L_.str.40:                              ## @.str.40
	.asciz	"};\n\n"

L_str.43:                               ## @str.43
	.asciz	"     |     mod2gbt v2.0 (part of GBT Player)     |"

L_str.46:                               ## @str.46
	.asciz	"     | Copyright (C) 2009-2014 Antonio Nino Diaz |"

L_str.47:                               ## @str.47
	.asciz	"     |                      All rights reserved. |"

L_str.49:                               ## @str.49
	.asciz	"     |                   antonio_nd@outlook.com  |"

L_str.50:                               ## @str.50
	.asciz	"     |                                           |"

L_str.51:                               ## @str.51
	.asciz	"     +-------------------------------------------+"

L_str.52:                               ## @str.52
	.asciz	"\nERROR: Not a valid mod file.\nOnly 4 channel mod files with 31 samples allowed.\n"

L_str.53:                               ## @str.53
	.asciz	"\nValid mod file!"

L_str.54:                               ## @str.54
	.asciz	"\n\nSample names:"

L_str.55:                               ## @str.55
	.asciz	"\nConverting patterns.\n"

L_str.56:                               ## @str.56
	.asciz	"\nPattern order..."

L_str.57:                               ## @str.57
	.asciz	"\nDone!\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, l_str.51@PAGE
Lloh1:
	add	x21, x21, l_str.51@PAGEOFF
	mov	x0, x21
	bl	_puts
Lloh2:
	adrp	x22, l_str.50@PAGE
Lloh3:
	add	x22, x22, l_str.50@PAGEOFF
	mov	x0, x22
	bl	_puts
Lloh4:
	adrp	x0, l_str.43@PAGE
Lloh5:
	add	x0, x0, l_str.43@PAGEOFF
	bl	_puts
	mov	x0, x22
	bl	_puts
	mov	x0, x22
	bl	_puts
Lloh6:
	adrp	x0, l_str.46@PAGE
Lloh7:
	add	x0, x0, l_str.46@PAGEOFF
	bl	_puts
Lloh8:
	adrp	x0, l_str.47@PAGE
Lloh9:
	add	x0, x0, l_str.47@PAGEOFF
	bl	_puts
	mov	x0, x22
	bl	_puts
Lloh10:
	adrp	x0, l_str.49@PAGE
Lloh11:
	add	x0, x0, l_str.49@PAGEOFF
	bl	_puts
	mov	x0, x22
	bl	_puts
	mov	x0, x21
	bl	_puts
	mov	w0, #10
	bl	_putchar
	and	w8, w19, #0xfffffffe
	cmp	w8, #4
	b.ne	LBB0_3
; %bb.1:
Lloh12:
	adrp	x24, _label_name@GOTPAGE
Lloh13:
	ldr	x24, [x24, _label_name@GOTPAGEOFF]
	ldr	x0, [x24]
	ldr	x1, [x20, #16]
	bl	_strcpy
	ldr	x0, [x20, #24]
Lloh14:
	adrp	x1, l_.str.7@PAGE
Lloh15:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x0, [x20, #24]
Lloh16:
	adrp	x1, l_.str.8@PAGE
Lloh17:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_6
LBB0_3:
	bl	_print_usage
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
	mov	w8, #1
	b	LBB0_7
LBB0_6:
	mov	w8, #0
LBB0_7:
Lloh18:
	adrp	x9, _output_asm@GOTPAGE
Lloh19:
	ldr	x9, [x9, _output_asm@GOTPAGEOFF]
Lloh20:
	adrp	x10, _DEFAULT_ROM_BANK@GOTPAGE
Lloh21:
	ldr	x10, [x10, _DEFAULT_ROM_BANK@GOTPAGEOFF]
Lloh22:
	str	w8, [x9]
Lloh23:
	ldr	w8, [x10]
Lloh24:
	adrp	x21, _current_output_bank@GOTPAGE
Lloh25:
	ldr	x21, [x21, _current_output_bank@GOTPAGEOFF]
	str	w8, [x21]
	cmp	w19, #5
	b.ne	LBB0_10
; %bb.8:
	ldr	x0, [x20, #32]
Lloh26:
	adrp	x1, l_.str.9@PAGE
Lloh27:
	add	x1, x1, l_.str.9@PAGEOFF
Lloh28:
	adrp	x19, _current_output_bank@GOTPAGE
Lloh29:
	ldr	x19, [x19, _current_output_bank@GOTPAGEOFF]
	mov	x2, x19
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_14
; %bb.9:
	ldr	w8, [x19]
	str	x8, [sp]
Lloh30:
	adrp	x0, l_.str.11@PAGE
Lloh31:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_printf
LBB0_10:
	ldr	x0, [x20, #8]
	bl	_load_file
	cbz	x0, LBB0_13
; %bb.11:
	mov	x19, x0
	ldr	x8, [x20, #8]
	str	x8, [sp]
Lloh32:
	adrp	x0, l_.str.12@PAGE
Lloh33:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_printf
	ldr	w0, [x19, #40]
Lloh34:
	adrp	x1, l_.str.13@PAGE
Lloh35:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	w2, #4
	bl	_strncmp
	cbz	x0, LBB0_15
; %bb.12:
Lloh36:
	adrp	x0, l_str.52@PAGE
Lloh37:
	add	x0, x0, l_str.52@PAGEOFF
	bl	_puts
	mov	w0, #-3
	b	LBB0_4
LBB0_13:
	mov	w0, #-2
	b	LBB0_4
LBB0_14:
	ldr	x8, [x20, #32]
	str	x8, [sp]
Lloh38:
	adrp	x0, l_.str.10@PAGE
Lloh39:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_printf
	bl	_print_usage
	mov	w0, #-2
	b	LBB0_4
LBB0_15:
Lloh40:
	adrp	x0, l_str.53@PAGE
Lloh41:
	add	x0, x0, l_str.53@PAGEOFF
	bl	_puts
Lloh42:
	adrp	x0, l_.str.16@PAGE
Lloh43:
	add	x0, x0, l_.str.16@PAGEOFF
	bl	_printf
	mov	x20, #0
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x20, x20, #4
	cmp	x20, #80
	b.eq	LBB0_19
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8, x20]
	cbz	w0, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	bl	_putchar
	b	LBB0_16
LBB0_19:
Lloh44:
	adrp	x0, l_str.54@PAGE
Lloh45:
	add	x0, x0, l_str.54@PAGEOFF
	bl	_puts
	mov	x22, #0
Lloh46:
	adrp	x20, l_.str.19@PAGE
Lloh47:
	add	x20, x20, l_.str.19@PAGEOFF
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x22, x22, #1
	cmp	x22, #31
	b.eq	LBB0_23
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	ldr	x8, [x8, x22, lsl #3]
	ldrb	w9, [x8]
	cbz	w9, LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	stp	x22, x8, [sp]
	mov	x0, x20
	bl	_printf
	b	LBB0_20
LBB0_23:
	mov	w0, #10
	bl	_putchar
	ldr	x8, [x19, #8]
	ldp	q0, q1, [x8]
	ldp	q2, q3, [x8, #32]
	ldp	q4, q5, [x8, #64]
	ldp	q6, q7, [x8, #96]
	smax.4s	v0, v0, v4
	smax.4s	v1, v1, v5
	smax.4s	v2, v2, v6
	smax.4s	v3, v3, v7
	ldp	q4, q5, [x8, #128]
	ldp	q6, q7, [x8, #160]
	smax.4s	v0, v0, v4
	smax.4s	v1, v1, v5
	smax.4s	v2, v2, v6
	smax.4s	v3, v3, v7
	ldp	q4, q5, [x8, #192]
	ldp	q6, q7, [x8, #224]
	smax.4s	v0, v0, v4
	smax.4s	v1, v1, v5
	smax.4s	v2, v2, v6
	smax.4s	v3, v3, v7
	ldp	q4, q5, [x8, #256]
	ldp	q6, q7, [x8, #288]
	smax.4s	v0, v0, v4
	smax.4s	v1, v1, v5
	smax.4s	v2, v2, v6
	smax.4s	v3, v3, v7
	ldp	q4, q5, [x8, #320]
	ldp	q6, q7, [x8, #352]
	smax.4s	v0, v0, v4
	smax.4s	v1, v1, v5
	smax.4s	v2, v2, v6
	smax.4s	v3, v3, v7
	ldp	q4, q5, [x8, #384]
	ldp	q6, q7, [x8, #416]
	smax.4s	v0, v0, v4
	smax.4s	v1, v1, v5
	smax.4s	v2, v2, v6
	smax.4s	v3, v3, v7
	ldp	q4, q5, [x8, #448]
	ldp	q6, q7, [x8, #480]
	smax.4s	v0, v0, v4
	smax.4s	v1, v1, v5
	smax.4s	v2, v2, v6
	smax.4s	v3, v3, v7
	smax.4s	v0, v1, v0
	smax.4s	v0, v2, v0
	smax.4s	v0, v3, v0
	movi.2d	v1, #0000000000000000
	smax.4s	v0, v0, v1
	smaxv.4s	s0, v0
	fmov	w8, s0
	add	w22, w8, #1
	mov	x8, x22
	str	x8, [sp]
Lloh48:
	adrp	x0, l_.str.20@PAGE
Lloh49:
	add	x0, x0, l_.str.20@PAGEOFF
	bl	_printf
	bl	_out_open
Lloh50:
	adrp	x0, l_.str.21@PAGE
Lloh51:
	add	x0, x0, l_.str.21@PAGEOFF
Lloh52:
	adrp	x1, l_.str.22@PAGE
Lloh53:
	add	x1, x1, l_.str.22@PAGEOFF
	bl	_out_write_str
Lloh54:
	adrp	x0, l_.str.23@PAGE
Lloh55:
	add	x0, x0, l_.str.23@PAGEOFF
Lloh56:
	adrp	x1, l_.str.24@PAGE
Lloh57:
	add	x1, x1, l_.str.24@PAGEOFF
	bl	_out_write_str
	ldr	x1, [x24]
Lloh58:
	adrp	x20, l_.str.25@PAGE
Lloh59:
	add	x20, x20, l_.str.25@PAGEOFF
	mov	x0, x20
	bl	_out_write_str
Lloh60:
	adrp	x1, l_.str.26@PAGE
Lloh61:
	add	x1, x1, l_.str.26@PAGEOFF
	mov	x0, x20
	bl	_out_write_str
	ldr	w0, [x21]
	bl	_out_write_dec
Lloh62:
	adrp	x0, l_.str.27@PAGE
Lloh63:
	add	x0, x0, l_.str.27@PAGEOFF
Lloh64:
	adrp	x1, l_.str.28@PAGE
Lloh65:
	add	x1, x1, l_.str.28@PAGEOFF
	bl	_out_write_str
Lloh66:
	adrp	x0, l_str.55@PAGE
Lloh67:
	add	x0, x0, l_str.55@PAGEOFF
	bl	_puts
	mov	x23, #0
	mov	x20, #0
Lloh68:
	adrp	x21, l_.str.30@PAGE
Lloh69:
	add	x21, x21, l_.str.30@PAGEOFF
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	str	x20, [sp]
	mov	x0, x21
	bl	_printf
	ldr	x8, [x19, #24]
	add	x0, x8, x23
	mov	x1, x20
	bl	_convert_pattern
	add	x20, x20, #1
	add	x23, x23, #4
	cmp	x22, x20
	b.ne	LBB0_24
; %bb.25:
Lloh70:
	adrp	x0, l_str.56@PAGE
Lloh71:
	add	x0, x0, l_str.56@PAGEOFF
	bl	_puts
Lloh72:
	adrp	x0, l_.str.32@PAGE
Lloh73:
	add	x0, x0, l_.str.32@PAGEOFF
Lloh74:
	adrp	x1, l_.str.25@PAGE
Lloh75:
	add	x1, x1, l_.str.25@PAGEOFF
	bl	_out_write_str
	ldr	x0, [x24]
	mov	x1, x0
	bl	_out_write_str
Lloh76:
	adrp	x0, l_.str.33@PAGE
Lloh77:
	add	x0, x0, l_.str.33@PAGEOFF
Lloh78:
	adrp	x1, l_.str.34@PAGE
Lloh79:
	add	x1, x1, l_.str.34@PAGEOFF
	bl	_out_write_str
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_28
; %bb.26:
	mov	x25, #0
Lloh80:
	adrp	x20, l_.str.35@PAGE
Lloh81:
	add	x20, x20, l_.str.35@PAGEOFF
Lloh82:
	adrp	x21, l_.str.36@PAGE
Lloh83:
	add	x21, x21, l_.str.36@PAGEOFF
Lloh84:
	adrp	x22, l_.str.37@PAGE
Lloh85:
	add	x22, x22, l_.str.37@PAGEOFF
Lloh86:
	adrp	x23, l_.str.6@PAGE
Lloh87:
	add	x23, x23, l_.str.6@PAGEOFF
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_out_write_str
	ldr	x0, [x24]
	mov	x1, x0
	bl	_out_write_str
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x25, lsl #2]
	bl	_out_write_dec
	mov	x0, x22
	mov	x1, x23
	bl	_out_write_str
	add	x25, x25, #1
	ldrsw	x8, [x19, #16]
	cmp	x25, x8
	b.lt	LBB0_27
LBB0_28:
Lloh88:
	adrp	x0, l_.str.38@PAGE
Lloh89:
	add	x0, x0, l_.str.38@PAGEOFF
Lloh90:
	adrp	x1, l_.str.39@PAGE
Lloh91:
	add	x1, x1, l_.str.39@PAGEOFF
	bl	_out_write_str
Lloh92:
	adrp	x0, l_.str.40@PAGE
Lloh93:
	add	x0, x0, l_.str.40@PAGEOFF
Lloh94:
	adrp	x1, l_.str.27@PAGE
Lloh95:
	add	x1, x1, l_.str.27@PAGEOFF
	bl	_out_write_str
	bl	_out_close
Lloh96:
	adrp	x0, l_str.57@PAGE
Lloh97:
	add	x0, x0, l_str.57@PAGEOFF
	bl	_puts
	mov	w0, #0
	b	LBB0_4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh96, Lloh97
	.loh AdrpAdd	Lloh94, Lloh95
	.loh AdrpAdd	Lloh92, Lloh93
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpAdd	Lloh88, Lloh89
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str.6:                               ; @.str.6
	.asciz	"\n"

	.comm	_label_name,8,3                 ; @label_name
l_.str.7:                               ; @.str.7
	.asciz	"-a"

	.comm	_output_asm,4,2                 ; @output_asm
l_.str.8:                               ; @.str.8
	.asciz	"-c"

	.comm	_DEFAULT_ROM_BANK,4,2           ; @DEFAULT_ROM_BANK
	.comm	_current_output_bank,4,2        ; @current_output_bank
l_.str.9:                               ; @.str.9
	.asciz	"%d"

l_.str.10:                              ; @.str.10
	.asciz	"Invalid bank: %s\n\n"

l_.str.11:                              ; @.str.11
	.asciz	"Output to bank: %d\n"

l_.str.12:                              ; @.str.12
	.asciz	"\n%s loaded!\n"

l_.str.13:                              ; @.str.13
	.asciz	"M.K."

l_.str.16:                              ; @.str.16
	.asciz	"\nSong name: "

l_.str.19:                              ; @.str.19
	.asciz	"%d: %s\n"

l_.str.20:                              ; @.str.20
	.asciz	"Number of patterns: %d\n"

l_.str.21:                              ; @.str.21
	.asciz	"\n// File created by mod2gbt\n\n"

l_.str.22:                              ; @.str.22
	.asciz	"\n; File created by mod2gbt\n\n"

l_.str.23:                              ; @.str.23
	.asciz	"#pragma bank="

l_.str.24:                              ; @.str.24
	.asciz	"\tSECTION \""

l_.str.25:                              ; @.str.25
	.space	1

l_.str.26:                              ; @.str.26
	.asciz	"\", DATA, BANK["

l_.str.27:                              ; @.str.27
	.asciz	"\n\n"

l_.str.28:                              ; @.str.28
	.asciz	"]\n\n"

l_.str.30:                              ; @.str.30
	.asciz	"Pattern %d...\n"

l_.str.32:                              ; @.str.32
	.asciz	"const unsigned char * "

l_.str.33:                              ; @.str.33
	.asciz	"_Data[] = {\n"

l_.str.34:                              ; @.str.34
	.asciz	"_Data::\n"

l_.str.35:                              ; @.str.35
	.asciz	"    "

l_.str.36:                              ; @.str.36
	.asciz	"    DW  "

l_.str.37:                              ; @.str.37
	.asciz	",\n"

l_.str.38:                              ; @.str.38
	.asciz	"    0x0000\n"

l_.str.39:                              ; @.str.39
	.asciz	"    DW  $0000\n"

l_.str.40:                              ; @.str.40
	.asciz	"};\n\n"

l_str.43:                               ; @str.43
	.asciz	"     |     mod2gbt v2.0 (part of GBT Player)     |"

l_str.46:                               ; @str.46
	.asciz	"     | Copyright (C) 2009-2014 Antonio Nino Diaz |"

l_str.47:                               ; @str.47
	.asciz	"     |                      All rights reserved. |"

l_str.49:                               ; @str.49
	.asciz	"     |                   antonio_nd@outlook.com  |"

l_str.50:                               ; @str.50
	.asciz	"     |                                           |"

l_str.51:                               ; @str.51
	.asciz	"     +-------------------------------------------+"

l_str.52:                               ; @str.52
	.asciz	"\nERROR: Not a valid mod file.\nOnly 4 channel mod files with 31 samples allowed.\n"

l_str.53:                               ; @str.53
	.asciz	"\nValid mod file!"

l_str.54:                               ; @str.54
	.asciz	"\n\nSample names:"

l_str.55:                               ; @str.55
	.asciz	"\nConverting patterns.\n"

l_str.56:                               ; @str.56
	.asciz	"\nPattern order..."

l_str.57:                               ; @str.57
	.asciz	"\nDone!\n"

.subsections_via_symbols
