	.file	"extr_containers_uri.c_calculate_uri_length.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	calculate_uri_length, @function
calculate_uri_length:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rdi, QWORD PTR 56[rdi]
	test	rdi, rdi
	jne	.L2
	mov	r12, QWORD PTR 24[r13]
	test	r12, r12
	jne	.L37
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR scheme_reserved_chars[rip]
	call	escaped_length@PLT
	mov	rdi, QWORD PTR 48[r13]
	lea	r12, 1[rax]
	test	rdi, rdi
	jne	.L38
.L4:
	mov	rdi, QWORD PTR 24[r13]
	test	rdi, rdi
	jne	.L39
.L6:
	mov	rbp, QWORD PTR 16[r13]
	test	rbp, rbp
	je	.L7
	mov	rbx, QWORD PTR 8[r13]
	sub	rbp, 1
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	sub	rbp, 1
	add	rbx, 16
	cmp	rbp, -1
	je	.L7
.L9:
	mov	rdi, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR query_reserved_chars[rip]
	call	escaped_length@PLT
	mov	rdi, QWORD PTR [rbx]
	lea	r12, 1[r12+rax]
	test	rdi, rdi
	je	.L8
	mov	esi, DWORD PTR query_reserved_chars[rip]
	sub	rbp, 1
	add	rbx, 16
	call	escaped_length@PLT
	lea	r12, 1[r12+rax]
	cmp	rbp, -1
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, QWORD PTR 0[r13]
	test	rdi, rdi
	je	.L1
	mov	esi, DWORD PTR fragment_reserved_chars[rip]
	call	escaped_length@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	lea	r12, 1[r12+rax]
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L37:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	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
	jmp	strlen@PLT
	.p2align 4,,10
	.p2align 3
.L39:
	.cfi_restore_state
	mov	esi, DWORD PTR path_reserved_chars[rip]
	call	escaped_length@PLT
	add	r12, rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L38:
	mov	esi, DWORD PTR host_reserved_chars[rip]
	call	escaped_length@PLT
	mov	rdi, QWORD PTR 40[r13]
	lea	r12, 2[r12+rax]
	test	rdi, rdi
	jne	.L40
.L5:
	mov	rdi, QWORD PTR 32[r13]
	test	rdi, rdi
	je	.L4
	mov	esi, DWORD PTR port_reserved_chars[rip]
	call	escaped_length@PLT
	lea	r12, 1[r12+rax]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L40:
	mov	esi, DWORD PTR userinfo_reserved_chars[rip]
	call	escaped_length@PLT
	lea	r12, 1[r12+rax]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	calculate_uri_length, .-calculate_uri_length
	.comm	userinfo_reserved_chars,4,4
	.comm	scheme_reserved_chars,4,4
	.comm	query_reserved_chars,4,4
	.comm	port_reserved_chars,4,4
	.comm	path_reserved_chars,4,4
	.comm	host_reserved_chars,4,4
	.comm	fragment_reserved_chars,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_containers_uri.c_calculate_uri_length.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculate_uri_length, %function
calculate_uri_length:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	ldr	r0, [r0, #28]
	cmp	r0, #0
	bne	.L2
	ldr	r4, [r7, #12]
	cmp	r4, #0
	bne	.L37
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L41
	ldr	r1, [r3]
	bl	escaped_length
	ldr	r3, [r7, #24]
	add	r4, r0, #1
	cmp	r3, #0
	bne	.L38
.L4:
	ldr	r0, [r7, #12]
	cmp	r0, #0
	bne	.L39
.L6:
	ldr	r6, [r7, #8]
	cmp	r6, #0
	beq	.L7
	ldr	r5, [r7, #4]
	ldr	r8, .L41+4
	sub	r6, r6, #1
	add	r5, r5, #8
	b	.L9
.L8:
	cmn	r6, #1
	add	r5, r5, #8
	beq	.L7
.L9:
	ldr	r1, [r8]
	ldr	r0, [r5, #-4]
	bl	escaped_length
	ldr	r2, [r5, #-8]
	add	r3, r0, #1
	cmp	r2, #0
	sub	r6, r6, #1
	add	r4, r4, r3
	beq	.L8
	mov	r0, r2
	ldr	r1, [r8]
	bl	escaped_length
	cmn	r6, #1
	add	r0, r0, #1
	add	r4, r4, r0
	add	r5, r5, #8
	bne	.L9
.L7:
	ldr	r0, [r7]
	cmp	r0, #0
	beq	.L1
	ldr	r3, .L41+8
	ldr	r1, [r3]
	bl	escaped_length
	add	r0, r0, #1
	add	r4, r4, r0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L37:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	strlen
.L39:
	ldr	r3, .L41+12
	ldr	r1, [r3]
	bl	escaped_length
	add	r4, r4, r0
	b	.L6
.L38:
	ldr	r2, .L41+16
	mov	r0, r3
	ldr	r1, [r2]
	bl	escaped_length
	ldr	r2, [r7, #20]
	add	r3, r0, #2
	cmp	r2, #0
	add	r4, r4, r3
	bne	.L40
.L5:
	ldr	r0, [r7, #16]
	cmp	r0, #0
	beq	.L4
	ldr	r3, .L41+20
	ldr	r1, [r3]
	bl	escaped_length
	add	r0, r0, #1
	add	r4, r4, r0
	b	.L4
.L40:
	ldr	r3, .L41+24
	mov	r0, r2
	ldr	r1, [r3]
	bl	escaped_length
	add	r0, r0, #1
	add	r4, r4, r0
	b	.L5
.L42:
	.align	2
.L41:
	.word	scheme_reserved_chars
	.word	query_reserved_chars
	.word	fragment_reserved_chars
	.word	path_reserved_chars
	.word	host_reserved_chars
	.word	port_reserved_chars
	.word	userinfo_reserved_chars
	.size	calculate_uri_length, .-calculate_uri_length
	.comm	userinfo_reserved_chars,4,4
	.comm	scheme_reserved_chars,4,4
	.comm	query_reserved_chars,4,4
	.comm	port_reserved_chars,4,4
	.comm	path_reserved_chars,4,4
	.comm	host_reserved_chars,4,4
	.comm	fragment_reserved_chars,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
