	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movl	$8, -28(%rbp)
	leaq	-40(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	callq	__getsockname
	xorl	%r15d, %r15d
	testq	%rax, %rax
	js	LBB0_9
## %bb.1:
	movl	-28(%rbp), %eax
	movl	%eax, (%r14)
	movl	$4, -28(%rbp)
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rcx
	leaq	-28(%rbp), %r8
	movl	%ebx, %edi
	callq	__getsockopt
	testq	%rax, %rax
	js	LBB0_9
## %bb.2:
	movq	-40(%rbp), %rax
	movq	_AF_LOCAL@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	movl	-32(%rbp), %ecx
	cmpq	(%rsi), %rax
	je	LBB0_8
## %bb.3:
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_5
## %bb.4:
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rdx
	jmp	LBB0_7
LBB0_5:
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rdx
	xorl	%r15d, %r15d
	cmpl	(%rdx), %ecx
	jne	LBB0_9
## %bb.6:
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rdx
LBB0_7:
	movl	(%rdx), %edx
LBB0_8:
	movq	%rax, 8(%r14)
	movl	%edx, 16(%r14)
	movl	%ecx, 20(%r14)
	movl	$1, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_TYPE,4,2                    ## @SO_TYPE
	.comm	_AF_LOCAL,8,3                   ## @AF_LOCAL
	.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
.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, #48
	.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
	mov	x19, x1
	mov	x20, x0
	mov	w8, #8
	str	w8, [sp, #12]
	mov	x1, sp
	add	x2, sp, #12
	bl	__getsockname
	tbnz	x0, #63, LBB0_10
; %bb.1:
	ldr	w8, [sp, #12]
	str	w8, [x19]
	mov	w8, #4
	str	w8, [sp, #12]
Lloh0:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SO_TYPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SO_TYPE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #8
	add	x4, sp, #12
	mov	x0, x20
	bl	__getsockopt
	tbnz	x0, #63, LBB0_10
; %bb.2:
	ldr	x9, [sp]
Lloh6:
	adrp	x8, _AF_LOCAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AF_LOCAL@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x8]
	ldr	w8, [sp, #8]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
	mov	w10, #0
	b	LBB0_9
LBB0_4:
Lloh9:
	adrp	x10, _SOCK_STREAM@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SOCK_STREAM@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	w8, w10
	b.ne	LBB0_6
; %bb.5:
Lloh12:
	adrp	x10, _IPPROTO_TCP@GOTPAGE
Lloh13:
	ldr	x10, [x10, _IPPROTO_TCP@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh14:
	adrp	x10, _SOCK_DGRAM@GOTPAGE
Lloh15:
	ldr	x10, [x10, _SOCK_DGRAM@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	cmp	w8, w10
	b.ne	LBB0_10
; %bb.7:
Lloh17:
	adrp	x10, _IPPROTO_UDP@GOTPAGE
Lloh18:
	ldr	x10, [x10, _IPPROTO_UDP@GOTPAGEOFF]
LBB0_8:
	ldr	w10, [x10]
LBB0_9:
	str	x9, [x19, #8]
	mov	w0, #1
	stp	w10, w8, [x19, #16]
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_TYPE,4,2                    ; @SO_TYPE
	.comm	_AF_LOCAL,8,3                   ; @AF_LOCAL
	.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
.subsections_via_symbols
