	.file	"extr_http_parser.c_http_parser_parse_url.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	http_parser_parse_url
	.type	http_parser_parse_url, @function
http_parser_parse_url:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR [rsp], rsi
	mov	DWORD PTR 8[rsp], edx
	test	rsi, rsi
	je	.L28
	mov	rax, QWORD PTR [rsp]
	mov	rbx, rdi
	mov	edi, DWORD PTR 8[rsp]
	mov	r15, rcx
	mov	QWORD PTR [rcx], 0
	mov	r13d, DWORD PTR UF_MAX[rip]
	lea	r14, [rbx+rax]
	test	edi, edi
	mov	edi, 129
	cmove	edi, DWORD PTR s_req_spaces_before_url[rip]
	cmp	rbx, r14
	jnb	.L5
	mov	DWORD PTR 12[rsp], 0
	mov	rbp, rbx
	lea	r12, .L7[rip]
.L17:
	movsx	esi, BYTE PTR 0[rbp]
	call	parse_url_char@PLT
	mov	edi, eax
	lea	eax, -128[rax]
	cmp	eax, 11
	ja	.L6
	movsx	rax, DWORD PTR [r12+rax*4]
	add	rax, r12
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L7:
	.long	.L14-.L7
	.long	.L9-.L7
	.long	.L13-.L7
	.long	.L9-.L7
	.long	.L9-.L7
	.long	.L12-.L7
	.long	.L9-.L7
	.long	.L11-.L7
	.long	.L10-.L7
	.long	.L9-.L7
	.long	.L8-.L7
	.long	.L28-.L7
	.text
	.p2align 4,,10
	.p2align 3
.L14:
	mov	DWORD PTR 12[rsp], 1
.L13:
	mov	ecx, DWORD PTR UF_HOST[rip]
.L15:
	mov	eax, ecx
	sal	rax, 4
	add	rax, QWORD PTR 8[r15]
	cmp	ecx, r13d
	je	.L40
.L16:
	mov	rsi, rbp
	mov	DWORD PTR [rax], 1
	mov	r13d, ecx
	sub	rsi, rbx
	mov	QWORD PTR 8[rax], rsi
	mov	eax, 1
	sal	eax, cl
	or	DWORD PTR 4[r15], eax
.L9:
	add	rbp, 1
	cmp	rbp, r14
	jne	.L17
.L41:
	mov	eax, DWORD PTR 4[r15]
	mov	ecx, DWORD PTR UF_HOST[rip]
	mov	edx, eax
	sar	edx, cl
	mov	ecx, DWORD PTR UF_SCHEMA[rip]
	and	edx, 1
	bt	eax, ecx
	jnc	.L18
	test	edx, edx
	je	.L28
.L20:
	mov	edx, DWORD PTR 12[rsp]
	mov	rsi, r15
	mov	rdi, rbx
	call	http_parse_host@PLT
	test	rax, rax
	jne	.L28
	mov	eax, DWORD PTR 4[r15]
.L23:
	mov	edx, DWORD PTR 8[rsp]
	movsx	rcx, DWORD PTR UF_PORT[rip]
	test	edx, edx
	je	.L22
.L21:
	mov	esi, DWORD PTR UF_HOST[rip]
	mov	edx, 1
	sal	edx, cl
	bts	edx, esi
	cmp	edx, eax
	jne	.L28
.L22:
	sar	eax, cl
	and	eax, 1
	je	.L1
	mov	rax, QWORD PTR 8[r15]
	sal	rcx, 4
	xor	edi, edi
	add	rax, rcx
	mov	r13, QWORD PTR 8[rax]
	movsx	rax, DWORD PTR [rax]
	add	rax, r13
	cmp	rax, QWORD PTR [rsp]
	lea	r12, [rbx+rax]
	setbe	dil
	add	rbx, r13
	call	assert@PLT
	cmp	r12, rbx
	jbe	.L29
	movsx	eax, BYTE PTR [rbx]
	sub	eax, 48
	cdqe
	cmp	rax, 65535
	jbe	.L25
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L26:
	lea	rdx, [rax+rax*4]
	movsx	eax, BYTE PTR [rbx]
	sub	eax, 48
	cdqe
	lea	rax, [rax+rdx*2]
	cmp	rax, 65535
	ja	.L28
.L25:
	add	rbx, 1
	cmp	r12, rbx
	jne	.L26
.L24:
	mov	DWORD PTR [r15], eax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	mov	eax, 1
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	ecx, DWORD PTR UF_FRAGMENT[rip]
	mov	eax, ecx
	sal	rax, 4
	add	rax, QWORD PTR 8[r15]
	cmp	ecx, r13d
	jne	.L16
	.p2align 4,,10
	.p2align 3
.L40:
	add	rbp, 1
	add	DWORD PTR [rax], 1
	cmp	rbp, r14
	jne	.L17
	jmp	.L41
	.p2align 4,,10
	.p2align 3
.L10:
	mov	ecx, DWORD PTR UF_PATH[rip]
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L11:
	mov	ecx, DWORD PTR UF_QUERY[rip]
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L12:
	mov	ecx, DWORD PTR UF_SCHEMA[rip]
	jmp	.L15
.L6:
	xor	edi, edi
	call	assert@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	test	edx, edx
	je	.L23
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, DWORD PTR 8[rsp]
	mov	eax, DWORD PTR 4[rcx]
	movsx	rcx, DWORD PTR UF_PORT[rip]
	test	esi, esi
	jne	.L21
	xor	eax, eax
	jmp	.L1
.L29:
	xor	eax, eax
	jmp	.L24
	.cfi_endproc
.LFE0:
	.size	http_parser_parse_url, .-http_parser_parse_url
	.comm	s_req_spaces_before_url,4,4
	.comm	UF_SCHEMA,4,4
	.comm	UF_QUERY,4,4
	.comm	UF_PORT,4,4
	.comm	UF_PATH,4,4
	.comm	UF_MAX,4,4
	.comm	UF_HOST,4,4
	.comm	UF_FRAGMENT,4,4
	.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_parser.c_http_parser_parse_url.c"
	.text
	.align	2
	.global	http_parser_parse_url
	.syntax unified
	.arm
	.fpu softvfp
	.type	http_parser_parse_url, %function
http_parser_parse_url:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	cmp	r1, #0
	sub	sp, sp, #12
	str	r1, [sp]
	beq	.L28
	mov	fp, r3
	mov	r3, #0
	mov	r5, r0
	cmp	r2, r3
	str	r3, [fp, #4]
	str	r3, [fp]
	mov	r6, r2
	ldreq	r3, .L42
	ldr	r2, [sp]
	ldreq	r0, [r3]
	add	r10, r5, r2
	ldr	r3, .L42+4
	movne	r0, #129
	cmp	r5, r10
	ldr	r8, [r3]
	bcs	.L5
	mov	r3, #0
	mov	r4, r5
	mov	r9, #1
	str	r3, [sp, #4]
.L17:
	ldrb	r1, [r4]	@ zero_extendqisi2
	bl	parse_url_char
	sub	r3, r0, #128
	mov	r7, r4
	add	r4, r4, #1
	cmp	r3, #11
	ldrls	pc, [pc, r3, asl #2]
	b	.L6
.L7:
	.word	.L14
	.word	.L9
	.word	.L13
	.word	.L9
	.word	.L9
	.word	.L12
	.word	.L9
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L28
.L14:
	mov	r3, #1
	str	r3, [sp, #4]
.L13:
	ldr	r3, .L42+8
	ldr	r3, [r3]
.L15:
	cmp	r3, r8
	movne	r8, r3
	ldr	r2, [fp, #8]
	ldrne	r1, [fp, #4]
	ldreq	r1, [r2, r3, lsl #3]
	add	ip, r2, r3, lsl #3
	addeq	r1, r1, #1
	subne	r7, r7, r5
	orrne	r1, r1, r9, lsl r3
	strne	r7, [ip, #4]
	streq	r1, [r2, r3, lsl #3]
	strne	r9, [r2, r3, lsl #3]
	strne	r1, [fp, #4]
.L9:
	cmp	r10, r4
	bne	.L17
	ldr	r3, .L42+12
	ldr	r4, .L42+8
	ldr	r1, [r3]
	ldr	r3, [fp, #4]
	ldr	r2, [r4]
	asr	r1, r3, r1
	asr	r2, r3, r2
	tst	r1, #1
	and	r2, r2, #1
	beq	.L18
	cmp	r2, #0
	beq	.L28
.L20:
	mov	r1, fp
	mov	r0, r5
	ldr	r2, [sp, #4]
	bl	http_parse_host
	cmp	r0, #0
	bne	.L28
	ldr	r3, [fp, #4]
.L23:
	ldr	r2, .L42+16
	cmp	r6, #0
	ldr	r2, [r2]
	beq	.L22
.L21:
	mov	r0, #1
	ldr	ip, [r4]
	lsl	r1, r0, r2
	orr	r1, r1, r0, lsl ip
	cmp	r1, r3
	bne	.L28
.L22:
	asr	r3, r3, r2
	ands	r0, r3, #1
	beq	.L1
	ldr	r3, [fp, #8]
	add	r1, r3, r2, lsl #3
	ldr	r6, [r1, #4]
	ldr	r4, [r3, r2, lsl #3]
	ldr	r3, [sp]
	add	r4, r6, r4
	cmp	r4, r3
	movhi	r0, #0
	movls	r0, #1
	bl	assert
	add	r4, r5, r4
	add	r1, r5, r6
	cmp	r4, r1
	bls	.L29
	ldrb	r3, [r5, r6]	@ zero_extendqisi2
	sub	r3, r3, #48
	cmp	r3, #65536
	bcs	.L28
	sub	r0, r4, #1
	b	.L25
.L26:
	ldrb	r3, [r1, #1]!	@ zero_extendqisi2
	add	r3, r3, r2
	cmp	r3, #65536
	bcs	.L28
.L25:
	add	r2, r3, r3, lsl #2
	lsl	r2, r2, #1
	cmp	r1, r0
	sub	r2, r2, #48
	bne	.L26
.L24:
	str	r3, [fp]
.L40:
	mov	r0, #0
	b	.L1
.L28:
	mov	r0, #1
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	ldr	r3, .L42+20
	ldr	r3, [r3]
	b	.L15
.L10:
	ldr	r3, .L42+24
	ldr	r3, [r3]
	b	.L15
.L11:
	ldr	r3, .L42+28
	ldr	r3, [r3]
	b	.L15
.L12:
	ldr	r3, .L42+12
	ldr	r3, [r3]
	b	.L15
.L18:
	cmp	r2, #0
	beq	.L23
	b	.L20
.L5:
	ldr	r3, .L42+16
	cmp	r6, #0
	ldr	r2, [r3]
	ldr	r3, [fp, #4]
	beq	.L40
	ldr	r4, .L42+8
	b	.L21
.L29:
	mov	r3, #0
	b	.L24
.L6:
	mov	r0, #0
	bl	assert
	mov	r0, #1
	b	.L1
.L43:
	.align	2
.L42:
	.word	s_req_spaces_before_url
	.word	UF_MAX
	.word	UF_HOST
	.word	UF_SCHEMA
	.word	UF_PORT
	.word	UF_FRAGMENT
	.word	UF_PATH
	.word	UF_QUERY
	.size	http_parser_parse_url, .-http_parser_parse_url
	.comm	s_req_spaces_before_url,4,4
	.comm	UF_SCHEMA,4,4
	.comm	UF_QUERY,4,4
	.comm	UF_PORT,4,4
	.comm	UF_PATH,4,4
	.comm	UF_MAX,4,4
	.comm	UF_HOST,4,4
	.comm	UF_FRAGMENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
