	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_ib_cm_handle_connect       ## -- Begin function rds_ib_cm_handle_connect
	.p2align	4, 0x90
_rds_ib_cm_handle_connect:              ## @rds_ib_cm_handle_connect
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	24(%rdi), %rax
	movq	(%rax), %r12
	movq	8(%rax), %r13
	movq	8(%rsi), %r15
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_rds_ib_protocol_compatible
	movl	$1, %ebx
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	leaq	12(%r15), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	leaq	16(%r15), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_RDS_PROTOCOL_MAJOR
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_RDS_PROTOCOL_MINOR
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_be64_to_cpu
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_be64_to_cpu
	movq	%rax, (%rsp)
	leaq	L_.str(%rip), %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	%r14d, %r8d
	movq	%rbx, %r9
	xorl	%eax, %eax
	callq	_rdsdebug
	movl	12(%r15), %esi
	movl	16(%r15), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_rds_ib_transport@GOTPCREL(%rip), %rdx
	callq	_rds_conn_create
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%r12, %rdi
	callq	_PTR_ERR
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_rdsdebug
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	$1, %ebx
	jmp	LBB0_3
LBB0_4:
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	_RDS_CONN_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RDS_CONN_CONNECTING@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	movq	%r12, %rdi
	callq	_rds_conn_transition
	testl	%eax, %eax
	je	LBB0_5
## %bb.12:
	movq	16(%r12), %rbx
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_rds_ib_set_protocol
	movl	8(%r15), %edi
	callq	_be32_to_cpu
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_rds_ib_set_flow_control
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	callq	_be64_to_cpu
	movq	%r12, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_rds_send_drop_acked
LBB0_14:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r14), %rdi
	callq	_BUG_ON
	movq	(%rbx), %rdi
	callq	_BUG_ON
	movq	%r14, (%rbx)
	movq	%r12, 8(%r14)
	movq	%r12, %rdi
	callq	_rds_ib_setup_qp
	testl	%eax, %eax
	je	LBB0_17
## %bb.15:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_16
LBB0_5:
	movq	%r12, %rdi
	callq	_rds_conn_state
	movq	_RDS_CONN_UP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_rdsdebug
	movq	%r12, %rdi
	callq	_rds_conn_drop
	movq	_s_ib_listen_closed_stale@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	$1, %ebx
	jmp	LBB0_7
LBB0_17:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r9d
	movl	4(%rax), %r8d
	leaq	-88(%rbp), %rbx
	leaq	-112(%rbp), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %ecx
	callq	_rds_ib_cm_fill_conn_param
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_rdma_accept
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	leaq	L_.str.4(%rip), %rsi
LBB0_16:
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_rds_ib_conn_error
	movq	%r12, %rdi
	callq	_mutex_unlock
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_10:
	movq	%r12, %rdi
	callq	_rds_conn_state
	cmpq	(%rbx), %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	$1, %ebx
	jne	LBB0_8
## %bb.11:
	movq	_s_ib_connect_raced@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edi
	callq	_rds_ib_stats_inc
LBB0_8:
	testq	%r12, %r12
	je	LBB0_3
## %bb.9:
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_3:
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_rdma_reject
LBB0_20:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	%r12, %rdi
	callq	_mutex_unlock
	xorl	%ebx, %ebx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"saddr %pI4 daddr %pI4 RDSv%u.%u lguid 0x%llx fguid 0x%llx\n"

	.comm	_rds_ib_transport,4,2           ## @rds_ib_transport
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"rds_conn_create failed (%ld)\n"

	.comm	_RDS_CONN_DOWN,4,2              ## @RDS_CONN_DOWN
	.comm	_RDS_CONN_CONNECTING,8,3        ## @RDS_CONN_CONNECTING
	.comm	_RDS_CONN_UP,8,3                ## @RDS_CONN_UP
L_.str.2:                               ## @.str.2
	.asciz	"incoming connect while connecting\n"

	.comm	_s_ib_listen_closed_stale,4,2   ## @s_ib_listen_closed_stale
	.comm	_s_ib_connect_raced,4,2         ## @s_ib_connect_raced
L_.str.3:                               ## @.str.3
	.asciz	"rds_ib_setup_qp failed (%d)\n"

L_.str.4:                               ## @.str.4
	.asciz	"rdma_accept failed (%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_ib_cm_handle_connect       ; -- Begin function rds_ib_cm_handle_connect
	.p2align	2
_rds_ib_cm_handle_connect:              ; @rds_ib_cm_handle_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldp	x20, x23, [x8]
	ldr	x26, [x1, #8]
	mov	x0, x1
	bl	_rds_ib_protocol_compatible
	cbz	w0, LBB0_3
; %bb.1:
	mov	x22, x0
	add	x27, x26, #12
	add	x28, x26, #16
	bl	_RDS_PROTOCOL_MAJOR
	mov	x24, x0
	mov	x0, x22
	bl	_RDS_PROTOCOL_MINOR
	mov	x25, x0
	mov	x0, x23
	bl	_be64_to_cpu
	mov	x23, x0
	mov	x0, x20
	bl	_be64_to_cpu
	stp	x23, x0, [sp, #32]
	stp	x24, x25, [sp, #16]
	stp	x27, x28, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_rdsdebug
	ldp	w1, w0, [x26, #12]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
Lloh5:
	adrp	x2, _rds_ib_transport@GOTPAGE
Lloh6:
	ldr	x2, [x2, _rds_ib_transport@GOTPAGEOFF]
	bl	_rds_conn_create
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.2:
	mov	x0, x20
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_rdsdebug
LBB0_3:
	mov	w20, #1
LBB0_4:
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	bl	_rdma_reject
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_6:
	mov	x0, x20
	bl	_mutex_lock
Lloh9:
	adrp	x8, _RDS_CONN_DOWN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RDS_CONN_DOWN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x23, _RDS_CONN_CONNECTING@GOTPAGE
Lloh13:
	ldr	x23, [x23, _RDS_CONN_CONNECTING@GOTPAGEOFF]
	ldr	x2, [x23]
	mov	x0, x20
	bl	_rds_conn_transition
	cbz	w0, LBB0_11
; %bb.7:
	ldr	x23, [x20, #16]
	mov	x0, x20
	mov	x1, x22
	bl	_rds_ib_set_protocol
	ldr	w0, [x26, #8]
	bl	_be32_to_cpu
	mov	x1, x0
	mov	x0, x20
	bl	_rds_ib_set_flow_control
	ldr	x0, [x26]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_be64_to_cpu
	mov	x1, x0
	mov	x0, x20
	mov	x2, #0
	bl	_rds_send_drop_acked
LBB0_9:
	ldr	x0, [x19, #8]
	bl	_BUG_ON
	ldr	x0, [x23]
	bl	_BUG_ON
	str	x19, [x23]
	str	x20, [x19, #8]
	mov	x0, x20
	bl	_rds_ib_setup_qp
	cbz	w0, LBB0_13
; %bb.10:
	mov	x2, x0
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_15
LBB0_11:
	mov	x0, x20
	bl	_rds_conn_state
Lloh16:
	adrp	x8, _RDS_CONN_UP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RDS_CONN_UP@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.12:
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_rdsdebug
	mov	x0, x20
	bl	_rds_conn_drop
Lloh21:
	adrp	x8, _s_ib_listen_closed_stale@GOTPAGE
Lloh22:
	ldr	x8, [x8, _s_ib_listen_closed_stale@GOTPAGEOFF]
	b	LBB0_18
LBB0_13:
	ldp	w5, w4, [x21]
	add	x1, sp, #48
	add	x2, sp, #56
	mov	x0, x20
	mov	x3, x22
	bl	_rds_ib_cm_fill_conn_param
	add	x1, sp, #48
	mov	x0, x19
	bl	_rdma_accept
	cbz	w0, LBB0_21
; %bb.14:
	mov	x2, x0
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_15:
	mov	x0, x20
	bl	_rds_ib_conn_error
	mov	x0, x20
	bl	_mutex_unlock
	mov	w20, #0
	b	LBB0_4
LBB0_16:
	mov	x0, x20
	bl	_rds_conn_state
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_19
; %bb.17:
Lloh25:
	adrp	x8, _s_ib_connect_raced@GOTPAGE
Lloh26:
	ldr	x8, [x8, _s_ib_connect_raced@GOTPAGEOFF]
LBB0_18:
	ldr	w0, [x8]
	bl	_rds_ib_stats_inc
LBB0_19:
	cbz	x20, LBB0_3
; %bb.20:
	mov	x0, x20
	bl	_mutex_unlock
	b	LBB0_3
LBB0_21:
	mov	x0, x20
	bl	_mutex_unlock
	mov	w20, #0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"saddr %pI4 daddr %pI4 RDSv%u.%u lguid 0x%llx fguid 0x%llx\n"

	.comm	_rds_ib_transport,4,2           ; @rds_ib_transport
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"rds_conn_create failed (%ld)\n"

	.comm	_RDS_CONN_DOWN,4,2              ; @RDS_CONN_DOWN
	.comm	_RDS_CONN_CONNECTING,8,3        ; @RDS_CONN_CONNECTING
	.comm	_RDS_CONN_UP,8,3                ; @RDS_CONN_UP
l_.str.2:                               ; @.str.2
	.asciz	"incoming connect while connecting\n"

	.comm	_s_ib_listen_closed_stale,4,2   ; @s_ib_listen_closed_stale
	.comm	_s_ib_connect_raced,4,2         ; @s_ib_connect_raced
l_.str.3:                               ; @.str.3
	.asciz	"rds_ib_setup_qp failed (%d)\n"

l_.str.4:                               ; @.str.4
	.asciz	"rdma_accept failed (%d)\n"

.subsections_via_symbols
