	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ugidfw_rule_valid
_ugidfw_rule_valid:                     ## @ugidfw_rule_valid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MBS_ALL_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	testl	%eax, 16(%rdi)
	jne	LBB0_7
## %bb.1:
	testl	%eax, 20(%rdi)
	jne	LBB0_7
## %bb.2:
	movl	4(%rdi), %eax
	movq	_MBO_ALL_FLAGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	testl	%eax, %ecx
	jne	LBB0_7
## %bb.3:
	testl	%ecx, 8(%rdi)
	jne	LBB0_7
## %bb.4:
	movq	_MBO_TYPE_DEFINED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_MBO_ALL_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	testl	%eax, 12(%rdi)
	jne	LBB0_7
LBB0_6:
	movq	_MBI_ALLPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	(%rdi), %eax
	je	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBS_ALL_FLAGS,4,2              ## @MBS_ALL_FLAGS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MBO_ALL_FLAGS,4,2              ## @MBO_ALL_FLAGS
	.comm	_MBO_TYPE_DEFINED,4,2           ## @MBO_TYPE_DEFINED
	.comm	_MBO_ALL_TYPE,4,2               ## @MBO_ALL_TYPE
	.comm	_MBI_ALLPERM,4,2                ## @MBI_ALLPERM
	.no_dead_strip	_ugidfw_rule_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ugidfw_rule_valid
_ugidfw_rule_valid:                     ; @ugidfw_rule_valid
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0, #16]
Lloh0:
	adrp	x8, _MBS_ALL_FLAGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBS_ALL_FLAGS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w9, w8, w9
	cmp	w9, w8
	b.ne	LBB0_7
; %bb.1:
	ldr	w9, [x0, #20]
	orr	w9, w9, w8
	cmp	w9, w8
	b.ne	LBB0_7
; %bb.2:
	ldr	w8, [x0, #4]
Lloh3:
	adrp	x9, _MBO_ALL_FLAGS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MBO_ALL_FLAGS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w10, w9, w8
	cmp	w10, w9
	b.ne	LBB0_7
; %bb.3:
	ldr	w10, [x0, #8]
	orr	w10, w10, w9
	cmp	w10, w9
	b.ne	LBB0_7
; %bb.4:
Lloh6:
	adrp	x9, _MBO_TYPE_DEFINED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MBO_TYPE_DEFINED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	w8, [x0, #12]
Lloh9:
	adrp	x9, _MBO_ALL_TYPE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MBO_ALL_TYPE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	cmp	w8, w9
	b.ne	LBB0_7
LBB0_6:
	ldr	w8, [x0]
Lloh12:
	adrp	x9, _MBI_ALLPERM@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MBI_ALLPERM@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh15:
	adrp	x10, _EINVAL@GOTPAGE
Lloh16:
	ldr	x10, [x10, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	cmp	w8, w9
	csel	w0, wzr, w10, eq
	ret
LBB0_7:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MBS_ALL_FLAGS,4,2              ; @MBS_ALL_FLAGS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MBO_ALL_FLAGS,4,2              ; @MBO_ALL_FLAGS
	.comm	_MBO_TYPE_DEFINED,4,2           ; @MBO_TYPE_DEFINED
	.comm	_MBO_ALL_TYPE,4,2               ; @MBO_ALL_TYPE
	.comm	_MBI_ALLPERM,4,2                ; @MBI_ALLPERM
	.no_dead_strip	_ugidfw_rule_valid
.subsections_via_symbols
