	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function module_load_mod
_module_load_mod:                       ## @module_load_mod
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	$1, %edi
	movl	$88, %esi
	callq	_calloc
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_47
## %bb.1:
	movl	80(%r14), %ecx
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_data_ascii
	movq	%rbx, %rdi
	movl	$950, %esi                      ## imm = 0x3B6
	callq	_data_u8
	andl	$127, %eax
	movl	%eax, (%r14)
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	$951, %esi                      ## imm = 0x3B7
	callq	_data_u8
	andl	$127, %eax
	cmpl	(%r14), %eax
	cmovgel	%r12d, %eax
	movl	%eax, 4(%r14)
	movl	$128, %edi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_46
## %bb.2:
	xorl	%ebx, %ebx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	$128, %rbx
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	952(%rbx), %esi
	movq	%r12, %rdi
	callq	_data_u8
	andl	$127, %eax
	movq	8(%r14), %rcx
	movb	%al, (%rcx,%rbx)
	cmpl	16(%r14), %eax
	jl	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%eax
	movl	%eax, 16(%r14)
	jmp	LBB0_5
LBB0_6:
	movq	%r12, %rdi
	movl	$1082, %esi                     ## imm = 0x43A
	callq	_data_u16be
	cmpl	$19232, %eax                    ## imm = 0x4B20
	jle	LBB0_7
## %bb.11:
	cmpl	$19233, %eax                    ## imm = 0x4B21
	je	LBB0_14
## %bb.12:
	cmpl	$21556, %eax                    ## imm = 0x5434
	je	LBB0_14
## %bb.13:
	cmpl	$19246, %eax                    ## imm = 0x4B2E
	jne	LBB0_45
LBB0_14:
	movl	$4, 20(%r14)
	movl	$4, %edi
	movl	$64, %eax
	movl	$8287, %ecx                     ## imm = 0x205F
	jmp	LBB0_15
LBB0_7:
	cmpl	$17224, %eax                    ## imm = 0x4348
	je	LBB0_22
## %bb.8:
	cmpl	$18510, %eax                    ## imm = 0x484E
	jne	LBB0_45
## %bb.9:
	movq	%r12, %rdi
	movl	$1080, %esi                     ## imm = 0x438
	callq	_data_u8
	movl	%eax, %edi
	addl	$-48, %edi
	jmp	LBB0_10
LBB0_22:
	movq	%r12, %rdi
	movl	$1080, %esi                     ## imm = 0x438
	callq	_data_u8
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax,4), %eax
	addl	%eax, %eax
	addl	$-480, %eax                     ## imm = 0xFE20
	movl	%eax, 20(%r14)
	movq	%r12, %rdi
	movl	$1081, %esi                     ## imm = 0x439
	callq	_data_u8
                                        ## kill: def $eax killed $eax def $rax
	movl	20(%r14), %ecx
	leal	(%rax,%rcx), %edi
	addl	$-48, %edi
LBB0_10:
	movl	%edi, 20(%r14)
	movl	$32, %eax
	movl	$8363, %ecx                     ## imm = 0x20AB
LBB0_15:
	movl	%ecx, 24(%r14)
	movl	%eax, 28(%r14)
	movabsq	$25769803840, %rax              ## imm = 0x600000040
	movq	%rax, 32(%r14)
	movl	$125, 40(%r14)
	movl	$1, %esi
	callq	_calloc
	movq	%rax, 48(%r14)
	testq	%rax, %rax
	je	LBB0_46
## %bb.16:
	cmpl	$0, 20(%r14)
	jle	LBB0_23
## %bb.17:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movb	$51, (%rax,%rcx)
	movl	%ecx, %eax
	andl	$3, %eax
	decl	%eax
	cmpl	$1, %eax
	ja	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	48(%r14), %rax
	movb	$-52, (%rax,%rcx)
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%rcx
	movslq	20(%r14), %rax
	cmpq	%rax, %rcx
	jge	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	48(%r14), %rax
	jmp	LBB0_18
LBB0_23:
	movl	16(%r14), %edi
	movl	$16, %esi
	callq	_calloc
	movq	%rax, 72(%r14)
	testq	%rax, %rax
	je	LBB0_46
## %bb.24:
	cmpl	$0, 16(%r14)
	jle	LBB0_25
## %bb.33:
	movslq	20(%r14), %rdx
	movq	%rdx, %rcx
	shlq	$6, %rcx
	leaq	(%rcx,%rcx,4), %rsi
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	%edx, (%rax)
	movl	$64, 4(%rax)
	movl	$1, %edi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_46
## %bb.34:
	movq	%rax, %r13
	movl	$1084, %r12d                    ## imm = 0x43C
	xorl	%ebx, %ebx
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_35:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_37 Depth 2
	movq	%rbx, %rax
	shlq	$4, %rax
	movq	72(%r14), %rcx
	movq	%r13, 8(%rcx,%rax)
	cmpl	$0, -80(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_43
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=1
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_37
	.p2align	4, 0x90
LBB0_41:                                ##   in Loop: Header=BB0_37 Depth=2
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movb	%cl, 3(%r13,%rdx)
	movb	%al, 4(%r13,%rdx)
	addq	$5, %rdx
	incl	%r12d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	cmpq	-56(%rbp), %rdx                 ## 8-byte Folded Reload
	jge	LBB0_42
LBB0_37:                                ##   Parent Loop BB0_35 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
                                        ## kill: def $r12d killed $r12d killed $r12 def $r12
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_data_u8
	movl	%eax, %r14d
	andl	$15, %r14d
	shll	$8, %r14d
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	leal	1(%r12), %r15d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_data_u8
                                        ## kill: def $eax killed $eax def $rax
	orl	%r14d, %eax
	leal	-28(%rax), %ecx
	cmpl	$1684, %ecx                     ## imm = 0x694
	ja	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_37 Depth=2
	shll	$2, %eax
	movq	_FP_SHIFT@GOTPCREL(%rip), %rbx
	movzbl	(%rbx), %ecx
	shll	%cl, %eax
	movslq	%eax, %rdi
	imulq	$-1870214731, %rdi, %rax        ## imm = 0x9086C9B5
	shrq	$32, %rax
	addl	%eax, %edi
	movl	%edi, %eax
	shrl	$31, %eax
	sarl	$14, %edi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_log_2
                                        ## kill: def $eax killed $eax def $rax
	shll	$2, %eax
	leal	(%rax,%rax,2), %eax
	movl	%eax, %ecx
	negl	%ecx
	movq	_FP_ONE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	sarl	%edx
	andl	%ecx, %edx
	subl	%eax, %edx
	movzbl	(%rbx), %ecx
	sarl	%cl, %edx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movb	%dl, (%r13,%rax)
LBB0_39:                                ##   in Loop: Header=BB0_37 Depth=2
	leal	1(%r15), %r14d
	movq	%r13, %r12
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_data_u8
	movl	%eax, %ebx
	shrl	$4, %ebx
	andl	$15, %ebx
	leal	-1(%r15), %esi
	movq	%r13, %rdi
	callq	_data_u8
	andl	$16, %eax
	orl	%ebx, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movb	%al, 1(%r12,%rcx)
	movq	%r15, %r12
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_data_u8
	movl	%eax, %ebx
	andl	$15, %ebx
	addl	$2, %r12d
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_data_u8
	cmpl	$10, %ebx
	movl	%ebx, %edx
	movl	$0, %ecx
	cmovel	%ecx, %edx
	cmpl	$3, %ebx
	movl	$0, %edi
	cmovbl	%ecx, %edx
	testl	%eax, %eax
	cmovnel	%ebx, %edx
	leal	-5(%rdx), %esi
	leal	-2(%rdx), %ecx
	cmpl	$2, %esi
	cmovael	%edx, %ecx
	testl	%eax, %eax
	cmovnel	%edx, %ecx
	cmpl	$8, %ecx
	jne	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_37 Depth=2
	xorl	%ecx, %ecx
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	cmpl	$4, 20(%rdx)
	setne	%cl
	cmovel	%edi, %eax
	shll	$3, %ecx
	jmp	LBB0_41
	.p2align	4, 0x90
LBB0_42:                                ##   in Loop: Header=BB0_35 Depth=1
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	addl	$4, %r12d
                                        ## kill: def $r12d killed $r12d killed $r12 def $r12
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
LBB0_43:                                ##   in Loop: Header=BB0_35 Depth=1
	incq	%rbx
	movslq	16(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_26
## %bb.44:                              ##   in Loop: Header=BB0_35 Depth=1
	movl	20(%r14), %eax
	movq	72(%r14), %rcx
	movq	%rbx, %rdx
	shlq	$4, %rdx
	movl	%eax, (%rcx,%rdx)
	movl	$64, 4(%rcx,%rdx)
	movl	$1, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_calloc
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_35
	jmp	LBB0_46
LBB0_45:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcpy
	jmp	LBB0_46
LBB0_25:
	movl	$1084, %r12d                    ## imm = 0x43C
LBB0_26:
	movl	$31, 56(%r14)
	movl	$32, %edi
	movl	$16, %esi
	callq	_calloc
	movq	%rax, 64(%r14)
	testq	%rax, %rax
	je	LBB0_46
## %bb.27:
	movq	%rax, %rbx
	movl	$1, (%rax)
	movl	$1, %edi
	movl	$24, %esi
	callq	_calloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_46
## %bb.28:
	cmpl	$0, 56(%r14)
	jle	LBB0_47
## %bb.29:
	movl	$48, %eax
	movl	$24, %ebx
	xorl	%ecx, %ecx
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	64(%r14), %r15
	movl	$1, -8(%r15,%rbx)
	movl	$1, %edi
	movl	$24, %esi
	callq	_calloc
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, (%r15,%rbx)
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_46
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=1
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	leal	-28(%r13), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	-4(%r15,%rax), %ecx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	$22, %edx
	callq	_data_ascii
	leal	-6(%r13), %esi
	movq	%r15, %rdi
	callq	_data_u16be
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	addl	%eax, %eax
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	leal	-4(%r13), %esi
	movq	%r15, %rdi
	callq	_data_u8
	shll	$4, %eax
	movl	%eax, %ecx
	andl	$112, %ecx
	andl	$128, %eax
	subl	%eax, %ecx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	movq	%rax, %rbx
	leal	-3(%r13), %esi
	movq	%r15, %rdi
	callq	_data_u8
	andl	$127, %eax
	cmpl	$64, %eax
	movl	$64, %ecx
	cmovael	%ecx, %eax
	movl	%eax, 4(%rbx)
	leal	-2(%r13), %esi
	movq	%r15, %rdi
	callq	_data_u16be
	movl	%eax, %ebx
	addl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_data_u16be
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rbx,%rax,2), %ecx
                                        ## kill: def $eax killed $eax killed $rax
	addl	%eax, %eax
	movl	-88(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %r15d
	subl	%ebx, %r15d
	cmpl	%edx, %ecx
	cmovlel	%eax, %r15d
	cmpl	$4, %r15d
	movl	%edx, %r13d
	cmovll	%edx, %ebx
	movl	$0, %eax
	cmovll	%eax, %r15d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, 8(%rax)
	movl	%r15d, 12(%rax)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%rax), %edi
	incl	%edi
	movl	$2, %esi
	callq	_calloc
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 16(%rcx)
	testq	%rax, %rax
	je	LBB0_46
## %bb.32:                              ##   in Loop: Header=BB0_30 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%r13d, %edx
	movq	%rax, %rcx
	callq	_data_sam_s8
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movslq	%ebx, %rcx
	movzwl	(%rax,%rcx,2), %ecx
	addl	%ebx, %r15d
	movslq	%r15d, %rdx
	movw	%cx, (%rax,%rdx,2)
	addl	%r13d, %r12d
	movslq	56(%r14), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	addl	$30, %edx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	addq	$16, %rbx
	cmpq	%rax, %rcx
	movq	%rdx, %rax
	jl	LBB0_30
	jmp	LBB0_47
LBB0_46:
	movq	%r14, %rdi
	callq	_dispose_module
	xorl	%r14d, %r14d
LBB0_47:
	movq	%r14, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MOD Format not recognised!"

	.comm	_FP_SHIFT,4,2                   ## @FP_SHIFT
	.comm	_FP_ONE,4,2                     ## @FP_ONE
	.no_dead_strip	_module_load_mod
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function module_load_mod
lCPI0_0:
	.long	8363                            ; 0x20ab
	.long	32                              ; 0x20
lCPI0_1:
	.long	8287                            ; 0x205f
	.long	64                              ; 0x40
lCPI0_2:
	.long	64                              ; 0x40
	.long	6                               ; 0x6
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_module_load_mod:                       ; @module_load_mod
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x20, x0
	mov	w0, #1
	mov	w1, #88
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_47
; %bb.1:
	ldr	w3, [x19, #80]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #20
	bl	_data_ascii
	mov	x0, x20
	mov	w1, #950
	bl	_data_u8
	and	w8, w0, #0x7f
	str	w8, [x19]
	mov	x0, x20
	mov	w1, #951
	bl	_data_u8
	and	w8, w0, #0x7f
	ldr	w9, [x19]
	cmp	w8, w9
	csel	w8, w8, wzr, lt
	str	w8, [x19, #4]
	mov	w0, #128
	mov	w1, #1
	bl	_calloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_46
; %bb.2:
	mov	x22, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	cmp	x22, #128
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w1, w22, #952
	mov	x0, x20
	bl	_data_u8
	and	w8, w0, #0x7f
	ldr	x9, [x19, #8]
	strb	w8, [x9, x22]
	ldr	w9, [x19, #16]
	cmp	w8, w9
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w8, #1
	str	w8, [x19, #16]
	b	LBB0_3
LBB0_6:
	mov	x0, x20
	mov	w1, #1082
	bl	_data_u16be
	mov	w8, #19232
	cmp	w0, w8
	b.le	LBB0_11
; %bb.7:
	mov	w8, #19233
	cmp	w0, w8
	b.eq	LBB0_10
; %bb.8:
	mov	w8, #21556
	cmp	w0, w8
	b.eq	LBB0_10
; %bb.9:
	mov	w8, #19246
	cmp	w0, w8
	b.ne	LBB0_37
LBB0_10:
	mov	w0, #4
	str	w0, [x19, #20]
Lloh0:
	adrp	x8, lCPI0_1@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	b	LBB0_16
LBB0_11:
	mov	w8, #17224
	cmp	w0, w8
	b.eq	LBB0_14
; %bb.12:
	mov	w8, #18510
	cmp	w0, w8
	b.ne	LBB0_37
; %bb.13:
	mov	x0, x20
	mov	w1, #1080
	bl	_data_u8
	sub	w0, w0, #48
	b	LBB0_15
LBB0_14:
	mov	x0, x20
	mov	w1, #1080
	bl	_data_u8
	mov	w8, #10
	mul	w8, w0, w8
	sub	w8, w8, #480
	str	w8, [x19, #20]
	mov	x0, x20
	mov	w1, #1081
	bl	_data_u8
	ldr	w8, [x19, #20]
	add	w8, w0, w8
	sub	w0, w8, #48
LBB0_15:
	str	w0, [x19, #20]
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
LBB0_16:
Lloh4:
	adrp	x8, lCPI0_2@PAGE
Lloh5:
	ldr	d1, [x8, lCPI0_2@PAGEOFF]
	stp	d0, d1, [x19, #24]
	mov	w8, #125
	str	w8, [x19, #40]
	mov	w1, #1
	bl	_calloc
	str	x0, [x19, #48]
	cbz	x0, LBB0_46
; %bb.17:
	ldr	w8, [x19, #20]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.18:
	mov	x8, #0
	mov	w9, #51
	mov	w10, #204
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	strb	w9, [x0, x8]
	and	w11, w8, #0x3
	sub	w11, w11, #1
	cmp	w11, #1
	b.hi	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x11, [x19, #48]
	strb	w10, [x11, x8]
LBB0_21:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x8, x8, #1
	ldrsw	x11, [x19, #20]
	cmp	x8, x11
	b.ge	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x0, [x19, #48]
	b	LBB0_19
LBB0_23:
	ldr	w0, [x19, #16]
	mov	w1, #16
	bl	_calloc
	str	x0, [x19, #72]
	cbz	x0, LBB0_46
; %bb.24:
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_38
; %bb.25:
	ldrsw	x9, [x19, #20]
	add	x8, x9, x9, lsl #2
	lsl	x22, x8, #6
	mov	w8, #64
	str	x9, [sp]                        ; 8-byte Folded Spill
	stp	w9, w8, [x0]
	mov	w0, #1
	mov	x1, x22
	bl	_calloc
	cbz	x0, LBB0_46
; %bb.26:
	mov	x23, x0
	mov	x24, #0
	mov	w21, #1084
Lloh6:
	adrp	x27, _FP_SHIFT@GOTPAGE
Lloh7:
	ldr	x27, [x27, _FP_SHIFT@GOTPAGEOFF]
LBB0_27:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_30 Depth 2
	ldr	x8, [x19, #72]
	add	x8, x8, x24, lsl #4
	str	x23, [x8, #8]
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_35
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	str	x24, [sp, #8]                   ; 8-byte Folded Spill
	mov	x28, #0
	b	LBB0_30
LBB0_29:                                ;   in Loop: Header=BB0_30 Depth=2
	strb	w8, [x26, #3]
	strb	w0, [x26, #4]
	add	x28, x28, #5
	add	w21, w21, #1
	cmp	x28, x22
	b.ge	LBB0_34
LBB0_30:                                ;   Parent Loop BB0_27 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x24, x21
	mov	x0, x20
	mov	x1, x21
	bl	_data_u8
	ubfiz	w25, w0, #8, #4
	add	w21, w21, #1
	mov	x0, x20
	mov	x1, x21
	bl	_data_u8
	orr	w8, w25, w0
	sub	w9, w8, #28
	cmp	w9, #1684
	b.hi	LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=2
	lsl	w8, w8, #2
	ldr	w9, [x27]
	lsl	w8, w8, w9
	mov	w9, #51637
	movk	w9, #36998, lsl #16
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w8, w9, w8
	asr	w9, w8, #14
	add	w0, w9, w8, lsr #31
	bl	_log_2
	mov	w8, #-12
	mul	w8, w0, w8
Lloh8:
	adrp	x9, _FP_ONE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _FP_ONE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w9, w8, w9, asr #1
	add	w8, w9, w8
	ldr	w9, [x27]
	asr	w8, w8, w9
	strb	w8, [x23, x28]
LBB0_32:                                ;   in Loop: Header=BB0_30 Depth=2
	add	w25, w21, #1
	mov	x0, x20
	mov	x1, x25
	bl	_data_u8
	mov	x26, x0
	sub	w1, w21, #1
	mov	x0, x20
	bl	_data_u8
	and	w8, w0, #0x10
	bfxil	w8, w26, #4, #4
	add	x26, x23, x28
	strb	w8, [x26, #1]
	mov	x0, x20
	mov	x1, x25
	bl	_data_u8
	and	w25, w0, #0xf
	add	w21, w21, #2
	mov	x0, x20
	mov	x1, x21
	bl	_data_u8
	cmp	w0, #0
	cset	w8, eq
	cmp	w25, #3
	ccmp	w25, #10, #4, hs
	cset	w9, eq
	tst	w8, w9
	csel	w9, wzr, w25, ne
	sub	w10, w9, #5
	cmp	w10, #2
	cset	w10, lo
	sub	w11, w9, #2
	tst	w8, w10
	csel	w8, w11, w9, ne
	cmp	w8, #8
	b.ne	LBB0_29
; %bb.33:                               ;   in Loop: Header=BB0_30 Depth=2
	ldr	w8, [x19, #20]
	cmp	w8, #4
	csel	w0, wzr, w0, eq
	cset	w8, ne
	lsl	w8, w8, #3
	b	LBB0_29
LBB0_34:                                ;   in Loop: Header=BB0_27 Depth=1
	add	w21, w24, #4
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
LBB0_35:                                ;   in Loop: Header=BB0_27 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x19, #16]
	cmp	x24, x8
	b.ge	LBB0_39
; %bb.36:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	w10, [x19, #20]
	ldr	x9, [x19, #72]
	add	x9, x9, x24, lsl #4
	mov	w8, #64
	stp	w10, w8, [x9]
	mov	w0, #1
	mov	x1, x22
	bl	_calloc
	mov	x23, x0
	cbnz	x0, LBB0_27
	b	LBB0_46
LBB0_37:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strcpy
	b	LBB0_46
LBB0_38:
	mov	w21, #1084
LBB0_39:
	mov	w8, #31
	str	w8, [x19, #56]
	mov	w0, #32
	mov	w1, #16
	bl	_calloc
	str	x0, [x19, #64]
	cbz	x0, LBB0_46
; %bb.40:
	mov	x22, x0
	mov	w8, #1
	str	w8, [x0]
	mov	w0, #1
	mov	w1, #24
	bl	_calloc
	str	x0, [x22, #8]
	cbz	x0, LBB0_46
; %bb.41:
	ldr	w8, [x19, #56]
	cmp	w8, #1
	b.lt	LBB0_47
; %bb.42:
	mov	x26, #0
	mov	x27, #0
	mov	w22, #48
LBB0_43:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #64]
	add	x24, x8, x26
	mov	w8, #1
	str	w8, [x24, #16]
	mov	w0, #1
	mov	w1, #24
	bl	_calloc
	str	x0, [x24, #24]
	cbz	x0, LBB0_46
; %bb.44:                               ;   in Loop: Header=BB0_43 Depth=1
	mov	x23, x0
	sub	w1, w22, #28
	ldr	w3, [x24, #20]
	mov	x0, x20
	mov	w2, #22
	bl	_data_ascii
	sub	w1, w22, #6
	mov	x0, x20
	bl	_data_u16be
	str	w0, [sp, #8]                    ; 4-byte Folded Spill
	lsl	w24, w0, #1
	sub	w1, w22, #4
	mov	x0, x20
	bl	_data_u8
	lsl	w8, w0, #4
	and	w9, w8, #0x70
	and	w8, w8, #0x80
	sub	w8, w9, w8
	str	w8, [x23]
	sub	w1, w22, #3
	mov	x0, x20
	bl	_data_u8
	and	w8, w0, #0x7f
	cmp	w8, #64
	mov	w9, #64
	csel	w8, w8, w9, lo
	str	w8, [x23, #4]
	sub	w1, w22, #2
	mov	x0, x20
	bl	_data_u16be
	lsl	w25, w0, #1
	mov	x0, x20
	mov	x1, x22
	bl	_data_u16be
	lsl	w8, w0, #1
	sub	w9, w24, w25
	add	w10, w8, w25
	cmp	w10, w24
	csel	w8, w9, w8, gt
	cmp	w8, #4
	csel	w28, w24, w25, lt
	csel	w25, wzr, w8, lt
	stp	w28, w25, [x23, #8]
	mov	w0, #1
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	bfi	w0, w8, #1, #31
	mov	w1, #2
	bl	_calloc
	str	x0, [x23, #16]
	cbz	x0, LBB0_46
; %bb.45:                               ;   in Loop: Header=BB0_43 Depth=1
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x24
	bl	_data_sam_s8
	ldr	x8, [x23, #16]
	ldrh	w9, [x8, w28, sxtw #1]
	add	w10, w28, w25
	strh	w9, [x8, w10, sxtw #1]
	add	w21, w24, w21
	ldrsw	x8, [x19, #56]
	add	x27, x27, #1
	add	w22, w22, #30
	add	x26, x26, #16
	cmp	x27, x8
	b.lt	LBB0_43
	b	LBB0_47
LBB0_46:
	mov	x0, x19
	bl	_dispose_module
	mov	x19, #0
LBB0_47:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MOD Format not recognised!"

	.comm	_FP_SHIFT,4,2                   ; @FP_SHIFT
	.comm	_FP_ONE,4,2                     ; @FP_ONE
	.no_dead_strip	_module_load_mod
.subsections_via_symbols
