	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipoib_ib_dev_open              ## -- Begin function ipoib_ib_dev_open
	.p2align	4, 0x90
_ipoib_ib_dev_open:                     ## @ipoib_ib_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	20(%rdi), %edi
	movl	(%rbx), %edx
	movl	16(%rbx), %esi
	leaq	12(%rbx), %rcx
	callq	_ib_find_pkey
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ipoib_warn
	movq	_IPOIB_PKEY_ASSIGNED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$4, %rbx
	movq	%rbx, %rsi
	callq	_clear_bit
	jmp	LBB0_9
LBB0_2:
	movq	_IPOIB_PKEY_ASSIGNED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%rbx), %r14
	movq	%r14, %rsi
	callq	_set_bit
	movq	%rbx, %rdi
	callq	_ipoib_init_qp
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_ipoib_warn
	jmp	LBB0_9
LBB0_4:
	movq	%rbx, %rdi
	callq	_ipoib_ib_post_receives
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	callq	_ipoib_cm_dev_open
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
LBB0_8:
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_ipoib_warn
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_ipoib_ib_dev_stop
LBB0_9:
	movl	$-1, %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	movq	_IPOIB_STOP_REAPER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movq	_ipoib_workqueue@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rbx
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_queue_delayed_work
	movq	_IPOIB_FLAG_INITIALIZED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P_Key 0x%04x not found\n"

	.comm	_IPOIB_PKEY_ASSIGNED,4,2        ## @IPOIB_PKEY_ASSIGNED
L_.str.1:                               ## @.str.1
	.asciz	"ipoib_init_qp returned %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"ipoib_ib_post_receives returned %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"ipoib_cm_dev_open returned %d\n"

	.comm	_IPOIB_STOP_REAPER,4,2          ## @IPOIB_STOP_REAPER
	.comm	_ipoib_workqueue,4,2            ## @ipoib_workqueue
	.comm	_HZ,4,2                         ## @HZ
	.comm	_IPOIB_FLAG_INITIALIZED,4,2     ## @IPOIB_FLAG_INITIALIZED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipoib_ib_dev_open              ; -- Begin function ipoib_ib_dev_open
	.p2align	2
_ipoib_ib_dev_open:                     ; @ipoib_ib_dev_open
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #20]
	ldr	w1, [x19, #16]
	ldr	w2, [x19]
	add	x3, x19, #12
	bl	_ib_find_pkey
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x19
	ldr	w2, [x20], #4
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ipoib_warn
Lloh2:
	adrp	x8, _IPOIB_PKEY_ASSIGNED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IPOIB_PKEY_ASSIGNED@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_clear_bit
	b	LBB0_9
LBB0_2:
Lloh5:
	adrp	x8, _IPOIB_PKEY_ASSIGNED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IPOIB_PKEY_ASSIGNED@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x20, x19, #4
	mov	x1, x20
	bl	_set_bit
	mov	x0, x19
	bl	_ipoib_init_qp
	cbz	w0, LBB0_4
; %bb.3:
	mov	x2, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ipoib_warn
	b	LBB0_9
LBB0_4:
	mov	x0, x19
	bl	_ipoib_ib_post_receives
	cbz	w0, LBB0_6
; %bb.5:
	mov	x2, x0
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_ipoib_cm_dev_open
	cbz	w0, LBB0_11
; %bb.7:
	mov	x2, x0
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_ipoib_warn
	mov	x0, x19
	mov	w1, #1
	bl	_ipoib_ib_dev_stop
LBB0_9:
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh14:
	adrp	x8, _IPOIB_STOP_REAPER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IPOIB_STOP_REAPER@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_clear_bit
Lloh17:
	adrp	x8, _ipoib_workqueue@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ipoib_workqueue@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	add	x1, x19, #8
Lloh20:
	adrp	x8, _HZ@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	bl	_queue_delayed_work
Lloh23:
	adrp	x8, _IPOIB_FLAG_INITIALIZED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IPOIB_FLAG_INITIALIZED@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"P_Key 0x%04x not found\n"

	.comm	_IPOIB_PKEY_ASSIGNED,4,2        ; @IPOIB_PKEY_ASSIGNED
l_.str.1:                               ; @.str.1
	.asciz	"ipoib_init_qp returned %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"ipoib_ib_post_receives returned %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"ipoib_cm_dev_open returned %d\n"

	.comm	_IPOIB_STOP_REAPER,4,2          ; @IPOIB_STOP_REAPER
	.comm	_ipoib_workqueue,4,2            ; @ipoib_workqueue
	.comm	_HZ,4,2                         ; @HZ
	.comm	_IPOIB_FLAG_INITIALIZED,4,2     ; @IPOIB_FLAG_INITIALIZED
.subsections_via_symbols
