	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_sprite
_create_sprite:                         ## @create_sprite
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	leaq	-112(%rbp), %r12
	movq	_stderr@GOTPCREL(%rip), %rbx
	jmp	LBB0_1
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %r13d
	movq	-64(%rbp), %rax
	movq	%rax, 48(%rsp)
	movups	-112(%rbp), %xmm0
	movups	-96(%rbp), %xmm1
	movups	-80(%rbp), %xmm2
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_PNG_IMAGE_SIZE
	movl	%r13d, %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	%r12, %rdi
	callq	_png_image_free
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %eax
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$1, %eax
	je	LBB0_16
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%r15)
	jle	LBB0_17
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$0, -52(%rbp)
	movl	$0, -48(%rbp)
	movq	(%r14), %rax
	movq	(%rax), %rdi
	cmpb	$45, (%rdi)
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$45, 1(%rdi)
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str(%rip), %rsi
	leaq	-52(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-41(%rbp), %r8
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	$8, (%r14)
	decl	(%r15)
	xorl	%eax, %eax
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_PNG_IMAGE_VERSION@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -64(%rbp)
	movq	$0, -72(%rbp)
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_png_image_begin_read_from_file
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_PNG_FORMAT_LINEAR_RGB_ALPHA@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 48(%rsp)
	movups	-112(%rbp), %xmm0
	movups	-96(%rbp), %xmm1
	movups	-80(%rbp), %xmm2
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_PNG_IMAGE_SIZE
	movq	%rax, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r13
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rax, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_png_image_finish_read
	testq	%rax, %rax
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	-52(%rbp), %esi
	movl	-48(%rbp), %edx
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movq	%r12, %rcx
	movq	%r13, %r8
	callq	_sprite_op
	movq	%r13, %rdi
	callq	_free
	addq	$8, (%r14)
	decl	(%r15)
	movl	$2, %eax
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %edi
	movq	(%r14), %rax
	movq	(%rax), %rdx
	movq	-112(%rbp), %rcx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_13
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_free
	movl	(%rbx), %edi
	movq	(%r14), %rax
	movq	(%rax), %rdx
	movq	-112(%rbp), %rcx
	leaq	L_.str.1(%rip), %rsi
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_14
LBB0_17:
	movq	%rbx, %r15
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_tmpfile
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_21
## %bb.18:
	leaq	-112(%rbp), %r14
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	_PNG_IMAGE_VERSION@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	$0, -72(%rbp)
	movl	28(%rbx), %eax
	movl	%eax, -76(%rbp)
	movl	24(%rbx), %eax
	movl	%eax, -80(%rbp)
	movq	_PNG_FORMAT_LINEAR_RGB_ALPHA@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)
	movq	_PNG_IMAGE_FLAG_FAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	movq	$0, -104(%rbp)
	movq	8(%rbx), %rcx
	movq	16(%rbx), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_png_image_write_to_stdio
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:
	movq	8(%rbx), %rdi
	callq	_free
	movq	$0, 8(%rbx)
	movl	$1, %r12d
	jmp	LBB0_23
LBB0_16:
	xorl	%r12d, %r12d
	jmp	LBB0_23
LBB0_21:
	movl	(%r15), %r14d
	movq	(%rbx), %r15
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.5(%rip), %rsi
	movl	%r14d, %edi
	movq	%r15, %rdx
	movq	%rax, %rcx
	jmp	LBB0_22
LBB0_19:
	movl	(%r15), %edi
	movq	(%rbx), %rdx
	movq	-112(%rbp), %rcx
	leaq	L_.str.4(%rip), %rsi
LBB0_22:
	xorl	%eax, %eax
	callq	_fprintf
LBB0_23:
	movl	%r12d, %eax
	addq	$136, %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	"--at=%d,%d%c"

	.comm	_PNG_IMAGE_VERSION,8,3          ## @PNG_IMAGE_VERSION
	.comm	_PNG_FORMAT_LINEAR_RGB_ALPHA,8,3 ## @PNG_FORMAT_LINEAR_RGB_ALPHA
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"simpleover: read %s: %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"simpleover: out of memory: %lu bytes\n"

L_.str.3:                               ## @.str.3
	.asciz	"simpleover: %s: %s\n"

	.comm	_PNG_IMAGE_FLAG_FAST,4,2        ## @PNG_IMAGE_FLAG_FAST
L_.str.4:                               ## @.str.4
	.asciz	"simpleover: write sprite %s: %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"simpleover: sprite %s: could not allocate tmpfile: %s\n"

	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_create_sprite
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_sprite
_create_sprite:                         ; @create_sprite
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
Lloh2:
	adrp	x25, _PNG_IMAGE_VERSION@GOTPAGE
Lloh3:
	ldr	x25, [x25, _PNG_IMAGE_VERSION@GOTPAGEOFF]
Lloh4:
	adrp	x27, _stderr@GOTPAGE
Lloh5:
	ldr	x27, [x27, _stderr@GOTPAGEOFF]
Lloh6:
	adrp	x23, l_.str.3@PAGE
Lloh7:
	add	x23, x23, l_.str.3@PAGEOFF
Lloh8:
	adrp	x28, _PNG_FORMAT_LINEAR_RGB_ALPHA@GOTPAGE
Lloh9:
	ldr	x28, [x28, _PNG_FORMAT_LINEAR_RGB_ALPHA@GOTPAGEOFF]
Lloh10:
	adrp	x24, l_.str.2@PAGE
Lloh11:
	add	x24, x24, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w26, [x27]
	ldur	q0, [sp, #72]
	ldur	q1, [sp, #88]
	stp	q0, q1, [sp, #16]
	ldur	q0, [sp, #104]
	str	q0, [sp, #48]
	ldr	x8, [sp, #120]
	str	x8, [sp, #64]
	add	x0, sp, #16
	bl	_PNG_IMAGE_SIZE
	str	x0, [sp]
	mov	x0, x26
	mov	x1, x24
	bl	_fprintf
	add	x0, sp, #72
	bl	_png_image_free
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #1
	b.eq	LBB0_22
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	stur	xzr, [x29, #-92]
	ldr	x8, [x20]
	ldr	x0, [x8]
	ldrb	w9, [x0]
	cmp	w9, #45
	b.ne	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w9, [x0, #1]
	cmp	w9, #45
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x2, x29, #88
	sub	x3, x29, #92
	sub	x4, x29, #81
	mov	x1, x22
	bl	_sscanf
	cmp	w0, #2
	b.ne	LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #0
	ldr	x9, [x20]
	add	x9, x9, #8
	str	x9, [x20]
	ldr	w9, [x21]
	sub	w9, w9, #1
	str	w9, [x21]
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x25]
	stp	xzr, x9, [sp, #112]
	ldr	x1, [x8]
	add	x0, sp, #72
	bl	_png_image_begin_read_from_file
	cbz	x0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x28]
	str	x8, [sp, #96]
	ldur	q0, [sp, #72]
	ldur	q1, [sp, #88]
	stp	q0, q1, [sp, #16]
	ldur	q0, [sp, #104]
	str	q0, [sp, #48]
	ldr	x8, [sp, #120]
	str	x8, [sp, #64]
	add	x0, sp, #16
	bl	_PNG_IMAGE_SIZE
	bl	_malloc
	cbz	x0, LBB0_1
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
	add	x0, sp, #72
	mov	x1, #0
	mov	x2, x26
	mov	w3, #0
	mov	x4, #0
	bl	_png_image_finish_read
	cbz	x0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldp	w2, w1, [x29, #-92]
	add	x3, sp, #72
	mov	x0, x19
	mov	x4, x26
	bl	_sprite_op
	mov	x0, x26
	bl	_free
	ldr	x8, [x20]
	add	x8, x8, #8
	str	x8, [x20]
	ldr	w8, [x21]
	sub	w8, w8, #1
	str	w8, [x21]
	mov	w8, #2
	b	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x27]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x9, [sp, #72]
	stp	x8, x9, [sp]
	mov	x1, x23
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	bl	_free
	ldr	w0, [x27]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x9, [sp, #72]
	stp	x8, x9, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_fprintf
	b	LBB0_2
LBB0_16:
	bl	_tmpfile
	str	x0, [x19, #16]
	cbz	x0, LBB0_19
; %bb.17:
	add	x0, sp, #72
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	ldr	x8, [x25]
	stp	xzr, x8, [sp, #112]
	ldr	d0, [x19, #24]
	str	d0, [sp, #104]
	ldr	x8, [x28]
Lloh14:
	adrp	x9, _PNG_IMAGE_FLAG_FAST@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PNG_IMAGE_FLAG_FAST@GOTPAGEOFF]
	str	x8, [sp, #96]
Lloh16:
	ldr	w8, [x9]
	str	w8, [sp, #88]
	str	xzr, [sp, #80]
	ldp	x3, x1, [x19, #8]
	add	x0, sp, #72
	mov	w2, #1
	mov	w4, #0
	mov	x5, #0
	bl	_png_image_write_to_stdio
	cbz	x0, LBB0_20
; %bb.18:
	ldr	x0, [x19, #8]
	bl	_free
	str	xzr, [x19, #8]
	mov	w0, #1
	b	LBB0_23
LBB0_19:
	ldr	w20, [x27]
	ldr	x19, [x19]
Lloh17:
	adrp	x8, _errno@GOTPAGE
Lloh18:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_strerror
	stp	x19, x0, [sp]
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	b	LBB0_21
LBB0_20:
	ldr	w0, [x27]
	ldr	x8, [x19]
	ldr	x9, [sp, #72]
	stp	x8, x9, [sp]
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_21:
	bl	_fprintf
LBB0_22:
	mov	w0, #0
LBB0_23:
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"--at=%d,%d%c"

	.comm	_PNG_IMAGE_VERSION,8,3          ; @PNG_IMAGE_VERSION
	.comm	_PNG_FORMAT_LINEAR_RGB_ALPHA,8,3 ; @PNG_FORMAT_LINEAR_RGB_ALPHA
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"simpleover: read %s: %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"simpleover: out of memory: %lu bytes\n"

l_.str.3:                               ; @.str.3
	.asciz	"simpleover: %s: %s\n"

	.comm	_PNG_IMAGE_FLAG_FAST,4,2        ; @PNG_IMAGE_FLAG_FAST
l_.str.4:                               ; @.str.4
	.asciz	"simpleover: write sprite %s: %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"simpleover: sprite %s: could not allocate tmpfile: %s\n"

	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_create_sprite
.subsections_via_symbols
