	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdp_handle_sendsm              ## -- Begin function sdp_handle_sendsm
	.p2align	4, 0x90
_sdp_handle_sendsm:                     ## @sdp_handle_sendsm
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	callq	_spin_lock_irqsave
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	4(%rax), %ecx
	cmpl	%r15d, %ecx
	jle	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_sdp_dbg_data
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_sdp_prf1
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_sdp_dbg_data
	movq	_TX_SA_SENDSM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rbx), %rcx
	orl	%eax, (%rcx)
	leaq	4(%rbx), %rdi
	callq	_cancel_delayed_work
	movl	(%r14), %edi
	callq	_wake_up
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_sdp_dbg_data
LBB0_5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SendSM for cancelled/finished SrcAvail"

L_.str.1:                               ## @.str.1
	.asciz	"SendSM arrived for old SrcAvail. SendSM mseq_ack: 0x%x, SrcAvail mseq: 0x%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"Got SendSM - aborting SrcAvail\n"

	.comm	_TX_SA_SENDSM,4,2               ## @TX_SA_SENDSM
L_.str.3:                               ## @.str.3
	.asciz	"woke up sleepers\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdp_handle_sendsm              ; -- Begin function sdp_handle_sendsm
	.p2align	2
_sdp_handle_sendsm:                     ; @sdp_handle_sendsm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	x20, [x0, #16]
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w8, [x8, #4]
	cmp	w8, w21
	b.le	LBB0_4
; %bb.2:
	stp	x21, x8, [sp]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, #0
	bl	_sdp_prf1
	b	LBB0_6
LBB0_4:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_sdp_dbg_data
Lloh6:
	adrp	x8, _TX_SA_SENDSM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TX_SA_SENDSM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	add	x0, x19, #4
	bl	_cancel_delayed_work
	ldr	w0, [x20]
	bl	_wake_up
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_5:
	mov	x0, x20
	bl	_sdp_dbg_data
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_spin_unlock_irqrestore
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SendSM for cancelled/finished SrcAvail"

l_.str.1:                               ; @.str.1
	.asciz	"SendSM arrived for old SrcAvail. SendSM mseq_ack: 0x%x, SrcAvail mseq: 0x%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"Got SendSM - aborting SrcAvail\n"

	.comm	_TX_SA_SENDSM,4,2               ; @TX_SA_SENDSM
l_.str.3:                               ; @.str.3
	.asciz	"woke up sleepers\n"

.subsections_via_symbols
