	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdp_poll_tx
_sdp_poll_tx:                           ## @sdp_poll_tx
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	callq	_tx_ring_posted
	movq	%rax, %r15
	movq	8(%rbx), %rdi
	movl	16(%rbx), %esi
	callq	_ring_head
	movl	%eax, %r12d
	movq	8(%rbx), %rdi
	movl	16(%rbx), %esi
	callq	_ring_tail
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r15, %rcx
	movl	%r12d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_sdp_prf1
	movq	(%rbx), %rax
	movq	_TCPS_CLOSED@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sdp_warn                       ## TAILCALL
LBB0_1:
	movq	%rbx, %rdi
	callq	_sdp_process_tx_cq
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	_tx_poll_miss@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_tx_poll_hit@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edi
	callq	_SDPSTATS_COUNTER_INC
	movq	%rbx, %rdi
	callq	_tx_ring_posted
	movq	%rax, %r14
	movq	24(%rbx), %rdi
	leaq	L_.str.2(%rip), %rdx
	xorl	%esi, %esi
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_sdp_prf1
	testq	%r14, %r14
	je	LBB0_5
## %bb.7:
	leaq	16(%rbx), %rdi
	movq	_SDP_TX_POLL_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_sdp_poll_tx_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rcx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_callout_reset                  ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TX timeout: inflight=%d, head=%d tail=%d"

	.comm	_TCPS_CLOSED,8,3                ## @TCPS_CLOSED
L_.str.1:                               ## @.str.1
	.asciz	"Socket is closed\n"

	.comm	_tx_poll_miss,4,2               ## @tx_poll_miss
	.comm	_tx_poll_hit,4,2                ## @tx_poll_hit
L_.str.2:                               ## @.str.2
	.asciz	"finished tx processing. inflight = %d"

	.comm	_SDP_TX_POLL_TIMEOUT,4,2        ## @SDP_TX_POLL_TIMEOUT
	.comm	_sdp_poll_tx_timeout,4,2        ## @sdp_poll_tx_timeout
	.no_dead_strip	_sdp_poll_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdp_poll_tx
_sdp_poll_tx:                           ; @sdp_poll_tx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	ldr	x21, [x0, #24]
	bl	_tx_ring_posted
	mov	x22, x0
	ldr	x0, [x19, #8]
	mov	x20, x19
	ldr	x1, [x20, #16]!
	bl	_ring_head
	mov	x23, x0
	ldr	x0, [x19, #8]
	ldr	x1, [x20]
	bl	_ring_tail
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp, #8]
	str	x22, [sp]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, #0
	bl	_sdp_prf1
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _TCPS_CLOSED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TCPS_CLOSED@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	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
	add	sp, sp, #96
	b	_sdp_warn
LBB0_2:
	mov	x0, x19
	bl	_sdp_process_tx_cq
Lloh7:
	adrp	x8, _tx_poll_miss@GOTPAGE
Lloh8:
	ldr	x8, [x8, _tx_poll_miss@GOTPAGEOFF]
Lloh9:
	adrp	x9, _tx_poll_hit@GOTPAGE
Lloh10:
	ldr	x9, [x9, _tx_poll_hit@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
	bl	_SDPSTATS_COUNTER_INC
	mov	x0, x19
	bl	_tx_ring_posted
	mov	x21, x0
	ldr	x0, [x19, #24]
	str	x21, [sp]
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x1, #0
	bl	_sdp_prf1
	cbz	x21, LBB0_4
; %bb.3:
Lloh13:
	adrp	x8, _SDP_TX_POLL_TIMEOUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SDP_TX_POLL_TIMEOUT@GOTPAGEOFF]
Lloh15:
	adrp	x9, _sdp_poll_tx_timeout@GOTPAGE
Lloh16:
	ldr	x9, [x9, _sdp_poll_tx_timeout@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	ldr	w2, [x9]
	mov	x0, x20
	mov	x3, x19
	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
	add	sp, sp, #96
	b	_callout_reset
LBB0_4:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TX timeout: inflight=%d, head=%d tail=%d"

	.comm	_TCPS_CLOSED,8,3                ; @TCPS_CLOSED
l_.str.1:                               ; @.str.1
	.asciz	"Socket is closed\n"

	.comm	_tx_poll_miss,4,2               ; @tx_poll_miss
	.comm	_tx_poll_hit,4,2                ; @tx_poll_hit
l_.str.2:                               ; @.str.2
	.asciz	"finished tx processing. inflight = %d"

	.comm	_SDP_TX_POLL_TIMEOUT,4,2        ; @SDP_TX_POLL_TIMEOUT
	.comm	_sdp_poll_tx_timeout,4,2        ; @sdp_poll_tx_timeout
	.no_dead_strip	_sdp_poll_tx
.subsections_via_symbols
