	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isr_rxdata
_isr_rxdata:                            ## @isr_rxdata
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %r14d
	movl	4(%rdi), %ebx
	movq	_SSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rd_reg16
	movq	_IRQ_RXDATA@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_1
## %bb.2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %r13d
	movq	_SSR@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_RDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_rd_reg16
	movl	%eax, %ebx
	movzwl	%bx, %edi
	callq	_DBGISR
	movq	24(%r15), %rax
	movq	(%rax,%r13,8), %rdi
	callq	_desc_complete
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%r15, %rdi
	callq	_rx_stop
	movl	$1, 8(%r15)
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_rd_reg16
	testl	%eax, (%r12)
	jne	LBB0_4
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r15), %rax
	movq	(%rax,%r13,8), %rax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leal	1(%rdx), %r14d
	movl	%edx, %ecx
	movb	%bl, (%rax,%rcx)
	movq	32(%r15), %rax
	movq	_MGSL_MODE_ASYNC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r15), %rax
	movq	(%rax,%r13,8), %rax
	addl	$2, %edx
	movl	%r14d, %ecx
	movb	%bh, (%rax,%rcx)
	movl	%edx, %r14d
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	12(%r15), %r14d
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_BIT10@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	testl	%eax, %ebx
	je	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r15), %rax
	movq	(%rax,%r13,8), %rdi
	movl	%r14d, %esi
	callq	_set_desc_count
	movq	24(%r15), %rax
	movzbl	%bh, %ecx
	movq	_BIT15@GOTPCREL(%rip), %rdx
	orw	(%rdx), %cx
	movq	(%rax,%r13,8), %rdi
	movzwl	%cx, %esi
	callq	_set_desc_status
	movl	$0, (%r15)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	incl	%ebx
	xorl	%r14d, %r14d
	cmpl	16(%r15), %ebx
	cmovel	%r14d, %ebx
	movq	_BH_RECEIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%r15)
	jmp	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_SSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_rd_reg16
	movl	%r14d, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	testl	%eax, (%r12)
	jne	LBB0_3
	jmp	LBB0_14
LBB0_6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r14d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_14
LBB0_1:
                                        ## kill: def $r14d killed $r14d killed $r14
LBB0_14:
	movl	%ebx, 4(%r15)
	movl	%r14d, (%r15)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSR,4,2                        ## @SSR
	.comm	_IRQ_RXDATA,4,2                 ## @IRQ_RXDATA
	.comm	_RDR,4,2                        ## @RDR
	.comm	_MGSL_MODE_ASYNC,8,3            ## @MGSL_MODE_ASYNC
	.comm	_BIT10,2,1                      ## @BIT10
	.comm	_BIT15,2,1                      ## @BIT15
	.comm	_BH_RECEIVE,4,2                 ## @BH_RECEIVE
	.no_dead_strip	_isr_rxdata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isr_rxdata
_isr_rxdata:                            ; @isr_rxdata
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldp	w28, w22, [x0]
Lloh0:
	adrp	x23, _SSR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SSR@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_rd_reg16
Lloh2:
	adrp	x24, _IRQ_RXDATA@GOTPAGE
Lloh3:
	ldr	x24, [x24, _IRQ_RXDATA@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.1:
Lloh4:
	adrp	x25, _RDR@GOTPAGE
Lloh5:
	ldr	x25, [x25, _RDR@GOTPAGEOFF]
	mov	w27, #1
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	mov	w26, w22
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x25]
	mov	x0, x19
	bl	_rd_reg16
	mov	x21, x0
	and	w0, w0, #0xffff
	bl	_DBGISR
	ldr	x8, [x19, #24]
	ldr	x0, [x8, x26, lsl #3]
	bl	_desc_complete
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	mov	x0, x19
	bl	_rx_stop
	str	w27, [x19, #8]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_rd_reg16
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_3
	b	LBB0_11
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x26, lsl #3]
	add	w20, w28, #1
	strb	w21, [x8, w28, uxtw]
	ldr	x8, [x19, #32]
Lloh6:
	adrp	x9, _MGSL_MODE_ASYNC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MGSL_MODE_ASYNC@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	lsr	w8, w21, #8
	ldr	x9, [x19, #24]
	ldr	x9, [x9, x26, lsl #3]
	strb	w8, [x9, w20, uxtw]
	add	w20, w28, #2
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19, #12]
	cmp	w20, w8
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh9:
	adrp	x8, _BIT10@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BIT10@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w21, w8
	b.eq	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #24]
	lsl	x26, x26, #3
	ldr	x0, [x8, x26]
	mov	x1, x20
	bl	_set_desc_count
	ldr	x8, [x19, #24]
Lloh11:
	adrp	x9, _BIT15@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BIT15@GOTPAGEOFF]
	ldrh	w9, [x9]
	and	w10, w21, #0xff00
	orr	w1, w9, w10, lsr #8
	ldr	x0, [x8, x26]
	bl	_set_desc_status
	mov	w20, #0
	str	wzr, [x19]
	add	w8, w22, #1
	ldp	w9, w10, [x19, #16]
	cmp	w8, w9
	csinc	w22, wzr, w22, eq
Lloh13:
	adrp	x8, _BH_RECEIVE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BH_RECEIVE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	orr	w8, w10, w8
	str	w8, [x19, #20]
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	bl	_rd_reg16
	ldr	w8, [x24]
	mov	x28, x20
	tst	w8, w0
	b.ne	LBB0_2
	b	LBB0_12
LBB0_11:
	mov	x20, x28
LBB0_12:
	stp	w20, w22, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SSR,4,2                        ; @SSR
	.comm	_IRQ_RXDATA,4,2                 ; @IRQ_RXDATA
	.comm	_RDR,4,2                        ; @RDR
	.comm	_MGSL_MODE_ASYNC,8,3            ; @MGSL_MODE_ASYNC
	.comm	_BIT10,2,1                      ; @BIT10
	.comm	_BIT15,2,1                      ; @BIT15
	.comm	_BH_RECEIVE,4,2                 ; @BH_RECEIVE
	.no_dead_strip	_isr_rxdata
.subsections_via_symbols
