	.file	"extr_TCP_client.c_send_oob_packet.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	send_oob_packet
	.type	send_oob_packet, @function
send_oob_packet:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 24
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	test	rcx, rcx
	je	.L8
	cmp	QWORD PTR TCP_MAX_OOB_DATA_LENGTH[rip], rcx
	mov	r12, rcx
	jl	.L8
	mov	r14, rdx
	movsx	rdx, DWORD PTR crypto_box_PUBLICKEYBYTES[rip]
	mov	r13, rdi
	mov	rdi, rsp
	lea	ebx, 1[rdx]
	movsx	rbx, ebx
	add	rbx, rcx
	lea	rax, 15[0+rbx*4]
	mov	rcx, rax
	and	rax, -4096
	sub	rdi, rax
	and	rcx, -16
	mov	rax, rdi
	cmp	rsp, rax
	je	.L4
.L14:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L14
.L4:
	and	ecx, 4095
	sub	rsp, rcx
	test	rcx, rcx
	jne	.L15
.L5:
	lea	r15, 3[rsp]
	mov	ecx, DWORD PTR TCP_PACKET_OOB_SEND[rip]
	mov	rax, r15
	and	r15, -4
	shr	rax, 2
	lea	rdi, 4[r15]
	mov	DWORD PTR 0[0+rax*4], ecx
	call	memcpy@PLT
	movsx	rax, DWORD PTR crypto_box_PUBLICKEYBYTES[rip]
	mov	rdx, r12
	mov	rsi, r14
	lea	rdi, 4[r15+rax*4]
	call	memcpy@PLT
	xor	ecx, ecx
	mov	rsi, r15
	mov	rdi, r13
	lea	edx, 0[0+rbx*4]
	call	write_packet_TCP_secure_connection@PLT
.L1:
	mov	rsi, QWORD PTR -56[rbp]
	xor	rsi, QWORD PTR fs:40
	jne	.L16
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rcx], 0
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, -1
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	send_oob_packet, .-send_oob_packet
	.comm	crypto_box_PUBLICKEYBYTES,4,4
	.comm	TCP_PACKET_OOB_SEND,4,4
	.comm	TCP_MAX_OOB_DATA_LENGTH,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_TCP_client.c_send_oob_packet.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	send_oob_packet
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_oob_packet, %function
send_oob_packet:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #8
	subs	r4, r3, #0
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	beq	.L5
	ldr	r3, .L9+4
	ldr	r3, [r3]
	cmp	r3, r4
	blt	.L5
	mov	r7, r2
	ldr	r2, .L9+8
	ldr	r3, .L9+12
	ldr	r2, [r2]
	ldr	ip, [r3]
	add	r9, r2, #1
	add	r5, r9, r4
	lsl	r5, r5, #2
	add	r3, r5, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	mov	r8, sp
	mov	r6, r0
	mov	r0, r8
	str	ip, [r0], #4
	bl	memcpy
	mov	r2, r4
	mov	r1, r7
	add	r0, r8, r9, lsl #2
	bl	memcpy
	mov	r1, r8
	mov	r2, r5
	mov	r0, r6
	mov	r3, #0
	bl	write_packet_TCP_secure_connection
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L5:
	mvn	r0, #0
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	TCP_MAX_OOB_DATA_LENGTH
	.word	crypto_box_PUBLICKEYBYTES
	.word	TCP_PACKET_OOB_SEND
	.size	send_oob_packet, .-send_oob_packet
	.comm	crypto_box_PUBLICKEYBYTES,4,4
	.comm	TCP_PACKET_OOB_SEND,4,4
	.comm	TCP_MAX_OOB_DATA_LENGTH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
