	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rsocket                        ## -- Begin function rsocket
	.p2align	4, 0x90
_rsocket:                               ## @rsocket
	.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
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	_AF_INET@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_AF_IB@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_11
LBB0_3:
	movq	_SOCK_STREAM@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%r14d, %ecx
	je	LBB0_5
## %bb.4:
	cmpl	%r14d, %eax
	jne	LBB0_11
LBB0_5:
	testl	%edx, %edx
	je	LBB0_8
## %bb.6:
	cmpl	%r14d, %ecx
	jne	LBB0_8
## %bb.7:
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	jne	LBB0_11
LBB0_8:
	testl	%edx, %edx
	je	LBB0_13
## %bb.9:
	cmpl	%r14d, %eax
	jne	LBB0_13
## %bb.10:
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	je	LBB0_13
LBB0_11:
	movq	_ENOTSUP@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR                            ## TAILCALL
LBB0_13:
	xorl	%eax, %eax
	callq	_rs_configure
	xorl	%edi, %edi
	movl	%r14d, %esi
	callq	_rs_alloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	%rax, %r15
	cmpl	%r14d, (%r12)
	jne	LBB0_18
## %bb.16:
	movq	%r15, %r12
	addq	$8, %r12
	movq	_RDMA_PS_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_rdma_create_id
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_22
## %bb.17:
	movq	(%r12), %rax
	movl	%ebx, 8(%rax)
	movq	(%rax), %rax
	jmp	LBB0_20
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_18:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ds_init
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_22
## %bb.19:
	movq	%r15, %rax
LBB0_20:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_rs_insert
	testl	%eax, %eax
	js	LBB0_21
## %bb.24:
	movl	4(%r15), %r14d
	jmp	LBB0_23
LBB0_21:
	movl	%eax, %r14d
LBB0_22:
	movq	%r15, %rdi
	callq	_rs_free
LBB0_23:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_AF_IB,4,2                      ## @AF_IB
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.comm	_IPPROTO_UDP,4,2                ## @IPPROTO_UDP
	.comm	_ENOTSUP,4,2                    ## @ENOTSUP
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RDMA_PS_TCP,4,2                ## @RDMA_PS_TCP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rsocket                        ; -- Begin function rsocket
	.p2align	2
_rsocket:                               ; @rsocket
	.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
Lloh0:
	adrp	x8, _AF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AF_INET6@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AF_INET6@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _AF_IB@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AF_IB@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w8, w0
	ccmp	w9, w0, #4, ne
	ccmp	w10, w0, #4, ne
	b.ne	LBB0_6
; %bb.1:
	mov	x21, x1
Lloh9:
	adrp	x22, _SOCK_STREAM@GOTPAGE
Lloh10:
	ldr	x22, [x22, _SOCK_STREAM@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh11:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w9, w1
	ccmp	w8, w1, #4, ne
	b.ne	LBB0_6
; %bb.2:
	mov	x19, x0
	cbz	w2, LBB0_4
; %bb.3:
Lloh14:
	adrp	x10, _IPPROTO_TCP@GOTPAGE
Lloh15:
	ldr	x10, [x10, _IPPROTO_TCP@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	cmp	w9, w21
	ccmp	w10, w2, #4, eq
	b.ne	LBB0_6
LBB0_4:
	cbz	w2, LBB0_8
; %bb.5:
Lloh17:
	adrp	x9, _IPPROTO_UDP@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IPPROTO_UDP@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	w8, w21
	ccmp	w9, w2, #4, eq
	b.eq	LBB0_8
LBB0_6:
Lloh20:
	adrp	x8, _ENOTSUP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOTSUP@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	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
	b	_ERR
LBB0_8:
	bl	_rs_configure
	mov	x0, #0
	mov	x1, x21
	bl	_rs_alloc
	cbz	x0, LBB0_12
; %bb.9:
	mov	x20, x0
	ldr	w8, [x22]
	cmp	w8, w21
	b.ne	LBB0_13
; %bb.10:
	add	x22, x20, #8
Lloh22:
	adrp	x8, _RDMA_PS_TCP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RDMA_PS_TCP@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	mov	x0, #0
	mov	x1, x22
	mov	x2, x20
	bl	_rdma_create_id
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.11:
	ldr	x8, [x22]
	str	w19, [x8, #8]
	ldr	x8, [x8]
	b	LBB0_15
LBB0_12:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_13:
	mov	x0, x20
	mov	x1, x19
	bl	_ds_init
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.14:
	mov	x8, x20
LBB0_15:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rs_insert
	tbnz	w0, #31, LBB0_17
; %bb.16:
	ldr	w21, [x20, #4]
	b	LBB0_19
LBB0_17:
	mov	x21, x0
LBB0_18:
	mov	x0, x20
	bl	_rs_free
LBB0_19:
	mov	x0, x21
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_AF_IB,4,2                      ; @AF_IB
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.comm	_IPPROTO_UDP,4,2                ; @IPPROTO_UDP
	.comm	_ENOTSUP,4,2                    ; @ENOTSUP
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RDMA_PS_TCP,4,2                ; @RDMA_PS_TCP
.subsections_via_symbols
