	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rds_ib_laddr_check
_rds_ib_laddr_check:                    ## @rds_ib_laddr_check
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movl	%edi, -36(%rbp)
	movq	_RDMA_PS_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IB_QPT_RC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_rdma_create_id
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	movq	%r15, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	leaq	-48(%rbp), %r12
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	%ebx, -48(%rbp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_rdma_bind_addr
	movq	(%r15), %rcx
	testl	%eax, %eax
	je	LBB0_2
## %bb.5:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	testq	%rcx, %rcx
	jne	LBB0_4
## %bb.6:
	movl	$-1, %ecx
	jmp	LBB0_7
LBB0_2:
	movq	(%rcx), %rax
	movq	_RDMA_NODE_IB_CA@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_4
## %bb.3:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_4:
	movl	(%rcx), %ecx
LBB0_7:
	leaq	L_.str(%rip), %rdi
	leaq	-36(%rbp), %rsi
	movl	%r14d, %edx
	callq	_rdsdebug
	movq	%r15, %rdi
	callq	_rdma_destroy_id
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RDMA_PS_TCP,4,2                ## @RDMA_PS_TCP
	.comm	_IB_QPT_RC,4,2                  ## @IB_QPT_RC
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_RDMA_NODE_IB_CA,8,3            ## @RDMA_NODE_IB_CA
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"addr %pI4 ret %d node type %d\n"

	.no_dead_strip	_rds_ib_laddr_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rds_ib_laddr_check
_rds_ib_laddr_check:                    ; @rds_ib_laddr_check
	.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	x20, x0
	str	w0, [sp, #12]
Lloh0:
	adrp	x8, _RDMA_PS_TCP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RDMA_PS_TCP@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _IB_QPT_RC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_QPT_RC@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, #0
	mov	x1, #0
	bl	_rdma_create_id
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_PTR_ERR
LBB0_2:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh6:
	adrp	x8, _AF_INET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	stp	w20, w8, [sp]
	mov	x1, sp
	mov	x0, x19
	bl	_rdma_bind_addr
	ldr	x8, [x19]
	cbz	w0, LBB0_5
; %bb.3:
Lloh9:
	adrp	x9, _EADDRNOTAVAIL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EADDRNOTAVAIL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	neg	w20, w9
	cbnz	x8, LBB0_8
; %bb.4:
	mov	w3, #-1
	b	LBB0_9
LBB0_5:
	ldr	x9, [x8]
Lloh12:
	adrp	x10, _RDMA_NODE_IB_CA@GOTPAGE
Lloh13:
	ldr	x10, [x10, _RDMA_NODE_IB_CA@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.6:
	mov	w20, #0
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x9, _EADDRNOTAVAIL@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EADDRNOTAVAIL@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	neg	w20, w9
LBB0_8:
	ldr	w3, [x8]
LBB0_9:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #12
	mov	x2, x20
	bl	_rdsdebug
	mov	x0, x19
	bl	_rdma_destroy_id
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_RDMA_PS_TCP,4,2                ; @RDMA_PS_TCP
	.comm	_IB_QPT_RC,4,2                  ; @IB_QPT_RC
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_RDMA_NODE_IB_CA,8,3            ; @RDMA_NODE_IB_CA
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"addr %pI4 ret %d node type %d\n"

	.no_dead_strip	_rds_ib_laddr_check
.subsections_via_symbols
