	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipoib_cm_tx_destroy
_ipoib_cm_tx_destroy:                   ## @ipoib_cm_tx_destroy
	.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, %rbx
	movl	24(%rdi), %edi
	callq	_ipoib_priv
	movq	%rax, %r14
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rax), %edx
	jmp	LBB0_3
LBB0_1:
	xorl	%edx, %edx
LBB0_3:
	movq	32(%rbx), %rcx
	movl	(%rbx), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_ipoib_dbg
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_ib_destroy_cm_id
LBB0_5:
	cmpq	$0, 8(%rbx)
	je	LBB0_10
## %bb.6:
	movl	(%rbx), %eax
	cmpl	32(%rbx), %eax
	jge	LBB0_10
## %bb.7:
	movq	_jiffies@GOTPCREL(%rip), %r12
	movq	(%r12), %r15
	movq	_HZ@GOTPCREL(%rip), %r13
	movslq	(%r13), %rax
	leaq	(%rax,%rax,4), %rsi
	addq	%r15, %rsi
	movq	%r15, %rdi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_9
## %bb.20:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	(%rbx), %eax
	cmpl	32(%rbx), %eax
	jge	LBB0_10
## %bb.21:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r12), %rdi
	movslq	(%r13), %rax
	leaq	(%rax,%rax,4), %rsi
	addq	%r15, %rsi
	jmp	LBB0_8
LBB0_9:
	movq	32(%rbx), %rdx
	movslq	(%rbx), %rax
	subq	%rax, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_ipoib_warn
LBB0_10:
	movl	(%rbx), %eax
	cmpl	32(%rbx), %eax
	jge	LBB0_17
## %bb.11:
	movq	%r14, %rcx
	addq	$8, %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	_ipoib_sendq_size@GOTPCREL(%rip), %r12
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	24(%rbx), %edi
	callq	_netif_tx_unlock_bh
	movl	(%rbx), %eax
	cmpl	32(%rbx), %eax
	jge	LBB0_17
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %r13
	movslq	(%r12), %rcx
	decq	%rcx
	movslq	%eax, %r15
	andq	%rcx, %r15
	leaq	(,%r15,4), %rsi
	addq	%r13, %rsi
	movq	%r14, %rdi
	callq	_ipoib_dma_unmap_tx
	movl	(%r13,%r15,4), %edi
	callq	_dev_kfree_skb_any
	movl	24(%rbx), %edi
	callq	_netif_tx_lock_bh
	incl	(%rbx)
	movl	(%r14), %eax
	movl	4(%r14), %ecx
	incl	%eax
	movl	%eax, (%r14)
	subl	%eax, %ecx
	movl	(%r12), %eax
	sarl	%eax
	xorl	%edi, %edi
	cmpl	%eax, %ecx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	24(%rbx), %edi
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_IPOIB_FLAG_ADMIN_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	24(%rbx), %edi
	callq	_netif_wake_queue
	jmp	LBB0_16
LBB0_17:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:
	callq	_ib_destroy_qp
LBB0_19:
	movq	8(%rbx), %rdi
	callq	_vfree
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Destroy active connection 0x%x head 0x%x tail 0x%x\n"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
L_.str.1:                               ## @.str.1
	.asciz	"timing out; %d sends not completed\n"

	.comm	_ipoib_sendq_size,4,2           ## @ipoib_sendq_size
	.comm	_IPOIB_FLAG_ADMIN_UP,4,2        ## @IPOIB_FLAG_ADMIN_UP
	.no_dead_strip	_ipoib_cm_tx_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipoib_cm_tx_destroy
_ipoib_cm_tx_destroy:                   ; @ipoib_cm_tx_destroy
	.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
	ldr	w0, [x0, #24]
	bl	_ipoib_priv
	mov	x20, x0
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w2, [x8]
	b	LBB0_3
LBB0_2:
	mov	w2, #0
LBB0_3:
	ldr	x3, [x19, #32]
	ldr	w4, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ipoib_dbg
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_ib_destroy_cm_id
LBB0_5:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
; %bb.6:
	ldr	w8, [x19]
	ldr	w9, [x19, #32]
	cmp	w8, w9
	b.ge	LBB0_11
; %bb.7:
Lloh2:
	adrp	x22, _jiffies@GOTPAGE
Lloh3:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x21, [x22]
Lloh4:
	adrp	x23, _HZ@GOTPAGE
Lloh5:
	ldr	x23, [x23, _HZ@GOTPAGEOFF]
	ldrsw	x8, [x23]
	add	x8, x8, x8, lsl #2
	add	x1, x21, x8
	mov	x0, x21
	bl	_time_after
	cbnz	x0, LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	w8, [x19]
	ldr	w9, [x19, #32]
	cmp	w8, w9
	b.ge	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x22]
	ldrsw	x8, [x23]
	add	x8, x8, x8, lsl #2
	add	x1, x21, x8
	bl	_time_after
	cbz	x0, LBB0_8
LBB0_10:
	ldr	x8, [x19, #32]
	ldrsw	x9, [x19]
	sub	x2, x8, x9
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_ipoib_warn
LBB0_11:
	ldr	w8, [x19]
	ldr	w9, [x19, #32]
	cmp	w8, w9
	b.ge	LBB0_18
; %bb.12:
	add	x21, x20, #8
Lloh8:
	adrp	x23, _ipoib_sendq_size@GOTPAGE
Lloh9:
	ldr	x23, [x23, _ipoib_sendq_size@GOTPAGEOFF]
Lloh10:
	adrp	x24, _IPOIB_FLAG_ADMIN_UP@GOTPAGE
Lloh11:
	ldr	x24, [x24, _IPOIB_FLAG_ADMIN_UP@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w0, [x19, #24]
	bl	_netif_tx_unlock_bh
	ldr	w8, [x19]
	ldr	w9, [x19, #32]
	cmp	w8, w9
	b.ge	LBB0_18
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	w10, [x23]
	sub	w10, w10, #1
	and	w8, w10, w8
	add	x22, x9, w8, sxtw #2
	mov	x0, x20
	mov	x1, x22
	bl	_ipoib_dma_unmap_tx
	ldr	w0, [x22]
	bl	_dev_kfree_skb_any
	ldr	w0, [x19, #24]
	bl	_netif_tx_lock_bh
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	ldp	w8, w9, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	sub	w8, w9, w8
	ldr	w9, [x23]
	cmp	w8, w9, asr #1
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w0, [x19, #24]
	bl	_netif_queue_stopped
	cbz	x0, LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w0, [x24]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_13
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w0, [x19, #24]
	bl	_netif_wake_queue
	b	LBB0_13
LBB0_18:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_20
; %bb.19:
	bl	_ib_destroy_qp
LBB0_20:
	ldr	x0, [x19, #8]
	bl	_vfree
	mov	x0, x19
	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
	b	_kfree
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Destroy active connection 0x%x head 0x%x tail 0x%x\n"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
l_.str.1:                               ; @.str.1
	.asciz	"timing out; %d sends not completed\n"

	.comm	_ipoib_sendq_size,4,2           ; @ipoib_sendq_size
	.comm	_IPOIB_FLAG_ADMIN_UP,4,2        ; @IPOIB_FLAG_ADMIN_UP
	.no_dead_strip	_ipoib_cm_tx_destroy
.subsections_via_symbols
