	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_uri_add_query               ## -- Begin function vc_uri_add_query
	.p2align	4, 0x90
_vc_uri_add_query:                      ## @vc_uri_add_query
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rsi, %r12
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.2:
	movq	%rdi, %r13
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movslq	(%rdi), %r15
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	movl	%r15d, %esi
	shll	$4, %esi
	addl	$16, %esi
	callq	_realloc
	jmp	LBB0_5
LBB0_4:
	movl	$16, %edi
	callq	_malloc
LBB0_5:
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	%rbx, 8(%r13)
	shlq	$4, %r15
	leaq	(%rbx,%r15), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx,%r15)
	movq	%r12, %rdi
	movq	%rax, %r12
	movq	%rax, %rsi
	callq	_duplicate_string
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	leaq	(%rbx,%r15), %rsi
	addq	$8, %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_duplicate_string
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	incl	(%r13)
	movl	$1, %r14d
	jmp	LBB0_10
LBB0_9:
	movq	%r12, %rdi
	callq	_release_string
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_uri_add_query               ; -- Begin function vc_uri_add_query
	.p2align	2
_vc_uri_add_query:                      ; @vc_uri_add_query
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	mov	w0, #0
	cbz	x19, LBB0_9
; %bb.1:
	mov	x21, x1
	cbz	x1, LBB0_9
; %bb.2:
	mov	x20, x2
	ldrsw	x22, [x19]
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.3:
	lsl	w8, w22, #4
	add	w1, w8, #16
	bl	_realloc
	cbnz	x0, LBB0_5
	b	LBB0_9
LBB0_4:
	mov	w0, #16
	bl	_malloc
	cbz	x0, LBB0_9
LBB0_5:
	str	x0, [x19, #8]
	add	x22, x0, x22, lsl #4
	stp	xzr, xzr, [x22]
	mov	x0, x21
	mov	x1, x22
	bl	_duplicate_string
	cbz	x0, LBB0_9
; %bb.6:
	add	x1, x22, #8
	mov	x0, x20
	bl	_duplicate_string
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_9
LBB0_8:
	mov	x0, x22
	bl	_release_string
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
