	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipoib_ib_handle_tx_wc
_ipoib_ib_handle_tx_wc:                 ## @ipoib_ib_handle_tx_wc
	.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	%rsi, %rbx
	movq	%rdi, %r12
	callq	_ipoib_priv
	movq	%rax, %r14
	movl	(%rbx), %r15d
	movl	8(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	movl	%r15d, %edx
	callq	_ipoib_dbg_data
	movq	_ipoib_sendq_size@GOTPCREL(%rip), %r13
	xorl	%edi, %edi
	cmpl	(%r13), %r15d
	setae	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.10:
	movl	(%r13), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ipoib_warn                     ## TAILCALL
LBB0_1:
	movq	16(%r14), %r13
	leaq	(,%r15,8), %rsi
	addq	%r13, %rsi
	movq	%r14, %rdi
	callq	_ipoib_dma_unmap_tx
	incl	4(%r12)
	movq	(%r13,%r15,8), %rdi
	movl	(%rdi), %eax
	addl	%eax, (%r12)
	callq	_dev_kfree_skb_any
	incl	(%r14)
	movq	%r12, %rdi
	callq	_netif_queue_stopped
	xorl	%edi, %edi
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	4(%r14), %eax
	subl	(%r14), %eax
	movq	_ipoib_sendq_size@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shrl	%ecx
	cmpl	%ecx, %eax
	ja	LBB0_4
## %bb.3:
	movq	_IPOIB_FLAG_ADMIN_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	addq	$12, %rsi
	callq	_test_bit
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
LBB0_4:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_netif_wake_queue
LBB0_6:
	movl	8(%rbx), %edx
	movq	_IB_WC_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	je	LBB0_9
## %bb.7:
	movq	_IB_WC_WR_FLUSH_ERR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	je	LBB0_9
## %bb.8:
	movl	4(%rbx), %r8d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_ipoib_warn
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.11:
	movq	%rax, %rbx
	movq	_ipoib_qp_state_validate_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_INIT_WORK
	movq	%r14, 8(%rbx)
	movl	8(%r14), %edi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_queue_work                     ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"send completion: id %d, status: %d\n"

	.comm	_ipoib_sendq_size,4,2           ## @ipoib_sendq_size
L_.str.1:                               ## @.str.1
	.asciz	"send completion event with wrid %d (> %d)\n"

	.comm	_IPOIB_FLAG_ADMIN_UP,4,2        ## @IPOIB_FLAG_ADMIN_UP
	.comm	_IB_WC_SUCCESS,4,2              ## @IB_WC_SUCCESS
	.comm	_IB_WC_WR_FLUSH_ERR,4,2         ## @IB_WC_WR_FLUSH_ERR
L_.str.2:                               ## @.str.2
	.asciz	"failed send event (status=%d, wrid=%d vend_err %#x)\n"

	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ipoib_qp_state_validate_work,4,2 ## @ipoib_qp_state_validate_work
	.no_dead_strip	_ipoib_ib_handle_tx_wc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipoib_ib_handle_tx_wc
_ipoib_ib_handle_tx_wc:                 ; @ipoib_ib_handle_tx_wc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x22, x0
	bl	_ipoib_priv
	mov	x19, x0
	ldr	w20, [x21]
	ldr	w3, [x21, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_ipoib_dbg_data
Lloh2:
	adrp	x24, _ipoib_sendq_size@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ipoib_sendq_size@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w20, w8
	cset	w0, hs
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w3, [x24]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_ipoib_warn
LBB0_2:
	ldr	x8, [x19, #16]
	add	x23, x8, x20, lsl #3
	mov	x0, x19
	mov	x1, x23
	bl	_ipoib_dma_unmap_tx
	ldr	x0, [x23]
	ldr	d0, [x22]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x0]
	add.2s	v0, v0, v1
	str	d0, [x22]
	bl	_dev_kfree_skb_any
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	mov	x0, x22
	bl	_netif_queue_stopped
	cbz	x0, LBB0_5
; %bb.3:
	ldp	w9, w8, [x19]
	sub	w8, w8, w9
	ldr	w9, [x24]
	cmp	w8, w9, lsr #1
	b.ls	LBB0_11
; %bb.4:
	mov	w0, #0
LBB0_5:
	bl	_unlikely
	cbz	x0, LBB0_7
LBB0_6:
	mov	x0, x22
	bl	_netif_wake_queue
LBB0_7:
	ldr	w2, [x21, #8]
Lloh6:
	adrp	x8, _IB_WC_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_WC_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _IB_WC_WR_FLUSH_ERR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IB_WC_WR_FLUSH_ERR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w2, w8
	ccmp	w2, w9, #4, ne
	b.eq	LBB0_10
; %bb.8:
	ldr	w8, [x21, #4]
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_ipoib_warn
Lloh14:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.9:
	mov	x20, x0
Lloh17:
	adrp	x8, _ipoib_qp_state_validate_work@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ipoib_qp_state_validate_work@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_INIT_WORK
	str	x19, [x20, #8]
	ldr	w0, [x19, #8]
	mov	x1, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_queue_work
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_11:
Lloh20:
	adrp	x8, _IPOIB_FLAG_ADMIN_UP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IPOIB_FLAG_ADMIN_UP@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	add	x1, x19, #12
	bl	_test_bit
	cmp	x0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_6
	b	LBB0_7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"send completion: id %d, status: %d\n"

	.comm	_ipoib_sendq_size,4,2           ; @ipoib_sendq_size
l_.str.1:                               ; @.str.1
	.asciz	"send completion event with wrid %d (> %d)\n"

	.comm	_IPOIB_FLAG_ADMIN_UP,4,2        ; @IPOIB_FLAG_ADMIN_UP
	.comm	_IB_WC_SUCCESS,4,2              ; @IB_WC_SUCCESS
	.comm	_IB_WC_WR_FLUSH_ERR,4,2         ; @IB_WC_WR_FLUSH_ERR
l_.str.2:                               ; @.str.2
	.asciz	"failed send event (status=%d, wrid=%d vend_err %#x)\n"

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ipoib_qp_state_validate_work,4,2 ; @ipoib_qp_state_validate_work
	.no_dead_strip	_ipoib_ib_handle_tx_wc
.subsections_via_symbols
