	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msgdma_rx_status               ## -- Begin function msgdma_rx_status
	.p2align	4, 0x90
_msgdma_rx_status:                      ## @msgdma_rx_status
	.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
	movq	%rdi, %r14
	movl	4(%rdi), %ebx
	movq	_resp_fill_level@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msgdma_csroffs
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_csrrd32
	testw	%ax, %ax
	je	LBB0_1
## %bb.2:
	movl	(%r14), %ebx
	movq	_bytes_transferred@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msgdma_respoffs
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_csrrd32
	movl	%eax, %r15d
	movl	(%r14), %ebx
	movq	_status@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msgdma_respoffs
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_csrrd32
	movl	%eax, %ecx
	shll	$16, %ecx
	movzwl	%r15w, %eax
	orl	%ecx, %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_resp_fill_level,4,2            ## @resp_fill_level
	.comm	_bytes_transferred,4,2          ## @bytes_transferred
	.comm	_status,4,2                     ## @status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msgdma_rx_status               ; -- Begin function msgdma_rx_status
	.p2align	2
_msgdma_rx_status:                      ; @msgdma_rx_status
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w20, [x0, #4]
Lloh0:
	adrp	x8, _resp_fill_level@GOTPAGE
Lloh1:
	ldr	x8, [x8, _resp_fill_level@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_msgdma_csroffs
	mov	x1, x0
	mov	x0, x20
	bl	_csrrd32
	tst	w0, #0xffff
	b.eq	LBB0_2
; %bb.1:
	ldr	w20, [x19]
Lloh3:
	adrp	x8, _bytes_transferred@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bytes_transferred@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_msgdma_respoffs
	mov	x1, x0
	mov	x0, x20
	bl	_csrrd32
	mov	x20, x0
	ldr	w19, [x19]
Lloh6:
	adrp	x8, _status@GOTPAGE
Lloh7:
	ldr	x8, [x8, _status@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_msgdma_respoffs
	mov	x1, x0
	mov	x0, x19
	bl	_csrrd32
	bfi	w20, w0, #16, #16
	b	LBB0_3
LBB0_2:
	mov	w20, #0
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_resp_fill_level,4,2            ; @resp_fill_level
	.comm	_bytes_transferred,4,2          ; @bytes_transferred
	.comm	_status,4,2                     ; @status
.subsections_via_symbols
