	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_setscanlimits             ## -- Begin function heap_setscanlimits
	.p2align	4, 0x90
_heap_setscanlimits:                    ## @heap_setscanlimits
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movslq	%edi, %rbx
	xorl	%edi, %edi
	cmpl	$0, 28(%rbx)
	sete	%dil
	callq	_Assert
	movq	_SO_ALLOW_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	24(%rbx), %eax
	sete	%dil
	callq	_Assert
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpq	%r15, (%rbx)
	setg	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_Assert
	movq	%r15, 16(%rbx)
	movq	%r14, 8(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SO_ALLOW_SYNC,4,2              ## @SO_ALLOW_SYNC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_setscanlimits             ; -- Begin function heap_setscanlimits
	.p2align	2
_heap_setscanlimits:                    ; @heap_setscanlimits
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x21, w0
	ldr	w8, [x21, #28]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	ldr	w8, [x21, #24]
Lloh0:
	adrp	x9, _SO_ALLOW_SYNC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SO_ALLOW_SYNC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_Assert
	cbz	x20, LBB0_2
; %bb.1:
	ldr	x8, [x21]
	cmp	x8, x20
	cset	w0, gt
	b	LBB0_3
LBB0_2:
	mov	w0, #1
LBB0_3:
	bl	_Assert
	stp	x19, x20, [x21, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SO_ALLOW_SYNC,4,2              ; @SO_ALLOW_SYNC
.subsections_via_symbols
