	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atalk_getname
_atalk_getname:                         ## @atalk_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_at_sk
	movq	%rax, %r15
	movq	_SOCK_ZAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sock_flag
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_atalk_autobind
	testq	%rax, %rax
	js	LBB0_2
LBB0_4:
	movl	$20, (%r13)
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.5:
	movq	(%rbx), %rax
	movq	_TCP_ESTABLISHED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.7:
	movl	20(%r15), %eax
	movl	%eax, -52(%rbp)
	movl	16(%r15), %eax
	movl	%eax, -56(%rbp)
	addq	$12, %r15
	jmp	LBB0_9
LBB0_8:
	movl	8(%r15), %eax
	movl	%eax, -52(%rbp)
	movl	4(%r15), %eax
	movl	%eax, -56(%rbp)
LBB0_9:
	movl	(%r15), %eax
	movl	%eax, -60(%rbp)
	movq	_AF_APPLETALK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	movl	$20, %edx
	callq	_memcpy
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_2:
	movq	_ENOBUFS@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_6:
	movq	_ENOTCONN@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_ZAPPED,4,2                ## @SOCK_ZAPPED
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_TCP_ESTABLISHED,8,3            ## @TCP_ESTABLISHED
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.comm	_AF_APPLETALK,4,2               ## @AF_APPLETALK
	.no_dead_strip	_atalk_getname
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atalk_getname
_atalk_getname:                         ; @atalk_getname
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x3
	mov	x23, x2
	mov	x19, x1
	ldr	x22, [x0]
	mov	x0, x22
	bl	_at_sk
	mov	x20, x0
Lloh0:
	adrp	x8, _SOCK_ZAPPED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCK_ZAPPED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_sock_flag
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_atalk_autobind
	tbnz	x0, #63, LBB0_7
LBB0_2:
	mov	w8, #20
	str	w8, [x23]
	add	x8, sp, #8
	add	x0, x8, #16
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	cbz	w21, LBB0_5
; %bb.3:
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _TCP_ESTABLISHED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TCP_ESTABLISHED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.4:
	ldr	d0, [x20, #16]
	str	d0, [sp, #16]
	add	x20, x20, #12
	b	LBB0_6
LBB0_5:
	ldur	d0, [x20, #4]
	str	d0, [sp, #16]
LBB0_6:
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _AF_APPLETALK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AF_APPLETALK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #20
	bl	_memcpy
	mov	w0, #0
	b	LBB0_10
LBB0_7:
Lloh9:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh11:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_ZAPPED,4,2                ; @SOCK_ZAPPED
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_TCP_ESTABLISHED,8,3            ; @TCP_ESTABLISHED
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.comm	_AF_APPLETALK,4,2               ; @AF_APPLETALK
	.no_dead_strip	_atalk_getname
.subsections_via_symbols
