	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cm_send_handler
_cm_send_handler:                       ## @cm_send_handler
	.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	%rsi, %r14
	movq	8(%rsi), %r15
	movq	(%rdi), %r12
	movq	16(%r15), %rax
	movl	(%rax), %edi
	callq	_be16_to_cpu
	movq	%rax, %rbx
	movq	_CM_ATTR_ID_OFFSET@GOTPCREL(%rip), %rax
	movq	8(%r15), %rcx
	subq	(%rax), %rbx
	cmpq	$0, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	_CM_REJ_COUNTER@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_2
## %bb.3:
	movl	$1, (%r15)
	movl	$2, %edi
	jmp	LBB0_4
LBB0_2:
	movl	(%r15), %edi
	incl	%edi
LBB0_4:
	movq	(%r12), %rax
	movq	_CM_XMIT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$2, %rbx
	movq	(%rax,%rcx,8), %rsi
	addq	%rbx, %rsi
	callq	_atomic_long_add
	movl	(%r15), %edi
	testl	%edi, %edi
	je	LBB0_6
## %bb.5:
	movq	(%r12), %rax
	movq	_CM_XMIT_RETRIES@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rax,%rcx,8), %rbx
	movq	%rbx, %rsi
	callq	_atomic_long_add
LBB0_6:
	movl	(%r14), %esi
	movl	%esi, %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	je	LBB0_9
## %bb.7:
	movq	8(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.8:
	cmpq	$0, 8(%rax)
	je	LBB0_9
## %bb.10:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cm_process_send_error          ## TAILCALL
LBB0_9:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cm_free_msg                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CM_ATTR_ID_OFFSET,8,3          ## @CM_ATTR_ID_OFFSET
	.comm	_CM_REJ_COUNTER,8,3             ## @CM_REJ_COUNTER
	.comm	_CM_XMIT,8,3                    ## @CM_XMIT
	.comm	_CM_XMIT_RETRIES,8,3            ## @CM_XMIT_RETRIES
	.no_dead_strip	_cm_send_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cm_send_handler
_cm_send_handler:                       ; @cm_send_handler
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	ldr	x19, [x1, #8]
	ldr	x21, [x0]
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_be16_to_cpu
Lloh0:
	adrp	x8, _CM_ATTR_ID_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CM_ATTR_ID_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	x22, x0, x8
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _CM_REJ_COUNTER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CM_REJ_COUNTER@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x22, x9, #4, eq
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x19]
	add	w0, w8, #1
	b	LBB0_3
LBB0_2:
	mov	w8, #1
	str	w8, [x19]
	mov	w0, #2
LBB0_3:
	ldr	x8, [x21]
Lloh6:
	adrp	x9, _CM_XMIT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CM_XMIT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	add	x1, x8, x22, lsl #2
	bl	_atomic_long_add
	ldr	w0, [x19]
	cbz	w0, LBB0_5
; %bb.4:
	ldr	x8, [x21]
Lloh9:
	adrp	x9, _CM_XMIT_RETRIES@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CM_XMIT_RETRIES@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	add	x1, x8, x22, lsl #2
	bl	_atomic_long_add
LBB0_5:
	ldr	w1, [x20]
	and	w8, w1, #0xfffffffe
	cmp	w8, #128
	b.eq	LBB0_9
; %bb.6:
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
	cbz	x9, LBB0_9
; %bb.7:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_cm_process_send_error
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_cm_free_msg
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CM_ATTR_ID_OFFSET,8,3          ; @CM_ATTR_ID_OFFSET
	.comm	_CM_REJ_COUNTER,8,3             ; @CM_REJ_COUNTER
	.comm	_CM_XMIT,8,3                    ; @CM_XMIT
	.comm	_CM_XMIT_RETRIES,8,3            ; @CM_XMIT_RETRIES
	.no_dead_strip	_cm_send_handler
.subsections_via_symbols
