	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unix_getname
_unix_getname:                          ## @unix_getname
	.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, %r15
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_unix_peer_get
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	_ENOTCONN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_3:
	movq	%rbx, %rdi
	callq	_sock_hold
LBB0_4:
	movq	%rbx, %rdi
	callq	_unix_sk
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_unix_state_lock
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	(%rax), %edx
	movl	%edx, (%r15)
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_memcpy
	jmp	LBB0_7
LBB0_5:
	movq	_AF_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	(%r14), %rax
	movq	$0, (%rax)
	movl	$2, (%r15)
LBB0_7:
	movq	%rbx, %rdi
	callq	_unix_state_unlock
	movq	%rbx, %rdi
	callq	_sock_put
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.comm	_AF_UNIX,4,2                    ## @AF_UNIX
	.no_dead_strip	_unix_getname
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unix_getname
_unix_getname:                          ; @unix_getname
	.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, x2
	mov	x21, x1
	ldr	x19, [x0]
	cbz	w3, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_unix_peer_get
	mov	x19, x0
	cbnz	x0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_3:
	mov	x0, x19
	bl	_sock_hold
LBB0_4:
	mov	x0, x19
	bl	_unix_sk
	mov	x22, x0
	mov	x0, x19
	bl	_unix_state_lock
	ldr	x8, [x22]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w2, [x8]
	str	w2, [x20]
	ldr	w1, [x8, #4]
	mov	x0, x21
	bl	_memcpy
	b	LBB0_7
LBB0_6:
Lloh3:
	adrp	x8, _AF_UNIX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_UNIX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x21, #8]
	ldr	x8, [x21]
	str	xzr, [x8]
	mov	w8, #2
	str	w8, [x20]
LBB0_7:
	mov	x0, x19
	bl	_unix_state_unlock
	mov	x0, x19
	bl	_sock_put
	mov	w0, #0
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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.comm	_AF_UNIX,4,2                    ; @AF_UNIX
	.no_dead_strip	_unix_getname
.subsections_via_symbols
