	.file	"extr_bin_menuet.c_check_buffer.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"MENUET0"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Unsupported MENUET version header\n"
	.text
	.p2align 4
	.type	check_buffer, @function
check_buffer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	esi, esi
	mov	ecx, 32
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 56
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	r12, rsp
	mov	rdx, r12
	call	r_buf_read_at@PLT
	cmp	eax, 32
	je	.L2
.L4:
	xor	r12d, r12d
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	r_buf_size@PLT
	cmp	eax, 31
	jle	.L4
	mov	rdi, r12
	mov	edx, 7
	lea	rsi, .LC0[rip]
	call	memcmp@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L4
	mov	eax, DWORD PTR 28[rsp]
	sub	eax, 48
	cmp	eax, 2
	ja	.L10
	mov	r12d, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rdi, .LC1[rip]
	call	eprintf@PLT
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	check_buffer, .-check_buffer
	.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_bin_menuet.c_check_buffer.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"MENUET0\000"
	.align	2
.LC1:
	.ascii	"Unsupported MENUET version header\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_buffer, %function
check_buffer:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	ip, .L10
	sub	sp, sp, #40
	mov	r3, #32
	mov	r1, #0
	add	r2, sp, #4
	ldr	ip, [ip]
	str	ip, [sp, #36]
	mov	ip,#0
	mov	r4, r0
	bl	r_buf_read_at
	cmp	r0, #32
	beq	.L2
.L4:
	mov	r4, #0
.L1:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, r4
	add	sp, sp, #40
	@ sp needed
	pop	{r4, pc}
.L2:
	mov	r0, r4
	bl	r_buf_size
	cmp	r0, #31
	ble	.L4
	mov	r2, #7
	ldr	r1, .L10+4
	add	r0, sp, #4
	bl	memcmp
	subs	r4, r0, #0
	bne	.L4
	ldr	r3, [sp, #32]
	sub	r3, r3, #48
	cmp	r3, #2
	movls	r4, #1
	bls	.L1
	ldr	r0, .L10+8
	bl	eprintf
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	check_buffer, .-check_buffer
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
