	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function append_query_string
_append_query_string:                   ## @append_query_string
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %rdi
	callq	_strlen
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, %r13
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movb	(%rbx), %al
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	movq	%r14, %rbx
	xorl	%r14d, %r14d
	cmpb	$63, %al
	setne	%r14b
	leaq	(%rbx,%r13), %rdi
	incq	%rdi
	incq	%r13
	addq	%r14, %rdi
	callq	_xmalloc
	movq	%rax, %r12
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rsi
	movq	%rax, %rdi
	movq	%rbx, %rdx
	callq	_memcpy
	cmpb	$63, -41(%rbp)                  ## 1-byte Folded Reload
	je	LBB0_2
## %bb.1:
	movb	$63, (%r12,%rbx)
LBB0_2:
	movq	%r12, %rdi
	addq	%rbx, %rdi
	addq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_memcpy
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	callq	_free
	movq	%r12, (%rbx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_append_query_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function append_query_string
_append_query_string:                   ; @append_query_string
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x0]
	bl	_strlen
	mov	x21, x0
	mov	x0, x20
	bl	_strlen
	ldrb	w24, [x20]
	add	x22, x0, #1
	add	x8, x22, x21
	cmp	w24, #63
	cinc	x0, x8, ne
	bl	_xmalloc
	mov	x23, x0
	ldr	x1, [x19]
	mov	x2, x21
	bl	_memcpy
	cmp	w24, #63
	cset	w8, ne
	b.eq	LBB0_2
; %bb.1:
	mov	w9, #63
	strb	w9, [x23, x21]
LBB0_2:
	add	x9, x23, x21
	add	x0, x9, x8
	mov	x1, x20
	mov	x2, x22
	bl	_memcpy
	ldr	x0, [x19]
	bl	_free
	str	x23, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_append_query_string
.subsections_via_symbols
