	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_rsm_rule
_add_rsm_rule:                          ## @add_rsm_rule
	.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	%rdx, %r12
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r14
	movq	_RCV_RSM_CFG@GOTPCREL(%rip), %rax
	leal	(,%rsi,8), %ecx
	movslq	%ecx, %r15
	movq	(%rax), %rax
	addq	%r15, %rax
	movq	88(%rdx), %rdi
	movq	_RCV_RSM_CFG_OFFSET_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rdi
	movq	80(%rdx), %rdx
	btsq	%rsi, %rdi
	movq	_RCV_RSM_CFG_PACKET_TYPE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rdx
	orq	%rdi, %rdx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_write_csr
	movq	72(%r12), %rsi
	movq	_RCV_RSM_SELECT_FIELD1_OFFSET_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %rsi
	movq	64(%r12), %rax
	movq	_RCV_RSM_SELECT_FIELD2_OFFSET_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rax
	movq	56(%r12), %rdx
	movq	_RCV_RSM_SELECT_INDEX1_OFFSET_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rdx
	movq	48(%r12), %rdi
	movq	_RCV_RSM_SELECT_INDEX1_WIDTH_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rdi
	movq	_RCV_RSM_SELECT@GOTPCREL(%rip), %r8
	orq	%rsi, %rax
	movq	_RCV_RSM_SELECT_INDEX2_OFFSET_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	40(%r12), %rbx
	shlq	%cl, %rbx
	movq	(%r8), %rsi
	orq	%rdx, %rdi
	movq	_RCV_RSM_SELECT_INDEX2_WIDTH_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	32(%r12), %rdx
	shlq	%cl, %rdx
	addq	%r15, %rsi
	orq	%rax, %rdi
	orq	%rbx, %rdx
	orq	%rdi, %rdx
	movq	%r14, %rdi
	callq	_write_csr
	movq	_RCV_RSM_MATCH@GOTPCREL(%rip), %rax
	movq	24(%r12), %rsi
	movq	_RCV_RSM_MATCH_MASK1_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rsi
	addq	(%rax), %r15
	movq	16(%r12), %rdi
	movq	_RCV_RSM_MATCH_VALUE1_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %rdi
	movq	_RCV_RSM_MATCH_MASK2_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	_RCV_RSM_MATCH_VALUE2_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	8(%r12), %rbx
	shlq	%cl, %rbx
	movq	(%r12), %rdx
	movl	%eax, %ecx
	shlq	%cl, %rdx
	orq	%rsi, %rdi
	orq	%rbx, %rdx
	orq	%rdi, %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_csr                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RCV_RSM_CFG,8,3                ## @RCV_RSM_CFG
	.comm	_RCV_RSM_CFG_OFFSET_SHIFT,8,3   ## @RCV_RSM_CFG_OFFSET_SHIFT
	.comm	_RCV_RSM_CFG_PACKET_TYPE_SHIFT,8,3 ## @RCV_RSM_CFG_PACKET_TYPE_SHIFT
	.comm	_RCV_RSM_SELECT,8,3             ## @RCV_RSM_SELECT
	.comm	_RCV_RSM_SELECT_FIELD1_OFFSET_SHIFT,8,3 ## @RCV_RSM_SELECT_FIELD1_OFFSET_SHIFT
	.comm	_RCV_RSM_SELECT_FIELD2_OFFSET_SHIFT,8,3 ## @RCV_RSM_SELECT_FIELD2_OFFSET_SHIFT
	.comm	_RCV_RSM_SELECT_INDEX1_OFFSET_SHIFT,8,3 ## @RCV_RSM_SELECT_INDEX1_OFFSET_SHIFT
	.comm	_RCV_RSM_SELECT_INDEX1_WIDTH_SHIFT,8,3 ## @RCV_RSM_SELECT_INDEX1_WIDTH_SHIFT
	.comm	_RCV_RSM_SELECT_INDEX2_OFFSET_SHIFT,8,3 ## @RCV_RSM_SELECT_INDEX2_OFFSET_SHIFT
	.comm	_RCV_RSM_SELECT_INDEX2_WIDTH_SHIFT,8,3 ## @RCV_RSM_SELECT_INDEX2_WIDTH_SHIFT
	.comm	_RCV_RSM_MATCH,8,3              ## @RCV_RSM_MATCH
	.comm	_RCV_RSM_MATCH_MASK1_SHIFT,8,3  ## @RCV_RSM_MATCH_MASK1_SHIFT
	.comm	_RCV_RSM_MATCH_VALUE1_SHIFT,8,3 ## @RCV_RSM_MATCH_VALUE1_SHIFT
	.comm	_RCV_RSM_MATCH_MASK2_SHIFT,8,3  ## @RCV_RSM_MATCH_MASK2_SHIFT
	.comm	_RCV_RSM_MATCH_VALUE2_SHIFT,8,3 ## @RCV_RSM_MATCH_VALUE2_SHIFT
	.no_dead_strip	_add_rsm_rule
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_rsm_rule
_add_rsm_rule:                          ; @add_rsm_rule
	.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, x2
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
Lloh0:
	adrp	x8, _RCV_RSM_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RCV_RSM_CFG@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _RCV_RSM_CFG_OFFSET_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RCV_RSM_CFG_OFFSET_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldp	x11, x10, [x2, #80]
	lsl	x9, x10, x9
	mov	w10, #1
	lsl	x10, x10, x1
	lsl	w12, w1, #3
	sxtw	x21, w12
	add	x1, x8, x21
	orr	x8, x9, x10
Lloh6:
	adrp	x9, _RCV_RSM_CFG_PACKET_TYPE_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RCV_RSM_CFG_PACKET_TYPE_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	lsl	x9, x11, x9
	orr	x2, x8, x9
	bl	_write_csr
Lloh9:
	adrp	x8, _RCV_RSM_SELECT_FIELD1_OFFSET_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RCV_RSM_SELECT_FIELD1_OFFSET_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldp	x10, x9, [x20, #64]
	lsl	x8, x9, x8
Lloh12:
	adrp	x9, _RCV_RSM_SELECT_FIELD2_OFFSET_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RCV_RSM_SELECT_FIELD2_OFFSET_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	lsl	x9, x10, x9
	orr	x8, x9, x8
Lloh15:
	adrp	x9, _RCV_RSM_SELECT_INDEX1_OFFSET_SHIFT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RCV_RSM_SELECT_INDEX1_OFFSET_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	ldp	x11, x10, [x20, #48]
	lsl	x9, x10, x9
	orr	x8, x8, x9
Lloh18:
	adrp	x9, _RCV_RSM_SELECT_INDEX1_WIDTH_SHIFT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _RCV_RSM_SELECT_INDEX1_WIDTH_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	lsl	x9, x11, x9
	orr	x8, x8, x9
Lloh21:
	adrp	x9, _RCV_RSM_SELECT_INDEX2_OFFSET_SHIFT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _RCV_RSM_SELECT_INDEX2_OFFSET_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	ldp	x11, x10, [x20, #32]
	lsl	x9, x10, x9
Lloh24:
	adrp	x10, _RCV_RSM_SELECT@GOTPAGE
Lloh25:
	ldr	x10, [x10, _RCV_RSM_SELECT@GOTPAGEOFF]
Lloh26:
	ldr	x10, [x10]
	add	x1, x10, x21
	orr	x8, x8, x9
Lloh27:
	adrp	x9, _RCV_RSM_SELECT_INDEX2_WIDTH_SHIFT@GOTPAGE
Lloh28:
	ldr	x9, [x9, _RCV_RSM_SELECT_INDEX2_WIDTH_SHIFT@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	lsl	x9, x11, x9
	orr	x2, x8, x9
	mov	x0, x19
	bl	_write_csr
Lloh30:
	adrp	x8, _RCV_RSM_MATCH@GOTPAGE
Lloh31:
	ldr	x8, [x8, _RCV_RSM_MATCH@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	add	x1, x8, x21
Lloh33:
	adrp	x8, _RCV_RSM_MATCH_MASK1_SHIFT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RCV_RSM_MATCH_MASK1_SHIFT@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	ldp	x10, x9, [x20, #16]
	lsl	x8, x9, x8
Lloh36:
	adrp	x9, _RCV_RSM_MATCH_VALUE1_SHIFT@GOTPAGE
Lloh37:
	ldr	x9, [x9, _RCV_RSM_MATCH_VALUE1_SHIFT@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	lsl	x9, x10, x9
	orr	x8, x9, x8
Lloh39:
	adrp	x9, _RCV_RSM_MATCH_MASK2_SHIFT@GOTPAGE
Lloh40:
	ldr	x9, [x9, _RCV_RSM_MATCH_MASK2_SHIFT@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	ldp	x11, x10, [x20]
	lsl	x9, x10, x9
	orr	x8, x8, x9
Lloh42:
	adrp	x9, _RCV_RSM_MATCH_VALUE2_SHIFT@GOTPAGE
Lloh43:
	ldr	x9, [x9, _RCV_RSM_MATCH_VALUE2_SHIFT@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	lsl	x9, x11, x9
	orr	x2, x8, x9
	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	_write_csr
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RCV_RSM_CFG,8,3                ; @RCV_RSM_CFG
	.comm	_RCV_RSM_CFG_OFFSET_SHIFT,8,3   ; @RCV_RSM_CFG_OFFSET_SHIFT
	.comm	_RCV_RSM_CFG_PACKET_TYPE_SHIFT,8,3 ; @RCV_RSM_CFG_PACKET_TYPE_SHIFT
	.comm	_RCV_RSM_SELECT,8,3             ; @RCV_RSM_SELECT
	.comm	_RCV_RSM_SELECT_FIELD1_OFFSET_SHIFT,8,3 ; @RCV_RSM_SELECT_FIELD1_OFFSET_SHIFT
	.comm	_RCV_RSM_SELECT_FIELD2_OFFSET_SHIFT,8,3 ; @RCV_RSM_SELECT_FIELD2_OFFSET_SHIFT
	.comm	_RCV_RSM_SELECT_INDEX1_OFFSET_SHIFT,8,3 ; @RCV_RSM_SELECT_INDEX1_OFFSET_SHIFT
	.comm	_RCV_RSM_SELECT_INDEX1_WIDTH_SHIFT,8,3 ; @RCV_RSM_SELECT_INDEX1_WIDTH_SHIFT
	.comm	_RCV_RSM_SELECT_INDEX2_OFFSET_SHIFT,8,3 ; @RCV_RSM_SELECT_INDEX2_OFFSET_SHIFT
	.comm	_RCV_RSM_SELECT_INDEX2_WIDTH_SHIFT,8,3 ; @RCV_RSM_SELECT_INDEX2_WIDTH_SHIFT
	.comm	_RCV_RSM_MATCH,8,3              ; @RCV_RSM_MATCH
	.comm	_RCV_RSM_MATCH_MASK1_SHIFT,8,3  ; @RCV_RSM_MATCH_MASK1_SHIFT
	.comm	_RCV_RSM_MATCH_VALUE1_SHIFT,8,3 ; @RCV_RSM_MATCH_VALUE1_SHIFT
	.comm	_RCV_RSM_MATCH_MASK2_SHIFT,8,3  ; @RCV_RSM_MATCH_MASK2_SHIFT
	.comm	_RCV_RSM_MATCH_VALUE2_SHIFT,8,3 ; @RCV_RSM_MATCH_VALUE2_SHIFT
	.no_dead_strip	_add_rsm_rule
.subsections_via_symbols
