	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___rpc_socket2sockinfo          ## -- Begin function __rpc_socket2sockinfo
	.p2align	4, 0x90
___rpc_socket2sockinfo:                 ## @__rpc_socket2sockinfo
	.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	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	8(%rdi), %edi
	callq	_CURVNET_SET
	movq	(%r12), %rax
	movq	(%rax), %rax
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	*(%rax)
	movl	%eax, %ebx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_CURVNET_RESTORE
	testl	%ebx, %ebx
	jne	LBB0_9
## %bb.1:
	movq	-48(%rbp), %rdi
	movl	8(%rdi), %eax
	movl	%eax, 16(%r14)
	movq	(%rdi), %rbx
	movq	_M_SONAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_free
	movq	_SOPT_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_SO_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	leaq	-36(%rbp), %rax
	movq	%rax, -88(%rbp)
	movl	$4, -80(%rbp)
	movq	$0, -72(%rbp)
	leaq	-88(%rbp), %rsi
	movq	%r12, %rdi
	callq	_sogetopt
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:
	movq	_AF_LOCAL@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	movl	-36(%rbp), %eax
	cmpq	(%rdx), %rbx
	je	LBB0_8
## %bb.3:
	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
	xorl	%r15d, %r15d
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.6:
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %ecx
LBB0_8:
	movq	%rbx, 8(%r14)
	movl	%ecx, (%r14)
	movl	%eax, 4(%r14)
	movl	$1, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_SONAME,4,2                   ## @M_SONAME
	.comm	_SOPT_GET,4,2                   ## @SOPT_GET
	.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_socket2sockinfo          ; -- Begin function __rpc_socket2sockinfo
	.p2align	2
___rpc_socket2sockinfo:                 ; @__rpc_socket2sockinfo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	w0, [x0, #8]
	bl	_CURVNET_SET
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
	add	x1, sp, #48
	mov	x0, x20
	blr	x8
	mov	x21, x0
	bl	_CURVNET_RESTORE
	cbnz	w21, LBB0_2
; %bb.1:
	ldr	x0, [sp, #48]
	ldr	w8, [x0, #8]
	str	w8, [x19, #16]
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _M_SONAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_SONAME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_free
Lloh3:
	adrp	x8, _SOPT_GET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOPT_GET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _SOL_SOCKET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SOL_SOCKET@GOTPAGEOFF]
	str	w8, [sp, #40]
Lloh8:
	ldr	w8, [x9]
Lloh9:
	adrp	x9, _SO_TYPE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SO_TYPE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #32]
	sub	x8, x29, #36
	str	x8, [sp, #8]
	mov	w8, #4
	str	w8, [sp, #16]
	str	xzr, [sp, #24]
	add	x1, sp, #8
	mov	x0, x20
	bl	_sogetopt
	cbz	w0, LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
Lloh12:
	adrp	x8, _AF_LOCAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AF_LOCAL@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x8]
	ldur	w8, [x29, #-36]
	cmp	x21, x9
	b.ne	LBB0_6
; %bb.5:
	mov	w9, #0
	b	LBB0_11
LBB0_6:
Lloh15:
	adrp	x9, _SOCK_STREAM@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SOCK_STREAM@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.7:
Lloh18:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh20:
	adrp	x9, _SOCK_DGRAM@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SOCK_DGRAM@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.9:
Lloh23:
	adrp	x9, _IPPROTO_UDP@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IPPROTO_UDP@GOTPAGEOFF]
LBB0_10:
	ldr	w9, [x9]
LBB0_11:
	str	x21, [x19, #8]
	mov	w0, #1
	stp	w9, w8, [x19]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_M_SONAME,4,2                   ; @M_SONAME
	.comm	_SOPT_GET,4,2                   ; @SOPT_GET
	.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
