	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kern_mmap_maxprot              ## -- Begin function kern_mmap_maxprot
	.p2align	4, 0x90
_kern_mmap_maxprot:                     ## @kern_mmap_maxprot
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %ecx
	movq	_P2_PROTMAX_DISABLE@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_NT_FREEBSD_FCTL_PROTMAX_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rdi)
	je	LBB0_3
LBB0_2:
	movq	__PROT_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_3:
	movq	_P2_PROTMAX_ENABLE@GOTPCREL(%rip), %rdx
	movq	_imply_prot_max@GOTPCREL(%rip), %rdi
	movq	_PROT_NONE@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	movq	__PROT_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmovel	%eax, %esi
	cmpq	$0, (%rdi)
	cmovnel	%esi, %eax
	testl	%ecx, (%rdx)
	cmovnel	%esi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_P2_PROTMAX_DISABLE,4,2         ## @P2_PROTMAX_DISABLE
	.comm	_NT_FREEBSD_FCTL_PROTMAX_DISABLE,4,2 ## @NT_FREEBSD_FCTL_PROTMAX_DISABLE
	.comm	__PROT_ALL,4,2                  ## @_PROT_ALL
	.comm	_P2_PROTMAX_ENABLE,4,2          ## @P2_PROTMAX_ENABLE
	.comm	_imply_prot_max,8,3             ## @imply_prot_max
	.comm	_PROT_NONE,4,2                  ## @PROT_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kern_mmap_maxprot              ; -- Begin function kern_mmap_maxprot
	.p2align	2
_kern_mmap_maxprot:                     ; @kern_mmap_maxprot
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _P2_PROTMAX_DISABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _P2_PROTMAX_DISABLE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	w9, [x0, #4]
Lloh3:
	adrp	x10, _NT_FREEBSD_FCTL_PROTMAX_DISABLE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NT_FREEBSD_FCTL_PROTMAX_DISABLE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, __PROT_ALL@GOTPAGE
Lloh7:
	ldr	x8, [x8, __PROT_ALL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ret
LBB0_3:
Lloh9:
	adrp	x9, _P2_PROTMAX_ENABLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _P2_PROTMAX_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _imply_prot_max@GOTPAGE
Lloh13:
	ldr	x10, [x10, _imply_prot_max@GOTPAGEOFF]
	and	w8, w9, w8
Lloh14:
	ldr	x9, [x10]
	cmp	x9, #0
	ccmp	w8, #0, #0, eq
Lloh15:
	adrp	x8, _PROT_NONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PROT_NONE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ccmp	w8, w1, #4, ne
Lloh18:
	adrp	x8, __PROT_ALL@GOTPAGE
Lloh19:
	ldr	x8, [x8, __PROT_ALL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	csel	w0, w8, w1, eq
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_P2_PROTMAX_DISABLE,4,2         ; @P2_PROTMAX_DISABLE
	.comm	_NT_FREEBSD_FCTL_PROTMAX_DISABLE,4,2 ; @NT_FREEBSD_FCTL_PROTMAX_DISABLE
	.comm	__PROT_ALL,4,2                  ; @_PROT_ALL
	.comm	_P2_PROTMAX_ENABLE,4,2          ; @P2_PROTMAX_ENABLE
	.comm	_imply_prot_max,8,3             ; @imply_prot_max
	.comm	_PROT_NONE,4,2                  ; @PROT_NONE
.subsections_via_symbols
