	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_set_flags                   ## -- Begin function pt_set_flags
	.p2align	4, 0x90
_pt_set_flags:                          ## @pt_set_flags
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	testq	%rdx, %rdx
	jle	LBB0_11
## %bb.1:
	movl	%ecx, %r14d
	movq	%rsi, %r13
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rdx,%rsi), %r12
	movq	%rsi, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mem_pt
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%r12, %rbx
	jl	LBB0_2
## %bb.4:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	jle	LBB0_11
## %bb.5:
	movq	_P_WRITE@GOTPCREL(%rip), %rbx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	callq	_mprotect
	testq	%rax, %rax
	js	LBB0_14
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r13
	cmpq	%r12, %r13
	jge	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_mem_pt
	movl	(%rax), %ecx
	movl	%r14d, (%rax)
	notl	%ecx
	andl	%r14d, %ecx
	movl	(%rbx), %edx
	movq	_P_READ@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	%edx, %esi
	testl	%esi, %ecx
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rax), %rcx
	movslq	4(%rax), %rax
	addq	(%rcx), %rax
	movq	_real_page_size@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%esi, %ecx
	negl	%ecx
	movslq	%ecx, %rdi
	andq	%rax, %rdi
	andl	%r14d, %edx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_PROT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_9
LBB0_11:
	movq	%r15, %rdi
	callq	_mem_changed
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_13:
	movq	__ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_errno_map                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	__ENOMEM,4,2                    ## @_ENOMEM
	.comm	_P_READ,4,2                     ## @P_READ
	.comm	_P_WRITE,4,2                    ## @P_WRITE
	.comm	_real_page_size,4,2             ## @real_page_size
	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_PROT_WRITE,4,2                 ## @PROT_WRITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_set_flags                   ; -- Begin function pt_set_flags
	.p2align	2
_pt_set_flags:                          ; @pt_set_flags
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	cmp	x2, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	add	x24, x2, x1
	mov	x23, x1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_mem_pt
	cbz	x0, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	cmp	x23, x24
	b.lt	LBB0_2
; %bb.4:
	cmp	x22, #1
	b.lt	LBB0_10
; %bb.5:
Lloh0:
	adrp	x22, _P_READ@GOTPAGE
Lloh1:
	ldr	x22, [x22, _P_READ@GOTPAGEOFF]
Lloh2:
	adrp	x23, _P_WRITE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _P_WRITE@GOTPAGEOFF]
Lloh4:
	adrp	x25, _real_page_size@GOTPAGE
Lloh5:
	ldr	x25, [x25, _real_page_size@GOTPAGEOFF]
Lloh6:
	adrp	x26, _PROT_READ@GOTPAGE
Lloh7:
	ldr	x26, [x26, _PROT_READ@GOTPAGEOFF]
Lloh8:
	adrp	x27, _PROT_WRITE@GOTPAGE
Lloh9:
	ldr	x27, [x27, _PROT_WRITE@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, #1
	cmp	x21, x24
	b.ge	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_mem_pt
	ldr	w8, [x0]
	str	w19, [x0]
	bic	w9, w19, w8
	ldr	w10, [x22]
	ldr	w8, [x23]
	orr	w10, w8, w10
	tst	w9, w10
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x0, #8]
	ldr	x9, [x9]
	ldrsw	x10, [x0, #4]
	ldr	w1, [x25]
	neg	w11, w1
	sxtw	x11, w11
	add	x9, x9, x10
	and	x0, x9, x11
	ldr	w9, [x26]
	ldr	w10, [x27]
	tst	w8, w19
	csel	w8, wzr, w10, eq
	orr	w2, w8, w9
	bl	_mprotect
	tbz	x0, #63, LBB0_6
; %bb.9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_errno_map
LBB0_10:
	mov	x0, x20
	bl	_mem_changed
	mov	w0, #0
	b	LBB0_12
LBB0_11:
Lloh10:
	adrp	x8, __ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, __ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	__ENOMEM,4,2                    ; @_ENOMEM
	.comm	_P_READ,4,2                     ; @P_READ
	.comm	_P_WRITE,4,2                    ; @P_WRITE
	.comm	_real_page_size,4,2             ; @real_page_size
	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_PROT_WRITE,4,2                 ; @PROT_WRITE
.subsections_via_symbols
