	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function LoadTGABuffer
LCPI0_0:
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_1:
	.byte	0                               ## 0x0
	.byte	4                               ## 0x4
	.byte	8                               ## 0x8
	.byte	12                              ## 0xc
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_2:
	.byte	8                               ## 0x8
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	4                               ## 0x4
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	0                               ## 0x0
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	12                              ## 0xc
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
LCPI0_3:
	.byte	255                             ## 0xff
	.byte	255                             ## 0xff
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_4:
	.space	4
	.long	255                             ## 0xff
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_LoadTGABuffer
	.p2align	4, 0x90
_LoadTGABuffer:                         ## @LoadTGABuffer
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	$0, (%rsi)
	movslq	(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	4(%rdi), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	8(%rdi), %r13d
	movswl	12(%rdi), %edi
	callq	_LittleShort
	movswl	20(%rbx), %edi
	callq	_LittleShort
	movswl	32(%rbx), %edi
	callq	_LittleShort
	movswl	40(%rbx), %edi
	callq	_LittleShort
	movswl	48(%rbx), %edi
	callq	_LittleShort
	movq	%rax, %r14
	movswl	56(%rbx), %edi
	callq	_LittleShort
	movq	%rax, %r15
	movl	64(%rbx), %r12d
	cmpl	$10, %r13d
	ja	LBB0_2
## %bb.1:
	movl	$1036, %eax                     ## imm = 0x40C
	btl	%r13d, %eax
	jae	LBB0_2
## %bb.3:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_Error
LBB0_5:
	cmpl	$3, %r13d
	je	LBB0_9
## %bb.6:
	cmpl	$24, %r12d
	je	LBB0_9
## %bb.7:
	cmpl	$32, %r12d
	je	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
	callq	_Error
LBB0_9:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	%r14d, (%rax)
LBB0_11:
	addq	$72, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	%r15d, (%rax)
LBB0_13:
	leal	(,%r14,4), %edi
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	imull	%r15d, %edi
	callq	_malloc
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rbx,%rcx,4), %r10
	movl	%r13d, %ecx
	andl	$-2, %ecx
	cmpl	$2, %ecx
	jne	LBB0_28
## %bb.14:
	testl	%r15d, %r15d
	movl	-48(%rbp), %r11d                ## 4-byte Reload
	jle	LBB0_57
## %bb.15:
	movslq	%r15d, %r8
	movdqa	LCPI0_2(%rip), %xmm0            ## xmm0 = [8,128,128,128,4,128,128,128,0,128,128,128,12,128,128,128]
	movdqa	LCPI0_4(%rip), %xmm1            ## xmm1 = <u,255,u,u>
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_17 Depth=1
	cmpq	$2, %r9
	jl	LBB0_57
LBB0_17:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
	movq	%r8, %r9
	decq	%r8
	testl	%r14d, %r14d
	jle	LBB0_16
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	%r11d, %esi
	imull	%r8d, %esi
	movslq	%esi, %rsi
	leaq	(%rax,%rsi,4), %rsi
	movl	%r14d, %ebx
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_19 Depth=2
	movdqu	(%r10), %xmm2
	addq	$16, %r10
	pshufb	%xmm0, %xmm2
LBB0_25:                                ##   in Loop: Header=BB0_19 Depth=2
	movdqu	%xmm2, (%rsi)
LBB0_26:                                ##   in Loop: Header=BB0_19 Depth=2
	addq	$16, %rsi
LBB0_27:                                ##   in Loop: Header=BB0_19 Depth=2
	decl	%ebx
	je	LBB0_16
LBB0_19:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$32, %r12d
	je	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=2
	cmpl	$24, %r12d
	je	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=2
	cmpl	$8, %r12d
	jne	LBB0_27
## %bb.22:                              ##   in Loop: Header=BB0_19 Depth=2
	movzbl	(%r10), %ecx
	movdqa	%xmm1, %xmm2
	pinsrd	$0, %ecx, %xmm2
	addq	$4, %r10
	pshufd	$64, %xmm2, %xmm2               ## xmm2 = xmm2[0,0,0,1]
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_19 Depth=2
	movzbl	(%r10), %ecx
	movzbl	4(%r10), %edx
	movzbl	8(%r10), %edi
	addq	$12, %r10
	movl	%edi, (%rsi)
	movl	%edx, 4(%rsi)
	movl	%ecx, 8(%rsi)
	movl	$255, 12(%rsi)
	jmp	LBB0_26
LBB0_28:
	cmpl	$10, %r13d
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	jne	LBB0_57
## %bb.29:
	testl	%r15d, %r15d
	jle	LBB0_57
## %bb.30:
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = <0,0,0,255,u,u,u,u,u,u,u,u,u,u,u,u>
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = <0,4,8,12,u,u,u,u,u,u,u,u,u,u,u,u>
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = [8,128,128,128,4,128,128,128,0,128,128,128,12,128,128,128]
	movdqa	LCPI0_3(%rip), %xmm0            ## xmm0 = <255,255,255,0,u,u,u,u,u,u,u,u,u,u,u,u>
LBB0_31:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_34 Depth 2
                                        ##       Child Loop BB0_45 Depth 3
                                        ##       Child Loop BB0_36 Depth 3
	decl	%r15d
	testl	%r14d, %r14d
	jle	LBB0_32
## %bb.33:                              ##   in Loop: Header=BB0_31 Depth=1
	movl	%r8d, %ecx
	imull	%r15d, %ecx
	movslq	%ecx, %rcx
	leaq	(%rax,%rcx,4), %r13
	xorl	%esi, %esi
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_55:                                ##   in Loop: Header=BB0_34 Depth=2
	movq	%r9, %r10
	cmpl	%r14d, %esi
	jge	LBB0_56
LBB0_34:                                ##   Parent Loop BB0_31 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_45 Depth 3
                                        ##       Child Loop BB0_36 Depth 3
	leaq	4(%r10), %r9
	movl	(%r10), %edi
	movl	%edi, %ebx
	andb	$127, %bl
	testb	$-128, %dil
	jne	LBB0_39
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=2
	incb	%bl
	jmp	LBB0_36
	.p2align	4, 0x90
LBB0_53:                                ##   in Loop: Header=BB0_36 Depth=3
	decl	%r15d
	movl	%r8d, %ecx
	imull	%r15d, %ecx
	movslq	%ecx, %rcx
	leaq	(%rax,%rcx,4), %r13
	xorl	%esi, %esi
LBB0_54:                                ##   in Loop: Header=BB0_36 Depth=3
	decb	%bl
	je	LBB0_55
LBB0_36:                                ##   Parent Loop BB0_31 Depth=1
                                        ##     Parent Loop BB0_34 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpl	$32, %r12d
	je	LBB0_50
## %bb.37:                              ##   in Loop: Header=BB0_36 Depth=3
	cmpl	$24, %r12d
	jne	LBB0_51
## %bb.38:                              ##   in Loop: Header=BB0_36 Depth=3
	movl	(%r9), %edi
	movl	4(%r9), %ecx
	movzbl	%dil, %r10d
	movzbl	%cl, %r11d
	movl	8(%r9), %edx
	addq	$12, %r9
	movzbl	%dl, %r8d
	movl	%r8d, (%r13)
	movl	%r11d, 4(%r13)
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	%r10d, 8(%r13)
	movl	$255, 12(%r13)
	addq	$16, %r13
	movd	%edi, %xmm4
	pinsrb	$1, %ecx, %xmm4
	pinsrb	$2, %edx, %xmm4
	pblendvb	%xmm0, %xmm4, %xmm3
	jmp	LBB0_51
	.p2align	4, 0x90
LBB0_50:                                ##   in Loop: Header=BB0_36 Depth=3
	movdqu	(%r9), %xmm4
	addq	$16, %r9
	movdqa	%xmm4, %xmm3
	pshufb	%xmm1, %xmm3
	pshufb	%xmm2, %xmm4
	movdqu	%xmm4, (%r13)
	addq	$16, %r13
LBB0_51:                                ##   in Loop: Header=BB0_36 Depth=3
	incl	%esi
	cmpl	%r14d, %esi
	jne	LBB0_54
## %bb.52:                              ##   in Loop: Header=BB0_36 Depth=3
	testl	%r15d, %r15d
	jg	LBB0_53
	jmp	LBB0_57
	.p2align	4, 0x90
LBB0_39:                                ##   in Loop: Header=BB0_34 Depth=2
	cmpl	$32, %r12d
	je	LBB0_42
## %bb.40:                              ##   in Loop: Header=BB0_34 Depth=2
	cmpl	$24, %r12d
	jne	LBB0_44
## %bb.41:                              ##   in Loop: Header=BB0_34 Depth=2
	movq	4(%r10), %rcx
	movd	%ecx, %xmm3
	shrq	$32, %rcx
	pinsrb	$1, %ecx, %xmm3
	pinsrb	$2, 12(%r10), %xmm3
	addq	$16, %r10
	movl	$255, %ecx
	pinsrb	$3, %ecx, %xmm3
	jmp	LBB0_43
LBB0_42:                                ##   in Loop: Header=BB0_34 Depth=2
	movdqu	4(%r10), %xmm3
	addq	$20, %r10
	pshufb	%xmm1, %xmm3
LBB0_43:                                ##   in Loop: Header=BB0_34 Depth=2
	movq	%r10, %r9
LBB0_44:                                ##   in Loop: Header=BB0_34 Depth=2
	pmovzxbd	%xmm3, %xmm4                    ## xmm4 = xmm3[0],zero,zero,zero,xmm3[1],zero,zero,zero,xmm3[2],zero,zero,zero,xmm3[3],zero,zero,zero
	pshufd	$198, %xmm4, %xmm4              ## xmm4 = xmm4[2,1,0,3]
	incb	%bl
	jmp	LBB0_45
	.p2align	4, 0x90
LBB0_46:                                ##   in Loop: Header=BB0_45 Depth=3
	addq	$16, %r13
LBB0_49:                                ##   in Loop: Header=BB0_45 Depth=3
	decb	%bl
	je	LBB0_55
LBB0_45:                                ##   Parent Loop BB0_31 Depth=1
                                        ##     Parent Loop BB0_34 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movdqu	%xmm4, (%r13)
	incl	%esi
	cmpl	%r14d, %esi
	jne	LBB0_46
## %bb.47:                              ##   in Loop: Header=BB0_45 Depth=3
	testl	%r15d, %r15d
	jle	LBB0_57
## %bb.48:                              ##   in Loop: Header=BB0_45 Depth=3
	decl	%r15d
	movl	%r8d, %edx
	imull	%r15d, %edx
	movslq	%edx, %rdx
	leaq	(%rax,%rdx,4), %r13
	xorl	%esi, %esi
	jmp	LBB0_49
LBB0_32:                                ##   in Loop: Header=BB0_31 Depth=1
	movq	%r10, %r9
LBB0_56:                                ##   in Loop: Header=BB0_31 Depth=1
	movq	%r9, %r10
	testl	%r15d, %r15d
	jg	LBB0_31
LBB0_57:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_Error
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_4
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LoadTGA: Only type 2 (RGB), 3 (gray), and 10 (RGB) TGA images supported\n"

L_.str.1:                               ## @.str.1
	.asciz	"LoadTGA: colormaps not supported\n"

L_.str.2:                               ## @.str.2
	.asciz	"LoadTGA: Only 32 or 24 bit images supported (no colormaps)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LoadTGABuffer                  ; -- Begin function LoadTGABuffer
	.p2align	2
_LoadTGABuffer:                         ; @LoadTGABuffer
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x24, x2
	mov	x21, x1
	mov	x23, x0
	str	xzr, [x1]
	ldp	w27, w28, [x0]
                                        ; kill: def $w27 killed $w27 def $x27
	sxtw	x27, w27
	ldr	w26, [x0, #8]
	ldrsh	w0, [x0, #12]
	bl	_LittleShort
	ldrsh	w0, [x23, #20]
	bl	_LittleShort
	ldrsh	w0, [x23, #32]
	bl	_LittleShort
	ldrsh	w0, [x23, #40]
	bl	_LittleShort
	ldrsh	w0, [x23, #48]
	bl	_LittleShort
	mov	x19, x0
	ldrsh	w0, [x23, #56]
	bl	_LittleShort
	mov	x20, x0
	ldr	w25, [x23, #64]
	cmp	w26, #10
	b.hi	LBB0_56
; %bb.1:
	mov	w8, #1
	lsl	w8, w8, w26
	mov	w9, #1036
	tst	w8, w9
	b.eq	LBB0_56
; %bb.2:
	cbz	w28, LBB0_4
LBB0_3:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_Error
LBB0_4:
	cmp	w26, #3
	b.eq	LBB0_8
; %bb.5:
	cmp	w25, #24
	b.eq	LBB0_8
; %bb.6:
	cmp	w25, #32
	b.eq	LBB0_8
; %bb.7:
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_Error
LBB0_8:
	cbz	x24, LBB0_10
; %bb.9:
	str	w19, [x24]
LBB0_10:
	add	x23, x23, #72
	cbz	x22, LBB0_12
; %bb.11:
	str	w20, [x22]
LBB0_12:
	lsl	w22, w19, #2
	mul	w0, w22, w20
	bl	_malloc
	str	x0, [x21]
	add	x17, x23, x27, lsl #2
	and	w8, w26, #0xfffffffe
	cmp	w8, #2
	b.ne	LBB0_26
; %bb.13:
	cmp	w20, #1
	b.lt	LBB0_55
; %bb.14:
	sxtw	x8, w20
	movi.2d	v0, #0x0000ff000000ff
	movi	d1, #0x0000ff000000ff
	mov	w9, #255
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	cmp	x10, #2
	b.lt	LBB0_55
LBB0_16:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_20 Depth 2
	mov	x10, x8
	sub	x8, x8, #1
	cmp	w19, #1
	b.lt	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mul	w11, w22, w8
	add	x12, x0, w11, sxtw #2
	mov	x11, x19
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=2
	ldr	q2, [x17], #16
	and.16b	v2, v2, v0
	rev64.4s	v2, v2
	ext.16b	v2, v2, v2, #12
	str	q2, [x12], #16
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=2
	subs	w11, w11, #1
	b.eq	LBB0_15
LBB0_20:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w25, #32
	b.eq	LBB0_18
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=2
	cmp	w25, #24
	b.eq	LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=2
	cmp	w25, #8
	b.ne	LBB0_19
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=2
	ldrb	w13, [x17], #4
	stp	w13, w13, [x12]
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_20 Depth=2
	ldrb	w13, [x17]
	ldur	d2, [x17, #4]
	add	x17, x17, #12
	and.8b	v2, v2, v1
	rev64.2s	v2, v2
	str	d2, [x12]
LBB0_25:                                ;   in Loop: Header=BB0_20 Depth=2
	stp	w13, w9, [x12, #8]
	add	x12, x12, #16
	b	LBB0_19
LBB0_26:
	cmp	w26, #10
	b.ne	LBB0_55
; %bb.27:
	cmp	w20, #1
	b.lt	LBB0_55
; %bb.28:
	mov	w9, #0
	mov	w10, #0
	mov	w11, #0
	mov	w8, #255
	mov	w12, #255
LBB0_29:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_32 Depth 2
                                        ;       Child Loop BB0_50 Depth 3
                                        ;       Child Loop BB0_36 Depth 3
	sub	w20, w20, #1
	cmp	w19, #1
	b.lt	LBB0_53
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	mov	w13, #0
	mul	w14, w22, w20
	add	x15, x0, w14, sxtw #2
	mov	x14, x17
	b	LBB0_32
LBB0_31:                                ;   in Loop: Header=BB0_32 Depth=2
	mov	x17, x14
	cmp	w13, w19
	b.ge	LBB0_54
LBB0_32:                                ;   Parent Loop BB0_29 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_50 Depth 3
                                        ;       Child Loop BB0_36 Depth 3
	ldr	w1, [x14], #4
	and	w16, w1, #0x7f
	tbnz	w1, #7, LBB0_43
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=2
	mov	w17, #0
	b	LBB0_36
LBB0_34:                                ;   in Loop: Header=BB0_36 Depth=3
	mov	w13, #0
	mul	w15, w22, w20
	add	x15, x0, w15, sxtw #2
LBB0_35:                                ;   in Loop: Header=BB0_36 Depth=3
	add	w1, w17, #1
	cmp	w17, w16
	mov	x17, x1
	b.hs	LBB0_31
LBB0_36:                                ;   Parent Loop BB0_29 Depth=1
                                        ;     Parent Loop BB0_32 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cmp	w25, #32
	b.eq	LBB0_39
; %bb.37:                               ;   in Loop: Header=BB0_36 Depth=3
	cmp	w25, #24
	b.ne	LBB0_41
; %bb.38:                               ;   in Loop: Header=BB0_36 Depth=3
	ldrb	w9, [x14]
	ldrb	w10, [x14, #4]
	ldrb	w11, [x14, #8]
	add	x14, x14, #12
	stp	w11, w10, [x15]
	stp	w9, w8, [x15, #8]
	b	LBB0_40
LBB0_39:                                ;   in Loop: Header=BB0_36 Depth=3
	ldrb	w9, [x14]
	ldrb	w10, [x14, #4]
	ldrb	w11, [x14, #8]
	ldrb	w12, [x14, #12]
	add	x14, x14, #16
	stp	w11, w10, [x15]
	stp	w9, w12, [x15, #8]
LBB0_40:                                ;   in Loop: Header=BB0_36 Depth=3
	add	x15, x15, #16
LBB0_41:                                ;   in Loop: Header=BB0_36 Depth=3
	add	w13, w13, #1
	cmp	w13, w19
	b.ne	LBB0_35
; %bb.42:                               ;   in Loop: Header=BB0_36 Depth=3
	subs	w20, w20, #1
	b.ge	LBB0_34
	b	LBB0_55
LBB0_43:                                ;   in Loop: Header=BB0_32 Depth=2
	cmp	w25, #32
	b.eq	LBB0_46
; %bb.44:                               ;   in Loop: Header=BB0_32 Depth=2
	cmp	w25, #24
	b.ne	LBB0_47
; %bb.45:                               ;   in Loop: Header=BB0_32 Depth=2
	ldp	w9, w10, [x17, #4]
	add	x14, x17, #16
	mov	w12, #255
	ldr	w11, [x17, #12]
	b	LBB0_47
LBB0_46:                                ;   in Loop: Header=BB0_32 Depth=2
	ldp	w9, w10, [x17, #4]
	add	x14, x17, #20
	ldp	w11, w12, [x17, #12]
LBB0_47:                                ;   in Loop: Header=BB0_32 Depth=2
	mov	w17, #0
	and	w1, w11, #0xff
	and	w2, w10, #0xff
	and	w3, w9, #0xff
	and	w4, w12, #0xff
	b	LBB0_50
LBB0_48:                                ;   in Loop: Header=BB0_50 Depth=3
	add	x15, x15, #16
LBB0_49:                                ;   in Loop: Header=BB0_50 Depth=3
	add	w5, w17, #1
	cmp	w17, w16
	mov	x17, x5
	b.hs	LBB0_31
LBB0_50:                                ;   Parent Loop BB0_29 Depth=1
                                        ;     Parent Loop BB0_32 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	stp	w1, w2, [x15]
	stp	w3, w4, [x15, #8]
	add	w13, w13, #1
	cmp	w13, w19
	b.ne	LBB0_48
; %bb.51:                               ;   in Loop: Header=BB0_50 Depth=3
	subs	w20, w20, #1
	b.lt	LBB0_55
; %bb.52:                               ;   in Loop: Header=BB0_50 Depth=3
	mov	w13, #0
	mul	w15, w22, w20
	add	x15, x0, w15, sxtw #2
	b	LBB0_49
LBB0_53:                                ;   in Loop: Header=BB0_29 Depth=1
	mov	x14, x17
LBB0_54:                                ;   in Loop: Header=BB0_29 Depth=1
	mov	x17, x14
	cmp	w20, #0
	b.gt	LBB0_29
LBB0_55:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_56:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Error
	cbnz	w28, LBB0_3
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LoadTGA: Only type 2 (RGB), 3 (gray), and 10 (RGB) TGA images supported\n"

l_.str.1:                               ; @.str.1
	.asciz	"LoadTGA: colormaps not supported\n"

l_.str.2:                               ; @.str.2
	.asciz	"LoadTGA: Only 32 or 24 bit images supported (no colormaps)\n"

.subsections_via_symbols
