	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msgdma_add_rx_desc             ## -- Begin function msgdma_add_rx_desc
	.p2align	4, 0x90
_msgdma_add_rx_desc:                    ## @msgdma_add_rx_desc
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MSGDMA_DESC_CTL_END_ON_EOP@GOTPCREL(%rip), %rax
	movq	_MSGDMA_DESC_CTL_END_ON_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	(%rax), %r12d
	movq	_MSGDMA_DESC_CTL_TR_COMP_IRQ@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_MSGDMA_DESC_CTL_EARLY_IRQ@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	%rdi, %r14
	movq	_MSGDMA_DESC_CTL_TR_ERR_IRQ@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movl	(%rsi), %ebx
	movq	_MSGDMA_DESC_CTL_GO@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movl	(%rdi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%rdi), %r13d
	movq	_read_addr_lo@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msgdma_descroffs
	xorl	%edi, %edi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_csrwr32
	movl	4(%r14), %r13d
	movq	_read_addr_hi@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msgdma_descroffs
	xorl	%edi, %edi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_csrwr32
	movl	%ebx, %edi
	callq	_lower_32_bits
	movl	%eax, %r13d
	movl	4(%r14), %r15d
	movq	_write_addr_lo@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msgdma_descroffs
	movl	%r13d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_csrwr32
	movl	%ebx, %edi
	callq	_upper_32_bits
	movl	%eax, %r15d
	movl	4(%r14), %ebx
	movq	_write_addr_hi@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msgdma_descroffs
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_csrwr32
	movl	4(%r14), %r15d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_msgdma_descroffs
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_csrwr32
	movl	4(%r14), %r15d
	movq	_burst_seq_num@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msgdma_descroffs
	xorl	%edi, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_csrwr32
	movl	4(%r14), %r15d
	movq	_stride@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msgdma_descroffs
	movl	$65537, %edi                    ## imm = 0x10001
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_csrwr32
	movl	4(%r14), %r14d
	movl	%r12d, %edi
	callq	_msgdma_descroffs
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_csrwr32                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSGDMA_DESC_CTL_END_ON_EOP,4,2 ## @MSGDMA_DESC_CTL_END_ON_EOP
	.comm	_MSGDMA_DESC_CTL_END_ON_LEN,4,2 ## @MSGDMA_DESC_CTL_END_ON_LEN
	.comm	_MSGDMA_DESC_CTL_TR_COMP_IRQ,4,2 ## @MSGDMA_DESC_CTL_TR_COMP_IRQ
	.comm	_MSGDMA_DESC_CTL_EARLY_IRQ,4,2  ## @MSGDMA_DESC_CTL_EARLY_IRQ
	.comm	_MSGDMA_DESC_CTL_TR_ERR_IRQ,4,2 ## @MSGDMA_DESC_CTL_TR_ERR_IRQ
	.comm	_MSGDMA_DESC_CTL_GO,4,2         ## @MSGDMA_DESC_CTL_GO
	.comm	_read_addr_lo,4,2               ## @read_addr_lo
	.comm	_read_addr_hi,4,2               ## @read_addr_hi
	.comm	_write_addr_lo,4,2              ## @write_addr_lo
	.comm	_write_addr_hi,4,2              ## @write_addr_hi
	.comm	_burst_seq_num,4,2              ## @burst_seq_num
	.comm	_stride,4,2                     ## @stride
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msgdma_add_rx_desc             ; -- Begin function msgdma_add_rx_desc
	.p2align	2
_msgdma_add_rx_desc:                    ; @msgdma_add_rx_desc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	w22, [x1]
Lloh0:
	adrp	x8, _MSGDMA_DESC_CTL_END_ON_EOP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSGDMA_DESC_CTL_END_ON_EOP@GOTPAGEOFF]
Lloh2:
	adrp	x9, _MSGDMA_DESC_CTL_END_ON_LEN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MSGDMA_DESC_CTL_END_ON_LEN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _MSGDMA_DESC_CTL_TR_COMP_IRQ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MSGDMA_DESC_CTL_TR_COMP_IRQ@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _MSGDMA_DESC_CTL_EARLY_IRQ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MSGDMA_DESC_CTL_EARLY_IRQ@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _MSGDMA_DESC_CTL_TR_ERR_IRQ@GOTPAGE
Lloh13:
	ldr	x10, [x10, _MSGDMA_DESC_CTL_TR_ERR_IRQ@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh14:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _MSGDMA_DESC_CTL_GO@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MSGDMA_DESC_CTL_GO@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w20, w8, w9
	ldp	w21, w23, [x0]
Lloh18:
	adrp	x8, _read_addr_lo@GOTPAGE
Lloh19:
	ldr	x8, [x8, _read_addr_lo@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_msgdma_descroffs
	mov	x2, x0
	mov	w0, #0
	mov	x1, x23
	bl	_csrwr32
	ldr	w23, [x19, #4]
Lloh21:
	adrp	x8, _read_addr_hi@GOTPAGE
Lloh22:
	ldr	x8, [x8, _read_addr_hi@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_msgdma_descroffs
	mov	x2, x0
	mov	w0, #0
	mov	x1, x23
	bl	_csrwr32
	mov	x0, x22
	bl	_lower_32_bits
	mov	x23, x0
	ldr	w24, [x19, #4]
Lloh24:
	adrp	x8, _write_addr_lo@GOTPAGE
Lloh25:
	ldr	x8, [x8, _write_addr_lo@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_msgdma_descroffs
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_csrwr32
	mov	x0, x22
	bl	_upper_32_bits
	mov	x22, x0
	ldr	w23, [x19, #4]
Lloh27:
	adrp	x8, _write_addr_hi@GOTPAGE
Lloh28:
	ldr	x8, [x8, _write_addr_hi@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_msgdma_descroffs
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_csrwr32
	ldr	w22, [x19, #4]
	mov	x0, x21
	bl	_msgdma_descroffs
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_csrwr32
	ldr	w21, [x19, #4]
Lloh30:
	adrp	x8, _burst_seq_num@GOTPAGE
Lloh31:
	ldr	x8, [x8, _burst_seq_num@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_msgdma_descroffs
	mov	x2, x0
	mov	w0, #0
	mov	x1, x21
	bl	_csrwr32
	ldr	w21, [x19, #4]
Lloh33:
	adrp	x8, _stride@GOTPAGE
Lloh34:
	ldr	x8, [x8, _stride@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	bl	_msgdma_descroffs
	mov	x2, x0
	mov	w0, #65537
	mov	x1, x21
	bl	_csrwr32
	ldr	w19, [x19, #4]
	mov	x0, x20
	bl	_msgdma_descroffs
	mov	x2, x0
	mov	x0, x20
	mov	x1, 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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_csrwr32
	.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	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MSGDMA_DESC_CTL_END_ON_EOP,4,2 ; @MSGDMA_DESC_CTL_END_ON_EOP
	.comm	_MSGDMA_DESC_CTL_END_ON_LEN,4,2 ; @MSGDMA_DESC_CTL_END_ON_LEN
	.comm	_MSGDMA_DESC_CTL_TR_COMP_IRQ,4,2 ; @MSGDMA_DESC_CTL_TR_COMP_IRQ
	.comm	_MSGDMA_DESC_CTL_EARLY_IRQ,4,2  ; @MSGDMA_DESC_CTL_EARLY_IRQ
	.comm	_MSGDMA_DESC_CTL_TR_ERR_IRQ,4,2 ; @MSGDMA_DESC_CTL_TR_ERR_IRQ
	.comm	_MSGDMA_DESC_CTL_GO,4,2         ; @MSGDMA_DESC_CTL_GO
	.comm	_read_addr_lo,4,2               ; @read_addr_lo
	.comm	_read_addr_hi,4,2               ; @read_addr_hi
	.comm	_write_addr_lo,4,2              ; @write_addr_lo
	.comm	_write_addr_hi,4,2              ; @write_addr_hi
	.comm	_burst_seq_num,4,2              ; @burst_seq_num
	.comm	_stride,4,2                     ; @stride
.subsections_via_symbols
