	.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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_ipoib_priv
	movq	%rax, %rbx
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_ipoib_pkey_dev_check_presence
	movq	_IPOIB_PKEY_ASSIGNED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%rbx), %r14
	movq	%r14, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_IPOIB_STOP_REAPER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movl	24(%r12), %r13d
	addq	$8, %rbx
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_round_jiffies_relative
	movl	%r13d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_queue_delayed_work
	movq	16(%r12), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r15), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_warn
	movq	_IPOIB_STOP_REAPER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	movq	%rbx, %rdi
	callq	_cancel_delayed_work
	movq	_IPOIB_FLAG_INITIALIZED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	movq	%r15, %rdi
	callq	_ipoib_ib_dev_stop
	movl	$-1, %eax
	jmp	LBB0_5
LBB0_1:
	movl	(%r12), %edx
	testl	$32767, %edx                    ## imm = 0x7FFF
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_ipoib_warn
	movl	$-1, %eax
	jmp	LBB0_5
LBB0_4:
	movq	_IPOIB_FLAG_INITIALIZED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPOIB_PKEY_ASSIGNED,4,2        ## @IPOIB_PKEY_ASSIGNED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P_Key 0x%04x is %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid"

L_.str.2:                               ## @.str.2
	.asciz	"not found"

	.comm	_IPOIB_STOP_REAPER,4,2          ## @IPOIB_STOP_REAPER
	.comm	_HZ,4,2                         ## @HZ
L_.str.3:                               ## @.str.3
	.asciz	"%s: Failed to open dev\n"

	.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_ipoib_priv
	mov	x21, x0
	mov	x0, x19
	bl	_ipoib_pkey_dev_check_presence
Lloh0:
	adrp	x8, _IPOIB_PKEY_ASSIGNED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPOIB_PKEY_ASSIGNED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x20, x21, #4
	mov	x1, x20
	bl	_test_bit
	cbz	w0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x24, _IPOIB_STOP_REAPER@GOTPAGE
Lloh4:
	ldr	x24, [x24, _IPOIB_STOP_REAPER@GOTPAGEOFF]
	ldr	w0, [x24]
	mov	x1, x20
	bl	_clear_bit
	ldr	w23, [x21, #24]
	add	x22, x21, #8
Lloh5:
	adrp	x8, _HZ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_round_jiffies_relative
	mov	x2, x0
	mov	x0, x23
	mov	x1, x22
	bl	_queue_delayed_work
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w1, [x19]
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_warn
	ldr	w0, [x24]
	mov	x1, x20
	bl	_set_bit
	mov	x0, x22
	bl	_cancel_delayed_work
Lloh10:
	adrp	x8, _IPOIB_FLAG_INITIALIZED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IPOIB_FLAG_INITIALIZED@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
	mov	x0, x19
	bl	_ipoib_ib_dev_stop
	mov	w0, #-1
	b	LBB0_5
LBB0_3:
	ldr	w2, [x21]
Lloh13:
	adrp	x8, l_.str.2@PAGE
Lloh14:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh15:
	adrp	x9, l_.str.1@PAGE
Lloh16:
	add	x9, x9, l_.str.1@PAGEOFF
	tst	w2, #0x7fff
	csel	x3, x9, x8, eq
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_ipoib_warn
	mov	w0, #-1
	b	LBB0_5
LBB0_4:
Lloh19:
	adrp	x8, _IPOIB_FLAG_INITIALIZED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IPOIB_FLAG_INITIALIZED@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
	mov	w0, #0
LBB0_5:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_IPOIB_PKEY_ASSIGNED,4,2        ; @IPOIB_PKEY_ASSIGNED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"P_Key 0x%04x is %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid"

l_.str.2:                               ; @.str.2
	.asciz	"not found"

	.comm	_IPOIB_STOP_REAPER,4,2          ; @IPOIB_STOP_REAPER
	.comm	_HZ,4,2                         ; @HZ
l_.str.3:                               ; @.str.3
	.asciz	"%s: Failed to open dev\n"

	.comm	_IPOIB_FLAG_INITIALIZED,4,2     ; @IPOIB_FLAG_INITIALIZED
.subsections_via_symbols
