	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ng_address_hook                ## -- Begin function ng_address_hook
	.p2align	4, 0x90
_ng_address_hook:                       ## @ng_address_hook
	.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
	movl	%ecx, %r14d
	movq	%rdx, %rbx
	movl	%esi, %r12d
	movl	%edi, %r15d
	xorl	%eax, %eax
	callq	_TOPOLOGY_RLOCK
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_NG_HOOK_NOT_VALID
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_NG_HOOK_PEER
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_NG_HOOK_NOT_VALID
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_NG_PEER_NODE
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_NG_NODE_NOT_VALID
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movl	%r12d, %edi
	callq	_NG_FREE_ITEM
	xorl	%eax, %eax
	callq	_TRAP_ERROR
	xorl	%eax, %eax
	callq	_TOPOLOGY_RUNLOCK
	movq	_ENETDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r13, %rdi
	callq	_NG_HOOK_REF
	movl	%ebx, %edi
	callq	_NG_NODE_REF
	movl	%r12d, %edi
	movq	%r13, %rsi
	callq	_NGI_SET_HOOK
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_NGI_SET_NODE
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_SET_RETADDR
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_TOPOLOGY_RUNLOCK
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_ITEM_DEBUG_CHECKS,4,2          ## @ITEM_DEBUG_CHECKS
	.comm	_ENETDOWN,4,2                   ## @ENETDOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ng_address_hook                ; -- Begin function ng_address_hook
	.p2align	2
_ng_address_hook:                       ; @ng_address_hook
	.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	x19, x3
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
	bl	_TOPOLOGY_RLOCK
	cbz	x23, LBB0_4
; %bb.1:
	mov	x0, x23
	bl	_NG_HOOK_NOT_VALID
	cbnz	x0, LBB0_4
; %bb.2:
	mov	x0, x23
	bl	_NG_HOOK_PEER
	mov	x22, x0
	bl	_NG_HOOK_NOT_VALID
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x23
	bl	_NG_PEER_NODE
	mov	x23, x0
	bl	_NG_NODE_NOT_VALID
	cbz	x0, LBB0_6
LBB0_4:
	mov	x0, x20
	bl	_NG_FREE_ITEM
	bl	_TRAP_ERROR
	bl	_TOPOLOGY_RUNLOCK
Lloh0:
	adrp	x8, _ENETDOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENETDOWN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_5:
	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_6:
	mov	x0, x22
	bl	_NG_HOOK_REF
	mov	x0, x23
	bl	_NG_NODE_REF
	mov	x0, x20
	mov	x1, x22
	bl	_NGI_SET_HOOK
	mov	x0, x20
	mov	x1, x23
	bl	_NGI_SET_NODE
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_SET_RETADDR
	bl	_TOPOLOGY_RUNLOCK
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ITEM_DEBUG_CHECKS,4,2          ; @ITEM_DEBUG_CHECKS
	.comm	_ENETDOWN,4,2                   ; @ENETDOWN
.subsections_via_symbols
