	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_ether_newhook
_ng_ether_newhook:                      ## @ng_ether_newhook
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	callq	_NG_NODE_PRIVATE
	movq	%rax, %r14
	movq	_NG_ETHER_HOOK_DIVERT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	movq	_NG_ETHER_HOOK_LOWER@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	(%r12), %rbx
LBB0_2:
	movq	_NG_ETHER_HOOK_UPPER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	movq	(%r12), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movq	_NG_ETHER_HOOK_ORPHAN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_15
LBB0_3:
	leaq	8(%r14), %rbx
	movq	_ng_ether_rcv_upper@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_NG_HOOK_SET_RCVDATA
	movq	%r15, %rdi
	callq	_NG_HOOK_SET_TO_INBOUND
	cmpq	$0, (%rbx)
	je	LBB0_12
LBB0_5:
	movq	_EISCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_15
LBB0_7:
	leaq	24(%r14), %rbx
	jmp	LBB0_8
LBB0_10:
	leaq	16(%r14), %rbx
LBB0_8:
	movq	_ng_ether_rcv_lower@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_NG_HOOK_SET_RCVDATA
	cmpq	$0, (%rbx)
	jne	LBB0_5
LBB0_12:
	leaq	8(%r14), %rax
	cmpq	%rax, %rbx
	jne	LBB0_14
## %bb.13:
	movq	(%r14), %rax
	movq	$0, (%rax)
LBB0_14:
	movq	%r15, %rdi
	callq	_NG_HOOK_HI_STACK
	movq	%r15, (%rbx)
	xorl	%eax, %eax
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NG_ETHER_HOOK_DIVERT,8,3       ## @NG_ETHER_HOOK_DIVERT
	.comm	_NG_ETHER_HOOK_LOWER,8,3        ## @NG_ETHER_HOOK_LOWER
	.comm	_NG_ETHER_HOOK_UPPER,8,3        ## @NG_ETHER_HOOK_UPPER
	.comm	_ng_ether_rcv_upper,4,2         ## @ng_ether_rcv_upper
	.comm	_ng_ether_rcv_lower,4,2         ## @ng_ether_rcv_lower
	.comm	_NG_ETHER_HOOK_ORPHAN,8,3       ## @NG_ETHER_HOOK_ORPHAN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EISCONN,4,2                    ## @EISCONN
	.no_dead_strip	_ng_ether_newhook
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_ether_newhook
_ng_ether_newhook:                      ; @ng_ether_newhook
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x19, x1
	bl	_NG_NODE_PRIVATE
	mov	x20, x0
Lloh0:
	adrp	x8, _NG_ETHER_HOOK_DIVERT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NG_ETHER_HOOK_DIVERT@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	mov	x0, x21
	bl	_strcmp
Lloh3:
	adrp	x22, _NG_ETHER_HOOK_LOWER@GOTPAGE
Lloh4:
	ldr	x22, [x22, _NG_ETHER_HOOK_LOWER@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, #0
	csel	x21, x8, x21, eq
Lloh5:
	adrp	x8, _NG_ETHER_HOOK_UPPER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NG_ETHER_HOOK_UPPER@GOTPAGEOFF]
Lloh7:
	ldr	x1, [x8]
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x1, [x22]
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_6
; %bb.2:
Lloh8:
	adrp	x8, _NG_ETHER_HOOK_ORPHAN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NG_ETHER_HOOK_ORPHAN@GOTPAGEOFF]
Lloh10:
	ldr	x1, [x8]
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.3:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_4:
	add	x21, x20, #8
Lloh14:
	adrp	x8, _ng_ether_rcv_upper@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ng_ether_rcv_upper@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_NG_HOOK_SET_RCVDATA
	mov	x0, x19
	bl	_NG_HOOK_SET_TO_INBOUND
	ldr	x8, [x21]
	cbz	x8, LBB0_9
LBB0_5:
Lloh17:
	adrp	x8, _EISCONN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EISCONN@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_6:
	add	x21, x20, #24
	b	LBB0_8
LBB0_7:
	add	x21, x20, #16
LBB0_8:
Lloh20:
	adrp	x8, _ng_ether_rcv_lower@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ng_ether_rcv_lower@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_NG_HOOK_SET_RCVDATA
	ldr	x8, [x21]
	cbnz	x8, LBB0_5
LBB0_9:
	add	x8, x20, #8
	cmp	x21, x8
	b.ne	LBB0_11
; %bb.10:
	ldr	x8, [x20]
	str	xzr, [x8]
LBB0_11:
	mov	x0, x19
	bl	_NG_HOOK_HI_STACK
	mov	w0, #0
	str	x19, [x21]
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_NG_ETHER_HOOK_DIVERT,8,3       ; @NG_ETHER_HOOK_DIVERT
	.comm	_NG_ETHER_HOOK_LOWER,8,3        ; @NG_ETHER_HOOK_LOWER
	.comm	_NG_ETHER_HOOK_UPPER,8,3        ; @NG_ETHER_HOOK_UPPER
	.comm	_ng_ether_rcv_upper,4,2         ; @ng_ether_rcv_upper
	.comm	_ng_ether_rcv_lower,4,2         ; @ng_ether_rcv_lower
	.comm	_NG_ETHER_HOOK_ORPHAN,8,3       ; @NG_ETHER_HOOK_ORPHAN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EISCONN,4,2                    ; @EISCONN
	.no_dead_strip	_ng_ether_newhook
.subsections_via_symbols
