	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mem_check_on
_mem_check_on:                          ## @mem_check_on
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_mh_mode@GOTPCREL(%rip), %r15
	movq	_CRYPTO_MEM_CHECK_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	testl	%eax, (%r15)
	je	LBB0_5
## %bb.1:
	movq	_do_memdbg_init@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_memdbg_init@GOTPCREL(%rip), %rdi
	callq	_RUN_ONCE
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	xorl	%eax, %eax
	callq	_CRYPTO_THREAD_get_current_id
	movl	%eax, %r14d
	movq	_memdbg_lock@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_CRYPTO_THREAD_read_lock
	movq	_CRYPTO_MEM_CHECK_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$1, %ebx
	testl	%eax, (%r15)
	jne	LBB0_4
## %bb.3:
	movq	_disabling_threadid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_CRYPTO_THREAD_compare_id
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
LBB0_4:
	movl	(%r12), %edi
	callq	_CRYPTO_THREAD_unlock
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mh_mode,4,2                    ## @mh_mode
	.comm	_CRYPTO_MEM_CHECK_ON,4,2        ## @CRYPTO_MEM_CHECK_ON
	.comm	_memdbg_init,4,2                ## @memdbg_init
	.comm	_do_memdbg_init,4,2             ## @do_memdbg_init
	.comm	_memdbg_lock,4,2                ## @memdbg_lock
	.comm	_CRYPTO_MEM_CHECK_ENABLE,4,2    ## @CRYPTO_MEM_CHECK_ENABLE
	.comm	_disabling_threadid,4,2         ## @disabling_threadid
	.no_dead_strip	_mem_check_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mem_check_on
_mem_check_on:                          ; @mem_check_on
	.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
Lloh0:
	adrp	x21, _mh_mode@GOTPAGE
Lloh1:
	ldr	x21, [x21, _mh_mode@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _CRYPTO_MEM_CHECK_ON@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CRYPTO_MEM_CHECK_ON@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
Lloh5:
	adrp	x8, _do_memdbg_init@GOTPAGE
Lloh6:
	ldr	x8, [x8, _do_memdbg_init@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x0, _memdbg_init@GOTPAGE
Lloh9:
	ldr	x0, [x0, _memdbg_init@GOTPAGEOFF]
	bl	_RUN_ONCE
	cbz	w0, LBB0_4
; %bb.2:
	bl	_CRYPTO_THREAD_get_current_id
	mov	x19, x0
Lloh10:
	adrp	x20, _memdbg_lock@GOTPAGE
Lloh11:
	ldr	x20, [x20, _memdbg_lock@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_CRYPTO_THREAD_read_lock
	ldr	w8, [x21]
Lloh12:
	adrp	x9, _CRYPTO_MEM_CHECK_ENABLE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CRYPTO_MEM_CHECK_ENABLE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	mov	w19, #1
	b	LBB0_6
LBB0_4:
	mov	w19, #0
	b	LBB0_7
LBB0_5:
Lloh15:
	adrp	x8, _disabling_threadid@GOTPAGE
Lloh16:
	ldr	x8, [x8, _disabling_threadid@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_CRYPTO_THREAD_compare_id
	cmp	w0, #0
	cset	w19, eq
LBB0_6:
	ldr	w0, [x20]
	bl	_CRYPTO_THREAD_unlock
LBB0_7:
	mov	x0, x19
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_mh_mode,4,2                    ; @mh_mode
	.comm	_CRYPTO_MEM_CHECK_ON,4,2        ; @CRYPTO_MEM_CHECK_ON
	.comm	_memdbg_init,4,2                ; @memdbg_init
	.comm	_do_memdbg_init,4,2             ; @do_memdbg_init
	.comm	_memdbg_lock,4,2                ; @memdbg_lock
	.comm	_CRYPTO_MEM_CHECK_ENABLE,4,2    ; @CRYPTO_MEM_CHECK_ENABLE
	.comm	_disabling_threadid,4,2         ; @disabling_threadid
	.no_dead_strip	_mem_check_on
.subsections_via_symbols
