	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipoib_cm_dev_open              ## -- Begin function ipoib_cm_dev_open
	.p2align	4, 0x90
_ipoib_cm_dev_open:                     ## @ipoib_cm_dev_open
	.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
	movq	%rdi, %rbx
	callq	_ipoib_priv
	movq	%rax, %r15
	movl	(%rbx), %edi
	callq	_IPOIB_CM_SUPPORTED
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	16(%r15), %rdi
	movq	_ipoib_cm_rx_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_ib_create_cm_id
	movq	%rax, (%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	16(%r15), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_warn
	movq	(%r15), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_4:
	movq	_IPOIB_CM_IETF_ID@GOTPCREL(%rip), %r12
	movq	(%r15), %r14
	movq	8(%r15), %rax
	movl	(%rax), %edi
	orl	(%r12), %edi
	callq	_cpu_to_be64
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_ib_cm_listen
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %r14d
	movq	8(%r15), %rax
	movq	16(%r15), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %edx
	orl	(%r12), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_warn
	movq	(%r15), %rdi
	callq	_ib_destroy_cm_id
	movl	%r14d, %ebx
LBB0_6:
	movq	$0, (%r15)
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ipoib_cm_rx_handler,4,2        ## @ipoib_cm_rx_handler
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: failed to create CM ID\n"

	.comm	_IPOIB_CM_IETF_ID,4,2           ## @IPOIB_CM_IETF_ID
L_.str.1:                               ## @.str.1
	.asciz	"%s: failed to listen on ID 0x%llx\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipoib_cm_dev_open              ; -- Begin function ipoib_cm_dev_open
	.p2align	2
_ipoib_cm_dev_open:                     ; @ipoib_cm_dev_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	bl	_ipoib_priv
	mov	x19, x0
	ldr	w0, [x20]
	bl	_IPOIB_CM_SUPPORTED
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x0, [x19, #16]
Lloh0:
	adrp	x8, _ipoib_cm_rx_handler@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ipoib_cm_rx_handler@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_ib_create_cm_id
	str	x0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
	ldr	x0, [x19]
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_6
LBB0_3:
	mov	w20, #0
	b	LBB0_7
LBB0_4:
Lloh5:
	adrp	x21, _IPOIB_CM_IETF_ID@GOTPAGE
Lloh6:
	ldr	x21, [x21, _IPOIB_CM_IETF_ID@GOTPAGEOFF]
	ldr	w8, [x21]
	ldp	x20, x9, [x19]
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_cpu_to_be64
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_ib_cm_listen
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.5:
	ldp	x9, x8, [x19, #8]
	ldr	w1, [x8]
	ldr	w8, [x21]
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_warn
	ldr	x0, [x19]
	bl	_ib_destroy_cm_id
LBB0_6:
	str	xzr, [x19]
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ipoib_cm_rx_handler,4,2        ; @ipoib_cm_rx_handler
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: failed to create CM ID\n"

	.comm	_IPOIB_CM_IETF_ID,4,2           ; @IPOIB_CM_IETF_ID
l_.str.1:                               ; @.str.1
	.asciz	"%s: failed to listen on ID 0x%llx\n"

.subsections_via_symbols
