	.file	"3263822.c"
	.intel_syntax noprefix
	.text
	.globl	memccpy
	.type	memccpy, @function
memccpy:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -68[rbp], edx
	mov	QWORD PTR -80[rbp], rcx
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -68[rbp]
	movzx	eax, al
	mov	DWORD PTR -68[rbp], eax
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, rdx
	and	eax, 7
	test	rax, rax
	jne	.L11
	jmp	.L3
.L5:
	sub	QWORD PTR -80[rbp], 1
	add	QWORD PTR -32[rbp], 1
	add	QWORD PTR -40[rbp], 1
.L3:
	mov	rax, QWORD PTR -32[rbp]
	and	eax, 7
	test	rax, rax
	je	.L4
	cmp	QWORD PTR -80[rbp], 0
	je	.L4
	mov	rax, QWORD PTR -32[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	cmp	DWORD PTR -68[rbp], eax
	jne	.L5
.L4:
	mov	rax, QWORD PTR -32[rbp]
	and	eax, 7
	test	rax, rax
	jne	.L15
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	movabs	rdx, 72340172838076673
	imul	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L8
.L10:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	sub	QWORD PTR -80[rbp], 8
	add	QWORD PTR -16[rbp], 8
	add	QWORD PTR -24[rbp], 8
.L8:
	cmp	QWORD PTR -80[rbp], 7
	jbe	.L9
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	xor	rax, QWORD PTR -8[rbp]
	movabs	rdx, -72340172838076673
	add	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	xor	rax, QWORD PTR -8[rbp]
	not	rax
	and	rdx, rax
	movabs	rax, -9187201950435737472
	and	rax, rdx
	test	rax, rax
	je	.L10
.L9:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L11
.L12:
	sub	QWORD PTR -80[rbp], 1
	add	QWORD PTR -32[rbp], 1
	add	QWORD PTR -40[rbp], 1
.L11:
	cmp	QWORD PTR -80[rbp], 0
	je	.L16
	mov	rax, QWORD PTR -32[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	cmp	DWORD PTR -68[rbp], eax
	jne	.L12
	jmp	.L16
.L15:
	nop
	jmp	.L7
.L16:
	nop
.L7:
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	cmp	DWORD PTR -68[rbp], eax
	jne	.L13
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 1
	jmp	.L14
.L13:
	mov	eax, 0
.L14:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	memccpy, .-memccpy
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"3263822.c"
	.text
	.align	2
	.global	memccpy
	.syntax unified
	.arm
	.fpu softvfp
	.type	memccpy, %function
memccpy:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #44
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-40]
	and	r3, r3, #255
	str	r3, [fp, #-40]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	eor	r3, r3, r2
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L11
	b	.L3
.L5:
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L3:
	ldr	r3, [fp, #-20]
	and	r3, r3, #3
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-20]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-24]
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-40]
	cmp	r3, r2
	bne	.L5
.L4:
	ldr	r3, [fp, #-20]
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L15
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r2, r3, #16
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-12]
	b	.L8
.L10:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-44]
	sub	r3, r3, #4
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	str	r3, [fp, #-16]
.L8:
	ldr	r3, [fp, #-44]
	cmp	r3, #3
	bls	.L9
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eor	r2, r2, r3
	ldr	r3, .L17
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eor	r2, r2, r1
	mvn	r2, r2
	and	r2, r2, r3
	ldr	r3, .L17+4
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L10
.L9:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-20]
	b	.L11
.L12:
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L11:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-20]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-24]
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-40]
	cmp	r3, r2
	bne	.L12
	b	.L16
.L15:
	nop
	b	.L7
.L16:
	nop
.L7:
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-40]
	cmp	r3, r2
	bne	.L13
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	b	.L14
.L13:
	mov	r3, #0
.L14:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L18:
	.align	2
.L17:
	.word	-16843009
	.word	-2139062144
	.size	memccpy, .-memccpy
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
