	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at91_poll_rx
_at91_poll_rx:                          ## @at91_poll_rx
	.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
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_AT91_SR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_at91_read
	movl	%eax, %r15d
	movl	%eax, -44(%rbp)
	movq	(%r14), %rbx
	movq	%r14, %rdi
	callq	_get_mb_rx_low_last
	cmpq	%rax, %rbx
	jle	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	callq	_get_mb_rx_low_mask
	testl	%r15d, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_netdev_info
LBB0_3:
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	%r14, %rdi
	callq	_get_mb_tx_first
	movq	(%r14), %rdx
	leaq	-44(%rbp), %rdi
	movl	%eax, %esi
	callq	_find_next_bit
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_get_mb_tx_first
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	testl	%r15d, %r15d
	setg	%bl
	cmpl	%eax, %r12d
	jae	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%r15d, %r15d
	jle	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r15d, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_at91_read_msg
	movl	%r12d, %ebx
	movq	%r14, %rdi
	callq	_get_mb_rx_low_last
	movq	%r14, %rdi
	cmpq	%rbx, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	callq	_at91_activate_rx_low
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=2
	callq	_get_mb_rx_low_last
	cmpq	%rbx, %rax
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_at91_activate_rx_mb
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=2
	incl	-52(%rbp)                       ## 4-byte Folded Spill
	leal	-1(%r13), %r15d
	movq	_AT91_SR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_at91_read
	movl	%eax, -44(%rbp)
	movq	%r14, %rdi
	callq	_get_mb_tx_first
	movq	(%r14), %rdx
	incq	%rdx
	movq	%rdx, (%r14)
	leaq	-44(%rbp), %rdi
	movl	%eax, %esi
	callq	_find_next_bit
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_get_mb_tx_first
	cmpl	$2, %r13d
	setge	%bl
	cmpl	%eax, %r12d
	jae	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=2
	cmpl	$1, %r13d
	movl	%r15d, %r13d
	jg	LBB0_7
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movq	(%r14), %r13
	movq	%r14, %rdi
	callq	_get_mb_rx_low_last
	cmpq	%rax, %r13
	jle	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	callq	_get_mb_rx_last
	cmpl	%eax, %r12d
	jbe	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	callq	_get_mb_rx_first
	movq	%rax, (%r14)
	testb	%bl, %bl
	jne	LBB0_4
LBB0_16:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AT91_SR,4,2                    ## @AT91_SR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"order of incoming frames cannot be guaranteed\n"

	.no_dead_strip	_at91_poll_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at91_poll_rx
_at91_poll_rx:                          ; @at91_poll_rx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x22, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x24, _AT91_SR@GOTPAGE
Lloh1:
	ldr	x24, [x24, _AT91_SR@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_at91_read
	mov	x21, x0
	str	w0, [sp, #12]
	ldr	x23, [x20]
	mov	x0, x20
	bl	_get_mb_rx_low_last
	cmp	x23, x0
	b.le	LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_get_mb_rx_low_mask
	tst	w0, w21
	b.eq	LBB0_3
; %bb.2:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
LBB0_3:
	mov	w21, #0
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x0, x20
	bl	_get_mb_tx_first
	mov	x1, x0
	ldr	x2, [x20]
	add	x0, sp, #12
	bl	_find_next_bit
	mov	x23, x0
	mov	x0, x20
	bl	_get_mb_tx_first
	cmp	w22, #0
	cset	w26, gt
	cmp	w23, w0
	ccmp	w22, #1, #8, lo
	b.lt	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x22
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x23
	bl	_at91_read_msg
	mov	w22, w23
	mov	x0, x20
	bl	_get_mb_rx_low_last
	cmp	x0, x22
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x20
	bl	_at91_activate_rx_low
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x20
	bl	_get_mb_rx_low_last
	cmp	x0, x22
	b.ge	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x20
	mov	x1, x22
	bl	_at91_activate_rx_mb
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=2
	add	w21, w21, #1
	ldr	w1, [x24]
	mov	x0, x20
	bl	_at91_read
	str	w0, [sp, #12]
	mov	x0, x20
	bl	_get_mb_tx_first
	mov	x1, x0
	ldr	x8, [x20]
	add	x2, x8, #1
	str	x2, [x20]
	add	x0, sp, #12
	bl	_find_next_bit
	mov	x23, x0
	mov	x0, x20
	bl	_get_mb_tx_first
	subs	w22, w25, #1
	cset	w26, gt
	cmp	w23, w0
	b.hs	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=2
	cmp	w25, #1
	mov	x25, x22
	b.gt	LBB0_6
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x25, [x20]
	mov	x0, x20
	bl	_get_mb_rx_low_last
	cmp	x25, x0
	b.le	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_get_mb_rx_last
	cmp	w23, w0
	b.ls	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_get_mb_rx_first
	str	x0, [x20]
	tbnz	w26, #0, LBB0_4
LBB0_15:
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_AT91_SR,4,2                    ; @AT91_SR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"order of incoming frames cannot be guaranteed\n"

	.no_dead_strip	_at91_poll_rx
.subsections_via_symbols
