	.file	"extr_packettest.c_test_PACKET_strndup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	test_PACKET_strndup, @function
test_PACKET_strndup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	edx, 10
	mov	esi, 120
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	rbp, 20[rsp]
	lea	r13, 30[rsp]
	mov	QWORD PTR 8[rsp], 0
	mov	rdi, rbp
	lea	r12, 4[rsp]
	call	memset@PLT
	mov	edx, 10
	mov	esi, 121
	mov	rdi, r13
	call	memset@PLT
	mov	rdi, r12
	mov	edx, 10
	mov	rsi, rbp
	mov	BYTE PTR 35[rsp], 0
	call	PACKET_buf_init@PLT
	mov	edi, eax
	call	TEST_true@PLT
	test	eax, eax
	jne	.L2
.L4:
	xor	r12d, r12d
.L3:
	mov	rdi, QWORD PTR 8[rsp]
	call	OPENSSL_free@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L26
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	r14, 8[rsp]
	mov	rdi, r12
	mov	rsi, r14
	call	PACKET_strndup@PLT
	mov	edi, eax
	call	TEST_true@PLT
	test	eax, eax
	je	.L4
	mov	rdi, QWORD PTR 8[rsp]
	call	strlen@PLT
	mov	esi, 10
	mov	edi, eax
	call	TEST_size_t_eq@PLT
	test	eax, eax
	je	.L4
	mov	rdi, QWORD PTR 8[rsp]
	mov	edx, 10
	mov	rsi, rbp
	call	TEST_strn_eq@PLT
	test	eax, eax
	je	.L4
	mov	rdi, r12
	mov	edx, 10
	mov	rsi, r13
	call	PACKET_buf_init@PLT
	mov	edi, eax
	call	TEST_true@PLT
	test	eax, eax
	je	.L4
	mov	rdi, r12
	mov	rsi, r14
	call	PACKET_strndup@PLT
	mov	edi, eax
	call	TEST_true@PLT
	test	eax, eax
	je	.L4
	mov	rdi, QWORD PTR 8[rsp]
	call	strlen@PLT
	mov	esi, 5
	mov	edi, eax
	call	TEST_size_t_eq@PLT
	test	eax, eax
	je	.L4
	mov	rdi, QWORD PTR 8[rsp]
	mov	rsi, r13
	xor	r12d, r12d
	call	TEST_str_eq@PLT
	test	eax, eax
	setne	r12b
	jmp	.L3
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_PACKET_strndup, .-test_PACKET_strndup
	.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_packettest.c_test_PACKET_strndup.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_PACKET_strndup, %function
test_PACKET_strndup:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, #0
	sub	sp, sp, #40
	ldr	r3, .L27
	mov	r2, #10
	mov	r1, #120
	add	r0, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	str	r4, [sp, #4]
	bl	memset
	mov	r2, #10
	mov	r1, #121
	add	r0, sp, #24
	bl	memset
	mov	r2, #10
	add	r1, sp, #12
	add	r0, sp, #8
	strb	r4, [sp, #29]
	bl	PACKET_buf_init
	bl	TEST_true
	cmp	r0, r4
	bne	.L2
.L4:
	mov	r4, #0
.L3:
	ldr	r0, [sp, #4]
	bl	OPENSSL_free
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	mov	r0, r4
	add	sp, sp, #40
	@ sp needed
	pop	{r4, pc}
.L2:
	add	r1, sp, #4
	add	r0, sp, #8
	bl	PACKET_strndup
	bl	TEST_true
	cmp	r0, #0
	beq	.L4
	ldr	r0, [sp, #4]
	bl	strlen
	mov	r1, #10
	bl	TEST_size_t_eq
	cmp	r0, #0
	beq	.L4
	mov	r2, #10
	ldr	r0, [sp, #4]
	add	r1, sp, #12
	bl	TEST_strn_eq
	cmp	r0, #0
	beq	.L4
	mov	r2, #10
	add	r1, sp, #24
	add	r0, sp, #8
	bl	PACKET_buf_init
	bl	TEST_true
	cmp	r0, #0
	beq	.L4
	add	r1, sp, #4
	add	r0, sp, #8
	bl	PACKET_strndup
	bl	TEST_true
	cmp	r0, #0
	beq	.L4
	ldr	r0, [sp, #4]
	bl	strlen
	mov	r1, #5
	bl	TEST_size_t_eq
	cmp	r0, #0
	beq	.L4
	ldr	r0, [sp, #4]
	add	r1, sp, #24
	bl	TEST_str_eq
	subs	r4, r0, #0
	movne	r4, #1
	b	.L3
.L26:
	bl	__stack_chk_fail
.L28:
	.align	2
.L27:
	.word	.LC0
	.size	test_PACKET_strndup, .-test_PACKET_strndup
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
