	.file	"extr_6pack.c_sixpack_receive_buf.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sixpack_receive_buf, @function
sixpack_receive_buf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 552
	.cfi_def_cfa_offset 608
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 536[rsp], rax
	xor	eax, eax
	test	ecx, ecx
	jne	.L22
.L1:
	mov	rax, QWORD PTR 536[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	add	rsp, 552
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	r13, rdi
	mov	rbp, rsi
	mov	rbx, rdx
	mov	r12d, ecx
	call	sp_get@PLT
	mov	r15, rax
	test	rax, rax
	je	.L1
	cmp	r12d, 512
	mov	edx, 512
	lea	r8, 16[rsp]
	mov	rsi, rbp
	cmovb	edx, r12d
	mov	rdi, r8
	mov	ebp, r12d
	mov	QWORD PTR [rsp], r8
	sub	ebp, 1
	call	memcpy@PLT
	mov	r8, QWORD PTR [rsp]
	lea	rdx, 8[r15]
	test	rbx, rbx
	je	.L4
.L25:
	cmp	BYTE PTR [rbx], 0
	lea	r14, 1[rbx]
	jne	.L24
.L5:
	test	ebp, ebp
	je	.L4
	mov	rbx, r14
	sub	ebp, 1
	test	rbx, rbx
	jne	.L25
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edx, r12d
	mov	rsi, r8
	mov	rdi, r15
	call	sixpack_decode@PLT
	mov	rdi, r15
	call	sp_put@PLT
	mov	rdi, r13
	call	tty_unthrottle@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	mov	edi, DWORD PTR SIXPF_ERROR[rip]
	mov	rsi, rdx
	mov	QWORD PTR 8[rsp], r8
	mov	QWORD PTR [rsp], rdx
	call	test_and_set_bit@PLT
	mov	rdx, QWORD PTR [rsp]
	mov	r8, QWORD PTR 8[rsp]
	test	eax, eax
	jne	.L5
	mov	rax, QWORD PTR [r15]
	add	DWORD PTR [rax], 1
	jmp	.L5
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sixpack_receive_buf, .-sixpack_receive_buf
	.comm	SIXPF_ERROR,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_6pack.c_sixpack_receive_buf.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sixpack_receive_buf, %function
sixpack_receive_buf:
	@ args = 0, pretend = 0, frame = 520
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r6, r3, #0
	ldr	r3, .L26
	sub	sp, sp, #520
	ldr	r3, [r3]
	str	r3, [sp, #516]
	mov	r3,#0
	bne	.L23
.L1:
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [sp, #516]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	add	sp, sp, #520
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L23:
	mov	r5, r1
	mov	r4, r2
	mov	r7, r0
	bl	sp_get
	subs	r8, r0, #0
	beq	.L1
	cmp	r6, #512
	mov	r1, r5
	movcc	r2, r6
	movcs	r2, #512
	add	r0, sp, #4
	bl	memcpy
	mov	r5, r6
	ldr	r9, .L26+4
	add	r10, r8, #4
.L5:
	cmp	r4, #0
	sub	r5, r5, #1
	beq	.L3
	ldrb	r2, [r4], #1	@ zero_extendqisi2
	cmp	r2, #0
	bne	.L25
.L4:
	cmp	r5, #0
	bne	.L5
.L3:
	mov	r2, r6
	add	r1, sp, #4
	mov	r0, r8
	bl	sixpack_decode
	mov	r0, r8
	bl	sp_put
	mov	r0, r7
	bl	tty_unthrottle
	b	.L1
.L25:
	mov	r1, r10
	ldr	r0, [r9]
	bl	test_and_set_bit
	cmp	r0, #0
	ldreq	r2, [r8]
	ldreq	r3, [r2]
	addeq	r3, r3, #1
	streq	r3, [r2]
	b	.L4
.L24:
	bl	__stack_chk_fail
.L27:
	.align	2
.L26:
	.word	.LC0
	.word	SIXPF_ERROR
	.size	sixpack_receive_buf, .-sixpack_receive_buf
	.comm	SIXPF_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
