	.file	"extr_pdu.c_pdu_send.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"exiting due to timeout"
.LC1:
	.string	"writev"
.LC2:
	.string	"short write"
	.text
	.p2align 4
	.globl	pdu_send
	.type	pdu_send, @function
pdu_send:
.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
	mov	ebp, 4
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	xor	edi, edi
	sub	rsp, 80
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR proxy_mode[rip]
	mov	DWORD PTR 12[rsp], 0
	test	eax, eax
	sete	dil
	call	assert@PLT
	mov	esi, DWORD PTR [rbx]
	mov	rdi, rbx
	call	pdu_set_data_segment_length@PLT
	mov	rax, QWORD PTR 24[rbx]
	mov	edx, 1
	mov	DWORD PTR 16[rsp], 4
	mov	QWORD PTR 24[rsp], rax
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	jg	.L15
.L2:
	mov	rax, QWORD PTR 8[rbx]
	lea	rsi, 16[rsp]
	mov	edi, DWORD PTR [rax]
	call	writev@PLT
	mov	ebx, eax
	test	eax, eax
	js	.L16
.L3:
	cmp	ebp, ebx
	je	.L1
	lea	rsi, .LC2[rip]
	mov	edi, 1
	call	log_errx@PLT
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 80
	.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
.L15:
	.cfi_restore_state
	mov	rdx, QWORD PTR 16[rbx]
	mov	rdi, rbx
	mov	DWORD PTR 32[rsp], eax
	lea	ebp, 4[rax]
	mov	QWORD PTR 40[rsp], rdx
	call	pdu_padding@PLT
	mov	edx, 2
	mov	r12, rax
	test	rax, rax
	je	.L2
	xor	edi, edi
	cmp	rax, 3
	setbe	dil
	add	ebp, r12d
	call	assert@PLT
	lea	rax, 12[rsp]
	mov	DWORD PTR 48[rsp], r12d
	mov	edx, 3
	mov	QWORD PTR 56[rsp], rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L16:
	xor	eax, eax
	call	timed_out@PLT
	test	rax, rax
	jne	.L18
.L4:
	lea	rsi, .LC1[rip]
	mov	edi, 1
	call	log_err@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rsi, .LC0[rip]
	mov	edi, 1
	call	log_errx@PLT
	jmp	.L4
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pdu_send, .-pdu_send
	.comm	proxy_mode,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_pdu.c_pdu_send.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"exiting due to timeout\000"
	.align	2
.LC1:
	.ascii	"writev\000"
	.align	2
.LC2:
	.ascii	"short write\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pdu_send
	.syntax unified
	.arm
	.fpu softvfp
	.type	pdu_send, %function
pdu_send:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L18
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [r3]
	mov	r3, #0
	clz	r0, r0
	ldr	r2, .L18+4
	sub	sp, sp, #32
	lsr	r0, r0, #5
	ldr	r2, [r2]
	str	r2, [sp, #28]
	mov	r2,#0
	str	r3, [sp]
	bl	assert
	ldr	r1, [r4]
	mov	r0, r4
	bl	pdu_set_data_segment_length
	mov	r2, #4
	ldr	r3, [r4]
	ldr	r1, [r4, #12]
	cmp	r3, #0
	movle	r5, r2
	str	r2, [sp, #4]
	str	r1, [sp, #8]
	movle	r2, #1
	bgt	.L14
.L2:
	ldr	r3, [r4, #4]
	add	r1, sp, #4
	ldr	r0, [r3]
	bl	writev
	subs	r4, r0, #0
	blt	.L15
.L3:
	cmp	r5, r4
	beq	.L1
	mov	r0, #1
	ldr	r1, .L18+8
	bl	log_errx
.L1:
	ldr	r3, .L18+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, pc}
.L14:
	ldr	r2, [r4, #8]
	mov	r0, r4
	str	r2, [sp, #16]
	str	r3, [sp, #12]
	add	r5, r3, #4
	bl	pdu_padding
	subs	r6, r0, #0
	moveq	r2, #2
	beq	.L2
	cmp	r6, #3
	movhi	r0, #0
	movls	r0, #1
	bl	assert
	add	r5, r5, r6
	mov	r2, #3
	str	r6, [sp, #20]
	str	sp, [sp, #24]
	b	.L2
.L15:
	bl	timed_out
	cmp	r0, #0
	bne	.L17
.L4:
	ldr	r1, .L18+12
	mov	r0, #1
	bl	log_err
	b	.L3
.L17:
	ldr	r1, .L18+16
	mov	r0, #1
	bl	log_errx
	b	.L4
.L16:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	proxy_mode
	.word	.LC3
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.size	pdu_send, .-pdu_send
	.comm	proxy_mode,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
