	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ugidfw_check                   ## -- Begin function ugidfw_check
	.p2align	4, 0x90
_ugidfw_check:                          ## @ugidfw_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
	movq	_MBI_APPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %r13d
	notl	%r13d
	andl	%ecx, %r13d
	movq	_MBI_WRITE@GOTPCREL(%rip), %rbx
	orl	(%rbx), %r13d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r12
	testl	%ecx, %eax
	cmovel	%ecx, %r13d
	movq	_ugidfw_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	_rule_slots@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_rule_slots@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_rules@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r14,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%r13d, %r8d
	callq	_ugidfw_rulecheck
	movl	%eax, %ebx
	movq	_EJUSTRETURN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%ebx, %ebx
	je	LBB0_5
	jmp	LBB0_8
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	_ugidfw_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBI_APPEND,4,2                 ## @MBI_APPEND
	.comm	_MBI_WRITE,4,2                  ## @MBI_WRITE
	.comm	_ugidfw_mtx,4,2                 ## @ugidfw_mtx
	.comm	_rule_slots,4,2                 ## @rule_slots
	.comm	_rules,8,3                      ## @rules
	.comm	_EJUSTRETURN,4,2                ## @EJUSTRETURN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ugidfw_check                   ; -- Begin function ugidfw_check
	.p2align	2
_ugidfw_check:                          ; @ugidfw_check
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _MBI_APPEND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBI_APPEND@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w9, w3, w8
Lloh3:
	adrp	x10, _MBI_WRITE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MBI_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w9, w10
	tst	w8, w3
	csel	w22, w3, w9, eq
Lloh6:
	adrp	x0, _ugidfw_mtx@GOTPAGE
Lloh7:
	ldr	x0, [x0, _ugidfw_mtx@GOTPAGEOFF]
	bl	_mtx_lock
Lloh8:
	adrp	x24, _rule_slots@GOTPAGE
Lloh9:
	ldr	x24, [x24, _rule_slots@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x25, #0
Lloh10:
	adrp	x26, _rules@GOTPAGE
Lloh11:
	ldr	x26, [x26, _rules@GOTPAGEOFF]
Lloh12:
	adrp	x27, _EJUSTRETURN@GOTPAGE
Lloh13:
	ldr	x27, [x27, _EJUSTRETURN@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x24]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	cmp	x25, w8, sxtw
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x26]
	ldr	x0, [x9, x25, lsl #3]
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	mov	x4, x22
	bl	_ugidfw_rulecheck
	ldr	w8, [x27]
	cmp	w0, w8
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
	cbz	w0, LBB0_2
	b	LBB0_8
LBB0_7:
	mov	w23, #0
LBB0_8:
Lloh14:
	adrp	x0, _ugidfw_mtx@GOTPAGE
Lloh15:
	ldr	x0, [x0, _ugidfw_mtx@GOTPAGEOFF]
	bl	_mtx_unlock
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MBI_APPEND,4,2                 ; @MBI_APPEND
	.comm	_MBI_WRITE,4,2                  ; @MBI_WRITE
	.comm	_ugidfw_mtx,4,2                 ; @ugidfw_mtx
	.comm	_rule_slots,4,2                 ; @rule_slots
	.comm	_rules,8,3                      ; @rules
	.comm	_EJUSTRETURN,4,2                ; @EJUSTRETURN
.subsections_via_symbols
