	.file	"extr_ccp-ops.c_ccp_queue_buf.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ccp_queue_buf, @function
ccp_queue_buf:
.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, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	test	esi, esi
	je	.L10
.L2:
	cmp	QWORD PTR 24[rbx], 0
	je	.L5
	mov	rsi, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR [rbx]
	mov	edi, DWORD PTR u64[rip]
	call	min_t@PLT
	mov	rdx, QWORD PTR 16[rbx]
	mov	rsi, QWORD PTR 24[rbx]
	mov	r8d, ebp
	mov	edi, DWORD PTR 4[rbx]
	mov	ecx, eax
	call	scatterwalk_map_and_copy@PLT
	cmp	QWORD PTR 8[rbx], 0
	je	.L5
	lea	rbp, 8[rbx]
	xor	r12d, r12d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR 24[rbx]
	sub	esi, r12d
	mov	rdi, QWORD PTR [rax]
	sub	rdi, QWORD PTR 16[rbx]
	call	min@PLT
	mov	rsi, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR u64[rip]
	mov	edx, eax
	call	min_t@PLT
	mov	rdi, rbp
	mov	esi, eax
	add	r12d, eax
	call	ccp_update_sg_workarea@PLT
	cmp	QWORD PTR 8[rbx], 0
	je	.L1
.L6:
	mov	esi, DWORD PTR [rbx]
	cmp	esi, r12d
	ja	.L7
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.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
.L5:
	.cfi_restore_state
	xor	r12d, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rdi]
	mov	edx, DWORD PTR [rbx]
	xor	esi, esi
	call	memset@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	ccp_queue_buf, .-ccp_queue_buf
	.comm	u64,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_ccp-ops.c_ccp_queue_buf.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ccp_queue_buf, %function
ccp_queue_buf:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	subs	r5, r1, #0
	mov	r4, r0
	sub	sp, sp, #12
	beq	.L16
.L2:
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L5
	ldr	r6, .L17
	ldr	r2, [r4]
	ldr	r1, [r4, #8]
	ldr	r0, [r6]
	bl	min_t
	str	r5, [sp]
	mov	r3, r0
	ldr	r2, [r4, #12]
	ldr	r1, [r4, #16]
	ldr	r0, [r4, #4]
	bl	scatterwalk_map_and_copy
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L5
	mov	r5, #0
	add	r7, r4, #8
	b	.L6
.L7:
	ldr	r2, [r4, #16]
	ldr	r3, [r4, #12]
	ldr	r0, [r2]
	sub	r0, r0, r3
	bl	min
	ldr	r1, [r4, #8]
	mov	r2, r0
	ldr	r0, [r6]
	bl	min_t
	mov	r1, r0
	mov	r0, r7
	add	r5, r5, r1
	bl	ccp_update_sg_workarea
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L1
.L6:
	ldr	r3, [r4]
	cmp	r3, r5
	sub	r1, r3, r5
	bhi	.L7
.L1:
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L5:
	mov	r5, #0
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L16:
	ldr	r2, [r0]
	ldr	r0, [r0, #4]
	bl	memset
	b	.L2
.L18:
	.align	2
.L17:
	.word	u64
	.size	ccp_queue_buf, .-ccp_queue_buf
	.comm	u64,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
