	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __rds_conn_create
___rds_conn_create:                     ## @__rds_conn_create
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rdi, -80(%rbp)
	movq	%rsi, -72(%rbp)
	callq	_rds_conn_bucket
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	%r13, %rcx
	callq	_rds_conn_lookup
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	cmpl	$0, (%r12)
	je	LBB0_5
## %bb.2:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_5
## %bb.3:
	movq	72(%r12), %rax
	cmpq	_rds_loop_transport@GOTPCREL(%rip), %rax
	je	LBB0_5
## %bb.4:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %rbx
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	testq	%rbx, %rbx
	jne	LBB0_6
	jmp	LBB0_8
LBB0_5:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movq	%r12, %rbx
LBB0_6:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_rcu_read_unlock
LBB0_8:
	movq	_rds_conn_slab@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_kmem_cache_zalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%rax, %rbx
	leaq	8(%rax), %r13
	movq	%r13, %rdi
	callq	_INIT_HLIST_NODE
	movq	%r14, 104(%rbx)
	movq	%r15, 96(%rbx)
	leaq	92(%rbx), %rdi
	callq	_spin_lock_init
	movl	$1, 4(%rbx)
	leaq	88(%rbx), %rdi
	callq	_init_waitqueue_head
	leaq	84(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	80(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, %rdi
	callq	_rds_cong_get_maps
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movl	%eax, %r14d
	movq	_rds_conn_slab@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jmp	LBB0_20
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_21
LBB0_12:
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_rds_trans_get_preferred
	testq	%rax, %rax
	je	LBB0_17
## %bb.13:
	movq	%rax, %rdi
	callq	_rds_trans_put
	movl	$1, (%rbx)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_17
## %bb.14:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 24(%rax)
	movq	_rds_conn_slab@GOTPCREL(%rip), %r13
	je	LBB0_18
## %bb.15:
	movq	_rds_loop_transport@GOTPCREL(%rip), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_18
LBB0_17:
	movq	_rds_conn_slab@GOTPCREL(%rip), %r13
LBB0_18:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, 72(%rbx)
	movq	%rbx, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	*(%r15)
	testl	%eax, %eax
	je	LBB0_22
## %bb.19:
	movl	%eax, %r14d
	movl	(%r13), %edi
LBB0_20:
	movq	%rbx, %rsi
	callq	_kmem_cache_free
	movl	%r14d, %edi
LBB0_21:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_22:
	leaq	64(%rbx), %rdi
	movq	_RDS_CONN_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_atomic_set
	movq	$0, 56(%rbx)
	leaq	48(%rbx), %rdi
	movq	_rds_send_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	leaq	44(%rbx), %rdi
	movq	_rds_recv_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	leaq	40(%rbx), %rdi
	movq	_rds_connect_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	leaq	36(%rbx), %rdi
	movq	_rds_shutdown_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%rbx, %rdi
	addq	$32, %rdi
	callq	_mutex_init
	movq	$0, 24(%rbx)
	movq	8(%r15), %rax
	testq	%rax, %rax
	leaq	L_.str.1(%rip), %r8
	cmovneq	%rax, %r8
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %r9
	cmoveq	%rax, %r9
	leaq	L_.str(%rip), %rdi
	leaq	-80(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	movq	%rbx, %rsi
	callq	_rdsdebug
	movq	_rds_conn_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	testq	%r12, %r12
	je	LBB0_25
## %bb.23:
	cmpq	$0, 16(%r12)
	je	LBB0_27
## %bb.24:
	movl	12(%rbx), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	callq	*16(%rax)
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_kmem_cache_free
	movq	16(%r12), %rbx
	jmp	LBB0_30
LBB0_25:
	movq	-80(%rbp), %rsi
	movq	-72(%rbp), %rdx
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r15, %rcx
	callq	_rds_conn_lookup
	testq	%rax, %rax
	je	LBB0_28
## %bb.26:
	movq	%rax, %r14
	movl	12(%rbx), %edi
	callq	*16(%r15)
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_kmem_cache_free
	movq	%r14, %rbx
	jmp	LBB0_30
LBB0_27:
	movq	%rbx, 16(%r12)
	jmp	LBB0_29
LBB0_28:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_hlist_add_head_rcu
LBB0_29:
	movq	%rbx, %rdi
	callq	_rds_cong_add_conn
	movq	_rds_conn_count@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_30:
	movq	_rds_conn_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_rds_loop_transport,32,3        ## @rds_loop_transport
	.comm	_rds_conn_slab,4,2              ## @rds_conn_slab
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RDS_CONN_DOWN,4,2              ## @RDS_CONN_DOWN
	.comm	_rds_send_worker,4,2            ## @rds_send_worker
	.comm	_rds_recv_worker,4,2            ## @rds_recv_worker
	.comm	_rds_connect_worker,4,2         ## @rds_connect_worker
	.comm	_rds_shutdown_worker,4,2        ## @rds_shutdown_worker
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"allocated conn %p for %pI4 -> %pI4 over %s %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"[unknown]"

L_.str.2:                               ## @.str.2
	.asciz	"(outgoing)"

L_.str.3:                               ## @.str.3
	.space	1

	.comm	_rds_conn_lock,4,2              ## @rds_conn_lock
	.comm	_rds_conn_count,4,2             ## @rds_conn_count
	.no_dead_strip	___rds_conn_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __rds_conn_create
___rds_conn_create:                     ; @__rds_conn_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x4
	mov	x25, x3
	mov	x20, x2
	mov	x26, x1
	mov	x27, x0
	stp	x1, x0, [sp]
	bl	_rds_conn_bucket
	mov	x21, x0
	bl	_rcu_read_lock
	mov	x0, x21
	mov	x1, x27
	mov	x2, x26
	mov	x3, x20
	bl	_rds_conn_lookup
	mov	x22, x0
	cbz	x0, LBB0_7
; %bb.1:
	ldr	w8, [x22]
	cbz	w8, LBB0_5
; %bb.2:
	cbnz	w23, LBB0_5
; %bb.3:
	ldr	x8, [x22, #72]
Lloh0:
	adrp	x9, _rds_loop_transport@GOTPAGE
Lloh1:
	ldr	x9, [x9, _rds_loop_transport@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.4:
	ldr	x19, [x22, #16]
	bl	_rcu_read_unlock
	cbnz	x19, LBB0_6
	b	LBB0_8
LBB0_5:
	bl	_rcu_read_unlock
	mov	x19, x22
LBB0_6:
	mov	x0, x19
	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
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	bl	_rcu_read_unlock
LBB0_8:
Lloh2:
	adrp	x28, _rds_conn_slab@GOTPAGE
Lloh3:
	ldr	x28, [x28, _rds_conn_slab@GOTPAGEOFF]
	ldr	w0, [x28]
	mov	x1, x25
	bl	_kmem_cache_zalloc
	cbz	x0, LBB0_11
; %bb.9:
	mov	x19, x0
	add	x24, x0, #8
	mov	x0, x24
	bl	_INIT_HLIST_NODE
	stp	x26, x27, [x19, #96]
	add	x0, x19, #92
	bl	_spin_lock_init
	mov	w8, #1
	str	w8, [x19, #4]
	add	x0, x19, #88
	bl	_init_waitqueue_head
	add	x0, x19, #84
	bl	_INIT_LIST_HEAD
	add	x0, x19, #80
	bl	_INIT_LIST_HEAD
	mov	x0, x19
	bl	_rds_cong_get_maps
	cbz	w0, LBB0_12
; %bb.10:
	mov	x27, x0
	ldr	w0, [x28]
	mov	x1, x19
	bl	_kmem_cache_free
	mov	x0, x27
	b	LBB0_17
LBB0_11:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_12:
	mov	x0, x26
	bl	_rds_trans_get_preferred
	cbz	x0, LBB0_15
; %bb.13:
	bl	_rds_trans_put
	mov	w8, #1
	str	w8, [x19]
	cbz	w23, LBB0_15
; %bb.14:
	ldr	x8, [x20, #24]
Lloh7:
	adrp	x9, _rds_loop_transport@GOTPAGE
Lloh8:
	ldr	x9, [x9, _rds_loop_transport@GOTPAGEOFF]
	cmp	x8, #0
	csel	x20, x20, x9, eq
LBB0_15:
	str	x20, [x19, #72]
	ldr	x8, [x20]
	mov	x0, x19
	mov	x1, x25
	blr	x8
	cbz	w0, LBB0_18
; %bb.16:
	mov	x25, x0
	ldr	w0, [x28]
	mov	x1, x19
	bl	_kmem_cache_free
	mov	x0, x25
LBB0_17:
	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
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ERR_PTR
LBB0_18:
	add	x0, x19, #64
Lloh9:
	adrp	x8, _RDS_CONN_DOWN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RDS_CONN_DOWN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_atomic_set
	str	xzr, [x19, #56]
	add	x0, x19, #48
Lloh12:
	adrp	x8, _rds_send_worker@GOTPAGE
Lloh13:
	ldr	x8, [x8, _rds_send_worker@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	add	x0, x19, #44
Lloh15:
	adrp	x8, _rds_recv_worker@GOTPAGE
Lloh16:
	ldr	x8, [x8, _rds_recv_worker@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	add	x0, x19, #40
Lloh18:
	adrp	x8, _rds_connect_worker@GOTPAGE
Lloh19:
	ldr	x8, [x8, _rds_connect_worker@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	add	x0, x19, #36
Lloh21:
	adrp	x8, _rds_shutdown_worker@GOTPAGE
Lloh22:
	ldr	x8, [x8, _rds_shutdown_worker@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #32
	bl	_mutex_init
	str	xzr, [x19, #24]
	ldr	x8, [x20, #8]
Lloh24:
	adrp	x9, l_.str.1@PAGE
Lloh25:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	x8, #0
	csel	x4, x9, x8, eq
Lloh26:
	adrp	x8, l_.str.2@PAGE
Lloh27:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh28:
	adrp	x9, l_.str.3@PAGE
Lloh29:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w23, #0
	csel	x5, x9, x8, eq
Lloh30:
	adrp	x0, l_.str@PAGE
Lloh31:
	add	x0, x0, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x3, sp
	mov	x1, x19
	bl	_rdsdebug
Lloh32:
	adrp	x0, _rds_conn_lock@GOTPAGE
Lloh33:
	ldr	x0, [x0, _rds_conn_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	cbz	x22, LBB0_21
; %bb.19:
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_23
; %bb.20:
	ldr	x8, [x20, #16]
	ldr	w0, [x19, #12]
	blr	x8
	ldr	w0, [x28]
	mov	x1, x19
	bl	_kmem_cache_free
	ldr	x19, [x22, #16]
	b	LBB0_26
LBB0_21:
	ldp	x2, x1, [sp]
	mov	x0, x21
	mov	x3, x20
	bl	_rds_conn_lookup
	cbz	x0, LBB0_24
; %bb.22:
	mov	x22, x0
	ldr	x8, [x20, #16]
	ldr	w0, [x19, #12]
	blr	x8
	ldr	w0, [x28]
	mov	x1, x19
	bl	_kmem_cache_free
	mov	x19, x22
	b	LBB0_26
LBB0_23:
	str	x19, [x22, #16]
	b	LBB0_25
LBB0_24:
	mov	x0, x24
	mov	x1, x21
	bl	_hlist_add_head_rcu
LBB0_25:
	mov	x0, x19
	bl	_rds_cong_add_conn
Lloh34:
	adrp	x8, _rds_conn_count@GOTPAGE
Lloh35:
	ldr	x8, [x8, _rds_conn_count@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_26:
Lloh36:
	adrp	x0, _rds_conn_lock@GOTPAGE
Lloh37:
	ldr	x0, [x0, _rds_conn_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_rds_loop_transport,32,3        ; @rds_loop_transport
	.comm	_rds_conn_slab,4,2              ; @rds_conn_slab
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RDS_CONN_DOWN,4,2              ; @RDS_CONN_DOWN
	.comm	_rds_send_worker,4,2            ; @rds_send_worker
	.comm	_rds_recv_worker,4,2            ; @rds_recv_worker
	.comm	_rds_connect_worker,4,2         ; @rds_connect_worker
	.comm	_rds_shutdown_worker,4,2        ; @rds_shutdown_worker
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"allocated conn %p for %pI4 -> %pI4 over %s %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"[unknown]"

l_.str.2:                               ; @.str.2
	.asciz	"(outgoing)"

l_.str.3:                               ; @.str.3
	.space	1

	.comm	_rds_conn_lock,4,2              ; @rds_conn_lock
	.comm	_rds_conn_count,4,2             ; @rds_conn_count
	.no_dead_strip	___rds_conn_create
.subsections_via_symbols
