	.file	"125183.c"
	.intel_syntax noprefix
	.text
	.globl	strchr
	.type	strchr, @function
strchr:
.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	DWORD PTR -60[rbp], esi
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -60[rbp]
	mov	BYTE PTR -33[rbp], al
	cmp	BYTE PTR -33[rbp], 0
	jne	.L11
	jmp	.L3
.L6:
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L4
	mov	rax, QWORD PTR -32[rbp]
	jmp	.L5
.L4:
	add	QWORD PTR -32[rbp], 1
.L3:
	mov	rax, QWORD PTR -32[rbp]
	and	eax, 7
	test	rax, rax
	jne	.L6
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L7
.L8:
	add	QWORD PTR -8[rbp], 8
.L7:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	movabs	rdx, -72340172838076673
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	not	rax
	and	rdx, rax
	movabs	rax, -9187201950435737472
	and	rax, rdx
	test	rax, rax
	je	.L8
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L9
.L10:
	add	QWORD PTR -32[rbp], 1
.L9:
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L10
	mov	rax, QWORD PTR -32[rbp]
	jmp	.L5
.L14:
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L12
	mov	eax, 0
	jmp	.L5
.L12:
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -33[rbp], al
	jne	.L13
	mov	rax, QWORD PTR -32[rbp]
	jmp	.L5
.L13:
	add	QWORD PTR -32[rbp], 1
.L11:
	mov	rax, QWORD PTR -32[rbp]
	and	eax, 7
	test	rax, rax
	jne	.L14
	movzx	eax, BYTE PTR -33[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -16[rbp], 8
	jmp	.L15
.L16:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, edx
	sal	rax, cl
	or	QWORD PTR -24[rbp], rax
	sal	QWORD PTR -16[rbp]
.L15:
	cmp	QWORD PTR -16[rbp], 63
	jbe	.L16
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L17
.L19:
	add	QWORD PTR -8[rbp], 8
.L17:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	movabs	rdx, -72340172838076673
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	not	rax
	and	rdx, rax
	movabs	rax, -9187201950435737472
	and	rax, rdx
	test	rax, rax
	jne	.L18
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	xor	rax, QWORD PTR -24[rbp]
	movabs	rdx, -72340172838076673
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	xor	rax, QWORD PTR -24[rbp]
	not	rax
	and	rdx, rax
	movabs	rax, -9187201950435737472
	and	rax, rdx
	test	rax, rax
	je	.L19
.L18:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L20
.L22:
	add	QWORD PTR -32[rbp], 1
.L20:
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L21
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -33[rbp], al
	jne	.L22
.L21:
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -33[rbp], al
	jne	.L23
	mov	rax, QWORD PTR -32[rbp]
	jmp	.L5
.L23:
	mov	eax, 0
.L5:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	strchr, .-strchr
	.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	"125183.c"
	.text
	.align	2
	.global	strchr
	.syntax unified
	.arm
	.fpu softvfp
	.type	strchr, %function
strchr:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-36]
	strb	r3, [fp, #-21]
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L11
	b	.L3
.L6:
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-20]
	b	.L5
.L4:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L3:
	ldr	r3, [fp, #-20]
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	b	.L7
.L8:
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	str	r3, [fp, #-8]
.L7:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, .L24
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	ldr	r2, [r2]
	mvn	r2, r2
	and	r2, r2, r3
	ldr	r3, .L24+4
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-20]
	b	.L9
.L10:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L9:
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-20]
	b	.L5
.L14:
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L12
	mov	r3, #0
	b	.L5
.L12:
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-21]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L13
	ldr	r3, [fp, #-20]
	b	.L5
.L13:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L11:
	ldr	r3, [fp, #-20]
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L14
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	str	r3, [fp, #-16]
	mov	r3, #8
	str	r3, [fp, #-12]
	b	.L15
.L16:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	lsl	r3, r2, r3
	ldr	r2, [fp, #-16]
	orr	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #1
	str	r3, [fp, #-12]
.L15:
	ldr	r3, [fp, #-12]
	cmp	r3, #31
	bls	.L16
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	b	.L17
.L19:
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	str	r3, [fp, #-8]
.L17:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, .L24
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	ldr	r2, [r2]
	mvn	r2, r2
	and	r2, r2, r3
	ldr	r3, .L24+4
	and	r3, r3, r2
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eor	r2, r2, r3
	ldr	r3, .L24
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eor	r2, r2, r1
	mvn	r2, r2
	and	r2, r2, r3
	ldr	r3, .L24+4
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L19
.L18:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-20]
	b	.L20
.L22:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L20:
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-21]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L22
.L21:
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-21]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L23
	ldr	r3, [fp, #-20]
	b	.L5
.L23:
	mov	r3, #0
.L5:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L25:
	.align	2
.L24:
	.word	-16843009
	.word	-2139062144
	.size	strchr, .-strchr
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
