	.file	"extr_47170.c_get_kernel_addr_kallsyms.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"/proc/kallsyms"
.LC1:
	.string	"[.] trying %s...\n"
.LC2:
	.string	"r"
.LC3:
	.string	"[-] open/read(%s)\n"
.LC4:
	.string	"%p %c %s\n"
.LC5:
	.string	"%s\n"
.LC6:
	.string	"startup_64"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC7:
	.string	"[-] kernel base not found in %s\n"
	.text
	.p2align 4
	.globl	get_kernel_addr_kallsyms
	.type	get_kernel_addr_kallsyms, @function
get_kernel_addr_kallsyms:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 296
	.cfi_def_cfa_offset 352
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 280[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 8[rsp], 0
	call	dprintf@PLT
	lea	rsi, .LC2[rip]
	lea	rdi, .LC0[rip]
	call	fopen@PLT
	test	rax, rax
	je	.L2
	mov	r15, rax
	mov	eax, DWORD PTR EOF[rip]
	lea	rbp, 16[rsp]
	lea	r13, 7[rsp]
	movabs	r14, 6877125773990392947
	lea	r12, 8[rsp]
	test	eax, eax
	jne	.L3
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	DWORD PTR EOF[rip], ebx
	je	.L4
.L3:
	mov	r8, rbp
	mov	rcx, r13
	mov	rdx, r12
	mov	rdi, r15
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	fscanf@PLT
	mov	ebx, eax
	test	eax, eax
	je	.L16
	cmp	QWORD PTR 0[rbp], r14
	jne	.L7
	cmp	WORD PTR 8[rbp], 13366
	jne	.L7
	cmp	BYTE PTR 10[rbp], 0
	jne	.L7
	mov	rdi, r15
	call	fclose@PLT
	mov	rax, QWORD PTR 8[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	xor	eax, eax
	mov	rdx, rbp
	lea	rsi, .LC5[rip]
	mov	rdi, r15
	call	fscanf@PLT
	cmp	DWORD PTR EOF[rip], ebx
	jne	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, r15
	call	fclose@PLT
	lea	rsi, .LC0[rip]
	lea	rdi, .LC7[rip]
	call	dprintf@PLT
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 280[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L17
	add	rsp, 296
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	lea	rdi, .LC3[rip]
	call	dprintf@PLT
	xor	eax, eax
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_kernel_addr_kallsyms, .-get_kernel_addr_kallsyms
	.comm	EOF,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_47170.c_get_kernel_addr_kallsyms.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"/proc/kallsyms\000"
	.align	2
.LC1:
	.ascii	"[.] trying %s...\012\000"
	.align	2
.LC2:
	.ascii	"r\000"
	.align	2
.LC3:
	.ascii	"[-] open/read(%s)\012\000"
	.align	2
.LC4:
	.ascii	"%p %c %s\012\000"
	.align	2
.LC5:
	.ascii	"%s\012\000"
	.align	2
.LC6:
	.ascii	"startup_64\000"
	.align	2
.LC7:
	.ascii	"[-] kernel base not found in %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_kernel_addr_kallsyms
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_kernel_addr_kallsyms, %function
get_kernel_addr_kallsyms:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r2, .L17
	sub	sp, sp, #284
	ldr	r1, .L17+4
	ldr	r0, .L17+8
	ldr	r2, [r2]
	str	r2, [sp, #276]
	mov	r2,#0
	str	r3, [sp, #16]
	bl	dprintf
	ldr	r1, .L17+12
	ldr	r0, .L17+4
	bl	fopen
	subs	r5, r0, #0
	beq	.L2
	ldr	r6, .L17+16
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L4
	ldr	r7, .L17+20
	ldr	r8, .L17+24
	ldr	r9, .L17+28
	ldr	r10, .L17+32
	add	r4, sp, #20
	b	.L3
.L7:
	ldr	r2, [r6]
	cmp	r2, fp
	beq	.L4
.L3:
	mov	r1, r7
	mov	r0, r5
	str	r4, [sp]
	add	r3, sp, #15
	add	r2, sp, #16
	bl	fscanf
	subs	fp, r0, #0
	beq	.L15
	ldr	r2, [r4]
	cmp	r2, r8
	bne	.L7
	ldr	r2, [sp, #24]
	cmp	r2, r9
	bne	.L7
	ldrh	r2, [sp, #28]
	ldr	r3, .L17+36
	cmp	r2, r3
	bne	.L7
	ldrb	r2, [sp, #30]	@ zero_extendqisi2
	cmp	r2, #0
	bne	.L7
	mov	r0, r5
	bl	fclose
	ldr	r0, [sp, #16]
	b	.L1
.L15:
	mov	r2, r4
	mov	r1, r10
	mov	r0, r5
	bl	fscanf
	ldr	r2, [r6]
	cmp	r2, fp
	bne	.L3
.L4:
	mov	r0, r5
	bl	fclose
	ldr	r1, .L17+4
	ldr	r0, .L17+40
	bl	dprintf
	mov	r0, #0
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #276]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #284
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r1, .L17+4
	ldr	r0, .L17+44
	bl	dprintf
	mov	r0, r5
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	EOF
	.word	.LC4
	.word	1918989427
	.word	1601205620
	.word	.LC5
	.word	13366
	.word	.LC7
	.word	.LC3
	.size	get_kernel_addr_kallsyms, .-get_kernel_addr_kallsyms
	.comm	EOF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
