	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipoib_ib_dev_down              ## -- Begin function ipoib_ib_dev_down
	.p2align	4, 0x90
_ipoib_ib_dev_down:                     ## @ipoib_ib_dev_down
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_ipoib_dbg
	movq	_IPOIB_FLAG_OPER_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%rbx), %r15
	movq	%r15, %rsi
	callq	_clear_bit
	movl	8(%rbx), %edi
	movq	_LINK_STATE_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_if_link_state_change
	movq	_IPOIB_PKEY_ASSIGNED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	_pkey_mutex@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	_IPOIB_PKEY_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_set_bit
	movq	%rbx, %rdi
	callq	_cancel_delayed_work
	movq	%r12, %rdi
	callq	_mutex_unlock
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	movq	_ipoib_workqueue@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_flush_workqueue
LBB0_3:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ipoib_mcast_stop_thread
	movq	%rbx, %rdi
	callq	_ipoib_mcast_dev_flush
	movq	%rbx, %rdi
	callq	_ipoib_flush_paths
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"downing ib_dev\n"

	.comm	_IPOIB_FLAG_OPER_UP,4,2         ## @IPOIB_FLAG_OPER_UP
	.comm	_LINK_STATE_DOWN,4,2            ## @LINK_STATE_DOWN
	.comm	_IPOIB_PKEY_ASSIGNED,4,2        ## @IPOIB_PKEY_ASSIGNED
	.comm	_pkey_mutex,4,2                 ## @pkey_mutex
	.comm	_IPOIB_PKEY_STOP,4,2            ## @IPOIB_PKEY_STOP
	.comm	_ipoib_workqueue,4,2            ## @ipoib_workqueue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipoib_ib_dev_down              ; -- Begin function ipoib_ib_dev_down
	.p2align	2
_ipoib_ib_dev_down:                     ; @ipoib_ib_dev_down
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ipoib_dbg
Lloh2:
	adrp	x8, _IPOIB_FLAG_OPER_UP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IPOIB_FLAG_OPER_UP@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x21, x19, #4
	mov	x1, x21
	bl	_clear_bit
	ldr	w0, [x19, #8]
Lloh5:
	adrp	x8, _LINK_STATE_DOWN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LINK_STATE_DOWN@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_if_link_state_change
Lloh8:
	adrp	x8, _IPOIB_PKEY_ASSIGNED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IPOIB_PKEY_ASSIGNED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbnz	w0, LBB0_3
; %bb.1:
Lloh11:
	adrp	x22, _pkey_mutex@GOTPAGE
Lloh12:
	ldr	x22, [x22, _pkey_mutex@GOTPAGEOFF]
	mov	x0, x22
	bl	_mutex_lock
Lloh13:
	adrp	x8, _IPOIB_PKEY_STOP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IPOIB_PKEY_STOP@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_set_bit
	mov	x0, x19
	bl	_cancel_delayed_work
	mov	x0, x22
	bl	_mutex_unlock
	cbz	w20, LBB0_3
; %bb.2:
Lloh16:
	adrp	x8, _ipoib_workqueue@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ipoib_workqueue@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_flush_workqueue
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_ipoib_mcast_stop_thread
	mov	x0, x19
	bl	_ipoib_mcast_dev_flush
	mov	x0, x19
	bl	_ipoib_flush_paths
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"downing ib_dev\n"

	.comm	_IPOIB_FLAG_OPER_UP,4,2         ; @IPOIB_FLAG_OPER_UP
	.comm	_LINK_STATE_DOWN,4,2            ; @LINK_STATE_DOWN
	.comm	_IPOIB_PKEY_ASSIGNED,4,2        ; @IPOIB_PKEY_ASSIGNED
	.comm	_pkey_mutex,4,2                 ; @pkey_mutex
	.comm	_IPOIB_PKEY_STOP,4,2            ; @IPOIB_PKEY_STOP
	.comm	_ipoib_workqueue,4,2            ; @ipoib_workqueue
.subsections_via_symbols
