	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function etm4_get_ns_access_type
_etm4_get_ns_access_type:               ## @etm4_get_ns_access_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_is_kernel_in_hyp_mode
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	(%rbx), %eax
	movq	_ETM_MODE_EXCL_KERN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	je	LBB0_5
## %bb.4:
	movq	_ETM_EXLEVEL_NS_HYP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	jmp	LBB0_5
LBB0_1:
	movq	_ETM_EXLEVEL_NS_HYP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%rbx), %eax
	movq	_ETM_MODE_EXCL_KERN@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_5
## %bb.2:
	movq	_ETM_EXLEVEL_NS_OS@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
LBB0_5:
	movq	_ETM_MODE_EXCL_USER@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	je	LBB0_7
## %bb.6:
	movq	_ETM_EXLEVEL_NS_APP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	orl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETM_EXLEVEL_NS_HYP,4,2         ## @ETM_EXLEVEL_NS_HYP
	.comm	_ETM_MODE_EXCL_KERN,4,2         ## @ETM_MODE_EXCL_KERN
	.comm	_ETM_EXLEVEL_NS_OS,4,2          ## @ETM_EXLEVEL_NS_OS
	.comm	_ETM_MODE_EXCL_USER,4,2         ## @ETM_MODE_EXCL_USER
	.comm	_ETM_EXLEVEL_NS_APP,4,2         ## @ETM_EXLEVEL_NS_APP
	.no_dead_strip	_etm4_get_ns_access_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function etm4_get_ns_access_type
_etm4_get_ns_access_type:               ; @etm4_get_ns_access_type
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_is_kernel_in_hyp_mode
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _ETM_MODE_EXCL_KERN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ETM_MODE_EXCL_KERN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _ETM_EXLEVEL_NS_HYP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ETM_EXLEVEL_NS_HYP@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w9, wzr, w10, eq
	b	LBB0_4
LBB0_2:
Lloh6:
	adrp	x8, _ETM_EXLEVEL_NS_HYP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETM_EXLEVEL_NS_HYP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x8]
	ldr	w8, [x19]
Lloh9:
	adrp	x10, _ETM_MODE_EXCL_KERN@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ETM_MODE_EXCL_KERN@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_4
; %bb.3:
Lloh12:
	adrp	x10, _ETM_EXLEVEL_NS_OS@GOTPAGE
Lloh13:
	ldr	x10, [x10, _ETM_EXLEVEL_NS_OS@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w9, w10, w9
LBB0_4:
Lloh15:
	adrp	x10, _ETM_MODE_EXCL_USER@GOTPAGE
Lloh16:
	ldr	x10, [x10, _ETM_MODE_EXCL_USER@GOTPAGEOFF]
Lloh17:
	adrp	x11, _ETM_EXLEVEL_NS_APP@GOTPAGE
Lloh18:
	ldr	x11, [x11, _ETM_EXLEVEL_NS_APP@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
Lloh20:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w8, wzr, w11, eq
	orr	w0, w8, w9
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ETM_EXLEVEL_NS_HYP,4,2         ; @ETM_EXLEVEL_NS_HYP
	.comm	_ETM_MODE_EXCL_KERN,4,2         ; @ETM_MODE_EXCL_KERN
	.comm	_ETM_EXLEVEL_NS_OS,4,2          ; @ETM_EXLEVEL_NS_OS
	.comm	_ETM_MODE_EXCL_USER,4,2         ; @ETM_MODE_EXCL_USER
	.comm	_ETM_EXLEVEL_NS_APP,4,2         ; @ETM_EXLEVEL_NS_APP
	.no_dead_strip	_etm4_get_ns_access_type
.subsections_via_symbols
