	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _gdCreateFromFile
__gdCreateFromFile:                     ## @_gdCreateFromFile
	.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	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	movq	%r12, %rsi
	callq	_gdGetWord
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %eax
	movl	%eax, %ecx
	andl	$-2, %ecx
	xorl	%r14d, %r14d
	movl	$0, %edx
	movl	$0, %r13d
	cmpl	$65534, %ecx                    ## imm = 0xFFFE
	jne	LBB0_5
## %bb.3:
	xorl	%r13d, %r13d
	cmpl	$65534, %eax                    ## imm = 0xFFFE
	sete	-44(%rbp)                       ## 1-byte Folded Spill
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_gdGetWord
	testl	%eax, %eax
	je	LBB0_13
## %bb.4:
	movb	-44(%rbp), %al                  ## 1-byte Reload
	movb	%al, %r13b
	movl	$1, %edx
LBB0_5:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_gdGetWord
	testl	%eax, %eax
	je	LBB0_13
## %bb.6:
	movl	(%rbx), %esi
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movl	%eax, %edi
	callq	_GD2_DBG
	movl	(%rbx), %edi
	movl	(%r15), %esi
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.7:
	callq	_gdImageCreateTrueColor
	jmp	LBB0_9
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_8:
	callq	_gdImageCreate
LBB0_9:
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	__gdGetColors
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%ebx, %r14d
	jmp	LBB0_13
LBB0_12:
	movl	%ebx, %edi
	callq	_gdImageDestroy
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %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	"Image is %dx%d\n"

	.no_dead_strip	__gdCreateFromFile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _gdCreateFromFile
__gdCreateFromFile:                     ; @_gdCreateFromFile
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x22, x1
	mov	x19, x0
	mov	x0, x1
	mov	x1, x19
	bl	_gdGetWord
	cbz	w0, LBB0_11
; %bb.1:
	ldr	w8, [x22]
	mov	w9, #32767
	cmp	w9, w8, lsr #1
	b.ne	LBB0_4
; %bb.2:
	mov	w9, #65534
	cmp	w8, w9
	cset	w23, eq
	mov	x0, x22
	mov	x1, x19
	bl	_gdGetWord
	cbz	w0, LBB0_11
; %bb.3:
	mov	w21, #1
	b	LBB0_5
LBB0_4:
	mov	w21, #0
	mov	w23, #0
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	bl	_gdGetWord
	cbz	w0, LBB0_11
; %bb.6:
	ldr	w1, [x22]
	ldr	w2, [x20]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	bl	_GD2_DBG
	ldr	w0, [x22]
	ldr	w1, [x20]
	cbz	w23, LBB0_8
; %bb.7:
	bl	_gdImageCreateTrueColor
	mov	x20, x0
	cbnz	w0, LBB0_9
	b	LBB0_12
LBB0_8:
	bl	_gdImageCreate
	mov	x20, x0
	cbz	w0, LBB0_12
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	__gdGetColors
	cbnz	w0, LBB0_12
; %bb.10:
	mov	x0, x20
	bl	_gdImageDestroy
LBB0_11:
	mov	w20, #0
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Image is %dx%d\n"

	.no_dead_strip	__gdCreateFromFile
.subsections_via_symbols
