	.file	"extr_http.c_evhttp_uriencode.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"+"
.LC1:
	.string	"%%%02X"
.LC2:
	.string	""
	.text
	.p2align 4
	.globl	evhttp_uriencode
	.type	evhttp_uriencode, @function
evhttp_uriencode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	eax, eax
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	call	evbuffer_new@PLT
	test	rax, rax
	je	.L11
	mov	r12, rax
	test	rbp, rbp
	js	.L3
	add	rbp, rbx
.L4:
	cmp	rbp, rbx
	jbe	.L6
	lea	r14, .LC1[rip]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L7:
	movzx	edx, BYTE PTR [rbx]
	test	r13d, r13d
	je	.L9
	cmp	dl, 32
	je	.L25
.L9:
	mov	rsi, r14
	mov	rdi, r12
	call	evbuffer_add_printf@PLT
.L8:
	add	rbx, 1
	cmp	rbp, rbx
	je	.L6
.L10:
	movsx	edi, BYTE PTR [rbx]
	call	CHAR_IS_UNRESERVED@PLT
	test	rax, rax
	je	.L7
	mov	rsi, rbx
	mov	edx, 1
	mov	rdi, r12
	add	rbx, 1
	call	evbuffer_add@PLT
	cmp	rbp, rbx
	jne	.L10
.L6:
	mov	edx, 1
	lea	rsi, .LC2[rip]
	mov	rdi, r12
	call	evbuffer_add@PLT
	mov	rdi, r12
	call	evbuffer_get_length@PLT
	mov	edi, eax
	call	mm_malloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L5
	mov	rdi, r12
	call	evbuffer_get_length@PLT
	mov	rsi, r13
	mov	rdi, r12
	mov	edx, eax
	call	evbuffer_remove@PLT
.L5:
	mov	rdi, r12
	call	evbuffer_free@PLT
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r13
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	mov	edx, 1
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	evbuffer_add@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rbx
	call	strlen@PLT
	cmp	QWORD PTR EV_SSIZE_MAX[rip], rax
	jbe	.L12
	lea	rbp, [rbx+rax]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	xor	r13d, r13d
	jmp	.L1
.L12:
	xor	r13d, r13d
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	evhttp_uriencode, .-evhttp_uriencode
	.comm	EV_SSIZE_MAX,8,8
	.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_http.c_evhttp_uriencode.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"+\000"
	.align	2
.LC1:
	.ascii	"%%%02X\000"
	.align	2
.LC2:
	.ascii	"\000"
	.text
	.align	2
	.global	evhttp_uriencode
	.syntax unified
	.arm
	.fpu softvfp
	.type	evhttp_uriencode, %function
evhttp_uriencode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	mov	r5, r1
	mov	r7, r2
	bl	evbuffer_new
	subs	r6, r0, #0
	beq	.L11
	cmp	r5, #0
	addge	r5, r4, r5
	blt	.L19
.L4:
	cmp	r5, r4
	bls	.L6
	ldr	r8, .L21
	ldr	r9, .L21+4
	b	.L10
.L7:
	ldrb	r2, [r4, #-1]	@ zero_extendqisi2
	cmp	r7, #0
	sub	r3, r2, #32
	clz	r3, r3
	lsr	r3, r3, #5
	moveq	r3, #0
	cmp	r3, #0
	bne	.L20
	mov	r1, r8
	mov	r0, r6
	bl	evbuffer_add_printf
.L8:
	cmp	r4, r5
	beq	.L6
.L10:
	ldrb	r0, [r4]	@ zero_extendqisi2
	bl	CHAR_IS_UNRESERVED
	cmp	r0, #0
	mov	r10, r4
	add	r4, r4, #1
	beq	.L7
	mov	r1, r10
	mov	r2, #1
	mov	r0, r6
	bl	evbuffer_add
	cmp	r4, r5
	bne	.L10
.L6:
	mov	r2, #1
	ldr	r1, .L21+8
	mov	r0, r6
	bl	evbuffer_add
	mov	r0, r6
	bl	evbuffer_get_length
	bl	mm_malloc
	subs	r4, r0, #0
	beq	.L5
	mov	r0, r6
	bl	evbuffer_get_length
	mov	r1, r4
	mov	r2, r0
	mov	r0, r6
	bl	evbuffer_remove
.L5:
	mov	r0, r6
	bl	evbuffer_free
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L20:
	mov	r2, #1
	mov	r1, r9
	mov	r0, r6
	bl	evbuffer_add
	b	.L8
.L19:
	mov	r0, r4
	bl	strlen
	ldr	r3, .L21+12
	ldr	r3, [r3]
	cmp	r3, r0
	movls	r4, #0
	bls	.L5
	add	r5, r4, r0
	b	.L4
.L11:
	mov	r4, r6
	b	.L1
.L22:
	.align	2
.L21:
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.word	EV_SSIZE_MAX
	.size	evhttp_uriencode, .-evhttp_uriencode
	.comm	EV_SSIZE_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
