	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_getsockaddr
_ng_getsockaddr:                        ## @ng_getsockaddr
	.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	%rsi, %r14
	callq	_sotongpcb
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.2:
	movq	_NG_NODESIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	addl	$8, %r15d
	movq	_M_SONAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	%r15d, %edi
	callq	_malloc
	movq	%rax, %r12
	movq	(%rbx), %rdi
	callq	_mtx_lock
	movq	(%rbx), %rdi
	movq	8(%rdi), %r13
	testq	%r13, %r13
	je	LBB0_6
## %bb.3:
	movq	%r13, %rdi
	callq	_NG_NODE_HAS_NAME
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	callq	_NG_NODE_NAME
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	8(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_NG_NODE_NAME
	movl	%eax, %edi
	callq	_strlen
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_bcopy
LBB0_5:
	movq	(%rbx), %rdi
	callq	_mtx_unlock
	movl	%r15d, (%r12)
	movq	_AF_NETGRAPH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	%r12, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_6:
	callq	_mtx_unlock
	movq	_M_SONAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_free
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NG_NODESIZ,4,2                 ## @NG_NODESIZ
	.comm	_M_SONAME,4,2                   ## @M_SONAME
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_AF_NETGRAPH,4,2                ## @AF_NETGRAPH
	.no_dead_strip	_ng_getsockaddr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_getsockaddr
_ng_getsockaddr:                        ; @ng_getsockaddr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	bl	_sotongpcb
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _NG_NODESIZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NG_NODESIZ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w21, w8, #8
Lloh3:
	adrp	x24, _M_SONAME@GOTPAGE
Lloh4:
	ldr	x24, [x24, _M_SONAME@GOTPAGEOFF]
Lloh5:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh9:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x21
	bl	_malloc
	mov	x22, x0
	ldr	x0, [x20]
	bl	_mtx_lock
	ldr	x0, [x20]
	ldr	x23, [x0, #8]
	cbz	x23, LBB0_6
; %bb.3:
	mov	x0, x23
	bl	_NG_NODE_HAS_NAME
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x23
	bl	_NG_NODE_NAME
	mov	x24, x0
	ldr	w25, [x22, #8]
	mov	x0, x23
	bl	_NG_NODE_NAME
	bl	_strlen
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	bl	_bcopy
LBB0_5:
	ldr	x0, [x20]
	bl	_mtx_unlock
	mov	w0, #0
	str	w21, [x22]
Lloh11:
	adrp	x8, _AF_NETGRAPH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AF_NETGRAPH@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x22, #4]
	str	x22, [x19]
	b	LBB0_8
LBB0_6:
	bl	_mtx_unlock
	ldr	w1, [x24]
	mov	x0, x22
	bl	_free
LBB0_7:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NG_NODESIZ,4,2                 ; @NG_NODESIZ
	.comm	_M_SONAME,4,2                   ; @M_SONAME
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_AF_NETGRAPH,4,2                ; @AF_NETGRAPH
	.no_dead_strip	_ng_getsockaddr
.subsections_via_symbols
