	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_protect_page
_write_protect_page:                    ## @write_protect_page
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %ebx
	movq	_TT_PROC_GET_MPROTECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TT_NIL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-36(%rbp), %r8
	movl	%ebx, %esi
	movl	%r15d, %edx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_call_ttrace
	movq	_errno@GOTPCREL(%rip), %r12
	xorl	%r14d, %r14d
	cmpq	$0, (%r12)
	jne	LBB0_6
## %bb.1:
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	movq	_memory_page_dictionary@GOTPCREL(%rip), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_5
## %bb.3:
	movq	_PROT_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	notl	%r8d
	andl	-36(%rbp), %r8d
	movq	_TT_PROC_SET_MPROTECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %ecx
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_call_ttrace
	cmpq	$0, (%r12)
	jne	LBB0_6
## %bb.4:
	testl	%eax, %eax
	js	LBB0_6
LBB0_5:
	movl	-36(%rbp), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TT_PROC_GET_MPROTECT,4,2       ## @TT_PROC_GET_MPROTECT
	.comm	_TT_NIL,4,2                     ## @TT_NIL
	.comm	_errno,8,3                      ## @errno
	.comm	_memory_page_dictionary,16,3    ## @memory_page_dictionary
	.comm	_PROT_WRITE,4,2                 ## @PROT_WRITE
	.comm	_TT_PROC_SET_MPROTECT,4,2       ## @TT_PROC_SET_MPROTECT
	.no_dead_strip	_write_protect_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_protect_page
_write_protect_page:                    ; @write_protect_page
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _TT_PROC_GET_MPROTECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TT_PROC_GET_MPROTECT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _TT_NIL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TT_NIL@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	x4, sp, #12
	mov	x1, x20
	mov	x2, x19
	bl	_call_ttrace
	mov	x8, x0
	mov	w0, #0
Lloh6:
	adrp	x21, _errno@GOTPAGE
Lloh7:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
	ldr	x9, [x21]
	cbnz	x9, LBB0_6
; %bb.1:
	tbnz	w8, #31, LBB0_6
; %bb.2:
Lloh8:
	adrp	x8, _memory_page_dictionary@GOTPAGE
Lloh9:
	ldr	x8, [x8, _memory_page_dictionary@GOTPAGEOFF]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_5
; %bb.3:
	ldr	w9, [sp, #12]
Lloh10:
	adrp	x10, _PROT_WRITE@GOTPAGE
Lloh11:
	ldr	x10, [x10, _PROT_WRITE@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	bic	w4, w9, w10
Lloh13:
	adrp	x9, _TT_PROC_SET_MPROTECT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TT_PROC_SET_MPROTECT@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x9]
	ldr	w3, [x8]
	mov	x1, x20
	mov	x2, x19
	bl	_call_ttrace
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x21]
	cbnz	x9, LBB0_6
; %bb.4:
	tbnz	w8, #31, LBB0_6
LBB0_5:
	ldr	w0, [sp, #12]
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_TT_PROC_GET_MPROTECT,4,2       ; @TT_PROC_GET_MPROTECT
	.comm	_TT_NIL,4,2                     ; @TT_NIL
	.comm	_errno,8,3                      ; @errno
	.comm	_memory_page_dictionary,16,3    ; @memory_page_dictionary
	.comm	_PROT_WRITE,4,2                 ; @PROT_WRITE
	.comm	_TT_PROC_SET_MPROTECT,4,2       ; @TT_PROC_SET_MPROTECT
	.no_dead_strip	_write_protect_page
.subsections_via_symbols
