	.file	"extr_modpost.c_grab_file.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	grab_file
	.type	grab_file, @function
grab_file:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR O_RDONLY[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	open@PLT
	test	eax, eax
	js	.L4
	mov	rsi, rsp
	mov	edi, eax
	mov	ebp, eax
	call	fstat@PLT
	test	rax, rax
	jne	.L4
	mov	rsi, QWORD PTR [rsp]
	mov	ecx, DWORD PTR MAP_PRIVATE[rip]
	xor	r9d, r9d
	xor	edi, edi
	mov	edx, DWORD PTR PROT_READ[rip]
	mov	r8d, ebp
	or	edx, DWORD PTR PROT_WRITE[rip]
	mov	QWORD PTR [r12], rsi
	call	mmap@PLT
	mov	edi, ebp
	mov	r12, rax
	call	close@PLT
	cmp	QWORD PTR MAP_FAILED[rip], r12
	je	.L4
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	xor	r12d, r12d
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	grab_file, .-grab_file
	.comm	PROT_WRITE,4,4
	.comm	PROT_READ,4,4
	.comm	O_RDONLY,4,4
	.comm	MAP_PRIVATE,4,4
	.comm	MAP_FAILED,8,8
	.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_modpost.c_grab_file.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	grab_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	grab_file, %function
grab_file:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L9
	mov	r4, r1
	ldr	r1, [r3]
	ldr	r3, .L9+4
	sub	sp, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	open
	subs	r5, r0, #0
	blt	.L4
	add	r1, sp, #8
	bl	fstat
	subs	r3, r0, #0
	bne	.L4
	ldr	r1, .L9+8
	ldr	r2, .L9+12
	ldr	ip, [r1]
	ldr	r2, [r2]
	ldr	r1, [sp, #8]
	str	r3, [sp, #4]
	ldr	r3, .L9+16
	str	r5, [sp]
	ldr	r3, [r3]
	str	r1, [r4]
	orr	r2, ip, r2
	bl	mmap
	mov	r4, r0
	mov	r0, r5
	bl	close
	ldr	r3, .L9+20
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L4
.L1:
	ldr	r3, .L9+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L4:
	mov	r4, #0
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	O_RDONLY
	.word	.LC0
	.word	PROT_READ
	.word	PROT_WRITE
	.word	MAP_PRIVATE
	.word	MAP_FAILED
	.size	grab_file, .-grab_file
	.comm	PROT_WRITE,4,4
	.comm	PROT_READ,4,4
	.comm	O_RDONLY,4,4
	.comm	MAP_PRIVATE,4,4
	.comm	MAP_FAILED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
