	.file	"extr_dbg.c_tipc_printbuf_validate.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"\n\n*** PRINT BUFFER OVERFLOW ***\n\n"
	.text
	.p2align 4
	.globl	tipc_printbuf_validate
	.type	tipc_printbuf_validate, @function
tipc_printbuf_validate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rdx, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	test	rdx, rdx
	je	.L6
	movsx	rax, DWORD PTR 8[rdi]
	mov	rbx, rdi
	cmp	QWORD PTR -8[rdx+rax*8], 0
	mov	rdi, rax
	je	.L9
.L3:
	mov	rax, QWORD PTR 16[rbx]
	sub	rax, rdx
	sar	rax, 3
	add	eax, 1
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L10
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.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
.L9:
	.cfi_restore_state
	mov	esi, DWORD PTR GFP_ATOMIC[rip]
	call	kmalloc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L4
	mov	edx, DWORD PTR 8[rbx]
	mov	r12, rsp
	mov	rsi, rax
	mov	rdi, r12
	call	tipc_printbuf_init@PLT
	mov	rsi, rbx
	mov	rdi, r12
	call	tipc_printbuf_move@PLT
	mov	rsi, r12
	mov	rdi, rbx
	call	tipc_printbuf_move@PLT
	mov	rdi, rbp
	call	kfree@PLT
	lea	rdi, .LC0[rip]
	call	strlen@PLT
	mov	rdi, QWORD PTR [rbx]
	lea	rsi, .LC0[rip]
	mov	edx, eax
	call	memcpy@PLT
	mov	rdx, QWORD PTR [rbx]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, rbx
	call	tipc_printbuf_reset@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, rbx
	call	tipc_printf@PLT
	mov	rdx, QWORD PTR [rbx]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	xor	eax, eax
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	tipc_printbuf_validate, .-tipc_printbuf_validate
	.comm	GFP_ATOMIC,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_dbg.c_tipc_printbuf_validate.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\012\012*** PRINT BUFFER OVERFLOW ***\012\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tipc_printbuf_validate
	.syntax unified
	.arm
	.fpu softvfp
	.type	tipc_printbuf_validate, %function
tipc_printbuf_validate:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, [r0]
	ldr	r2, .L11
	sub	sp, sp, #20
	cmp	r3, #0
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	moveq	r0, r3
	beq	.L1
	mov	r4, r0
	ldr	r0, [r0, #4]
	sub	r2, r0, #-1073741823
	ldr	r2, [r3, r2, lsl #2]
	cmp	r2, #0
	beq	.L9
.L3:
	ldr	r0, [r4, #8]
	sub	r3, r0, r3
	asr	r3, r3, #2
	add	r0, r3, #1
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L9:
	ldr	r3, .L11+4
	ldr	r1, [r3]
	bl	kmalloc
	subs	r5, r0, #0
	beq	.L4
	ldr	r2, [r4, #4]
	mov	r1, r5
	mov	r0, sp
	bl	tipc_printbuf_init
	mov	r1, r4
	mov	r0, sp
	bl	tipc_printbuf_move
	mov	r1, sp
	mov	r0, r4
	bl	tipc_printbuf_move
	mov	r0, r5
	bl	kfree
	mov	r2, #33
	ldr	r1, .L11+8
	ldr	r0, [r4]
	bl	memcpy
	ldr	r3, [r4]
	b	.L3
.L4:
	mov	r0, r4
	bl	tipc_printbuf_reset
	mov	r0, r4
	ldr	r1, .L11+8
	bl	tipc_printf
	ldr	r3, [r4]
	b	.L3
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC1
	.word	GFP_ATOMIC
	.word	.LC0
	.size	tipc_printbuf_validate, .-tipc_printbuf_validate
	.comm	GFP_ATOMIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
