	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdImageCreateFromGdCtx         ## -- Begin function gdImageCreateFromGdCtx
	.p2align	4, 0x90
_gdImageCreateFromGdCtx:                ## @gdImageCreateFromGdCtx
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	leaq	-44(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	__gdCreateFromFile
	testq	%rax, %rax
	je	LBB0_19
## %bb.1:
	movq	%rax, %r12
	cmpq	$0, 16(%rax)
	movl	-48(%rbp), %eax
	je	LBB0_10
## %bb.2:
	testl	%eax, %eax
	jle	LBB0_20
## %bb.3:
	movl	-44(%rbp), %ecx
	xorl	%r13d, %r13d
	leaq	-52(%rbp), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movslq	%eax, %rdx
	cmpq	%rdx, %r13
	jge	LBB0_20
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_gdGetInt
	testl	%eax, %eax
	je	LBB0_18
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	-52(%rbp), %eax
	movq	(%r12), %rcx
	movq	(%rcx,%r13,8), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	-44(%rbp), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-48(%rbp), %eax
	jmp	LBB0_9
LBB0_10:
	testl	%eax, %eax
	jle	LBB0_20
## %bb.11:
	movl	-44(%rbp), %ecx
	xorl	%r13d, %r13d
	movq	_EOF@GOTPCREL(%rip), %r15
	jmp	LBB0_12
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	-48(%rbp), %eax
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r13
	movslq	%eax, %rdx
	cmpq	%rdx, %r13
	jge	LBB0_20
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r14d, %edi
	callq	_gdGetC
	cmpl	(%r15), %eax
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	8(%r12), %rcx
	movq	(%rcx,%r13,8), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	-44(%rbp), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_14
	jmp	LBB0_16
LBB0_18:
	movq	%r12, %rdi
	callq	_gdImageDestroy
LBB0_19:
	xorl	%r12d, %r12d
LBB0_20:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOF,4,2                        ## @EOF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdImageCreateFromGdCtx         ; -- Begin function gdImageCreateFromGdCtx
	.p2align	2
_gdImageCreateFromGdCtx:                ; @gdImageCreateFromGdCtx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	add	x1, sp, #12
	add	x2, sp, #8
	bl	__gdCreateFromFile
	mov	x19, x0
	cbz	x0, LBB0_19
; %bb.1:
	ldr	x9, [x19, #16]
	ldr	w8, [sp, #8]
	cmp	w8, #1
	cbz	x9, LBB0_10
; %bb.2:
	b.lt	LBB0_19
; %bb.3:
	mov	x21, #0
	ldr	w9, [sp, #12]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_19
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, #0
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #4
	mov	x1, x20
	bl	_gdGetInt
	cbz	w0, LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x19]
	ldr	x8, [x8, x21, lsl #3]
	ldr	w9, [sp, #4]
	str	w9, [x8, x22, lsl #2]
	add	x22, x22, #1
	ldrsw	x9, [sp, #12]
	cmp	x22, x9
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #8]
	b	LBB0_4
LBB0_10:
	b.lt	LBB0_19
; %bb.11:
	mov	x21, #0
	ldr	w9, [sp, #12]
Lloh0:
	adrp	x22, _EOF@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EOF@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [sp, #8]
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_19
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	cmp	w9, #1
	b.lt	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x23, #0
LBB0_16:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_gdGetC
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x21, lsl #3]
	str	w0, [x8, x23, lsl #2]
	add	x23, x23, #1
	ldrsw	x9, [sp, #12]
	cmp	x23, x9
	b.lt	LBB0_16
	b	LBB0_12
LBB0_18:
	mov	x0, x19
	bl	_gdImageDestroy
	mov	x19, #0
LBB0_19:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EOF,4,2                        ; @EOF
.subsections_via_symbols
