	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Load256Image                   ## -- Begin function Load256Image
	.p2align	4, 0x90
_Load256Image:                          ## @Load256Image
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -184(%rbp)                 ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-176(%rbp), %r14
	movq	%r14, %rsi
	callq	_ExtractFileExtension
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_Q_stricmp
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	leaq	-176(%rbp), %rdi
	callq	_Q_stricmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	leaq	-176(%rbp), %rdi
	callq	_Q_stricmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	callq	_Error
	jmp	LBB0_10
LBB0_1:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_LoadLBM
	testq	%r15, %r15
	je	LBB0_3
## %bb.2:
	movq	_bmhd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_3:
	movq	-184(%rbp), %rcx                ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.4:
	movq	_bmhd@GOTPCREL(%rip), %rax
	movl	4(%rax), %eax
	movl	%eax, (%rcx)
	jmp	LBB0_10
LBB0_6:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	movq	-184(%rbp), %r8                 ## 8-byte Reload
	callq	_LoadPCX
	jmp	LBB0_10
LBB0_8:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	movq	-184(%rbp), %r8                 ## 8-byte Reload
	callq	_LoadBMP
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lbm"

	.comm	_bmhd,8,2                       ## @bmhd
L_.str.1:                               ## @.str.1
	.asciz	"pcx"

L_.str.2:                               ## @.str.2
	.asciz	"bmp"

L_.str.3:                               ## @.str.3
	.asciz	"%s doesn't have a known image extension"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Load256Image                   ; -- Begin function Load256Image
	.p2align	2
_Load256Image:                          ; @Load256Image
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	add	x1, sp, #8
	bl	_ExtractFileExtension
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_Q_stricmp
	cbz	w0, LBB0_4
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	bl	_Q_stricmp
	cbz	w0, LBB0_8
; %bb.2:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	bl	_Q_stricmp
	cbz	w0, LBB0_9
; %bb.3:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x22
	bl	_Error
	b	LBB0_10
LBB0_4:
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	bl	_LoadLBM
Lloh11:
	adrp	x8, _bmhd@GOTPAGE
Lloh12:
	ldr	x8, [x8, _bmhd@GOTPAGEOFF]
	cbz	x20, LBB0_6
; %bb.5:
	ldr	w9, [x8]
	str	w9, [x20]
LBB0_6:
	cbz	x19, LBB0_10
; %bb.7:
	ldr	w8, [x8, #4]
	str	w8, [x19]
	b	LBB0_10
LBB0_8:
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_LoadPCX
	b	LBB0_10
LBB0_9:
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_LoadBMP
LBB0_10:
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lbm"

	.comm	_bmhd,8,2                       ; @bmhd
l_.str.1:                               ; @.str.1
	.asciz	"pcx"

l_.str.2:                               ; @.str.2
	.asciz	"bmp"

l_.str.3:                               ; @.str.3
	.asciz	"%s doesn't have a known image extension"

.subsections_via_symbols
