	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipoib_ib_dev_stop              ## -- Begin function ipoib_ib_dev_stop
	.p2align	4, 0x90
_ipoib_ib_dev_stop:                     ## @ipoib_ib_dev_stop
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	_IPOIB_FLAG_INITIALIZED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%r12), %rsi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	callq	_clear_bit
	movq	%r12, %rdi
	callq	_ipoib_cm_dev_stop
	movq	_IB_QPS_ERR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, -48(%rbp)
	movl	28(%r12), %edi
	movq	_IB_QP_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rsi
	callq	_ib_modify_qp
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	28(%r12), %esi
	movl	(%rbx), %edx
	movq	%r12, %rdi
	callq	_check_qp_movement_and_print
LBB0_2:
	movq	_jiffies@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	movq	_HZ@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	cmpq	8(%r12), %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_recvs_pending
	testq	%rax, %rax
	je	LBB0_15
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rdi
	movslq	(%r13), %rax
	leaq	(%rax,%rax,4), %rsi
	addq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_6
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_ipoib_drain_cq
	movl	$1, %edi
	callq	_msleep
	jmp	LBB0_3
LBB0_6:
	movq	(%r12), %rbx
	subq	8(%r12), %rbx
	movq	%r12, %rdi
	callq	_recvs_pending
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_ipoib_warn
	movq	8(%r12), %rax
	cmpl	(%r12), %eax
	jge	LBB0_9
## %bb.7:
	movq	_ipoib_sendq_size@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	56(%r12), %r15
	movslq	(%r14), %rbx
	decq	%rbx
	andq	%rax, %rbx
	leaq	(%r15,%rbx,8), %rsi
	movl	52(%r12), %edi
	callq	_ipoib_dma_unmap_tx
	movq	(%r15,%rbx,8), %rdi
	callq	_m_freem
	movq	8(%r12), %rax
	incq	%rax
	movq	%rax, 8(%r12)
	decl	48(%r12)
	cmpl	(%r12), %eax
	jl	LBB0_8
LBB0_9:
	movq	_ipoib_recvq_size@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_16
## %bb.10:
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	addq	$8, %r14
	cmpq	%rcx, %r15
	jge	LBB0_16
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%r12), %rbx
	cmpq	$0, (%rbx,%r14)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	addq	%r14, %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ipoib_dma_unmap_rx
	movq	(%rbx), %rdi
	callq	_m_freem
	movq	$0, (%rbx)
	movl	(%r13), %eax
	jmp	LBB0_13
LBB0_15:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_ipoib_dbg
LBB0_16:
	leaq	32(%r12), %rdi
	callq	_del_timer_sync
	movq	_IB_QPS_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	28(%r12), %edi
	movq	_IB_QP_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rsi
	callq	_ib_modify_qp
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_ipoib_warn
LBB0_18:
	movq	_IPOIB_STOP_REAPER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_set_bit
	leaq	20(%r12), %rdi
	callq	_cancel_delayed_work
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_20
## %bb.19:
	movq	_ipoib_workqueue@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_flush_workqueue
LBB0_20:
	movq	%r12, %rdi
	callq	_ipoib_ah_dev_cleanup
	movl	16(%r12), %edi
	movq	_IB_CQ_NEXT_COMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ib_req_notify_cq
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPOIB_FLAG_INITIALIZED,4,2     ## @IPOIB_FLAG_INITIALIZED
	.comm	_IB_QPS_ERR,4,2                 ## @IB_QPS_ERR
	.comm	_IB_QP_STATE,4,2                ## @IB_QP_STATE
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timing out; %d sends %d receives not completed\n"

	.comm	_ipoib_sendq_size,4,2           ## @ipoib_sendq_size
	.comm	_ipoib_recvq_size,4,2           ## @ipoib_recvq_size
L_.str.1:                               ## @.str.1
	.asciz	"All sends and receives done.\n"

	.comm	_IB_QPS_RESET,4,2               ## @IB_QPS_RESET
L_.str.2:                               ## @.str.2
	.asciz	"Failed to modify QP to RESET state\n"

	.comm	_IPOIB_STOP_REAPER,4,2          ## @IPOIB_STOP_REAPER
	.comm	_ipoib_workqueue,4,2            ## @ipoib_workqueue
	.comm	_IB_CQ_NEXT_COMP,4,2            ## @IB_CQ_NEXT_COMP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipoib_ib_dev_stop              ; -- Begin function ipoib_ib_dev_stop
	.p2align	2
_ipoib_ib_dev_stop:                     ; @ipoib_ib_dev_stop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _IPOIB_FLAG_INITIALIZED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPOIB_FLAG_INITIALIZED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x21, x19, #24
	mov	x1, x21
	bl	_clear_bit
	mov	x0, x19
	bl	_ipoib_cm_dev_stop
Lloh3:
	adrp	x22, _IB_QPS_ERR@GOTPAGE
Lloh4:
	ldr	x22, [x22, _IB_QPS_ERR@GOTPAGEOFF]
	ldr	w8, [x22]
	str	w8, [sp, #24]
	ldr	w0, [x19, #28]
Lloh5:
	adrp	x23, _IB_QP_STATE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _IB_QP_STATE@GOTPAGEOFF]
	ldr	w2, [x23]
	add	x1, sp, #24
	bl	_ib_modify_qp
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x19, #28]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_check_qp_movement_and_print
LBB0_2:
Lloh7:
	adrp	x22, _jiffies@GOTPAGE
Lloh8:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x24, [x22]
Lloh9:
	adrp	x25, _HZ@GOTPAGE
Lloh10:
	ldr	x25, [x25, _HZ@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_recvs_pending
	cbz	x0, LBB0_15
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x22]
	ldrsw	x8, [x25]
	add	x8, x8, x8, lsl #2
	add	x1, x24, x8
	bl	_time_after
	cbnz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_ipoib_drain_cq
	mov	w0, #1
	bl	_msleep
	b	LBB0_3
LBB0_7:
	ldp	x8, x9, [x19]
	sub	x22, x8, x9
	mov	x0, x19
	bl	_recvs_pending
	stp	x22, x0, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ipoib_warn
	ldr	x8, [x19, #8]
	ldr	w9, [x19]
	cmp	w8, w9
	b.ge	LBB0_10
; %bb.8:
Lloh13:
	adrp	x24, _ipoib_sendq_size@GOTPAGE
Lloh14:
	ldr	x24, [x24, _ipoib_sendq_size@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #56]
	ldrsw	x10, [x24]
	sub	x10, x10, #1
	and	x8, x8, x10
	add	x22, x9, x8, lsl #3
	ldr	w0, [x19, #52]
	mov	x1, x22
	bl	_ipoib_dma_unmap_tx
	ldr	x0, [x22]
	bl	_m_freem
	ldr	x8, [x19, #8]
	add	x8, x8, #1
	str	x8, [x19, #8]
	ldr	w9, [x19, #48]
	sub	w9, w9, #1
	str	w9, [x19, #48]
	ldr	w9, [x19]
	cmp	w8, w9
	b.lt	LBB0_9
LBB0_10:
Lloh15:
	adrp	x24, _ipoib_recvq_size@GOTPAGE
Lloh16:
	ldr	x24, [x24, _ipoib_recvq_size@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.11:
	mov	x25, #0
	mov	x26, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x26, x26, #1
	add	x25, x25, #8
	cmp	x26, w8, sxtw
	b.ge	LBB0_16
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #40]
	add	x22, x9, x25
	ldr	x9, [x22]
	cbz	x9, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_ipoib_dma_unmap_rx
	ldr	x0, [x22]
	bl	_m_freem
	str	xzr, [x22]
	ldr	w8, [x24]
	b	LBB0_12
LBB0_15:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ipoib_dbg
LBB0_16:
	add	x0, x19, #32
	bl	_del_timer_sync
Lloh19:
	adrp	x8, _IB_QPS_RESET@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IB_QPS_RESET@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	w0, [x19, #28]
	ldr	w2, [x23]
	add	x1, sp, #24
	bl	_ib_modify_qp
	cbz	x0, LBB0_18
; %bb.17:
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ipoib_warn
LBB0_18:
Lloh24:
	adrp	x8, _IPOIB_STOP_REAPER@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IPOIB_STOP_REAPER@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_set_bit
	add	x0, x19, #20
	bl	_cancel_delayed_work
	cbz	w20, LBB0_20
; %bb.19:
Lloh27:
	adrp	x8, _ipoib_workqueue@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ipoib_workqueue@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_flush_workqueue
LBB0_20:
	mov	x0, x19
	bl	_ipoib_ah_dev_cleanup
	ldr	w0, [x19, #16]
Lloh30:
	adrp	x8, _IB_CQ_NEXT_COMP@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IB_CQ_NEXT_COMP@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	bl	_ib_req_notify_cq
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_IPOIB_FLAG_INITIALIZED,4,2     ; @IPOIB_FLAG_INITIALIZED
	.comm	_IB_QPS_ERR,4,2                 ; @IB_QPS_ERR
	.comm	_IB_QP_STATE,4,2                ; @IB_QP_STATE
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timing out; %d sends %d receives not completed\n"

	.comm	_ipoib_sendq_size,4,2           ; @ipoib_sendq_size
	.comm	_ipoib_recvq_size,4,2           ; @ipoib_recvq_size
l_.str.1:                               ; @.str.1
	.asciz	"All sends and receives done.\n"

	.comm	_IB_QPS_RESET,4,2               ; @IB_QPS_RESET
l_.str.2:                               ; @.str.2
	.asciz	"Failed to modify QP to RESET state\n"

	.comm	_IPOIB_STOP_REAPER,4,2          ; @IPOIB_STOP_REAPER
	.comm	_ipoib_workqueue,4,2            ; @ipoib_workqueue
	.comm	_IB_CQ_NEXT_COMP,4,2            ; @IB_CQ_NEXT_COMP
.subsections_via_symbols
