	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipoib_send                     ## -- Begin function ipoib_send
	.p2align	4, 0x90
_ipoib_send:                            ## @ipoib_send
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_ipoib_priv
	movq	%rax, %r15
	movl	(%rax), %r14d
	movq	%r13, %rdi
	callq	_skb_headlen
	cmpl	$1, %eax
	adcl	$-1, %r14d
	movq	%r13, %rdi
	callq	_skb_is_gso
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_skb_transport_offset
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_tcp_hdrlen
	movl	%eax, %r12d
	addl	%ebx, %r12d
	movq	16(%r13), %rbx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_skb_pull
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	leaq	L_.str(%rip), %rsi
LBB0_3:
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ipoib_warn
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	4(%rax)
	jmp	LBB0_13
LBB0_4:
	movq	_IPOIB_ENCAP_LEN@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	addq	8(%r15), %rax
	xorl	%edi, %edi
	cmpq	%rax, (%r13)
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	(%r13), %rdx
	movq	(%r12), %rcx
	addq	8(%r15), %rcx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ipoib_warn
	incl	4(%rbx)
	incl	(%rbx)
	movq	8(%r15), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ipoib_cm_skb_too_long
	jmp	LBB0_14
LBB0_6:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_skb_shinfo
	cmpl	%r14d, (%rax)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jbe	LBB0_11
## %bb.8:
	movq	%r13, %rdi
	callq	_skb_linearize
	testq	%rax, %rax
	js	LBB0_18
## %bb.9:
	movq	%r13, %rdi
	callq	_skb_shinfo
	cmpl	%r14d, (%rax)
	jbe	LBB0_11
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_3
LBB0_11:
	movq	(%r13), %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rcx
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r8d
	callq	_ipoib_dbg_data
	movq	40(%r15), %rax
	movslq	16(%r15), %rcx
	movq	_ipoib_sendq_size@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	decq	%rdx
	andq	%rcx, %rdx
	leaq	(%rax,%rdx,8), %r14
	movq	%r13, (%rax,%rdx,8)
	movl	32(%r15), %edi
	movq	%r14, %rsi
	callq	_ipoib_dma_map_tx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_13:
	incl	(%rax)
	movq	%r13, %rdi
	callq	_dev_kfree_skb_any
LBB0_14:
	movl	$-1, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	8(%r13), %rcx
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rdx
	movq	_IB_SEND_IP_CSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_19
## %bb.17:
	orl	%eax, 28(%r15)
	jmp	LBB0_20
LBB0_18:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_3
LBB0_19:
	notl	%eax
	andl	%eax, 28(%r15)
LBB0_20:
	movq	_ipoib_sendq_size@GOTPCREL(%rip), %rcx
	movl	16(%r15), %eax
	subl	20(%r15), %eax
	movl	(%rcx), %ecx
	decl	%ecx
	cmpl	%ecx, %eax
	jne	LBB0_22
## %bb.21:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_ipoib_dbg
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_stop_queue
LBB0_22:
	movq	%r13, %rdi
	callq	_skb_orphan
	movq	%r13, %rdi
	callq	_skb_dst_drop
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_25
## %bb.23:
	movl	24(%r15), %edi
	movq	_IB_CQ_NEXT_COMP@GOTPCREL(%rip), %rax
	movq	_IB_CQ_REPORT_MISSED_EVENTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_ib_req_notify_cq
	testq	%rax, %rax
	jns	LBB0_25
## %bb.24:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ipoib_warn
LBB0_25:
	movq	_ipoib_sendq_size@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	decl	%esi
	andl	16(%r15), %esi
	movl	%r12d, (%rsp)
	movq	%r15, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	movq	%r14, %r8
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	callq	_post_send
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_28
## %bb.26:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_ipoib_warn
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	incl	(%r14)
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_ipoib_dma_unmap_tx
	movq	%r13, %rdi
	callq	_dev_kfree_skb_any
	movq	%r14, %rdi
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_15
## %bb.27:
	movq	%r14, %rdi
	callq	_netif_wake_queue
	jmp	LBB0_15
LBB0_28:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_trans_update
	movl	16(%r15), %ebx
	leal	1(%rbx), %eax
	movl	%eax, 16(%r15)
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"linear data too small\n"

	.comm	_IPOIB_ENCAP_LEN,8,3            ## @IPOIB_ENCAP_LEN
L_.str.1:                               ## @.str.1
	.asciz	"packet len %d (> %d) too long to send, dropping\n"

L_.str.2:                               ## @.str.2
	.asciz	"skb could not be linearized\n"

L_.str.3:                               ## @.str.3
	.asciz	"too many frags after skb linearize\n"

L_.str.4:                               ## @.str.4
	.asciz	"sending packet, length=%d address=%p dqpn=0x%06x\n"

	.comm	_ipoib_sendq_size,4,2           ## @ipoib_sendq_size
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_IB_SEND_IP_CSUM,4,2            ## @IB_SEND_IP_CSUM
L_.str.5:                               ## @.str.5
	.asciz	"TX ring full, stopping kernel net queue\n"

	.comm	_IB_CQ_NEXT_COMP,4,2            ## @IB_CQ_NEXT_COMP
	.comm	_IB_CQ_REPORT_MISSED_EVENTS,4,2 ## @IB_CQ_REPORT_MISSED_EVENTS
L_.str.6:                               ## @.str.6
	.asciz	"request notify on send CQ failed\n"

L_.str.7:                               ## @.str.7
	.asciz	"post_send failed, error %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipoib_send                     ; -- Begin function ipoib_send
	.p2align	2
_ipoib_send:                            ; @ipoib_send
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	bl	_ipoib_priv
	mov	x21, x0
	ldr	w26, [x0]
	mov	x0, x20
	bl	_skb_headlen
	cmp	w0, #0
	cset	w27, ne
	mov	x0, x20
	bl	_skb_is_gso
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_skb_transport_offset
	mov	x24, x0
	mov	x0, x20
	bl	_tcp_hdrlen
	add	w24, w0, w24
	ldr	x25, [x20, #16]
	mov	x0, x20
	mov	x1, x24
	bl	_skb_pull
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_3:
	mov	x0, x21
	bl	_ipoib_warn
	ldr	d0, [x19]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	str	d0, [x19]
	b	LBB0_13
LBB0_4:
	ldr	x8, [x20]
	ldr	x9, [x21, #8]
Lloh2:
	adrp	x24, _IPOIB_ENCAP_LEN@GOTPAGE
Lloh3:
	ldr	x24, [x24, _IPOIB_ENCAP_LEN@GOTPAGEOFF]
	ldr	x10, [x24]
	add	x9, x10, x9
	cmp	x8, x9
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x8, [x20]
	ldr	x9, [x21, #8]
	ldr	x10, [x24]
	add	x9, x10, x9
	stp	x8, x9, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_ipoib_warn
	ldr	d0, [x19]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	str	d0, [x19]
	ldr	x2, [x21, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_ipoib_cm_skb_too_long
	b	LBB0_14
LBB0_6:
	mov	w24, #0
	mov	x25, #0
LBB0_7:
	sub	w26, w26, w27
	mov	x0, x20
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w8, w26
	b.ls	LBB0_11
; %bb.8:
	mov	x0, x20
	bl	_skb_linearize
	tbnz	x0, #63, LBB0_18
; %bb.9:
	mov	x0, x20
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w8, w26
	b.ls	LBB0_11
; %bb.10:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_3
LBB0_11:
	ldr	x2, [x20]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	x3, x23
	mov	x4, x22
	bl	_ipoib_dbg_data
	ldr	x8, [x21, #40]
	ldr	w9, [x21, #16]
Lloh10:
	adrp	x27, _ipoib_sendq_size@GOTPAGE
Lloh11:
	ldr	x27, [x27, _ipoib_sendq_size@GOTPAGEOFF]
	ldr	w10, [x27]
	sub	w10, w10, #1
	and	w9, w10, w9
	add	x26, x8, w9, sxtw #3
	str	x20, [x26]
	ldr	w0, [x21, #32]
	mov	x1, x26
	bl	_ipoib_dma_map_tx
	bl	_unlikely
	cbz	x0, LBB0_16
; %bb.12:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_13:
	mov	x0, x20
	bl	_dev_kfree_skb_any
LBB0_14:
	mov	w0, #-1
LBB0_15:
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_16:
Lloh12:
	adrp	x8, _CHECKSUM_PARTIAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CHECKSUM_PARTIAL@GOTPAGEOFF]
	ldr	x9, [x20, #8]
Lloh14:
	ldr	x10, [x8]
Lloh15:
	adrp	x8, _IB_SEND_IP_CSUM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IB_SEND_IP_CSUM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	x9, x10
	b.ne	LBB0_19
; %bb.17:
	ldr	w9, [x21, #28]
	orr	w8, w9, w8
	b	LBB0_20
LBB0_18:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_19:
	ldr	w9, [x21, #28]
	bic	w8, w9, w8
LBB0_20:
	str	w8, [x21, #28]
	ldp	w8, w9, [x21, #16]
	ldr	w10, [x27]
	sub	w10, w10, #1
	sub	w8, w8, w9
	cmp	w8, w10
	b.ne	LBB0_22
; %bb.21:
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_ipoib_dbg
	mov	x0, x19
	bl	_netif_stop_queue
LBB0_22:
	mov	x0, x20
	bl	_skb_orphan
	mov	x0, x20
	bl	_skb_dst_drop
	mov	x0, x19
	bl	_netif_queue_stopped
	cbz	x0, LBB0_25
; %bb.23:
Lloh22:
	adrp	x8, _IB_CQ_NEXT_COMP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IB_CQ_NEXT_COMP@GOTPAGEOFF]
	ldr	w0, [x21, #24]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _IB_CQ_REPORT_MISSED_EVENTS@GOTPAGE
Lloh26:
	ldr	x9, [x9, _IB_CQ_REPORT_MISSED_EVENTS@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_ib_req_notify_cq
	tbz	x0, #63, LBB0_25
; %bb.24:
Lloh28:
	adrp	x1, l_.str.6@PAGE
Lloh29:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_ipoib_warn
LBB0_25:
	ldr	w8, [x21, #16]
	ldr	w9, [x27]
	sub	w9, w9, #1
	and	w1, w9, w8
	mov	x0, x21
	mov	x2, x23
	mov	x3, x22
	mov	x4, x26
	mov	x5, x25
	mov	x6, x24
	bl	_post_send
	mov	x22, x0
	bl	_unlikely
	cbz	x0, LBB0_28
; %bb.26:
	str	x22, [sp]
Lloh30:
	adrp	x1, l_.str.7@PAGE
Lloh31:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_ipoib_warn
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	mov	x0, x21
	mov	x1, x26
	bl	_ipoib_dma_unmap_tx
	mov	x0, x20
	bl	_dev_kfree_skb_any
	mov	x0, x19
	bl	_netif_queue_stopped
	cbz	x0, LBB0_15
; %bb.27:
	mov	x0, x19
	bl	_netif_wake_queue
	mov	w0, #0
	b	LBB0_15
LBB0_28:
	mov	x0, x19
	bl	_netif_trans_update
	ldr	w0, [x21, #16]
	add	w8, w0, #1
	str	w8, [x21, #16]
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"linear data too small\n"

	.comm	_IPOIB_ENCAP_LEN,8,3            ; @IPOIB_ENCAP_LEN
l_.str.1:                               ; @.str.1
	.asciz	"packet len %d (> %d) too long to send, dropping\n"

l_.str.2:                               ; @.str.2
	.asciz	"skb could not be linearized\n"

l_.str.3:                               ; @.str.3
	.asciz	"too many frags after skb linearize\n"

l_.str.4:                               ; @.str.4
	.asciz	"sending packet, length=%d address=%p dqpn=0x%06x\n"

	.comm	_ipoib_sendq_size,4,2           ; @ipoib_sendq_size
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_IB_SEND_IP_CSUM,4,2            ; @IB_SEND_IP_CSUM
l_.str.5:                               ; @.str.5
	.asciz	"TX ring full, stopping kernel net queue\n"

	.comm	_IB_CQ_NEXT_COMP,4,2            ; @IB_CQ_NEXT_COMP
	.comm	_IB_CQ_REPORT_MISSED_EVENTS,4,2 ; @IB_CQ_REPORT_MISSED_EVENTS
l_.str.6:                               ; @.str.6
	.asciz	"request notify on send CQ failed\n"

l_.str.7:                               ; @.str.7
	.asciz	"post_send failed, error %d\n"

.subsections_via_symbols
