	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ebt_check_entry_size_and_hooks
_ebt_check_entry_size_and_hooks:        ## @ebt_check_entry_size_and_hooks
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_NF_BR_NUMHOOKS@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	testl	%r10d, %r10d
	jle	LBB0_1
## %bb.4:
	movq	(%rsi), %rax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%rax,%rsi,8), %rdi
	je	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rsi
	cmpq	%rsi, %r10
	jne	LBB0_5
	jmp	LBB0_7
LBB0_1:
	xorl	%esi, %esi
LBB0_2:
	cmpl	%r10d, %esi
	jne	LBB0_3
LBB0_7:
	cmpl	$0, 12(%rdi)
	je	LBB0_8
## %bb.21:
	movl	(%rdi), %edx
	cmpl	$16, %edx
	jb	LBB0_24
## %bb.22:
	movl	4(%rdi), %eax
	cmpl	%eax, %edx
	jg	LBB0_24
## %bb.23:
	movl	8(%rdi), %edx
	subl	%eax, %edx
	jle	LBB0_24
## %bb.25:
	cmpl	$3, %edx
	ja	LBB0_27
## %bb.26:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_11
LBB0_24:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_11
LBB0_3:
	xorl	%r10d, %r10d
	jmp	LBB0_9
LBB0_8:
	movb	$1, %r10b
LBB0_9:
	movl	(%rdx), %esi
	cmpl	(%rcx), %esi
	jne	LBB0_10
## %bb.12:
	movq	(%rdi), %rsi
	movq	_EBT_DROP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_16
## %bb.13:
	movq	_EBT_ACCEPT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_16
## %bb.14:
	movq	_EBT_RETURN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	sete	%al
	testb	%al, %r10b
	je	LBB0_15
LBB0_16:
	testb	%r10b, %r10b
	je	LBB0_18
## %bb.17:
	incl	(%r9)
LBB0_18:
	movl	8(%rdi), %eax
	cmpl	(%r8), %eax
	jne	LBB0_19
## %bb.20:
	movl	12(%rdi), %eax
	movl	%eax, (%rdx)
	movl	$0, (%rcx)
	jmp	LBB0_28
LBB0_10:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_11
LBB0_19:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_11
LBB0_15:
	leaq	L_.str.1(%rip), %rdi
LBB0_11:
	callq	_BUGPRINT
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_27:
	incl	(%rcx)
	incl	(%r8)
LBB0_28:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NF_BR_NUMHOOKS,4,2             ## @NF_BR_NUMHOOKS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nentries does not equal the nr of entries in the chain\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EBT_DROP,8,3                   ## @EBT_DROP
	.comm	_EBT_ACCEPT,8,3                 ## @EBT_ACCEPT
	.comm	_EBT_RETURN,8,3                 ## @EBT_RETURN
L_.str.1:                               ## @.str.1
	.asciz	"bad policy\n"

L_.str.2:                               ## @.str.2
	.asciz	"counter_offset != totalcnt"

L_.str.3:                               ## @.str.3
	.asciz	"entry offsets not in right order\n"

L_.str.4:                               ## @.str.4
	.asciz	"target size too small\n"

	.no_dead_strip	_ebt_check_entry_size_and_hooks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ebt_check_entry_size_and_hooks
_ebt_check_entry_size_and_hooks:        ; @ebt_check_entry_size_and_hooks
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _NF_BR_NUMHOOKS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NF_BR_NUMHOOKS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x9, #0
	ldr	x10, [x1]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x9, lsl #3]
	cmp	x0, x11
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_2
	b	LBB0_6
LBB0_4:
	mov	w9, #0
LBB0_5:
	cmp	w9, w8
	b.ne	LBB0_13
LBB0_6:
	ldr	w8, [x0, #12]
	cbz	w8, LBB0_14
; %bb.7:
	ldr	w8, [x0]
	cmp	w8, #16
	b.lo	LBB0_12
; %bb.8:
	ldr	w9, [x0, #4]
	cmp	w8, w9
	b.gt	LBB0_12
; %bb.9:
	ldr	w8, [x0, #8]
	subs	w8, w8, w9
	b.le	LBB0_12
; %bb.10:
	cmp	w8, #3
	b.hi	LBB0_27
; %bb.11:
Lloh3:
	adrp	x0, l_.str.4@PAGE
Lloh4:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_25
LBB0_12:
Lloh5:
	adrp	x0, l_.str.3@PAGE
Lloh6:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_25
LBB0_13:
	mov	w8, #0
	b	LBB0_15
LBB0_14:
	mov	w8, #1
LBB0_15:
	ldr	w9, [x2]
	ldr	w10, [x3]
	cmp	w9, w10
	b.ne	LBB0_22
; %bb.16:
	ldr	x9, [x0]
Lloh7:
	adrp	x10, _EBT_DROP@GOTPAGE
Lloh8:
	ldr	x10, [x10, _EBT_DROP@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
Lloh10:
	adrp	x11, _EBT_ACCEPT@GOTPAGE
Lloh11:
	ldr	x11, [x11, _EBT_ACCEPT@GOTPAGEOFF]
Lloh12:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.eq	LBB0_18
; %bb.17:
Lloh13:
	adrp	x10, _EBT_RETURN@GOTPAGE
Lloh14:
	ldr	x10, [x10, _EBT_RETURN@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	cmp	x9, x10
	cset	w9, eq
	and	w9, w8, w9
	tbz	w9, #0, LBB0_24
LBB0_18:
	cbz	w8, LBB0_20
; %bb.19:
	ldr	w8, [x5]
	add	w8, w8, #1
	str	w8, [x5]
LBB0_20:
	ldr	w8, [x0, #8]
	ldr	w9, [x4]
	cmp	w8, w9
	b.ne	LBB0_23
; %bb.21:
	mov	w8, #0
	ldr	w9, [x0, #12]
	str	w9, [x2]
	str	wzr, [x3]
	b	LBB0_26
LBB0_22:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_25
LBB0_23:
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_25
LBB0_24:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_25:
	bl	_BUGPRINT
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_26:
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_27:
	mov	w8, #0
	ldr	w9, [x3]
	add	w9, w9, #1
	str	w9, [x3]
	ldr	w9, [x4]
	add	w9, w9, #1
	str	w9, [x4]
	b	LBB0_26
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_NF_BR_NUMHOOKS,4,2             ; @NF_BR_NUMHOOKS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nentries does not equal the nr of entries in the chain\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EBT_DROP,8,3                   ; @EBT_DROP
	.comm	_EBT_ACCEPT,8,3                 ; @EBT_ACCEPT
	.comm	_EBT_RETURN,8,3                 ; @EBT_RETURN
l_.str.1:                               ; @.str.1
	.asciz	"bad policy\n"

l_.str.2:                               ; @.str.2
	.asciz	"counter_offset != totalcnt"

l_.str.3:                               ; @.str.3
	.asciz	"entry offsets not in right order\n"

l_.str.4:                               ; @.str.4
	.asciz	"target size too small\n"

	.no_dead_strip	_ebt_check_entry_size_and_hooks
.subsections_via_symbols
