	.file	"extr_load-pnm.c_pam_binary_read_header.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"unknown header token in pnm image"
	.text
	.p2align 4
	.type	pam_binary_read_header, @function
pam_binary_read_header:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	lea	r13, .L5[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rcx
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	ecx, DWORD PTR TOKEN_UNKNOWN[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 32[rsi], 0
	mov	DWORD PTR 4[rsp], ecx
	mov	QWORD PTR 24[rsi], 0
	mov	QWORD PTR 16[rsi], 0
	mov	QWORD PTR 8[rsi], 0
	mov	QWORD PTR [rsi], 0
.L13:
	cmp	rbp, rbx
	jnb	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	cmp	ecx, 132
	je	.L1
	mov	rsi, rbp
	lea	rcx, 4[rsp]
	mov	rdx, rbx
	mov	rdi, r12
	call	pnm_read_token@PLT
	xor	ecx, ecx
	mov	rdx, rbx
	mov	rdi, r12
	mov	rsi, rax
	call	pnm_read_white@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR 4[rsp]
	add	eax, -128
	cmp	eax, 5
	ja	.L3
	movsx	rax, DWORD PTR 0[r13+rax*4]
	add	rax, r13
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L10-.L5
	.long	.L9-.L5
	.long	.L8-.L5
	.long	.L7-.L5
	.long	.L6-.L5
	.long	.L4-.L5
	.text
	.p2align 4,,10
	.p2align 3
.L7:
	lea	rcx, 24[r14]
.L21:
	mov	rsi, rbp
	mov	rdx, rbx
	mov	rdi, r12
	call	pnm_read_number@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR 4[rsp]
.L11:
	cmp	eax, 132
	jne	.L12
.L6:
	mov	ecx, 132
	cmp	rbp, rbx
	jb	.L23
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, rbp
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	lea	rcx, 8[r14]
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rsi, rbp
	mov	rcx, r14
	mov	rdx, rbx
	mov	rdi, r12
	call	pnm_read_tupletype@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR 4[rsp]
	cmp	eax, 132
	je	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	xor	ecx, ecx
	mov	rsi, rbp
	mov	rdx, rbx
	mov	rdi, r12
	call	pnm_read_white@PLT
	mov	ecx, DWORD PTR 4[rsp]
	mov	rbp, rax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rcx, 32[r14]
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L4:
	lea	rcx, 16[r14]
	jmp	.L21
.L3:
	mov	esi, DWORD PTR FZ_ERROR_GENERIC[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, r12
	call	fz_throw@PLT
	mov	eax, DWORD PTR 4[rsp]
	jmp	.L11
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pam_binary_read_header, .-pam_binary_read_header
	.comm	TOKEN_UNKNOWN,4,4
	.comm	FZ_ERROR_GENERIC,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_load-pnm.c_pam_binary_read_header.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unknown header token in pnm image\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pam_binary_read_header, %function
pam_binary_read_header:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	ip, #0
	mov	r7, r1
	mov	r6, r0
	mov	r4, r2
	ldr	r1, .L21
	mov	r5, r3
	ldr	r1, [r1]
	ldr	r3, .L21+4
	sub	sp, sp, #12
	ldr	r9, .L21+8
	ldr	r8, .L21+12
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	str	ip, [r7, #16]
	str	ip, [r7, #12]
	str	ip, [r7, #8]
	str	ip, [r7, #4]
	str	ip, [r7]
	str	r1, [sp]
.L13:
	cmp	r1, #132
	cmpne	r4, r5
	bcs	.L19
.L14:
	mov	r1, r4
	mov	r3, sp
	mov	r2, r5
	mov	r0, r6
	bl	pnm_read_token
	mov	r2, r5
	mov	r1, r0
	mov	r3, #0
	mov	r0, r6
	bl	pnm_read_white
	ldr	ip, [sp]
	mov	r4, r0
	sub	r2, ip, #128
	cmp	r2, #5
	ldrls	pc, [pc, r2, asl #2]
	b	.L3
.L5:
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L4
.L7:
	mov	r1, r0
	add	r3, r7, #12
.L17:
	mov	r2, r5
	mov	r0, r6
	bl	pnm_read_number
	mov	r4, r0
	ldr	r3, [sp]
.L11:
	cmp	r3, #132
	bne	.L12
.L6:
	mov	r1, #132
	cmp	r1, #132
	cmpne	r4, r5
	bcc	.L14
.L19:
	ldr	r3, .L21+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L8:
	mov	r1, r0
	add	r3, r7, #4
	b	.L17
.L9:
	mov	r1, r0
	mov	r3, r7
	mov	r2, r5
	mov	r0, r6
	bl	pnm_read_tupletype
	ldr	r3, [sp]
	mov	r4, r0
	cmp	r3, #132
	beq	.L6
.L12:
	mov	r1, r4
	mov	r3, #0
	mov	r2, r5
	mov	r0, r6
	bl	pnm_read_white
	ldr	r1, [sp]
	mov	r4, r0
	b	.L13
.L10:
	mov	r1, r0
	add	r3, r7, #16
	b	.L17
.L4:
	mov	r1, r0
	add	r3, r7, #8
	b	.L17
.L20:
	bl	__stack_chk_fail
.L3:
	mov	r2, r8
	mov	r0, r6
	ldr	r1, [r9]
	bl	fz_throw
	ldr	r3, [sp]
	b	.L11
.L22:
	.align	2
.L21:
	.word	TOKEN_UNKNOWN
	.word	.LC1
	.word	FZ_ERROR_GENERIC
	.word	.LC0
	.size	pam_binary_read_header, .-pam_binary_read_header
	.comm	TOKEN_UNKNOWN,4,4
	.comm	FZ_ERROR_GENERIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
