	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rules_check
_rules_check:                           ## @rules_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_portacl_port_high@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	cmpl	%ecx, (%rax)
	jge	LBB0_1
LBB0_19:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_EPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_rule_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	_rule_head@GOTPCREL(%rip), %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_17
## %bb.2:
	movq	%rax, %rbx
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movq	_r_entries@GOTPCREL(%rip), %r14
	xorl	%r13d, %r13d
	jmp	LBB0_3
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	cmpq	%rax, 24(%rbx)
	je	LBB0_10
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_TAILQ_NEXT
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_16
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rax
	movq	_RULE_PROTO_UDP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rax
	movq	_RULE_PROTO_TCP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r15d, 8(%rbx)
	jne	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbx), %rsi
	movq	_RULE_UID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_RULE_GID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%rbx), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	cmpq	%rdi, 8(%rsi)
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	callq	_groupmember
	testq	%rax, %rax
	je	LBB0_15
	jmp	LBB0_17
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_panic
	jmp	LBB0_15
LBB0_16:
	movl	-52(%rbp), %r13d                ## 4-byte Reload
LBB0_17:
	movq	_rule_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	testl	%r13d, %r13d
	je	LBB0_19
## %bb.18:
	movq	_portacl_suser_exempt@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_19
## %bb.20:
	movq	_PRIV_NETINET_RESERVEDPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_priv_check_cred                ## TAILCALL
LBB0_10:
	xorl	%r13d, %r13d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_portacl_port_high,4,2          ## @portacl_port_high
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_rule_mtx,4,2                   ## @rule_mtx
	.comm	_rule_head,4,2                  ## @rule_head
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_RULE_PROTO_UDP,8,3             ## @RULE_PROTO_UDP
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_RULE_PROTO_TCP,8,3             ## @RULE_PROTO_TCP
	.comm	_RULE_UID,8,3                   ## @RULE_UID
	.comm	_RULE_GID,8,3                   ## @RULE_GID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rules_check: unknown rule type %d"

	.comm	_r_entries,4,2                  ## @r_entries
	.comm	_portacl_suser_exempt,8,3       ## @portacl_suser_exempt
	.comm	_PRIV_NETINET_RESERVEDPORT,4,2  ## @PRIV_NETINET_RESERVEDPORT
	.no_dead_strip	_rules_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rules_check
_rules_check:                           ; @rules_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
Lloh0:
	adrp	x8, _portacl_port_high@GOTPAGE
Lloh1:
	ldr	x8, [x8, _portacl_port_high@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w3
	b.ge	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_18
LBB0_2:
	mov	x21, x3
	mov	x22, x2
	mov	x19, x0
Lloh3:
	adrp	x8, _EPERM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
Lloh6:
	adrp	x0, _rule_mtx@GOTPAGE
Lloh7:
	ldr	x0, [x0, _rule_mtx@GOTPAGEOFF]
	bl	_mtx_lock
Lloh8:
	adrp	x0, _rule_head@GOTPAGE
Lloh9:
	ldr	x0, [x0, _rule_head@GOTPAGEOFF]
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_17
; %bb.3:
	mov	x23, x0
Lloh10:
	adrp	x25, _SOCK_DGRAM@GOTPAGE
Lloh11:
	ldr	x25, [x25, _SOCK_DGRAM@GOTPAGEOFF]
Lloh12:
	adrp	x26, _RULE_PROTO_UDP@GOTPAGE
Lloh13:
	ldr	x26, [x26, _RULE_PROTO_UDP@GOTPAGEOFF]
Lloh14:
	adrp	x27, _SOCK_STREAM@GOTPAGE
Lloh15:
	ldr	x27, [x27, _SOCK_STREAM@GOTPAGEOFF]
Lloh16:
	adrp	x28, _RULE_PROTO_TCP@GOTPAGE
Lloh17:
	ldr	x28, [x28, _RULE_PROTO_TCP@GOTPAGEOFF]
Lloh18:
	adrp	x24, _r_entries@GOTPAGE
Lloh19:
	ldr	x24, [x24, _r_entries@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x8, [x19]
	ldr	x9, [x23, #24]
	cmp	x9, x8
	b.eq	LBB0_16
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x24]
	mov	x0, x23
	bl	_TAILQ_NEXT
	mov	x23, x0
	cbz	x0, LBB0_17
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	cmp	w8, w22
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x27]
	cmp	w8, w22
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x23, #8]
	cmp	w8, w21
	b.ne	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x23, #16]
Lloh20:
	adrp	x8, _RULE_UID@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RULE_UID@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x1, x8
	b.eq	LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh23:
	adrp	x8, _RULE_GID@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RULE_GID@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x23, #24]
	cmp	x8, x0
	b.eq	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x19
	bl	_groupmember
	cbz	x0, LBB0_5
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
	b	LBB0_5
LBB0_16:
	mov	w20, #0
LBB0_17:
Lloh28:
	adrp	x0, _rule_mtx@GOTPAGE
Lloh29:
	ldr	x0, [x0, _rule_mtx@GOTPAGEOFF]
	bl	_mtx_unlock
Lloh30:
	adrp	x8, _portacl_suser_exempt@GOTPAGE
Lloh31:
	ldr	x8, [x8, _portacl_suser_exempt@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	cmp	w20, #0
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_19
LBB0_18:
	mov	x0, x20
	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
LBB0_19:
Lloh33:
	adrp	x8, _PRIV_NETINET_RESERVEDPORT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PRIV_NETINET_RESERVEDPORT@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_priv_check_cred
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_portacl_port_high,4,2          ; @portacl_port_high
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_rule_mtx,4,2                   ; @rule_mtx
	.comm	_rule_head,4,2                  ; @rule_head
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_RULE_PROTO_UDP,8,3             ; @RULE_PROTO_UDP
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_RULE_PROTO_TCP,8,3             ; @RULE_PROTO_TCP
	.comm	_RULE_UID,8,3                   ; @RULE_UID
	.comm	_RULE_GID,8,3                   ; @RULE_GID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rules_check: unknown rule type %d"

	.comm	_r_entries,4,2                  ; @r_entries
	.comm	_portacl_suser_exempt,8,3       ; @portacl_suser_exempt
	.comm	_PRIV_NETINET_RESERVEDPORT,4,2  ; @PRIV_NETINET_RESERVEDPORT
	.no_dead_strip	_rules_check
.subsections_via_symbols
