	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_ipfw_input
_ng_ipfw_input:                         ## @ng_ipfw_input
	.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	%rdi, %rbx
	movq	_fw_node@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movl	%edx, %r13d
	movq	%rsi, %r12
	movl	4(%rsi), %esi
	callq	_ng_ipfw_findhook1
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r14
	movq	(%rbx), %r15
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.3:
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_m_dup
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	cmpl	$3, (%r15)
	jbe	LBB0_13
	jmp	LBB0_14
LBB0_5:
	movq	_ESRCH@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %ebx
	jmp	LBB0_17
LBB0_6:
	movq	$0, (%rbx)
	movq	_MTAG_IPFW_RULE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_m_tag_alloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	_IPFW_ONEPASS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	4(%r12), %ecx
	movq	_IPFW_ARGS_IN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%r12), %edx
	jne	LBB0_11
## %bb.8:
	movq	_IPFW_INFO_OUT@GOTPCREL(%rip), %rdx
	jmp	LBB0_12
LBB0_9:
	movq	%r15, %rdi
	callq	_m_freem
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_11:
	movq	_IPFW_INFO_IN@GOTPCREL(%rip), %rdx
LBB0_12:
	orl	(%rdx), %ecx
	movl	%ecx, 4(%rax)
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_m_tag_prepend
	cmpl	$3, (%r15)
	ja	LBB0_14
LBB0_13:
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_m_pullup
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_15
LBB0_14:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_NG_SEND_DATA_ONLY
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_fw_node,8,3                    ## @fw_node
	.comm	_ESRCH,4,2                      ## @ESRCH
	.comm	_MTAG_IPFW_RULE,4,2             ## @MTAG_IPFW_RULE
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IPFW_ONEPASS,4,2               ## @IPFW_ONEPASS
	.comm	_IPFW_ARGS_IN,4,2               ## @IPFW_ARGS_IN
	.comm	_IPFW_INFO_IN,4,2               ## @IPFW_INFO_IN
	.comm	_IPFW_INFO_OUT,4,2              ## @IPFW_INFO_OUT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ng_ipfw_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_ipfw_input
_ng_ipfw_input:                         ; @ng_ipfw_input
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x0
Lloh0:
	adrp	x8, _fw_node@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fw_node@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x23, x2
	mov	x21, x1
	ldr	w1, [x1, #4]
	bl	_ng_ipfw_findhook1
	cbz	x0, LBB0_4
; %bb.2:
	mov	x19, x0
	ldr	x20, [x22]
	cbz	w23, LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_m_dup
	mov	x20, x0
	cbnz	x0, LBB0_8
	b	LBB0_13
LBB0_4:
Lloh6:
	adrp	x8, _ESRCH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_6:
	str	xzr, [x22]
Lloh8:
	adrp	x8, _MTAG_IPFW_RULE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MTAG_IPFW_RULE@GOTPAGEOFF]
Lloh10:
	adrp	x9, _M_NOWAIT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _M_NOWAIT@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	ldr	w8, [x9]
Lloh14:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh15:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	w1, #0
	mov	w2, #4
	bl	_m_tag_alloc
	cbz	x0, LBB0_12
; %bb.7:
	mov	x1, x0
Lloh17:
	adrp	x8, _IPFW_ONEPASS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IPFW_ONEPASS@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldp	w10, w9, [x21]
	and	w8, w8, w9
Lloh20:
	adrp	x9, _IPFW_ARGS_IN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IPFW_ARGS_IN@GOTPAGEOFF]
Lloh22:
	adrp	x11, _IPFW_INFO_IN@GOTPAGE
Lloh23:
	ldr	x11, [x11, _IPFW_INFO_IN@GOTPAGEOFF]
Lloh24:
	adrp	x12, _IPFW_INFO_OUT@GOTPAGE
Lloh25:
	ldr	x12, [x12, _IPFW_INFO_OUT@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w10
	csel	x9, x12, x11, eq
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x0, #4]
	mov	x0, x20
	bl	_m_tag_prepend
LBB0_8:
	ldr	w8, [x20]
	cmp	w8, #3
	b.hi	LBB0_10
; %bb.9:
	mov	x0, x20
	mov	w1, #4
	bl	_m_pullup
	mov	x20, x0
	cbz	x0, LBB0_14
LBB0_10:
	mov	w0, #0
	mov	x1, x19
	mov	x2, x20
	bl	_NG_SEND_DATA_ONLY
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	x0, x20
	bl	_m_freem
LBB0_13:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
LBB0_14:
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh26
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_fw_node,8,3                    ; @fw_node
	.comm	_ESRCH,4,2                      ; @ESRCH
	.comm	_MTAG_IPFW_RULE,4,2             ; @MTAG_IPFW_RULE
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IPFW_ONEPASS,4,2               ; @IPFW_ONEPASS
	.comm	_IPFW_ARGS_IN,4,2               ; @IPFW_ARGS_IN
	.comm	_IPFW_INFO_IN,4,2               ; @IPFW_INFO_IN
	.comm	_IPFW_INFO_OUT,4,2              ; @IPFW_INFO_OUT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ng_ipfw_input
.subsections_via_symbols
