	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_serf_bstrcatv                  ## -- Begin function serf_bstrcatv
	.p2align	4, 0x90
_serf_bstrcatv:                         ## @serf_bstrcatv
	.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
	movq	%rcx, %r14
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movq	%rsi, %r12
	movl	%edx, %r13d
	cmpl	$5, %edx
	jae	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	xorl	%esi, %esi
	jmp	LBB0_7
LBB0_1:
	xorl	%esi, %esi
	callq	_serf_bucket_mem_alloc
	movq	%rax, %r15
	movq	%rax, %rbx
	jmp	LBB0_11
LBB0_4:
	movl	%r13d, %eax
	andl	$3, %eax
	testq	%rax, %rax
	movl	$4, %ecx
	cmovneq	%rax, %rcx
	movq	%r13, %rax
	subq	%rcx, %rax
	leaq	32(%r12), %rcx
	pxor	%xmm0, %xmm0
	movq	%rax, %rdx
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-32(%rcx), %xmm2
	movdqu	-16(%rcx), %xmm3
	punpckldq	%xmm3, %xmm2            ## xmm2 = xmm2[0],xmm3[0],xmm2[1],xmm3[1]
	paddd	%xmm2, %xmm0
	movdqu	(%rcx), %xmm2
	movdqu	16(%rcx), %xmm3
	punpckldq	%xmm3, %xmm2            ## xmm2 = xmm2[0],xmm3[0],xmm2[1],xmm3[1]
	paddd	%xmm2, %xmm1
	addq	$64, %rcx
	addq	$-4, %rdx
	jne	LBB0_5
## %bb.6:
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %esi
LBB0_7:
	movq	%r13, %rcx
	subq	%rax, %rcx
	shlq	$4, %rax
	addq	%r12, %rax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	addl	(%rax), %esi
	addq	$16, %rax
	decq	%rcx
	jne	LBB0_8
## %bb.9:
	callq	_serf_bucket_mem_alloc
	movq	%rax, %r15
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r12), %esi
	movq	(%r12), %rdx
	movq	%rbx, %rdi
	callq	_memcpy
	addq	(%r12), %rbx
	addq	$16, %r12
	decq	%r13
	jne	LBB0_10
LBB0_11:
	testq	%r14, %r14
	je	LBB0_13
## %bb.12:
	subl	%r15d, %ebx
	movl	%ebx, (%r14)
LBB0_13:
	movq	%r15, %rax
	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	_serf_bstrcatv                  ; -- Begin function serf_bstrcatv
	.p2align	2
_serf_bstrcatv:                         ; @serf_bstrcatv
	.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	x19, x3
	cmp	w2, #0
	b.le	LBB0_3
; %bb.1:
	mov	x20, x1
	mov	w23, w2
	cmp	w2, #9
	b.hs	LBB0_4
; %bb.2:
	mov	x8, #0
	mov	w1, #0
	b	LBB0_7
LBB0_3:
	mov	w1, #0
	bl	_serf_bucket_mem_alloc
	mov	x21, x0
	mov	x22, x0
	b	LBB0_11
LBB0_4:
	ands	x8, x23, #0x7
	mov	w9, #8
	csel	x8, x9, x8, eq
	sub	x8, x23, x8
	movi.2d	v0, #0000000000000000
	add	x9, x20, #64
	mov	x10, x8
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	x11, x9, #64
	ld2.2d	{ v4, v5 }, [x11]
	sub	x11, x9, #32
	ld2.2d	{ v6, v7 }, [x11]
	mov	x11, x9
	ld2.2d	{ v16, v17 }, [x11], #32
	ld2.2d	{ v18, v19 }, [x11]
	xtn.2s	v4, v4
	xtn.2s	v5, v6
	xtn.2s	v6, v16
	xtn.2s	v7, v18
	add.2s	v0, v0, v4
	add.2s	v1, v1, v5
	add.2s	v2, v2, v6
	add.2s	v3, v3, v7
	add	x9, x9, #128
	subs	x10, x10, #8
	b.ne	LBB0_5
; %bb.6:
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w1, s0
LBB0_7:
	add	x9, x20, x8, lsl #4
	sub	x8, x23, x8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #16
	add	w1, w1, w10
	subs	x8, x8, #1
	b.ne	LBB0_8
; %bb.9:
	bl	_serf_bucket_mem_alloc
	mov	x21, x0
	mov	x22, x0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20, #8]
	ldr	x2, [x20]
	mov	x0, x22
	bl	_memcpy
	ldr	x8, [x20], #16
	add	x22, x22, x8
	subs	x23, x23, #1
	b.ne	LBB0_10
LBB0_11:
	cbz	x19, LBB0_13
; %bb.12:
	sub	w8, w22, w21
	str	w8, [x19]
LBB0_13:
	mov	x0, x21
	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
.subsections_via_symbols
