	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function file_map_prot_check
_file_map_prot_check:                   ## @file_map_prot_check
	.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
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_current_cred
	movq	%rax, %r14
	movq	_PROT_EXEC@GOTPCREL(%rip), %rsi
	testq	%rbx, (%rsi)
	je	LBB0_9
## %bb.1:
	testq	%r15, %r15
	je	LBB0_6
## %bb.2:
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.3:
	movq	_FILE__READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_9:
	testq	%r15, %r15
	jne	LBB0_10
	jmp	LBB0_8
LBB0_4:
	movq	_PROT_WRITE@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_5
LBB0_6:
	movq	_PROCESS__EXECMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r14, %rsi
	callq	_cred_has_perm
	movl	%eax, %r13d
	testq	%r15, %r15
	je	LBB0_8
## %bb.7:
	testl	%r13d, %r13d
	movq	_PROT_EXEC@GOTPCREL(%rip), %rsi
	jne	LBB0_8
LBB0_10:
	movq	_FILE__READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r12d, %r12d
	je	LBB0_13
LBB0_11:
	movq	_PROT_WRITE@GOTPCREL(%rip), %rcx
	testq	%rbx, (%rcx)
	je	LBB0_13
## %bb.12:
	movq	_FILE__WRITE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
LBB0_13:
	xorl	%edx, %edx
	andq	(%rsi), %rbx
	je	LBB0_15
## %bb.14:
	movq	_FILE__EXECUTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_15:
	orl	%eax, %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_file_has_perm                  ## TAILCALL
LBB0_8:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_FILE__READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_PROT_EXEC,8,3                  ## @PROT_EXEC
	.comm	_PROT_WRITE,8,3                 ## @PROT_WRITE
	.comm	_PROCESS__EXECMEM,4,2           ## @PROCESS__EXECMEM
	.comm	_FILE__READ,4,2                 ## @FILE__READ
	.comm	_FILE__WRITE,4,2                ## @FILE__WRITE
	.comm	_FILE__EXECUTE,4,2              ## @FILE__EXECUTE
	.no_dead_strip	_file_map_prot_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function file_map_prot_check
_file_map_prot_check:                   ; @file_map_prot_check
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	bl	_current_cred
	mov	x21, x0
Lloh0:
	adrp	x23, _PROT_EXEC@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PROT_EXEC@GOTPAGEOFF]
	ldr	x8, [x23]
	tst	x8, x20
	b.eq	LBB0_4
; %bb.1:
	cbz	x19, LBB0_7
; %bb.2:
	cbz	w22, LBB0_6
; %bb.3:
Lloh2:
	adrp	x8, _FILE__READ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FILE__READ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	b	LBB0_10
LBB0_4:
	cbnz	x19, LBB0_9
; %bb.5:
	mov	w0, #0
	b	LBB0_13
LBB0_6:
Lloh5:
	adrp	x8, _PROT_WRITE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PROT_WRITE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	tst	x8, x20
	b.eq	LBB0_14
LBB0_7:
Lloh8:
	adrp	x8, _PROCESS__EXECMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PROCESS__EXECMEM@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x21
	bl	_cred_has_perm
	cbz	x19, LBB0_13
; %bb.8:
	cbnz	w0, LBB0_13
LBB0_9:
Lloh11:
	adrp	x8, _FILE__READ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FILE__READ@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cbz	w22, LBB0_12
LBB0_10:
Lloh14:
	adrp	x9, _PROT_WRITE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PROT_WRITE@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	tst	x9, x20
	b.eq	LBB0_12
; %bb.11:
Lloh17:
	adrp	x9, _FILE__WRITE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _FILE__WRITE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_12:
	ldr	x9, [x23]
Lloh20:
	adrp	x10, _FILE__EXECUTE@GOTPAGE
Lloh21:
	ldr	x10, [x10, _FILE__EXECUTE@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	tst	x9, x20
	csel	w9, wzr, w10, eq
	orr	w2, w9, w8
	mov	x0, x21
	mov	x1, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_file_has_perm
LBB0_13:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh23:
	adrp	x8, _FILE__READ@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FILE__READ@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_PROT_EXEC,8,3                  ; @PROT_EXEC
	.comm	_PROT_WRITE,8,3                 ; @PROT_WRITE
	.comm	_PROCESS__EXECMEM,4,2           ; @PROCESS__EXECMEM
	.comm	_FILE__READ,4,2                 ; @FILE__READ
	.comm	_FILE__WRITE,4,2                ; @FILE__WRITE
	.comm	_FILE__EXECUTE,4,2              ; @FILE__EXECUTE
	.no_dead_strip	_file_map_prot_check
.subsections_via_symbols
