	.file	"extr_strnlen.c_strnlen.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	strnlen
	.type	strnlen, @function
strnlen:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, rsi
	lea	rcx, [rdi+rsi]
	mov	rdx, rdi
	test	rsi, rsi
	jne	.L4
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	add	rdx, 1
	cmp	rcx, rdx
	je	.L3
.L4:
	cmp	BYTE PTR [rdx], 0
	jne	.L5
	mov	rax, rdx
	sub	rax, rdi
.L3:
	ret
.L9:
	ret
	.cfi_endproc
.LFE0:
	.size	strnlen, .-strnlen
	.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_strnlen.c_strnlen.c"
	.text
	.align	2
	.global	strnlen
	.syntax unified
	.arm
	.fpu softvfp
	.type	strnlen, %function
strnlen:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	cmp	r1, #0
	movne	r3, r0
	addne	ip, r0, r1
	bne	.L4
	b	.L8
.L5:
	cmp	r3, ip
	beq	.L9
.L4:
	ldrb	r1, [r3]	@ zero_extendqisi2
	mov	r2, r3
	cmp	r1, #0
	add	r3, r3, #1
	bne	.L5
	sub	r0, r2, r0
	bx	lr
.L9:
	sub	r0, r3, r0
	bx	lr
.L8:
	mov	r0, r1
	bx	lr
	.size	strnlen, .-strnlen
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
