	.file	"extr_user.c_user_write_string.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	user_write_string
	.type	user_write_string, @function
user_write_string:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L13
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	BYTE PTR [rsi], 0
	je	.L4
	mov	r13, rdi
	mov	r12d, 1
	sub	r13, rsi
	sub	r12, rsi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	lea	rdi, [r12+rbp]
	add	rbp, 1
	cmp	BYTE PTR 0[rbp], 0
	je	.L14
.L6:
	lea	rdi, 0[r13+rbp]
	mov	edx, 1
	mov	rsi, rbp
	call	user_write@PLT
	test	rax, rax
	je	.L15
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	add	rdi, rbx
.L4:
	mov	rsi, rbp
	mov	edx, 1
	call	user_write@PLT
	test	rax, rax
	setne	al
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	mov	eax, 1
	ret
	.cfi_endproc
.LFE0:
	.size	user_write_string, .-user_write_string
	.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_user.c_user_write_string.c"
	.text
	.align	2
	.global	user_write_string
	.syntax unified
	.arm
	.fpu softvfp
	.type	user_write_string, %function
user_write_string:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r5, r0, #0
	beq	.L5
	ldrb	r3, [r1]	@ zero_extendqisi2
	mov	r0, r5
	cmp	r3, #0
	mov	r4, r1
	beq	.L4
	sub	r7, r5, r1
	rsb	r6, r1, #1
	b	.L6
.L12:
	ldrb	r3, [r4, #1]!	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L11
.L6:
	mov	r2, #1
	mov	r1, r4
	add	r0, r4, r7
	bl	user_write
	cmp	r0, #0
	add	r2, r6, r4
	beq	.L12
.L5:
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	add	r0, r5, r2
.L4:
	mov	r1, r4
	mov	r2, #1
	bl	user_write
	subs	r0, r0, #0
	movne	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
	.size	user_write_string, .-user_write_string
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
