	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bfin_mac_interrupt
_bfin_mac_interrupt:                    ## @bfin_mac_interrupt
	.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	%rsi, %r14
	xorl	%ebx, %ebx
	movq	_current_rx_ptr@GOTPCREL(%rip), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, (%r15)
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_bfin_mac_rx
	decl	%ebx
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rax), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_4
LBB0_6:
	xorl	%eax, %eax
	callq	_bfin_read_DMA1_IRQ_STATUS
	movq	_DMA_DONE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_DMA_ERR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %edi
	callq	_bfin_write_DMA1_IRQ_STATUS
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current_rx_ptr,8,3             ## @current_rx_ptr
	.comm	_DMA_DONE,4,2                   ## @DMA_DONE
	.comm	_DMA_ERR,4,2                    ## @DMA_ERR
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_bfin_mac_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bfin_mac_interrupt
_bfin_mac_interrupt:                    ; @bfin_mac_interrupt
	.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	x19, x1
	mov	w20, #0
Lloh0:
	adrp	x21, _current_rx_ptr@GOTPAGE
Lloh1:
	ldr	x21, [x21, _current_rx_ptr@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	x8, [x21]
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_bfin_mac_rx
	sub	w20, w20, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w20, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_1
LBB0_6:
	bl	_bfin_read_DMA1_IRQ_STATUS
Lloh2:
	adrp	x8, _DMA_DONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMA_DONE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh5:
	adrp	x9, _DMA_ERR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DMA_ERR@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w0, w8, w9
	bl	_bfin_write_DMA1_IRQ_STATUS
Lloh8:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_current_rx_ptr,8,3             ; @current_rx_ptr
	.comm	_DMA_DONE,4,2                   ; @DMA_DONE
	.comm	_DMA_ERR,4,2                    ; @DMA_ERR
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_bfin_mac_interrupt
.subsections_via_symbols
