	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tomoyo_check_flags             ## -- Begin function tomoyo_check_flags
	.p2align	4, 0x90
_tomoyo_check_flags:                    ## @tomoyo_check_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %r15
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_in_interrupt
	movl	%eax, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_1
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_tomoyo_policy_loaded@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.2:
	movq	_TOMOYO_MAX_CONTROL_INDEX@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jbe	LBB0_6
## %bb.3:
	movq	_TOMOYO_MAX_PROFILES@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jae	LBB0_6
## %bb.4:
	movq	_tomoyo_profile_ptr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r15,8), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_tomoyo_policy_loaded,8,3       ## @tomoyo_policy_loaded
	.comm	_TOMOYO_MAX_CONTROL_INDEX,8,3   ## @TOMOYO_MAX_CONTROL_INDEX
	.comm	_TOMOYO_MAX_PROFILES,8,3        ## @TOMOYO_MAX_PROFILES
	.comm	_tomoyo_profile_ptr,8,3         ## @tomoyo_profile_ptr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tomoyo_check_flags             ; -- Begin function tomoyo_check_flags
	.p2align	2
_tomoyo_check_flags:                    ; @tomoyo_check_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, x1
	ldr	x20, [x0]
	bl	_in_interrupt
	bl	_WARN_ON
	cbnz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _tomoyo_policy_loaded@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tomoyo_policy_loaded@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _TOMOYO_MAX_CONTROL_INDEX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TOMOYO_MAX_CONTROL_INDEX@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _TOMOYO_MAX_PROFILES@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TOMOYO_MAX_PROFILES@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, #0
	ccmp	x9, x19, #0, ne
	ccmp	x20, x10, #2, hi
	b.hs	LBB0_4
; %bb.2:
Lloh9:
	adrp	x8, _tomoyo_profile_ptr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _tomoyo_profile_ptr@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x8, [x8, x20, lsl #3]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x8]
	ldr	w0, [x8, x19, lsl #2]
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_tomoyo_policy_loaded,8,3       ; @tomoyo_policy_loaded
	.comm	_TOMOYO_MAX_CONTROL_INDEX,8,3   ; @TOMOYO_MAX_CONTROL_INDEX
	.comm	_TOMOYO_MAX_PROFILES,8,3        ; @TOMOYO_MAX_PROFILES
	.comm	_tomoyo_profile_ptr,8,3         ; @tomoyo_profile_ptr
.subsections_via_symbols
