	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function measure_stack
_measure_stack:                         ## @measure_stack
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	___HeapLimit@GOTPCREL(%rip), %rcx
	leaq	-8(%rbp), %rax
	subq	%rcx, %rax
	je	LBB0_5
## %bb.1:
	sarq	$3, %rax
	movq	_STACK_MAGIC@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	$2, %rax
	movl	$1, %esi
	cmovaeq	%rax, %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rcx,%rdi,8)
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdi
	cmpq	%rdi, %rsi
	jne	LBB0_2
LBB0_5:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_3:
	subq	%rdi, %rax
	addq	$4, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___HeapLimit,8,3                ## @__HeapLimit
	.comm	_STACK_MAGIC,8,3                ## @STACK_MAGIC
	.no_dead_strip	_measure_stack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function measure_stack
_measure_stack:                         ; @measure_stack
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #16
	.cfi_def_cfa_offset 16
Lloh0:
	adrp	x8, ___HeapLimit@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___HeapLimit@GOTPAGEOFF]
	add	x9, sp, #8
	subs	x8, x9, x8
	b.eq	LBB0_4
; %bb.1:
	asr	x10, x8, #3
Lloh2:
	adrp	x8, _STACK_MAGIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STACK_MAGIC@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x10, #1
	csinc	x9, x10, xzr, hi
	add	x0, x10, #4
Lloh5:
	adrp	x10, ___HeapLimit@GOTPAGE
Lloh6:
	ldr	x10, [x10, ___HeapLimit@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cmp	x11, x8
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x0, x0, #1
	add	x10, x10, #8
	subs	x9, x9, #1
	b.ne	LBB0_2
LBB0_4:
	mov	x0, #0
LBB0_5:
	add	sp, sp, #16
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	___HeapLimit,8,3                ; @__HeapLimit
	.comm	_STACK_MAGIC,8,3                ; @STACK_MAGIC
	.no_dead_strip	_measure_stack
.subsections_via_symbols
