	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_ether_link_state
_ng_ether_link_state:                   ## @ng_ether_link_state
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	callq	_IFP2NG
	movl	%eax, %edi
	callq	_NG_NODE_PRIVATE
	movq	%rax, %r15
	movq	_LINK_STATE_UP@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_NGM_LINK_IS_UP@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_LINK_STATE_DOWN@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_7
## %bb.3:
	movq	_NGM_LINK_IS_DOWN@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r14d
	cmpq	$0, 8(%r15)
	je	LBB0_6
## %bb.5:
	movq	_NGM_FLOW_COOKIE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_NG_MKMESSAGE
LBB0_6:
	cmpq	$0, (%r15)
	je	LBB0_7
## %bb.8:
	movq	_NGM_FLOW_COOKIE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_NG_MKMESSAGE                   ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LINK_STATE_UP,4,2              ## @LINK_STATE_UP
	.comm	_NGM_LINK_IS_UP,4,2             ## @NGM_LINK_IS_UP
	.comm	_LINK_STATE_DOWN,4,2            ## @LINK_STATE_DOWN
	.comm	_NGM_LINK_IS_DOWN,4,2           ## @NGM_LINK_IS_DOWN
	.comm	_NGM_FLOW_COOKIE,4,2            ## @NGM_FLOW_COOKIE
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.no_dead_strip	_ng_ether_link_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_ether_link_state
_ng_ether_link_state:                   ; @ng_ether_link_state
	.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	x20, x1
	bl	_IFP2NG
	bl	_NG_NODE_PRIVATE
	mov	x19, x0
Lloh0:
	adrp	x8, _LINK_STATE_UP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LINK_STATE_UP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _NGM_LINK_IS_UP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NGM_LINK_IS_UP@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh5:
	adrp	x8, _LINK_STATE_DOWN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LINK_STATE_DOWN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_8
; %bb.3:
Lloh8:
	adrp	x8, _NGM_LINK_IS_DOWN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NGM_LINK_IS_DOWN@GOTPAGEOFF]
LBB0_4:
	ldr	w20, [x8]
	ldr	x8, [x19, #8]
Lloh10:
	adrp	x21, _NGM_FLOW_COOKIE@GOTPAGE
Lloh11:
	ldr	x21, [x21, _NGM_FLOW_COOKIE@GOTPAGEOFF]
Lloh12:
	adrp	x22, _M_NOWAIT@GOTPAGE
Lloh13:
	ldr	x22, [x22, _M_NOWAIT@GOTPAGEOFF]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w1, [x21]
	ldr	w4, [x22]
	mov	x2, x20
	mov	w3, #0
	bl	_NG_MKMESSAGE
LBB0_6:
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w1, [x21]
	ldr	w4, [x22]
	mov	x2, x20
	mov	w3, #0
	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
	b	_NG_MKMESSAGE
LBB0_8:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_LINK_STATE_UP,4,2              ; @LINK_STATE_UP
	.comm	_NGM_LINK_IS_UP,4,2             ; @NGM_LINK_IS_UP
	.comm	_LINK_STATE_DOWN,4,2            ; @LINK_STATE_DOWN
	.comm	_NGM_LINK_IS_DOWN,4,2           ; @NGM_LINK_IS_DOWN
	.comm	_NGM_FLOW_COOKIE,4,2            ; @NGM_FLOW_COOKIE
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.no_dead_strip	_ng_ether_link_state
.subsections_via_symbols
