	.file	"extr_47168.c_get_kernel_addr_syslog.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"[.] trying syslog...\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"[-] klogctl(SYSLOG_ACTION_SIZE_BUFFER)\n"
	.align 8
.LC2:
	.string	"[-] klogctl(SYSLOG_ACTION_READ_ALL)\n"
	.section	.rodata.str1.1
.LC3:
	.string	"Freeing SMP"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"[-] substring '%s' not found in dmesg\n"
	.section	.rodata.str1.1
.LC5:
	.string	"ffff"
	.text
	.p2align 4
	.globl	get_kernel_addr_syslog
	.type	get_kernel_addr_syslog, @function
get_kernel_addr_syslog:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rdi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	dprintf@PLT
	mov	edi, DWORD PTR SYSLOG_ACTION_SIZE_BUFFER[rip]
	xor	edx, edx
	xor	esi, esi
	call	klogctl@PLT
	mov	ebp, eax
	cmp	eax, -1
	je	.L13
.L2:
	xor	eax, eax
	call	getpagesize@PLT
	mov	r8d, eax
	mov	eax, ebp
	cdq
	idiv	r8d
	lea	r12d, 1[rax]
	xor	eax, eax
	call	getpagesize@PLT
	mov	ecx, DWORD PTR MAP_PRIVATE[rip]
	xor	r9d, r9d
	xor	edi, edi
	imul	r12d, eax
	mov	edx, DWORD PTR PROT_READ[rip]
	or	ecx, DWORD PTR MAP_ANONYMOUS[rip]
	mov	r8d, -1
	or	edx, DWORD PTR PROT_WRITE[rip]
	mov	esi, r12d
	call	mmap@PLT
	mov	edi, DWORD PTR SYSLOG_ACTION_READ_ALL[rip]
	mov	edx, r12d
	mov	rsi, rax
	mov	rbp, rax
	call	klogctl@PLT
	mov	r12d, eax
	cmp	eax, -1
	je	.L14
.L3:
	lea	rdi, .LC3[rip]
	call	strlen@PLT
	mov	rdi, rbp
	lea	rdx, .LC3[rip]
	mov	esi, r12d
	mov	ecx, eax
	call	memmem@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L15
	cmp	BYTE PTR 0[rbp], 10
	je	.L9
.L18:
	lea	rax, 1[rbp]
	.p2align 4,,10
	.p2align 3
.L6:
	movzx	edx, BYTE PTR [rax]
	mov	r12d, eax
	add	rax, 1
	sub	r12d, ebp
	cmp	dl, 10
	jne	.L6
.L5:
	lea	rdi, .LC5[rip]
	call	strlen@PLT
	mov	rdi, rbp
	lea	rdx, .LC5[rip]
	mov	esi, r12d
	mov	ecx, eax
	call	memmem@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L16
.L7:
	lea	rax, 16[rbp]
	mov	rsi, rsp
	mov	edx, 16
	mov	rdi, rbp
	mov	QWORD PTR [rsp], rax
	call	strtoul@PLT
	and	rax, -1048576
	sub	rax, 16777216
	mov	rsi, QWORD PTR 8[rsp]
	xor	rsi, QWORD PTR fs:40
	jne	.L17
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	dprintf@PLT
	mov	edi, DWORD PTR EXIT_FAILURE[rip]
	call	exit@PLT
	cmp	BYTE PTR 0[rbp], 10
	jne	.L18
.L9:
	xor	r12d, r12d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L16:
	lea	rsi, .LC5[rip]
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	dprintf@PLT
	mov	edi, DWORD PTR EXIT_FAILURE[rip]
	call	exit@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L14:
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	dprintf@PLT
	mov	edi, DWORD PTR EXIT_FAILURE[rip]
	call	exit@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	dprintf@PLT
	mov	edi, DWORD PTR EXIT_FAILURE[rip]
	call	exit@PLT
	jmp	.L2
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_kernel_addr_syslog, .-get_kernel_addr_syslog
	.comm	SYSLOG_ACTION_SIZE_BUFFER,4,4
	.comm	SYSLOG_ACTION_READ_ALL,4,4
	.comm	PROT_WRITE,4,4
	.comm	PROT_READ,4,4
	.comm	MAP_PRIVATE,4,4
	.comm	MAP_ANONYMOUS,4,4
	.comm	EXIT_FAILURE,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_47168.c_get_kernel_addr_syslog.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"[.] trying syslog...\012\000"
	.align	2
.LC1:
	.ascii	"[-] klogctl(SYSLOG_ACTION_SIZE_BUFFER)\012\000"
	.global	__aeabi_idiv
	.align	2
.LC2:
	.ascii	"[-] klogctl(SYSLOG_ACTION_READ_ALL)\012\000"
	.align	2
.LC3:
	.ascii	"Freeing SMP\000"
	.align	2
.LC4:
	.ascii	"[-] substring '%s' not found in dmesg\012\000"
	.align	2
.LC5:
	.ascii	"ffff\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_kernel_addr_syslog
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_kernel_addr_syslog, %function
get_kernel_addr_syslog:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L18
	sub	sp, sp, #28
	ldr	r0, .L18+4
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	dprintf
	mov	r2, #0
	ldr	r3, .L18+8
	mov	r1, r2
	ldr	r0, [r3]
	bl	klogctl
	cmn	r0, #1
	mov	r4, r0
	beq	.L13
.L2:
	bl	getpagesize
	mov	r1, r0
	mov	r0, r4
	bl	__aeabi_idiv
	add	r4, r0, #1
	bl	getpagesize
	mov	ip, #0
	mvn	lr, #0
	mul	r4, r0, r4
	ldr	r1, .L18+12
	ldr	r0, .L18+16
	ldr	r3, .L18+20
	ldr	r2, .L18+24
	ldr	r5, [r0]
	ldr	r3, [r3]
	ldr	r0, [r1]
	ldr	r2, [r2]
	orr	r3, r5, r3
	orr	r2, r0, r2
	mov	r1, r4
	mov	r0, ip
	str	ip, [sp, #4]
	str	lr, [sp]
	bl	mmap
	ldr	r3, .L18+28
	mov	r1, r0
	mov	r5, r0
	mov	r2, r4
	ldr	r0, [r3]
	bl	klogctl
	cmn	r0, #1
	mov	r1, r0
	beq	.L14
.L3:
	mov	r0, r5
	mov	r3, #11
	ldr	r2, .L18+32
	bl	memmem
	subs	r4, r0, #0
	beq	.L15
.L4:
	ldrb	r3, [r4]	@ zero_extendqisi2
	mov	r1, #0
	cmp	r3, #10
	beq	.L5
.L6:
	add	r1, r1, #1
	ldrb	r3, [r1, r4]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L6
.L5:
	mov	r0, r4
	mov	r3, #4
	ldr	r2, .L18+36
	bl	memmem
	subs	r4, r0, #0
	beq	.L16
.L7:
	mov	r2, #16
	add	r3, r4, #16
	add	r1, sp, r2
	mov	r0, r4
	str	r3, [sp, #16]
	bl	strtoul
	ldr	r3, .L18
	lsr	r0, r0, #20
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	lsl	r0, r0, #20
	add	r0, r0, #-16777216
	bne	.L17
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, pc}
.L15:
	ldr	r1, .L18+32
	ldr	r0, .L18+40
	bl	dprintf
	ldr	r3, .L18+44
	ldr	r0, [r3]
	bl	exit
	b	.L4
.L16:
	ldr	r1, .L18+36
	ldr	r0, .L18+40
	bl	dprintf
	ldr	r3, .L18+44
	ldr	r0, [r3]
	bl	exit
	b	.L7
.L14:
	str	r0, [sp, #12]
	ldr	r0, .L18+48
	bl	dprintf
	ldr	r3, .L18+44
	ldr	r0, [r3]
	bl	exit
	ldr	r1, [sp, #12]
	b	.L3
.L13:
	ldr	r0, .L18+52
	bl	dprintf
	ldr	r3, .L18+44
	ldr	r0, [r3]
	bl	exit
	b	.L2
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC6
	.word	.LC0
	.word	SYSLOG_ACTION_SIZE_BUFFER
	.word	PROT_READ
	.word	MAP_PRIVATE
	.word	MAP_ANONYMOUS
	.word	PROT_WRITE
	.word	SYSLOG_ACTION_READ_ALL
	.word	.LC3
	.word	.LC5
	.word	.LC4
	.word	EXIT_FAILURE
	.word	.LC2
	.word	.LC1
	.size	get_kernel_addr_syslog, .-get_kernel_addr_syslog
	.comm	SYSLOG_ACTION_SIZE_BUFFER,4,4
	.comm	SYSLOG_ACTION_READ_ALL,4,4
	.comm	PROT_WRITE,4,4
	.comm	PROT_READ,4,4
	.comm	MAP_PRIVATE,4,4
	.comm	MAP_ANONYMOUS,4,4
	.comm	EXIT_FAILURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
