	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gsc_add_seg
_gsc_add_seg:                           ## @gsc_add_seg
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movaps	%xmm3, -64(%rbp)                ## 16-byte Spill
	movsd	%xmm1, -88(%rbp)                ## 8-byte Spill
	movq	%rdi, %r14
	movq	_INFINITY@GOTPCREL(%rip), %r13
	movsd	(%r13), %xmm3                   ## xmm3 = mem[0],zero
	movapd	%xmm0, %xmm1
	addsd	%xmm2, %xmm1
	movapd	%xmm3, %xmm4
	movsd	%xmm2, -72(%rbp)                ## 8-byte Spill
	cmpeqsd	%xmm2, %xmm4
	movapd	%xmm4, %xmm2
	andnpd	%xmm1, %xmm2
	andpd	%xmm3, %xmm4
	orpd	%xmm2, %xmm4
	movapd	%xmm4, -112(%rbp)               ## 16-byte Spill
	movsd	%xmm0, -80(%rbp)                ## 8-byte Spill
	callq	_gsc_getentry
	movq	%rax, %rbx
	movq	%r14, %rdi
	movapd	-112(%rbp), %xmm0               ## 16-byte Reload
	callq	_gsc_getentry
	movl	$-1, %r12d
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.1:
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	cmpq	%r15, %rbx
	je	LBB0_6
## %bb.3:
	movq	__next@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movsd	16(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	subsd	-80(%rbp), %xmm0                ## 8-byte Folded Reload
	movapd	-64(%rbp), %xmm2                ## 16-byte Reload
	mulsd	%xmm2, %xmm0
	addsd	-88(%rbp), %xmm0                ## 8-byte Folded Reload
	movupd	(%rbx), %xmm1
	unpcklpd	%xmm0, %xmm2                    ## xmm2 = xmm2[0],xmm0[0]
	addpd	%xmm1, %xmm2
	movupd	%xmm2, (%rbx)
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_LIST_NEXT
	movq	%rax, %rbx
	cmpq	%r15, %rax
	jne	LBB0_4
## %bb.5:
	movq	%r15, %rbx
LBB0_6:
	movsd	(%r13), %xmm0                   ## xmm0 = mem[0],zero
	movq	%r14, %rdi
	callq	_gsc_getentry
	xorl	%r12d, %r12d
	cmpq	%rax, %rbx
	je	LBB0_9
## %bb.7:
	movq	%rax, %r14
	movapd	-64(%rbp), %xmm1                ## 16-byte Reload
	mulsd	-72(%rbp), %xmm1                ## 8-byte Folded Reload
	movq	__next@GOTPCREL(%rip), %r15
	movapd	%xmm1, -64(%rbp)                ## 16-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movsd	8(%rbx), %xmm0                  ## xmm0 = mem[0],zero
	addsd	%xmm1, %xmm0
	movsd	%xmm0, 8(%rbx)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_LIST_NEXT
	movapd	-64(%rbp), %xmm1                ## 16-byte Reload
	movq	%rax, %rbx
	cmpq	%r14, %rax
	jne	LBB0_8
LBB0_9:
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INFINITY,8,3                   ## @INFINITY
	.comm	__next,4,2                      ## @_next
	.no_dead_strip	_gsc_add_seg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gsc_add_seg
_gsc_add_seg:                           ; @gsc_add_seg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	d11, d10, [sp, #16]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	.cfi_offset b10, -88
	.cfi_offset b11, -96
	str	q3, [sp]                        ; 16-byte Folded Spill
	fmov	d8, d2
	fmov	d9, d1
	fmov	d10, d0
	mov	x20, x0
	fadd	d0, d0, d2
Lloh0:
	adrp	x22, _INFINITY@GOTPAGE
Lloh1:
	ldr	x22, [x22, _INFINITY@GOTPAGEOFF]
	ldr	d1, [x22]
	fcmp	d1, d2
	fcsel	d11, d1, d0, eq
	fmov	d0, d10
	bl	_gsc_getentry
	mov	x19, x0
	mov	x0, x20
	fmov	d0, d11
	bl	_gsc_getentry
	mov	x21, x0
	mov	w0, #-1
	cbz	x19, LBB0_9
; %bb.1:
	cbz	x21, LBB0_9
; %bb.2:
Lloh2:
	adrp	x23, __next@GOTPAGE
Lloh3:
	ldr	x23, [x23, __next@GOTPAGEOFF]
	cmp	x19, x21
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x19, #16]
	fsub	d0, d0, d10
	ldr	q2, [sp]                        ; 16-byte Folded Reload
	fmadd	d0, d0, d2, d9
	ldr	q1, [x19]
	mov.d	v2[1], v0[0]
	fadd.2d	v0, v1, v2
	str	q0, [x19]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_LIST_NEXT
	mov	x19, x0
	cmp	x0, x21
	b.ne	LBB0_3
; %bb.4:
	mov	x19, x21
LBB0_5:
	ldr	d0, [x22]
	mov	x0, x20
	bl	_gsc_getentry
	cmp	x19, x0
	b.eq	LBB0_8
; %bb.6:
	mov	x20, x0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x19, #8]
	ldr	q1, [sp]                        ; 16-byte Folded Reload
	fmadd	d0, d1, d8, d0
	str	d0, [x19, #8]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_LIST_NEXT
	mov	x19, x0
	cmp	x0, x20
	b.ne	LBB0_7
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_INFINITY,8,3                   ; @INFINITY
	.comm	__next,4,2                      ; @_next
	.no_dead_strip	_gsc_add_seg
.subsections_via_symbols
