	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function main
LCPI0_0:
	.long	64                              ## 0x40
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	128                             ## 0x80
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$256, %edi                      ## imm = 0x100
	movl	$256, %esi                      ## imm = 0x100
	callq	_gdImageCreateTrueColor
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$255, %esi
	movl	$255, %edx
	movl	$255, %ecx
	callq	_gdImageColorAllocate
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_gdImageColorTransparent
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_gdImageCreateFromPng
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_fclose
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$32, %edx
	movl	$32, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$255
	pushq	$255
	pushq	$192
	pushq	$192
	callq	_gdImageCopyResized
	addq	$32, %rsp
	jmp	LBB0_3
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_fprintf
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_fprintf
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_fprintf
	xorl	%r15d, %r15d
LBB0_3:
	movq	%r14, %rdi
	movl	$255, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_gdImageColorAllocate
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$255, %edx
	xorl	%ecx, %ecx
	callq	_gdImageColorAllocate
	movl	%eax, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$255, %ecx
	callq	_gdImageColorAllocate
	movl	%eax, %r13d
	movq	%r14, %rdi
	movl	$16, %esi
	movl	$16, %edx
	movl	$240, %ecx
	movl	$16, %r8d
	movl	%r12d, %r9d
	callq	_gdImageLine
	movq	%r14, %rdi
	movl	$240, %esi
	movl	$16, %edx
	movl	$240, %ecx
	movl	$240, %r8d
	movl	%r12d, %r9d
	callq	_gdImageLine
	movq	%r14, %rdi
	movl	$240, %esi
	movl	$240, %edx
	movl	$16, %ecx
	movl	$240, %r8d
	movl	%r12d, %r9d
	callq	_gdImageLine
	movq	%r14, %rdi
	movl	$16, %esi
	movl	$240, %edx
	movl	$16, %ecx
	movl	$16, %r8d
	movl	%r12d, %r9d
	callq	_gdImageLine
	movq	%r14, %rdi
	movl	$128, %esi
	movl	$128, %edx
	movl	$60, %ecx
	movl	$20, %r8d
	xorl	%r9d, %r9d
	pushq	%r13
	pushq	$720                            ## imm = 0x2D0
	callq	_gdImageArc
	addq	$16, %rsp
	movq	%r14, %rdi
	movl	$128, %esi
	movl	$128, %edx
	movl	$40, %ecx
	movl	$40, %r8d
	movl	$90, %r9d
	pushq	%r13
	pushq	$270                            ## imm = 0x10E
	callq	_gdImageArc
	addq	$16, %rsp
	movq	%r14, %rdi
	movl	$8, %esi
	movl	$8, %edx
	movl	%r13d, %ecx
	callq	_gdImageFill
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [64,0,0,128]
	movaps	%xmm0, -80(%rbp)
	movabsq	$549755814016, %rax             ## imm = 0x8000000080
	movq	%rax, -64(%rbp)
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdi
	movl	$3, %edx
	movl	%r12d, %ecx
	callq	_gdImageFilledPolygon
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:
	movl	$16, %edi
	movl	$16, %esi
	callq	_gdImageCreateTrueColor
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_gdImageSX
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	callq	_gdImageSY
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_gdImageSX
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_gdImageSY
                                        ## kill: def $eax killed $eax def $rax
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%r13
	pushq	%rbx
	pushq	-128(%rbp)                      ## 8-byte Folded Reload
	callq	_gdImageCopyResized
	addq	$32, %rsp
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_gdImageSetBrush
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -112(%rbp)
	movups	%xmm0, -100(%rbp)
	movl	$1, -84(%rbp)
	leaq	-112(%rbp), %rsi
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_gdImageSetStyle
	movq	_gdStyledBrushed@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$255, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	callq	_gdImageLine
	movq	_gdFontGiant@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %r12
	movq	%r14, %rdi
	movl	$32, %edx
	movl	$32, %ecx
	movq	%r12, %r8
	movl	-116(%rbp), %ebx                ## 4-byte Reload
	movl	%ebx, %r9d
	callq	_gdImageString
	movq	_gdFontSmall@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$64, %edx
	movl	$64, %ecx
	movq	%r12, %r8
	movl	%ebx, %r9d
	callq	_gdImageStringUp
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_gdImageInterlace
	leaq	L_.str.6(%rip), %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_fopen
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_gdImagePng
	movq	%rbx, %rdi
	callq	_fclose
	movq	%r14, %rdi
	callq	_gdImageDestroy
	jmp	LBB0_6
LBB0_5:
	movq	_gdFontGiant@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %r15
	movq	%r14, %rdi
	movl	$32, %edx
	movl	$32, %ecx
	movq	%r15, %r8
	movl	-116(%rbp), %ebx                ## 4-byte Reload
	movl	%ebx, %r9d
	callq	_gdImageString
	movq	_gdFontSmall@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$64, %edx
	movl	$64, %ecx
	movq	%r15, %r8
	movl	%ebx, %r9d
	callq	_gdImageStringUp
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_gdImageInterlace
	leaq	L_.str.6(%rip), %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_fopen
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_gdImagePng
	movq	%rbx, %rdi
	callq	_fclose
	movq	%r14, %r15
LBB0_6:
	movq	%r15, %rdi
	callq	_gdImageDestroy
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"demoin.png"

L_.str.1:                               ## @.str.1
	.asciz	"rb"

	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"Can't load source image; this demo\n"

L_.str.3:                               ## @.str.3
	.asciz	"is much more impressive if demoin.png\n"

L_.str.4:                               ## @.str.4
	.asciz	"is available.\n"

	.comm	_gdStyledBrushed,4,2            ## @gdStyledBrushed
	.comm	_gdFontGiant,4,2                ## @gdFontGiant
L_.str.5:                               ## @.str.5
	.asciz	"hi"

	.comm	_gdFontSmall,4,2                ## @gdFontSmall
L_.str.6:                               ## @.str.6
	.asciz	"demoout.png"

L_.str.7:                               ## @.str.7
	.asciz	"wb"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function main
lCPI0_0:
	.long	64                              ; 0x40
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	128                             ; 0x80
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	mov	w0, #256
	mov	w1, #256
	bl	_gdImageCreateTrueColor
	mov	x19, x0
	mov	w1, #255
	mov	w2, #255
	mov	w3, #255
	bl	_gdImageColorAllocate
	mov	x1, x0
	mov	x0, x19
	bl	_gdImageColorTransparent
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	bl	_gdImageCreateFromPng
	mov	x20, x0
	mov	x0, x21
	bl	_fclose
	mov	x8, #1095216660735
	str	x8, [sp]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #32
	mov	w3, #32
	mov	w4, #0
	mov	w5, #0
	mov	w6, #192
	mov	w7, #192
	bl	_gdImageCopyResized
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x20, _stderr@GOTPAGE
Lloh8:
	ldr	x20, [x20, _stderr@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	ldr	w0, [x20]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	ldr	w0, [x20]
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	mov	x20, #0
LBB0_3:
	mov	x0, x19
	mov	w1, #255
	mov	w2, #0
	mov	w3, #0
	bl	_gdImageColorAllocate
	mov	x21, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #255
	mov	w3, #0
	bl	_gdImageColorAllocate
	mov	x22, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #255
	bl	_gdImageColorAllocate
	mov	x23, x0
	mov	x0, x19
	mov	w1, #16
	mov	w2, #16
	mov	w3, #240
	mov	w4, #16
	mov	x5, x22
	bl	_gdImageLine
	mov	x0, x19
	mov	w1, #240
	mov	w2, #16
	mov	w3, #240
	mov	w4, #240
	mov	x5, x22
	bl	_gdImageLine
	mov	x0, x19
	mov	w1, #240
	mov	w2, #240
	mov	w3, #16
	mov	w4, #240
	mov	x5, x22
	bl	_gdImageLine
	mov	x0, x19
	mov	w1, #16
	mov	w2, #240
	mov	w3, #16
	mov	w4, #16
	mov	x5, x22
	bl	_gdImageLine
	mov	x0, x19
	mov	w1, #128
	mov	w2, #128
	mov	w3, #60
	mov	w4, #20
	mov	w5, #0
	mov	w6, #720
	mov	x7, x23
	bl	_gdImageArc
	mov	x0, x19
	mov	w1, #128
	mov	w2, #128
	mov	w3, #40
	mov	w4, #40
	mov	w5, #90
	mov	x7, x23
	mov	w6, #270
	bl	_gdImageArc
	mov	x0, x19
	mov	w1, #8
	mov	w2, #8
	mov	x3, x23
	bl	_gdImageFill
Lloh15:
	adrp	x8, lCPI0_0@PAGE
Lloh16:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [sp, #48]
	movi.2s	v0, #128
	str	d0, [sp, #64]
	add	x1, sp, #48
	mov	x0, x19
	mov	w2, #3
	mov	x3, x22
	bl	_gdImageFilledPolygon
	cbz	x20, LBB0_5
; %bb.4:
	mov	w0, #16
	mov	w1, #16
	bl	_gdImageCreateTrueColor
	mov	x22, x0
	bl	_gdImageSX
	mov	x23, x0
	mov	x0, x22
	bl	_gdImageSY
	mov	x24, x0
	mov	x0, x20
	bl	_gdImageSX
	mov	x25, x0
	mov	x0, x20
	bl	_gdImageSY
	stp	w25, w0, [sp]
	mov	x0, x22
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	x6, x23
	mov	x7, x24
	bl	_gdImageCopyResized
	mov	x0, x19
	mov	x1, x22
	bl	_gdImageSetBrush
	stp	xzr, xzr, [sp, #16]
	mov	x8, #4294967296
	stp	xzr, x8, [sp, #32]
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #8
	bl	_gdImageSetStyle
Lloh17:
	adrp	x8, _gdStyledBrushed@GOTPAGE
Lloh18:
	ldr	x8, [x8, _gdStyledBrushed@GOTPAGEOFF]
Lloh19:
	ldr	w5, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #255
	mov	w3, #255
	mov	w4, #0
	bl	_gdImageLine
Lloh20:
	adrp	x8, _gdFontGiant@GOTPAGE
Lloh21:
	ldr	x8, [x8, _gdFontGiant@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x22, l_.str.5@PAGE
Lloh24:
	add	x22, x22, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	w2, #32
	mov	w3, #32
	mov	x4, x22
	mov	x5, x21
	bl	_gdImageString
Lloh25:
	adrp	x8, _gdFontSmall@GOTPAGE
Lloh26:
	ldr	x8, [x8, _gdFontSmall@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #64
	mov	w3, #64
	mov	x4, x22
	mov	x5, x21
	bl	_gdImageStringUp
	mov	x0, x19
	mov	w1, #1
	bl	_gdImageInterlace
Lloh28:
	adrp	x0, l_.str.6@PAGE
Lloh29:
	add	x0, x0, l_.str.6@PAGEOFF
Lloh30:
	adrp	x1, l_.str.7@PAGE
Lloh31:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_fopen
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_gdImagePng
	mov	x0, x21
	bl	_fclose
	mov	x0, x19
	bl	_gdImageDestroy
	b	LBB0_6
LBB0_5:
Lloh32:
	adrp	x8, _gdFontGiant@GOTPAGE
Lloh33:
	ldr	x8, [x8, _gdFontGiant@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x20, l_.str.5@PAGE
Lloh36:
	add	x20, x20, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	w2, #32
	mov	w3, #32
	mov	x4, x20
	mov	x5, x21
	bl	_gdImageString
Lloh37:
	adrp	x8, _gdFontSmall@GOTPAGE
Lloh38:
	ldr	x8, [x8, _gdFontSmall@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #64
	mov	w3, #64
	mov	x4, x20
	mov	x5, x21
	bl	_gdImageStringUp
	mov	x0, x19
	mov	w1, #1
	bl	_gdImageInterlace
Lloh40:
	adrp	x0, l_.str.6@PAGE
Lloh41:
	add	x0, x0, l_.str.6@PAGEOFF
Lloh42:
	adrp	x1, l_.str.7@PAGE
Lloh43:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_fopen
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_gdImagePng
	mov	x0, x20
	bl	_fclose
	mov	x20, x19
LBB0_6:
	mov	x0, x20
	bl	_gdImageDestroy
	ldr	x8, [sp, #72]
Lloh44:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh45:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #0
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"demoin.png"

l_.str.1:                               ; @.str.1
	.asciz	"rb"

	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"Can't load source image; this demo\n"

l_.str.3:                               ; @.str.3
	.asciz	"is much more impressive if demoin.png\n"

l_.str.4:                               ; @.str.4
	.asciz	"is available.\n"

	.comm	_gdStyledBrushed,4,2            ; @gdStyledBrushed
	.comm	_gdFontGiant,4,2                ; @gdFontGiant
l_.str.5:                               ; @.str.5
	.asciz	"hi"

	.comm	_gdFontSmall,4,2                ; @gdFontSmall
l_.str.6:                               ; @.str.6
	.asciz	"demoout.png"

l_.str.7:                               ; @.str.7
	.asciz	"wb"

.subsections_via_symbols
