	.file	"extr_ccgi.c_urlencode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	urlencode, @function
urlencode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	movdqa	xmm0, XMMWORD PTR .LC0[rip]
	movsx	edi, BYTE PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	BYTE PTR 16[rsp], 0
	movaps	XMMWORD PTR [rsp], xmm0
	test	dil, dil
	je	.L2
	mov	rbp, rdx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L19:
	movsx	esi, BYTE PTR [rbx]
	test	rbp, rbp
	je	.L4
	mov	rdi, rbp
	call	strchr@PLT
	test	rax, rax
	jne	.L3
	movzx	esi, BYTE PTR [rbx]
.L4:
	cmp	sil, 32
	je	.L18
	mov	BYTE PTR [r12], 37
	movzx	eax, BYTE PTR [rbx]
	add	r12, 3
	shr	al, 4
	and	eax, 15
	movzx	eax, BYTE PTR [rsp+rax]
	mov	BYTE PTR -2[r12], al
	movzx	eax, BYTE PTR [rbx]
	and	eax, 15
	movzx	eax, BYTE PTR [rsp+rax]
	mov	BYTE PTR -1[r12], al
.L5:
	movsx	edi, BYTE PTR 1[rbx]
	add	rbx, 1
	test	dil, dil
	je	.L2
.L7:
	call	isalnum@PLT
	test	rax, rax
	je	.L19
.L3:
	movzx	eax, BYTE PTR [rbx]
	add	rbx, 1
	add	r12, 1
	mov	BYTE PTR -1[r12], al
	movsx	edi, BYTE PTR [rbx]
	test	dil, dil
	jne	.L7
.L2:
	mov	BYTE PTR [r12], 0
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	BYTE PTR [r12], 43
	add	r12, 1
	jmp	.L5
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	urlencode, .-urlencode
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.quad	3978425819141910832
	.quad	5063528411713059128
	.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_ccgi.c_urlencode.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"0123456789ABCDEF\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	urlencode, %function
urlencode:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	sub	sp, sp, #24
	mov	ip, sp
	mov	r5, r0
	ldr	lr, .L20
	mov	r4, r1
	mov	r6, r2
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldrb	r0, [r5]	@ zero_extendqisi2
	ldr	r3, [lr]
	ldr	r2, .L20+4
	cmp	r0, #0
	ldr	r2, [r2]
	str	r2, [sp, #20]
	mov	r2,#0
	strb	r3, [ip]
	beq	.L2
	mov	r7, #37
	mov	r8, #43
	b	.L7
.L18:
	cmp	r6, #0
	ldrb	r1, [r5]	@ zero_extendqisi2
	beq	.L4
	mov	r0, r6
	bl	strchr
	cmp	r0, #0
	bne	.L3
	ldrb	r1, [r5]	@ zero_extendqisi2
.L4:
	cmp	r1, #32
	strbeq	r8, [r4], #1
	beq	.L5
	strb	r7, [r4]
	ldrb	r3, [r5]	@ zero_extendqisi2
	add	r2, sp, #24
	add	r3, r2, r3, lsr #4
	ldrb	r3, [r3, #-24]	@ zero_extendqisi2
	add	r4, r4, #3
	strb	r3, [r4, #-2]
	ldrb	r3, [r5]	@ zero_extendqisi2
	and	r3, r3, #15
	add	r3, r2, r3
	ldrb	r3, [r3, #-24]	@ zero_extendqisi2
	strb	r3, [r4, #-1]
.L5:
	ldrb	r0, [r5, #1]!	@ zero_extendqisi2
	cmp	r0, #0
	beq	.L2
.L7:
	bl	isalnum
	cmp	r0, #0
	beq	.L18
.L3:
	ldrb	r3, [r5]	@ zero_extendqisi2
	strb	r3, [r4], #1
	ldrb	r0, [r5, #1]!	@ zero_extendqisi2
	cmp	r0, #0
	bne	.L7
.L2:
	mov	r3, #0
	strb	r3, [r4]
	ldr	r3, .L20+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r4
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	.LC1
	.size	urlencode, .-urlencode
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
