	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipoib_ib_dev_stop_default      ## -- Begin function ipoib_ib_dev_stop_default
	.p2align	4, 0x90
_ipoib_ib_dev_stop_default:             ## @ipoib_ib_dev_stop_default
	.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, %r14
	callq	_ipoib_priv
	movq	%rax, %r12
	movq	_IPOIB_FLAG_INITIALIZED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	32(%r12), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_ipoib_napi_disable
LBB0_2:
	movq	%r14, %rdi
	callq	_ipoib_cm_dev_stop
	movq	_IB_QPS_ERR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, -48(%rbp)
	movl	12(%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_4
## %bb.3:
	movl	12(%r12), %esi
	movl	(%rbx), %edx
	movq	%r12, %rdi
	callq	_check_qp_movement_and_print
LBB0_4:
	movq	_jiffies@GOTPCREL(%rip), %r15
	movq	(%r15), %r13
	movq	_HZ@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %eax
	cmpl	4(%r12), %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_recvs_pending
	testq	%rax, %rax
	je	LBB0_17
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rdi
	movslq	(%rbx), %rax
	leaq	(%rax,%rax,4), %rsi
	addq	%r13, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_8
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_ipoib_drain_cq
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	jmp	LBB0_5
LBB0_8:
	movl	(%r12), %r15d
	subl	4(%r12), %r15d
	movq	%r14, %rdi
	callq	_recvs_pending
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_ipoib_warn
	movl	4(%r12), %eax
	cmpl	(%r12), %eax
	jge	LBB0_11
## %bb.9:
	movq	_ipoib_sendq_size@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %r15
	movslq	(%r14), %rcx
	decq	%rcx
	movslq	%eax, %rbx
	andq	%rcx, %rbx
	leaq	(%r15,%rbx,8), %rsi
	movq	%r12, %rdi
	callq	_ipoib_dma_unmap_tx
	movq	(%r15,%rbx,8), %rdi
	callq	_dev_kfree_skb_any
	movl	4(%r12), %eax
	incl	%eax
	movl	%eax, 4(%r12)
	cmpl	(%r12), %eax
	jl	LBB0_10
LBB0_11:
	movq	_ipoib_recvq_size@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_18
## %bb.12:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r15
	jge	LBB0_18
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %r13
	cmpq	$0, (%r13,%rbx)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	8(%r13,%rbx), %esi
	movq	%r12, %rdi
	callq	_ipoib_ud_dma_unmap_rx
	movq	(%r13,%rbx), %rdi
	callq	_dev_kfree_skb_any
	movq	$0, (%r13,%rbx)
	movl	(%r14), %eax
	jmp	LBB0_15
LBB0_17:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_ipoib_dbg
LBB0_18:
	movq	_IB_QPS_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	12(%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_20
## %bb.19:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_ipoib_warn
LBB0_20:
	movl	8(%r12), %edi
	movq	_IB_CQ_NEXT_COMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ib_req_notify_cq
	xorl	%eax, %eax
	addq	$8, %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	_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_default      ; -- Begin function ipoib_ib_dev_stop_default
	.p2align	2
_ipoib_ib_dev_stop_default:             ; @ipoib_ib_dev_stop_default
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x0
	bl	_ipoib_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _IPOIB_FLAG_INITIALIZED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPOIB_FLAG_INITIALIZED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #32
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_ipoib_napi_disable
LBB0_2:
	mov	x0, x20
	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, #12]
Lloh5:
	adrp	x21, _IB_QP_STATE@GOTPAGE
Lloh6:
	ldr	x21, [x21, _IB_QP_STATE@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x1, sp, #24
	bl	_ib_modify_qp
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w1, [x19, #12]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_check_qp_movement_and_print
LBB0_4:
Lloh7:
	adrp	x22, _jiffies@GOTPAGE
Lloh8:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x23, [x22]
Lloh9:
	adrp	x24, _HZ@GOTPAGE
Lloh10:
	ldr	x24, [x24, _HZ@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w8, w9, [x19]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_recvs_pending
	cbz	x0, LBB0_17
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x22]
	ldrsw	x8, [x24]
	add	x8, x8, x8, lsl #2
	add	x1, x23, x8
	bl	_time_after
	cbnz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_ipoib_drain_cq
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	b	LBB0_5
LBB0_9:
	ldp	w8, w9, [x19]
	sub	w22, w8, w9
	mov	x0, x20
	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
	ldp	w9, w8, [x19]
	cmp	w8, w9
	b.ge	LBB0_12
; %bb.10:
Lloh13:
	adrp	x22, _ipoib_sendq_size@GOTPAGE
Lloh14:
	ldr	x22, [x22, _ipoib_sendq_size@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #24]
	ldr	w10, [x22]
	sub	w10, w10, #1
	and	w8, w10, w8
	add	x20, x9, w8, sxtw #3
	mov	x0, x19
	mov	x1, x20
	bl	_ipoib_dma_unmap_tx
	ldr	x0, [x20]
	bl	_dev_kfree_skb_any
	ldp	w9, w8, [x19]
	add	w8, w8, #1
	str	w8, [x19, #4]
	cmp	w8, w9
	b.lt	LBB0_11
LBB0_12:
Lloh15:
	adrp	x20, _ipoib_recvq_size@GOTPAGE
Lloh16:
	ldr	x20, [x20, _ipoib_recvq_size@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.13:
	mov	x22, #0
	mov	x23, #0
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x23, x23, #1
	add	x22, x22, #16
	cmp	x23, w8, sxtw
	b.ge	LBB0_18
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	ldr	x10, [x9, x22]
	cbz	x10, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x24, x9, x22
	ldr	w1, [x24, #8]
	mov	x0, x19
	bl	_ipoib_ud_dma_unmap_rx
	ldr	x0, [x24]
	bl	_dev_kfree_skb_any
	str	xzr, [x24]
	ldr	w8, [x20]
	b	LBB0_14
LBB0_17:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ipoib_dbg
LBB0_18:
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, #12]
	ldr	w2, [x21]
	add	x1, sp, #24
	bl	_ib_modify_qp
	cbz	x0, LBB0_20
; %bb.19:
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ipoib_warn
LBB0_20:
	ldr	w0, [x19, #8]
Lloh24:
	adrp	x8, _IB_CQ_NEXT_COMP@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IB_CQ_NEXT_COMP@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_ib_req_notify_cq
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.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
	.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	_IB_CQ_NEXT_COMP,4,2            ; @IB_CQ_NEXT_COMP
.subsections_via_symbols
