	.file	"extr_stb_image.h_stbi__hdr_info.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"#?RADIANCE"
.LC1:
	.string	"FORMAT=32-bit_rle_rgbe"
.LC2:
	.string	"-Y "
.LC3:
	.string	"+X "
	.text
	.p2align 4
	.type	stbi__hdr_info, @function
stbi__hdr_info:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	.cfi_offset 15, -24
	mov	r15, rdx
	push	r14
	push	r13
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rdi
	push	r12
	push	rbx
	sub	rsp, 40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -80[rbp], rcx
	mov	QWORD PTR -72[rbp], rsi
	mov	rcx, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR STBI__HDR_BUFLEN[rip]
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L24:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L24
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L25
.L4:
	mov	rsi, rsp
	mov	rdi, r13
	mov	r14, rsp
	xor	r12d, r12d
	call	stbi__hdr_gettoken@PLT
	lea	rsi, .LC0[rip]
	mov	ebx, 1
	mov	rdi, rax
	call	strcmp@PLT
	test	rax, rax
	je	.L5
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L26:
	lea	rsi, .LC1[rip]
	call	strcmp@PLT
	test	rax, rax
	cmove	r12d, ebx
.L5:
	mov	rdi, r13
	mov	rsi, r14
	call	stbi__hdr_gettoken@PLT
	mov	QWORD PTR -64[rbp], rax
	cmp	BYTE PTR [rax], 0
	mov	rdi, rax
	jne	.L26
	test	r12d, r12d
	je	.L9
	mov	rsi, r14
	mov	rdi, r13
	call	stbi__hdr_gettoken@PLT
	mov	edx, 3
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	QWORD PTR -64[rbp], rax
	call	strncmp@PLT
	test	rax, rax
	jne	.L9
	mov	rax, QWORD PTR -64[rbp]
	lea	rsi, -64[rbp]
	mov	edx, 10
	lea	rdi, 3[rax]
	mov	QWORD PTR -64[rbp], rdi
	call	strtol@PLT
	mov	rdi, QWORD PTR -64[rbp]
	mov	DWORD PTR [r15], eax
	cmp	BYTE PTR [rdi], 32
	jne	.L10
	lea	rax, 1[rdi]
	.p2align 4,,10
	.p2align 3
.L11:
	mov	QWORD PTR -64[rbp], rax
	mov	rdi, rax
	add	rax, 1
	cmp	BYTE PTR -1[rax], 32
	je	.L11
.L10:
	mov	edx, 3
	lea	rsi, .LC3[rip]
	call	strncmp@PLT
	test	rax, rax
	jne	.L9
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, 10
	xor	esi, esi
	lea	rdi, 3[rax]
	mov	QWORD PTR -64[rbp], rdi
	call	strtol@PLT
	mov	rcx, QWORD PTR -72[rbp]
	mov	DWORD PTR [rcx], eax
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR [rax], 3
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L27
	lea	rsp, -40[rbp]
	mov	eax, r12d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, r13
	xor	r12d, r12d
	call	stbi__rewind@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	stbi__hdr_info, .-stbi__hdr_info
	.comm	STBI__HDR_BUFLEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_stb_image.h_stbi__hdr_info.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"#?RADIANCE\000"
	.align	2
.LC1:
	.ascii	"FORMAT=32-bit_rle_rgbe\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stbi__hdr_info, %function
stbi__hdr_info:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #12
	ldr	ip, .L23
	mov	r10, r1
	ldr	r1, [ip]
	mov	r9, r3
	add	r1, r1, #7
	bic	r1, r1, #7
	ldr	r3, .L23+4
	sub	sp, sp, r1
	mov	r1, sp
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	mov	r5, r0
	bl	stbi__hdr_gettoken
	ldr	r1, .L23+8
	bl	strcmp
	subs	r4, r0, #0
	bne	.L6
	mov	r6, sp
	ldr	r7, .L23+12
	b	.L2
.L20:
	mov	r1, r7
	bl	strcmp
	cmp	r0, #0
	moveq	r4, #1
.L2:
	mov	r1, r6
	mov	r0, r5
	bl	stbi__hdr_gettoken
	str	r0, [fp, #-44]
	ldrb	r3, [r0]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L20
	cmp	r4, #0
	beq	.L6
	mov	r1, r6
	mov	r0, r5
	bl	stbi__hdr_gettoken
	str	r0, [fp, #-44]
	ldrb	r3, [r0]	@ zero_extendqisi2
	cmp	r3, #45
	beq	.L21
.L6:
	mov	r0, r5
	bl	stbi__rewind
	mov	r4, #0
.L1:
	ldr	r3, .L23+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	mov	r0, r4
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	ldrb	r3, [r0, #1]	@ zero_extendqisi2
	cmp	r3, #89
	bne	.L6
	ldrb	r3, [r0, #2]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L6
	mov	r2, #10
	add	r0, r0, #3
	sub	r1, fp, #44
	str	r0, [fp, #-44]
	bl	strtol
	ldr	r3, [fp, #-44]
	str	r0, [r8]
	ldrb	r2, [r3]	@ zero_extendqisi2
	cmp	r2, #32
	bne	.L8
.L9:
	add	r3, r3, #1
	str	r3, [fp, #-44]
	ldrb	r2, [r3]	@ zero_extendqisi2
	cmp	r2, #32
	beq	.L9
.L8:
	ldrb	r2, [r3]	@ zero_extendqisi2
	cmp	r2, #43
	bne	.L6
	ldrb	r2, [r3, #1]	@ zero_extendqisi2
	cmp	r2, #88
	bne	.L6
	ldrb	r1, [r3, #2]	@ zero_extendqisi2
	subs	r1, r1, #32
	bne	.L6
	add	r0, r3, #3
	mov	r2, #10
	str	r0, [fp, #-44]
	bl	strtol
	mov	r3, #3
	str	r0, [r10]
	str	r3, [r9]
	b	.L1
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	STBI__HDR_BUFLEN
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	stbi__hdr_info, .-stbi__hdr_info
	.comm	STBI__HDR_BUFLEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
