	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gather_sum_res
_gather_sum_res:                        ## @gather_sum_res
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %ecx
	sarl	$2, %ecx
	decl	%ecx
	movq	_PHP_MAX_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	cmovgel	%eax, %ecx
	movq	_Q_limit@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jle	LBB0_2
## %bb.1:
	movl	%ecx, (%rax)
LBB0_2:
	testl	%ecx, %ecx
	jle	LBB0_20
## %bb.3:
	movq	8(%rdi), %rax
	movq	_Q@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, %r9d
	cmpl	$8, %ecx
	jb	LBB0_4
## %bb.5:
	leaq	(%rax,%r9,4), %rcx
	cmpq	%rcx, %rdx
	jae	LBB0_8
## %bb.6:
	leaq	(%rdx,%r9,4), %rcx
	cmpq	%rcx, %rax
	jae	LBB0_8
LBB0_4:
	xorl	%esi, %esi
LBB0_15:
	movq	%rsi, %r8
	notq	%r8
	addq	%r9, %r8
	movq	%r9, %rdi
	andq	$3, %rdi
	je	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax), %ecx
	addl	%ecx, (%rdx,%rsi,4)
	addq	$4, %rax
	incq	%rsi
	decq	%rdi
	jne	LBB0_16
LBB0_17:
	cmpq	$3, %r8
	jb	LBB0_20
## %bb.18:
	subq	%rsi, %r9
	leaq	(%rdx,%rsi,4), %rcx
	addq	$12, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rdx,4), %esi
	addl	%esi, -12(%rcx,%rdx,4)
	movl	4(%rax,%rdx,4), %esi
	addl	%esi, -8(%rcx,%rdx,4)
	movl	8(%rax,%rdx,4), %esi
	addl	%esi, -4(%rcx,%rdx,4)
	movl	12(%rax,%rdx,4), %esi
	addl	%esi, (%rcx,%rdx,4)
	addq	$4, %rdx
	cmpq	%rdx, %r9
	jne	LBB0_19
	jmp	LBB0_20
LBB0_8:
	movl	%r9d, %esi
	andl	$-8, %esi
	leaq	-8(%rsi), %rcx
	movq	%rcx, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.9:
	movq	%r8, %rcx
	andq	$-2, %rcx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rax,%rdi,4), %xmm0
	movdqu	16(%rax,%rdi,4), %xmm1
	movdqu	(%rdx,%rdi,4), %xmm2
	paddd	%xmm0, %xmm2
	movdqu	16(%rdx,%rdi,4), %xmm0
	paddd	%xmm1, %xmm0
	movdqu	32(%rdx,%rdi,4), %xmm1
	movdqu	48(%rdx,%rdi,4), %xmm3
	movdqu	%xmm2, (%rdx,%rdi,4)
	movdqu	%xmm0, 16(%rdx,%rdi,4)
	movdqu	32(%rax,%rdi,4), %xmm0
	paddd	%xmm1, %xmm0
	movdqu	48(%rax,%rdi,4), %xmm1
	paddd	%xmm3, %xmm1
	movdqu	%xmm0, 32(%rdx,%rdi,4)
	movdqu	%xmm1, 48(%rdx,%rdi,4)
	addq	$16, %rdi
	addq	$-2, %rcx
	jne	LBB0_10
## %bb.11:
	testb	$1, %r8b
	je	LBB0_13
LBB0_12:
	movdqu	(%rax,%rdi,4), %xmm0
	movdqu	16(%rax,%rdi,4), %xmm1
	movdqu	(%rdx,%rdi,4), %xmm2
	paddd	%xmm0, %xmm2
	movdqu	16(%rdx,%rdi,4), %xmm0
	paddd	%xmm1, %xmm0
	movdqu	%xmm2, (%rdx,%rdi,4)
	movdqu	%xmm0, 16(%rdx,%rdi,4)
LBB0_13:
	cmpq	%r9, %rsi
	jne	LBB0_14
LBB0_20:
	popq	%rbp
	retq
LBB0_14:
	leaq	(%rax,%rsi,4), %rax
	jmp	LBB0_15
LBB0_21:
	xorl	%edi, %edi
	testb	$1, %r8b
	jne	LBB0_12
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_PHP_MAX_RES,4,2                ## @PHP_MAX_RES
	.comm	_Q_limit,4,2                    ## @Q_limit
	.comm	_Q,8,3                          ## @Q
	.no_dead_strip	_gather_sum_res
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gather_sum_res
_gather_sum_res:                        ; @gather_sum_res
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	asr	w8, w8, #2
	sub	w8, w8, #1
Lloh0:
	adrp	x9, _PHP_MAX_RES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHP_MAX_RES@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w8, w8, w9, lt
Lloh3:
	adrp	x9, _Q_limit@GOTPAGE
Lloh4:
	ldr	x9, [x9, _Q_limit@GOTPAGEOFF]
	ldr	w10, [x9]
	cmp	w8, w10
	b.le	LBB0_2
; %bb.1:
	str	w8, [x9]
LBB0_2:
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.3:
	ldr	x12, [x0, #8]
Lloh5:
	adrp	x9, _Q@GOTPAGE
Lloh6:
	ldr	x9, [x9, _Q@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x9]
	cmp	w8, #16
	b.lo	LBB0_8
; %bb.4:
	lsl	x9, x8, #2
	add	x11, x10, x9
	add	x9, x12, x9
	cmp	x10, x9
	ccmp	x12, x11, #2, lo
	b.lo	LBB0_8
; %bb.5:
	and	x11, x8, #0xfffffff0
	add	x9, x12, x11, lsl #2
	add	x12, x12, #32
	add	x13, x10, #32
	mov	x14, x11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x12, #-32]
	ldp	q2, q3, [x12], #64
	ldp	q4, q5, [x13, #-32]
	ldp	q6, q7, [x13]
	add.4s	v0, v4, v0
	add.4s	v1, v5, v1
	add.4s	v2, v6, v2
	add.4s	v3, v7, v3
	stp	q0, q1, [x13, #-32]
	stp	q2, q3, [x13], #64
	subs	x14, x14, #16
	b.ne	LBB0_6
; %bb.7:
	cmp	x11, x8
	b.ne	LBB0_9
	b	LBB0_11
LBB0_8:
	mov	x11, #0
	mov	x9, x12
LBB0_9:
	add	x10, x10, x11, lsl #2
	sub	x8, x8, x11
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9], #4
	ldr	w12, [x10]
	add	w11, w12, w11
	str	w11, [x10], #4
	subs	x8, x8, #1
	b.ne	LBB0_10
LBB0_11:
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PHP_MAX_RES,4,2                ; @PHP_MAX_RES
	.comm	_Q_limit,4,2                    ; @Q_limit
	.comm	_Q,8,3                          ; @Q
	.no_dead_strip	_gather_sum_res
.subsections_via_symbols
