	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_sdp_sendmsg_zcopy
_do_sdp_sendmsg_zcopy:                  ## @do_sdp_sendmsg_zcopy
	.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
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_sdp_sk
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r13), %edx
	movl	4(%r13), %esi
	leaq	8(%r15), %rcx
	leaq	4(%r15), %r12
	movq	%r14, %rdi
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %r8
	callq	_sdp_alloc_fmr
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_sdp_warn
	movl	%ebx, %r15d
	jmp	LBB0_21
LBB0_2:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_tx_slots_free
	testq	%rax, %rax
	je	LBB0_3
LBB0_5:
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_sdp_post_srcavail
	testl	%eax, %eax
	movq	%r12, %rbx
	je	LBB0_7
## %bb.6:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_sdp_dbg
	movq	%r13, %r12
	jmp	LBB0_19
LBB0_3:
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_wait_for_sndbuf
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_sdp_warn
	movq	%r12, %rbx
	jmp	LBB0_20
LBB0_7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_sdp_wait_rdmardcompl
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_15
## %bb.8:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	_TX_SA_SENDSM@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_16
LBB0_15:
	leaq	L_.str.8(%rip), %rsi
LBB0_16:
	movq	%r14, %rdi
	callq	_sdp_dbg_data
LBB0_17:
	movq	%r13, %r12
LBB0_18:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	$0, 8(%r13)
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
LBB0_19:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_sdp_update_iov_used
LBB0_20:
	movq	%r14, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_sdp_free_fmr
LBB0_21:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_TX_SA_ERROR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.11:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_sdp_dbg_data
	movq	%r14, %rdi
	callq	_sdp_reset
	movq	_zcopy_tx_error@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SDPSTATS_COUNTER_INC
	jmp	LBB0_17
LBB0_12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 24(%rax)
	movq	%r13, %r12
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	_sdp_post_srcavail_cancel
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	%rax, %rax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%rax, (%r13)
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_sdp_dbg_data
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_sdp_wait_rdmardcompl
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_sdp_dbg_data
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$16, %rdi
	callq	_cancel_delayed_work
	jmp	LBB0_18
LBB0_14:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_sdp_dbg_data
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error allocating fmr: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Couldn't get send buffer\n"

L_.str.2:                               ## @.str.2
	.asciz	"Error posting SrcAvail\n"

	.comm	_TX_SA_SENDSM,4,2               ## @TX_SA_SENDSM
L_.str.3:                               ## @.str.3
	.asciz	"Got SendSM. use SEND verb.\n"

	.comm	_TX_SA_ERROR,4,2                ## @TX_SA_ERROR
L_.str.4:                               ## @.str.4
	.asciz	"SrcAvail error completion\n"

	.comm	_zcopy_tx_error,4,2             ## @zcopy_tx_error
	.comm	_HZ,4,2                         ## @HZ
L_.str.5:                               ## @.str.5
	.asciz	"Waiting for SendSM\n"

L_.str.6:                               ## @.str.6
	.asciz	"finished waiting\n"

L_.str.7:                               ## @.str.7
	.asciz	"QP was destroyed while waiting\n"

L_.str.8:                               ## @.str.8
	.asciz	"got RdmaRdCompl\n"

	.no_dead_strip	_do_sdp_sendmsg_zcopy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_sdp_sendmsg_zcopy
_do_sdp_sendmsg_zcopy:                  ; @do_sdp_sendmsg_zcopy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x26, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	bl	_sdp_sk
	mov	x25, x0
	ldp	w2, w1, [x22]
	add	x20, x23, #8
	add	x21, x23, #4
	mov	x0, x19
	mov	x3, x20
	mov	x4, x21
	bl	_sdp_alloc_fmr
	cbz	w0, LBB0_2
; %bb.1:
	mov	x24, x0
	str	x24, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_sdp_warn
	b	LBB0_15
LBB0_2:
	mov	x0, x25
	bl	_tx_slots_free
	cbz	x0, LBB0_5
LBB0_3:
	mov	x0, x19
	mov	x1, x23
	bl	_sdp_post_srcavail
	cbz	w0, LBB0_7
; %bb.4:
	mov	x24, x0
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_sdp_dbg
	b	LBB0_13
LBB0_5:
	mov	x0, x19
	mov	x1, x26
	bl	_wait_for_sndbuf
	cbz	w0, LBB0_3
; %bb.6:
	mov	x24, x0
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_sdp_warn
	b	LBB0_14
LBB0_7:
	mov	x0, x25
	mov	x1, x26
	mov	w2, #0
	bl	_sdp_wait_rdmardcompl
	mov	x24, x0
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.8:
	ldr	w8, [x23]
Lloh6:
	adrp	x9, _TX_SA_SENDSM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TX_SA_SENDSM@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.9:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh11:
	adrp	x1, l_.str.8@PAGE
Lloh12:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_sdp_dbg_data
LBB0_12:
	mov	x0, x25
	bl	_spin_lock_irqsave
	str	xzr, [x25, #8]
	mov	x0, x25
	bl	_spin_unlock_irqrestore
LBB0_13:
	ldr	w2, [x23, #12]
	mov	x0, x19
	mov	x1, x22
	bl	_sdp_update_iov_used
LBB0_14:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_sdp_free_fmr
LBB0_15:
	mov	x0, x24
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_16:
Lloh13:
	adrp	x9, _TX_SA_ERROR@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TX_SA_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.17:
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_sdp_dbg_data
	mov	x0, x19
	bl	_sdp_reset
Lloh18:
	adrp	x8, _zcopy_tx_error@GOTPAGE
Lloh19:
	ldr	x8, [x8, _zcopy_tx_error@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_SDPSTATS_COUNTER_INC
	b	LBB0_12
LBB0_18:
	ldr	x8, [x25, #24]
	cbz	x8, LBB0_20
; %bb.19:
	mov	x0, x19
	bl	_sdp_post_srcavail_cancel
Lloh21:
	adrp	x8, _HZ@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh23:
	ldrsw	x8, [x8]
	lsl	x8, x8, #1
	str	x8, [x26]
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_sdp_dbg_data
	mov	x0, x25
	mov	x1, x26
	mov	w2, #1
	bl	_sdp_wait_rdmardcompl
Lloh26:
	adrp	x1, l_.str.6@PAGE
Lloh27:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_sdp_dbg_data
	add	x0, x25, #16
	bl	_cancel_delayed_work
	b	LBB0_12
LBB0_20:
Lloh28:
	adrp	x1, l_.str.7@PAGE
Lloh29:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error allocating fmr: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Couldn't get send buffer\n"

l_.str.2:                               ; @.str.2
	.asciz	"Error posting SrcAvail\n"

	.comm	_TX_SA_SENDSM,4,2               ; @TX_SA_SENDSM
l_.str.3:                               ; @.str.3
	.asciz	"Got SendSM. use SEND verb.\n"

	.comm	_TX_SA_ERROR,4,2                ; @TX_SA_ERROR
l_.str.4:                               ; @.str.4
	.asciz	"SrcAvail error completion\n"

	.comm	_zcopy_tx_error,4,2             ; @zcopy_tx_error
	.comm	_HZ,4,2                         ; @HZ
l_.str.5:                               ; @.str.5
	.asciz	"Waiting for SendSM\n"

l_.str.6:                               ; @.str.6
	.asciz	"finished waiting\n"

l_.str.7:                               ; @.str.7
	.asciz	"QP was destroyed while waiting\n"

l_.str.8:                               ; @.str.8
	.asciz	"got RdmaRdCompl\n"

	.no_dead_strip	_do_sdp_sendmsg_zcopy
.subsections_via_symbols
