	.file	"750135.c"
	.intel_syntax noprefix
	.text
	.globl	open_or_exit
	.type	open_or_exit, @function
open_or_exit:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	open_or_exit, .-open_or_exit
	.section	.rodata
	.align 8
.LC0:
	.string	"USAGE: %s {rsrc}\n\n  Creates bindata_{sym}.cpp from the contents of {rsrc}_r.jpg (etc)\n"
.LC1:
	.string	"bindata_%s.cpp"
.LC2:
	.string	"w"
.LC3:
	.string	"#include <vector>\n"
	.align 8
.LC4:
	.string	"#include \"polyscope/gl/materials/materials.h\"\n"
.LC5:
	.string	"namespace polyscope { \n"
.LC6:
	.string	"namespace gl { \n"
	.align 8
.LC7:
	.string	"const std::vector<std::vector<unsigned char>> bindata_%s = {\n"
.LC8:
	.string	"%s_r.jpg"
.LC9:
	.string	"%s_g.jpg"
.LC10:
	.string	"%s_b.jpg"
.LC11:
	.string	"{\n"
.LC12:
	.string	"r"
.LC13:
	.string	"0x%02x, "
.LC14:
	.string	"},\n"
.LC15:
	.string	"};\n"
.LC16:
	.string	"}}"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 864
	mov	DWORD PTR -852[rbp], edi
	mov	QWORD PTR -864[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -852[rbp], 1
	jg	.L5
	mov	rax, QWORD PTR -864[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L17
.L5:
	mov	rax, QWORD PTR -864[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -816[rbp], rax
	mov	rdx, QWORD PTR -816[rbp]
	lea	rax, -784[rbp]
	mov	rcx, rdx
	lea	rdx, .LC1[rip]
	mov	esi, 256
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -784[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	open_or_exit
	mov	QWORD PTR -808[rbp], rax
	mov	rax, QWORD PTR -808[rbp]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -808[rbp]
	mov	rcx, rax
	mov	edx, 46
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -808[rbp]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -808[rbp]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	rdx, QWORD PTR -816[rbp]
	mov	rax, QWORD PTR -808[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -836[rbp], 0
	jmp	.L7
.L16:
	cmp	DWORD PTR -836[rbp], 0
	jne	.L8
	mov	rdx, QWORD PTR -816[rbp]
	lea	rax, -528[rbp]
	mov	rcx, rdx
	lea	rdx, .LC8[rip]
	mov	esi, 256
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
.L8:
	cmp	DWORD PTR -836[rbp], 1
	jne	.L9
	mov	rdx, QWORD PTR -816[rbp]
	lea	rax, -528[rbp]
	mov	rcx, rdx
	lea	rdx, .LC9[rip]
	mov	esi, 256
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
.L9:
	cmp	DWORD PTR -836[rbp], 2
	jne	.L10
	mov	rdx, QWORD PTR -816[rbp]
	lea	rax, -528[rbp]
	mov	rcx, rdx
	lea	rdx, .LC10[rip]
	mov	esi, 256
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
.L10:
	mov	rax, QWORD PTR -808[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	lea	rax, -528[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	open_or_exit
	mov	QWORD PTR -800[rbp], rax
	mov	QWORD PTR -792[rbp], 0
	mov	QWORD PTR -832[rbp], 0
.L14:
	mov	rdx, QWORD PTR -800[rbp]
	lea	rax, -272[rbp]
	mov	rcx, rdx
	mov	edx, 256
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	QWORD PTR -792[rbp], rax
	mov	QWORD PTR -824[rbp], 0
	jmp	.L11
.L13:
	lea	rdx, -272[rbp]
	mov	rax, QWORD PTR -824[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -808[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	QWORD PTR -832[rbp], 1
	cmp	QWORD PTR -832[rbp], 10
	jne	.L12
	mov	rax, QWORD PTR -808[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	QWORD PTR -832[rbp], 0
.L12:
	add	QWORD PTR -824[rbp], 1
.L11:
	mov	rax, QWORD PTR -824[rbp]
	cmp	rax, QWORD PTR -792[rbp]
	jb	.L13
	cmp	QWORD PTR -792[rbp], 0
	jne	.L14
	cmp	QWORD PTR -832[rbp], 0
	je	.L15
	mov	rax, QWORD PTR -808[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
.L15:
	mov	rax, QWORD PTR -808[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -800[rbp]
	mov	rdi, rax
	call	fclose@PLT
	add	DWORD PTR -836[rbp], 1
.L7:
	cmp	DWORD PTR -836[rbp], 2
	jle	.L16
	mov	rax, QWORD PTR -808[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -808[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC16[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -808[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L17:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"750135.c"
	.text
	.align	2
	.global	open_or_exit
	.syntax unified
	.arm
	.fpu softvfp
	.type	open_or_exit, %function
open_or_exit:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L2
	ldr	r0, [fp, #-16]
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	open_or_exit, .-open_or_exit
	.section	.rodata
	.align	2
.LC0:
	.ascii	"USAGE: %s {rsrc}\012\012  Creates bindata_{sym}.cpp"
	.ascii	" from the contents of {rsrc}_r.jpg (etc)\012\000"
	.align	2
.LC1:
	.ascii	"bindata_%s.cpp\000"
	.align	2
.LC2:
	.ascii	"w\000"
	.align	2
.LC3:
	.ascii	"#include <vector>\012\000"
	.align	2
.LC4:
	.ascii	"#include \"polyscope/gl/materials/materials.h\"\012"
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"namespace polyscope { \012\000"
	.align	2
.LC6:
	.ascii	"namespace gl { \012\000"
	.align	2
.LC7:
	.ascii	"const std::vector<std::vector<unsigned char>> binda"
	.ascii	"ta_%s = {\012\000"
	.align	2
.LC8:
	.ascii	"%s_r.jpg\000"
	.align	2
.LC9:
	.ascii	"%s_g.jpg\000"
	.align	2
.LC10:
	.ascii	"%s_b.jpg\000"
	.align	2
.LC11:
	.ascii	"{\012\000"
	.align	2
.LC12:
	.ascii	"r\000"
	.align	2
.LC13:
	.ascii	"0x%02x, \000"
	.align	2
.LC14:
	.ascii	"},\012\000"
	.align	2
.LC15:
	.ascii	"};\012\000"
	.align	2
.LC16:
	.ascii	"}}\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 808
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #808
	str	r0, [fp, #-808]
	str	r1, [fp, #-812]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-808]
	cmp	r3, #1
	bgt	.L5
	ldr	r3, .L19+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-812]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L19+8
	bl	fprintf
	mov	r3, #1
	b	.L17
.L5:
	ldr	r3, [fp, #-812]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-792]
	sub	r0, fp, #776
	ldr	r3, [fp, #-792]
	ldr	r2, .L19+12
	mov	r1, #256
	bl	snprintf
	sub	r3, fp, #776
	ldr	r1, .L19+16
	mov	r0, r3
	bl	open_or_exit
	str	r0, [fp, #-788]
	ldr	r3, [fp, #-788]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L19+20
	bl	fwrite
	ldr	r3, [fp, #-788]
	mov	r2, #46
	mov	r1, #1
	ldr	r0, .L19+24
	bl	fwrite
	ldr	r3, [fp, #-788]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L19+28
	bl	fwrite
	ldr	r3, [fp, #-788]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L19+32
	bl	fwrite
	ldr	r2, [fp, #-792]
	ldr	r1, .L19+36
	ldr	r0, [fp, #-788]
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-804]
	b	.L7
.L16:
	ldr	r3, [fp, #-804]
	cmp	r3, #0
	bne	.L8
	sub	r0, fp, #520
	ldr	r3, [fp, #-792]
	ldr	r2, .L19+40
	mov	r1, #256
	bl	snprintf
.L8:
	ldr	r3, [fp, #-804]
	cmp	r3, #1
	bne	.L9
	sub	r0, fp, #520
	ldr	r3, [fp, #-792]
	ldr	r2, .L19+44
	mov	r1, #256
	bl	snprintf
.L9:
	ldr	r3, [fp, #-804]
	cmp	r3, #2
	bne	.L10
	sub	r0, fp, #520
	ldr	r3, [fp, #-792]
	ldr	r2, .L19+48
	mov	r1, #256
	bl	snprintf
.L10:
	ldr	r3, [fp, #-788]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L19+52
	bl	fwrite
	sub	r3, fp, #520
	ldr	r1, .L19+56
	mov	r0, r3
	bl	open_or_exit
	str	r0, [fp, #-784]
	mov	r3, #0
	str	r3, [fp, #-780]
	mov	r3, #0
	str	r3, [fp, #-800]
.L14:
	sub	r0, fp, #264
	ldr	r3, [fp, #-784]
	mov	r2, #256
	mov	r1, #1
	bl	fread
	str	r0, [fp, #-780]
	mov	r3, #0
	str	r3, [fp, #-796]
	b	.L11
.L13:
	sub	r2, fp, #264
	ldr	r3, [fp, #-796]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, .L19+60
	ldr	r0, [fp, #-788]
	bl	fprintf
	ldr	r3, [fp, #-800]
	add	r3, r3, #1
	str	r3, [fp, #-800]
	ldr	r3, [fp, #-800]
	cmp	r3, #10
	bne	.L12
	ldr	r1, [fp, #-788]
	mov	r0, #10
	bl	fputc
	mov	r3, #0
	str	r3, [fp, #-800]
.L12:
	ldr	r3, [fp, #-796]
	add	r3, r3, #1
	str	r3, [fp, #-796]
.L11:
	ldr	r2, [fp, #-796]
	ldr	r3, [fp, #-780]
	cmp	r2, r3
	bcc	.L13
	ldr	r3, [fp, #-780]
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-800]
	cmp	r3, #0
	beq	.L15
	ldr	r1, [fp, #-788]
	mov	r0, #10
	bl	fputc
.L15:
	ldr	r3, [fp, #-788]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L19+64
	bl	fwrite
	ldr	r0, [fp, #-784]
	bl	fclose
	ldr	r3, [fp, #-804]
	add	r3, r3, #1
	str	r3, [fp, #-804]
.L7:
	ldr	r3, [fp, #-804]
	cmp	r3, #2
	ble	.L16
	ldr	r3, [fp, #-788]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L19+68
	bl	fwrite
	ldr	r3, [fp, #-788]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L19+72
	bl	fwrite
	ldr	r0, [fp, #-788]
	bl	fclose
	mov	r3, #0
.L17:
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC17
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
