	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AllocWinding                   ## -- Begin function AllocWinding
	.p2align	4, 0x90
_AllocWinding:                          ## @AllocWinding
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $edi killed $edi def $rdi
	movq	_c_winding_allocs@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_c_winding_points@GOTPCREL(%rip), %rax
	addl	%edi, (%rax)
	movq	_c_active_windings@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	leaq	1(%rdx), %rax
	movq	%rax, (%rcx)
	movq	_c_peak_windings@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jl	LBB0_2
## %bb.1:
	movq	%rax, (%rcx)
LBB0_2:
	leal	(%rdi,%rdi,2), %eax
	leal	4(,%rax,4), %r14d
	movl	%r14d, %edi
	callq	_Z_Malloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_Com_Memset
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_c_winding_allocs,4,2           ## @c_winding_allocs
	.comm	_c_winding_points,4,2           ## @c_winding_points
	.comm	_c_active_windings,8,3          ## @c_active_windings
	.comm	_c_peak_windings,8,3            ## @c_peak_windings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AllocWinding                   ; -- Begin function AllocWinding
	.p2align	2
_AllocWinding:                          ; @AllocWinding
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _c_winding_allocs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _c_winding_allocs@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh2:
	adrp	x8, _c_winding_points@GOTPAGE
Lloh3:
	ldr	x8, [x8, _c_winding_points@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, w0
	str	w9, [x8]
Lloh4:
	adrp	x9, _c_active_windings@GOTPAGE
Lloh5:
	ldr	x9, [x9, _c_active_windings@GOTPAGEOFF]
	ldr	x10, [x9]
	add	x8, x10, #1
	str	x8, [x9]
Lloh6:
	adrp	x9, _c_peak_windings@GOTPAGE
Lloh7:
	ldr	x9, [x9, _c_peak_windings@GOTPAGEOFF]
	ldr	x11, [x9]
	cmp	x10, x11
	b.lt	LBB0_2
; %bb.1:
	str	x8, [x9]
LBB0_2:
	mov	w8, #12
	orr	w9, wzr, #0x4
	madd	w19, w0, w8, w9
	mov	x0, x19
	bl	_Z_Malloc
	mov	x20, x0
	mov	w1, #0
	mov	x2, x19
	bl	_Com_Memset
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_c_winding_allocs,4,2           ; @c_winding_allocs
	.comm	_c_winding_points,4,2           ; @c_winding_points
	.comm	_c_active_windings,8,3          ; @c_active_windings
	.comm	_c_peak_windings,8,3            ; @c_peak_windings
.subsections_via_symbols
