	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_eiface_newhook
_ng_eiface_newhook:                     ## @ng_eiface_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, %r12
	movq	16(%rax), %r14
	movq	_NG_EIFACE_HOOK_ETHER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EPFNOSUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_5
LBB0_2:
	cmpq	$0, 8(%r12)
	je	LBB0_4
## %bb.3:
	movq	_EISCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_5
LBB0_4:
	movq	%r12, %rsi
	addq	$8, %rsi
	movq	%r15, 8(%r12)
	movq	%r15, %rdi
	callq	_NG_HOOK_SET_PRIVATE
	movq	%r15, %rdi
	callq	_NG_HOOK_SET_TO_INBOUND
	movq	_IFM_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	movl	(%r14), %edi
	callq	_CURVNET_SET_QUIET
	movq	_LINK_STATE_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_if_link_state_change
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_CURVNET_RESTORE
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NG_EIFACE_HOOK_ETHER,4,2       ## @NG_EIFACE_HOOK_ETHER
	.comm	_EPFNOSUPPORT,4,2               ## @EPFNOSUPPORT
	.comm	_EISCONN,4,2                    ## @EISCONN
	.comm	_IFM_ACTIVE,4,2                 ## @IFM_ACTIVE
	.comm	_LINK_STATE_UP,4,2              ## @LINK_STATE_UP
	.no_dead_strip	_ng_eiface_newhook
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_eiface_newhook
_ng_eiface_newhook:                     ; @ng_eiface_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	x22, x2
	mov	x21, x1
	bl	_NG_NODE_PRIVATE
	mov	x20, x0
	ldr	x19, [x0, #16]
Lloh0:
	adrp	x8, _NG_EIFACE_HOOK_ETHER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NG_EIFACE_HOOK_ETHER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EPFNOSUPPORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPFNOSUPPORT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_2:
	mov	x1, x20
	ldr	x8, [x1, #8]!
	cbz	x8, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _EISCONN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EISCONN@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_4:
	str	x21, [x20, #8]
	mov	x0, x21
	bl	_NG_HOOK_SET_PRIVATE
	mov	x0, x21
	bl	_NG_HOOK_SET_TO_INBOUND
Lloh9:
	adrp	x8, _IFM_ACTIVE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IFM_ACTIVE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	ldr	w0, [x19]
	bl	_CURVNET_SET_QUIET
Lloh12:
	adrp	x8, _LINK_STATE_UP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LINK_STATE_UP@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_if_link_state_change
	bl	_CURVNET_RESTORE
	mov	w0, #0
LBB0_5:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NG_EIFACE_HOOK_ETHER,4,2       ; @NG_EIFACE_HOOK_ETHER
	.comm	_EPFNOSUPPORT,4,2               ; @EPFNOSUPPORT
	.comm	_EISCONN,4,2                    ; @EISCONN
	.comm	_IFM_ACTIVE,4,2                 ; @IFM_ACTIVE
	.comm	_LINK_STATE_UP,4,2              ; @LINK_STATE_UP
	.no_dead_strip	_ng_eiface_newhook
.subsections_via_symbols
