	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___rpc_fd2sockinfo              ## -- Begin function __rpc_fd2sockinfo
	.p2align	4, 0x90
___rpc_fd2sockinfo:                     ## @__rpc_fd2sockinfo
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movl	$8, -36(%rbp)
	leaq	-48(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	callq	_getsockname
	movq	_SOCKET_ERROR@GOTPCREL(%rip), %r12
	xorl	%r15d, %r15d
	cmpq	(%r12), %rax
	je	LBB0_8
## %bb.1:
	movl	-36(%rbp), %eax
	movl	%eax, (%r14)
	movl	$4, -36(%rbp)
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rcx
	leaq	-36(%rbp), %r8
	movl	%ebx, %edi
	callq	_getsockopt
	cmpq	(%r12), %rax
	jne	LBB0_3
## %bb.2:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_WSAGetLastError
	jmp	LBB0_8
LBB0_3:
	movl	-40(%rbp), %eax
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.4:
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_5:
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.6:
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %ecx
	movq	-48(%rbp), %rdx
	movq	%rdx, 8(%r14)
	movl	%ecx, 16(%r14)
	movl	%eax, 20(%r14)
	movl	$1, %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCKET_ERROR,8,3               ## @SOCKET_ERROR
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_TYPE,4,2                    ## @SO_TYPE
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_IPPROTO_UDP,4,2                ## @IPPROTO_UDP
	.comm	_AF_LOCAL,8,3                   ## @AF_LOCAL
	.comm	_SO_PROTOCOL_INFO,4,2           ## @SO_PROTOCOL_INFO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___rpc_fd2sockinfo              ; -- Begin function __rpc_fd2sockinfo
	.p2align	2
___rpc_fd2sockinfo:                     ; @__rpc_fd2sockinfo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	mov	w8, #8
	str	w8, [sp, #12]
	mov	x1, sp
	add	x2, sp, #12
	bl	_getsockname
Lloh0:
	adrp	x21, _SOCKET_ERROR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SOCKET_ERROR@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.1:
	ldr	w8, [sp, #12]
	str	w8, [x19]
	mov	w8, #4
	str	w8, [sp, #12]
Lloh2:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _SO_TYPE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SO_TYPE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x3, sp, #8
	add	x4, sp, #12
	mov	x0, x20
	bl	_getsockopt
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
	bl	_WSAGetLastError
	b	LBB0_8
LBB0_3:
	ldr	w8, [sp, #8]
Lloh8:
	adrp	x9, _SOCK_STREAM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SOCK_STREAM@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.4:
Lloh11:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh13:
	adrp	x9, _SOCK_DGRAM@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SOCK_DGRAM@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.6:
Lloh16:
	adrp	x9, _IPPROTO_UDP@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IPPROTO_UDP@GOTPAGEOFF]
LBB0_7:
	ldr	w9, [x9]
	ldr	x10, [sp]
	str	x10, [x19, #8]
	stp	w9, w8, [x19, #16]
	mov	w0, #1
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCKET_ERROR,8,3               ; @SOCKET_ERROR
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_TYPE,4,2                    ; @SO_TYPE
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_IPPROTO_UDP,4,2                ; @IPPROTO_UDP
	.comm	_AF_LOCAL,8,3                   ; @AF_LOCAL
	.comm	_SO_PROTOCOL_INFO,4,2           ; @SO_PROTOCOL_INFO
.subsections_via_symbols
