	.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, %r15
	movq	%rdi, %rbx
	movq	24(%rdi), %r13
	movl	(%rsi), %r14d
	movl	8(%rsi), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_ipoib_dbg_data
	movq	_ipoib_sendq_size@GOTPCREL(%rip), %r12
	xorl	%edi, %edi
	cmpl	(%r12), %r14d
	setae	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	movl	(%r12), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %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(%rbx), %r12
	leaq	(%r12,%r14,4), %rsi
	movl	12(%rbx), %edi
	callq	_ipoib_dma_unmap_tx
	movq	_IFCOUNTER_OPACKETS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_if_inc_counter
	movl	(%r12,%r14,4), %edi
	movq	%r13, %r12
	callq	_m_freem
	incl	8(%rbx)
	movl	(%rbx), %eax
	decl	%eax
	movl	%eax, (%rbx)
	movq	_ipoib_sendq_size@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shrl	%ecx
	xorl	%edi, %edi
	cmpl	%ecx, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_IFF_DRV_OACTIVE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, (%r12)
	je	LBB0_5
## %bb.3:
	movq	_IPOIB_FLAG_ADMIN_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%r13), %eax
	notl	%eax
	andl	%eax, (%r12)
LBB0_5:
	movl	8(%r15), %edx
	movq	_IB_WC_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	je	LBB0_7
## %bb.6:
	movq	_IB_WC_WR_FLUSH_ERR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	je	LBB0_7
## %bb.9:
	movl	4(%r15), %r8d
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ipoib_warn                     ## TAILCALL
LBB0_7:
	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	_IFCOUNTER_OPACKETS,4,2         ## @IFCOUNTER_OPACKETS
	.comm	_IFF_DRV_OACTIVE,4,2            ## @IFF_DRV_OACTIVE
	.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"

	.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	x20, x0
	ldr	x22, [x0, #24]
	ldr	w19, [x1]
	ldr	w3, [x1, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_ipoib_dbg_data
Lloh2:
	adrp	x24, _ipoib_sendq_size@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ipoib_sendq_size@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w19, 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, x20
	mov	x2, x19
	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, [x20, #16]
	add	x23, x8, x19, lsl #2
	ldr	w0, [x20, #12]
	mov	x1, x23
	bl	_ipoib_dma_unmap_tx
Lloh6:
	adrp	x8, _IFCOUNTER_OPACKETS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IFCOUNTER_OPACKETS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #1
	bl	_if_inc_counter
	ldr	w0, [x23]
	bl	_m_freem
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	ldr	w8, [x20]
	sub	w8, w8, #1
	str	w8, [x20]
	ldr	w9, [x24]
	cmp	w8, w9, lsr #1
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w8, [x22]
Lloh9:
	adrp	x23, _IFF_DRV_OACTIVE@GOTPAGE
Lloh10:
	ldr	x23, [x23, _IFF_DRV_OACTIVE@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
Lloh11:
	adrp	x8, _IPOIB_FLAG_ADMIN_UP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IPOIB_FLAG_ADMIN_UP@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	add	x1, x20, #4
	bl	_test_bit
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w8, [x23]
	ldr	w9, [x22]
	bic	w8, w9, w8
	str	w8, [x22]
LBB0_6:
	ldr	w2, [x21, #8]
Lloh14:
	adrp	x8, _IB_WC_SUCCESS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IB_WC_SUCCESS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w2, w8
	b.eq	LBB0_9
; %bb.7:
Lloh17:
	adrp	x8, _IB_WC_WR_FLUSH_ERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IB_WC_WR_FLUSH_ERR@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w2, w8
	b.eq	LBB0_9
; %bb.8:
	ldr	w8, [x21, #4]
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	_ipoib_warn
LBB0_9:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.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	_IFCOUNTER_OPACKETS,4,2         ; @IFCOUNTER_OPACKETS
	.comm	_IFF_DRV_OACTIVE,4,2            ; @IFF_DRV_OACTIVE
	.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"

	.no_dead_strip	_ipoib_ib_handle_tx_wc
.subsections_via_symbols
