	.file	"120793.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 -72[rbp], rdi
	mov	DWORD PTR -76[rbp], esi
	mov	eax, DWORD PTR -76[rbp]
	movzx	eax, al
	mov	DWORD PTR -76[rbp], eax
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -40[rbp], rax
	jmp	.L2
.L6:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	DWORD PTR -76[rbp], eax
	jne	.L3
	mov	rax, QWORD PTR -40[rbp]
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L5
	mov	eax, 0
	jmp	.L4
.L5:
	add	QWORD PTR -40[rbp], 1
.L2:
	mov	rax, QWORD PTR -40[rbp]
	and	eax, 7
	test	rax, rax
	jne	.L6
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -76[rbp]
	sal	eax, 8
	or	eax, DWORD PTR -76[rbp]
	cdqe
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	sal	rax, 16
	or	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	sal	rax, 32
	or	QWORD PTR -24[rbp], rax
	mov	edx, 64
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, edx
	sal	rax, cl
	or	QWORD PTR -24[rbp], rax
.L13:
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 8[rax]
	mov	QWORD PTR -32[rbp], rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
#APP
# 54 "the_stack_data/120793.c" 1
	cmpbge $31, rax, eax
# 0 "" 2
#NO_APP
	mov	DWORD PTR -52[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
#APP
# 57 "the_stack_data/120793.c" 1
	cmpbge rax, rdx, eax
# 0 "" 2
#NO_APP
	mov	DWORD PTR -48[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
#APP
# 60 "the_stack_data/120793.c" 1
	cmpbge rdx, rax, eax
# 0 "" 2
#NO_APP
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jne	.L7
	mov	eax, DWORD PTR -48[rbp]
	and	eax, DWORD PTR -44[rbp]
	test	eax, eax
	je	.L13
.L7:
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, 8
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -56[rbp], 0
	jmp	.L9
.L12:
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	DWORD PTR -76[rbp], eax
	jne	.L10
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	jmp	.L4
.L10:
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L11
	mov	eax, 0
	jmp	.L4
.L11:
	add	DWORD PTR -56[rbp], 1
.L9:
	cmp	DWORD PTR -56[rbp], 7
	jle	.L12
	mov	eax, 0
.L4:
	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	"120793.c"
	.text
	.align	2
	.global	strchr
	.syntax unified
	.arm
	.fpu softvfp
	.type	strchr, %function
strchr:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #52
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, [fp, #-52]
	and	r3, r3, #255
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-40]
	b	.L2
.L6:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-52]
	cmp	r3, r2
	bne	.L3
	ldr	r3, [fp, #-40]
	b	.L4
.L3:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L5
	mov	r3, #0
	b	.L4
.L5:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L2:
	ldr	r3, [fp, #-40]
	and	r3, r3, #7
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-52]
	lsl	r2, r3, #8
	ldr	r3, [fp, #-52]
	orr	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #16
	ldr	r2, [fp, #-28]
	orr	r3, r2, r3
	str	r3, [fp, #-28]
	mov	r2, #32
	ldr	r3, [fp, #-28]
	lsl	r3, r3, r2
	ldr	r2, [fp, #-28]
	orr	r3, r2, r3
	str	r3, [fp, #-28]
	mov	r2, #64
	ldr	r3, [fp, #-28]
	lsl	r3, r3, r2
	ldr	r2, [fp, #-28]
	orr	r3, r2, r3
	str	r3, [fp, #-28]
.L13:
	ldr	r3, [fp, #-36]
	add	r2, r3, #4
	str	r2, [fp, #-36]
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	.syntax divided
@ 54 "the_stack_data/120793.c" 1
	cmpbge $31, r3, r3
@ 0 "" 2
	.arm
	.syntax unified
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	.syntax divided
@ 57 "the_stack_data/120793.c" 1
	cmpbge r3, r2, r3
@ 0 "" 2
	.arm
	.syntax unified
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	.syntax divided
@ 60 "the_stack_data/120793.c" 1
	cmpbge r2, r3, r3
@ 0 "" 2
	.arm
	.syntax unified
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L7
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L13
.L7:
	ldr	r3, [fp, #-36]
	sub	r3, r3, #4
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L9
.L12:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-52]
	cmp	r3, r2
	bne	.L10
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	b	.L4
.L10:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L11
	mov	r3, #0
	b	.L4
.L11:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L9:
	ldr	r3, [fp, #-32]
	cmp	r3, #7
	ble	.L12
	mov	r3, #0
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	strchr, .-strchr
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
