	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_perf_misc_flags                ## -- Begin function perf_misc_flags
	.p2align	4, 0x90
_perf_misc_flags:                       ## @perf_misc_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_perf_guest_cbs@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.1:
	xorl	%eax, %eax
	callq	*8(%rcx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	(%r14), %rcx
	xorl	%eax, %eax
	callq	*(%rcx)
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	movq	_PERF_RECORD_MISC_GUEST_KERNEL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	%rbx, %rdi
	callq	_user_mode
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:
	movq	_PERF_RECORD_MISC_KERNEL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_PERF_RECORD_MISC_USER@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	movq	_PERF_RECORD_MISC_GUEST_USER@GOTPCREL(%rip), %rax
LBB0_8:
	movq	_PERF_EFLAGS_EXACT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rbx), %ecx
	je	LBB0_10
## %bb.9:
	movq	_PERF_RECORD_MISC_EXACT_IP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_10:
	orl	(%rax), %ecx
	movslq	%ecx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_perf_guest_cbs,8,3             ## @perf_guest_cbs
	.comm	_PERF_RECORD_MISC_GUEST_USER,4,2 ## @PERF_RECORD_MISC_GUEST_USER
	.comm	_PERF_RECORD_MISC_GUEST_KERNEL,4,2 ## @PERF_RECORD_MISC_GUEST_KERNEL
	.comm	_PERF_RECORD_MISC_USER,4,2      ## @PERF_RECORD_MISC_USER
	.comm	_PERF_RECORD_MISC_KERNEL,4,2    ## @PERF_RECORD_MISC_KERNEL
	.comm	_PERF_EFLAGS_EXACT,4,2          ## @PERF_EFLAGS_EXACT
	.comm	_PERF_RECORD_MISC_EXACT_IP,4,2  ## @PERF_RECORD_MISC_EXACT_IP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_perf_misc_flags                ; -- Begin function perf_misc_flags
	.p2align	2
_perf_misc_flags:                       ; @perf_misc_flags
	.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
Lloh0:
	adrp	x20, _perf_guest_cbs@GOTPAGE
Lloh1:
	ldr	x20, [x20, _perf_guest_cbs@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x8, #8]
	blr	x8
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x20]
	ldr	x8, [x8]
	blr	x8
Lloh2:
	adrp	x8, _PERF_RECORD_MISC_GUEST_USER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PERF_RECORD_MISC_GUEST_USER@GOTPAGEOFF]
Lloh4:
	adrp	x9, _PERF_RECORD_MISC_GUEST_KERNEL@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PERF_RECORD_MISC_GUEST_KERNEL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_user_mode
Lloh6:
	adrp	x8, _PERF_RECORD_MISC_USER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PERF_RECORD_MISC_USER@GOTPAGEOFF]
Lloh8:
	adrp	x9, _PERF_RECORD_MISC_KERNEL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PERF_RECORD_MISC_KERNEL@GOTPAGEOFF]
LBB0_4:
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	ldr	w9, [x19]
Lloh10:
	adrp	x10, _PERF_EFLAGS_EXACT@GOTPAGE
Lloh11:
	ldr	x10, [x10, _PERF_EFLAGS_EXACT@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
Lloh13:
	adrp	x11, _PERF_RECORD_MISC_EXACT_IP@GOTPAGE
Lloh14:
	ldr	x11, [x11, _PERF_RECORD_MISC_EXACT_IP@GOTPAGEOFF]
Lloh15:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w9, wzr, w11, eq
	orr	w8, w9, w8
	sxtw	x0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_perf_guest_cbs,8,3             ; @perf_guest_cbs
	.comm	_PERF_RECORD_MISC_GUEST_USER,4,2 ; @PERF_RECORD_MISC_GUEST_USER
	.comm	_PERF_RECORD_MISC_GUEST_KERNEL,4,2 ; @PERF_RECORD_MISC_GUEST_KERNEL
	.comm	_PERF_RECORD_MISC_USER,4,2      ; @PERF_RECORD_MISC_USER
	.comm	_PERF_RECORD_MISC_KERNEL,4,2    ; @PERF_RECORD_MISC_KERNEL
	.comm	_PERF_EFLAGS_EXACT,4,2          ; @PERF_EFLAGS_EXACT
	.comm	_PERF_RECORD_MISC_EXACT_IP,4,2  ; @PERF_RECORD_MISC_EXACT_IP
.subsections_via_symbols
