	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function memguard_cmp
_memguard_cmp:                          ## @memguard_cmp
	.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
	movq	_memguard_minsize@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jbe	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	movq	_memguard_minsize_reject@GOTPCREL(%rip), %rax
LBB0_8:
	incl	(%rax)
	jmp	LBB0_9
LBB0_2:
	movq	_memguard_options@GOTPCREL(%rip), %rax
	movq	_MG_GUARD_ALLLARGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	$1, %ebx
	cmpq	%rdi, (%rax)
	jbe	LBB0_9
LBB0_4:
	movq	_memguard_frequency@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_5
## %bb.6:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_random
	cltq
	imulq	$351843721, %rax, %rcx          ## imm = 0x14F8B589
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$45, %rcx
	addl	%edx, %ecx
	imull	$100000, %ecx, %ecx             ## imm = 0x186A0
	subl	%ecx, %eax
	cmpl	(%r14), %eax
	jge	LBB0_9
## %bb.7:
	movl	$1, %ebx
	movq	_memguard_frequency_hits@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_memguard_minsize,8,3           ## @memguard_minsize
	.comm	_memguard_minsize_reject,4,2    ## @memguard_minsize_reject
	.comm	_memguard_options,4,2           ## @memguard_options
	.comm	_MG_GUARD_ALLLARGE,4,2          ## @MG_GUARD_ALLLARGE
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_memguard_frequency,4,2         ## @memguard_frequency
	.comm	_memguard_frequency_hits,4,2    ## @memguard_frequency_hits
	.no_dead_strip	_memguard_cmp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function memguard_cmp
_memguard_cmp:                          ; @memguard_cmp
	.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, _memguard_minsize@GOTPAGE
Lloh1:
	ldr	x8, [x8, _memguard_minsize@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ls	LBB0_3
; %bb.1:
	mov	w0, #0
Lloh3:
	adrp	x8, _memguard_minsize_reject@GOTPAGE
Lloh4:
	ldr	x8, [x8, _memguard_minsize_reject@GOTPAGEOFF]
LBB0_2:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_9
LBB0_3:
Lloh5:
	adrp	x8, _memguard_options@GOTPAGE
Lloh6:
	ldr	x8, [x8, _memguard_options@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _MG_GUARD_ALLLARGE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MG_GUARD_ALLLARGE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh11:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	w8, #0
	ccmp	x9, x0, #2, ne
	b.ls	LBB0_7
; %bb.4:
Lloh14:
	adrp	x19, _memguard_frequency@GOTPAGE
Lloh15:
	ldr	x19, [x19, _memguard_frequency@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	bl	_random
	mov	w8, #46473
	movk	w8, #5368, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	asr	x8, x8, #45
	add	w8, w8, w9
	mov	w9, #34464
	movk	w9, #1, lsl #16
	msub	w8, w8, w9, w0
	ldr	w9, [x19]
	cmp	w8, w9
	b.ge	LBB0_8
; %bb.6:
	mov	w0, #1
Lloh16:
	adrp	x8, _memguard_frequency_hits@GOTPAGE
Lloh17:
	ldr	x8, [x8, _memguard_frequency_hits@GOTPAGEOFF]
	b	LBB0_2
LBB0_7:
	mov	w0, #1
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_memguard_minsize,8,3           ; @memguard_minsize
	.comm	_memguard_minsize_reject,4,2    ; @memguard_minsize_reject
	.comm	_memguard_options,4,2           ; @memguard_options
	.comm	_MG_GUARD_ALLLARGE,4,2          ; @MG_GUARD_ALLLARGE
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_memguard_frequency,4,2         ; @memguard_frequency
	.comm	_memguard_frequency_hits,4,2    ; @memguard_frequency_hits
	.no_dead_strip	_memguard_cmp
.subsections_via_symbols
