	.file	"extr_ssl_buckets.c_pstrdup_escape_nul_bytes.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pstrdup_escape_nul_bytes, @function
pstrdup_escape_nul_bytes:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r8, rdi
	mov	rdi, rdx
	test	esi, esi
	jle	.L12
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	eax, -1[rsi]
	xor	ecx, ecx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	lea	rbp, 1[r8+rax]
	mov	rbx, r8
	mov	rax, r8
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	BYTE PTR [rax], 1
	adc	ecx, 0
	add	rax, 1
	cmp	rax, rbp
	jne	.L4
	test	ecx, ecx
	je	.L16
	lea	esi, 1[rsi+rcx*2]
	call	apr_palloc@PLT
	mov	rdx, rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L18:
	add	rbx, 1
	mov	BYTE PTR [rdx], cl
	add	rdx, 1
	cmp	rbx, rbp
	je	.L17
.L8:
	movzx	ecx, BYTE PTR [rbx]
	test	cl, cl
	jne	.L18
	mov	ecx, 12380
	add	rbx, 1
	mov	BYTE PTR 2[rdx], 48
	add	rdx, 3
	mov	WORD PTR -3[rdx], cx
	cmp	rbx, rbp
	jne	.L8
.L17:
	mov	BYTE PTR [rdx], 0
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rsi, r8
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	apr_pstrdup@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rsi, r8
	jmp	apr_pstrdup@PLT
	.cfi_endproc
.LFE0:
	.size	pstrdup_escape_nul_bytes, .-pstrdup_escape_nul_bytes
	.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_ssl_buckets.c_pstrdup_escape_nul_bytes.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pstrdup_escape_nul_bytes, %function
pstrdup_escape_nul_bytes:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r6, r1, #0
	mov	r1, r0
	mov	r0, r2
	ble	.L2
	sub	r4, r1, #1
	mov	r3, r4
	mov	lr, #0
	add	r5, r4, r6
.L4:
	ldrb	ip, [r3, #1]!	@ zero_extendqisi2
	cmp	ip, #0
	addeq	lr, lr, #1
	cmp	r3, r5
	bne	.L4
	cmp	lr, #0
	beq	.L2
	add	r1, r6, lr, lsl #1
	add	r1, r1, #1
	bl	apr_palloc
	mov	ip, #92
	mov	r3, r0
	mov	r1, #48
.L8:
	ldrb	r2, [r4, #1]!	@ zero_extendqisi2
	cmp	r2, #0
	strbeq	ip, [r3]
	strbeq	r1, [r3, #1]
	strbeq	r1, [r3, #2]
	strbne	r2, [r3], #1
	addeq	r3, r3, #3
	cmp	r4, r5
	bne	.L8
	mov	r2, #0
	strb	r2, [r3]
	pop	{r4, r5, r6, pc}
.L2:
	pop	{r4, r5, r6, lr}
	b	apr_pstrdup
	.size	pstrdup_escape_nul_bytes, .-pstrdup_escape_nul_bytes
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
