	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ql_tx_rx_clean
_ql_tx_rx_clean:                        ## @ql_tx_rx_clean
	.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, %r14d
	movq	%rdi, %rbx
	movq	32(%rdi), %rax
	movq	40(%rdi), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %edi
	callq	_le32_to_cpu
	xorl	%r12d, %r12d
	cmpq	(%rbx), %rax
	je	LBB0_16
## %bb.1:
	testl	%r14d, %r14d
	jle	LBB0_16
## %bb.2:
	movq	_NUM_RSP_Q_ENTRIES@GOTPCREL(%rip), %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %r13
	xorl	%eax, %eax
	callq	_rmb
	movq	8(%rbx), %rax
	movl	(%r13), %edx
	movq	_QL3032_DEVICE_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	andl	$127, %edx
	movl	%edx, (%r13)
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	leal	-128(%rdx), %eax
	cmpl	$5, %eax
	ja	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$3, %ecx
	btl	%eax, %ecx
	jb	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$20, %ecx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	btl	%eax, %ecx
	jae	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_ql_process_mac_rx_intr
	incl	%r12d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ql_process_mac_tx_intr
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	callq	_ql_process_macip_rx_intr
	incl	%r12d
	jmp	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rcx
	movq	8(%r13), %r8
	movq	16(%r13), %r9
	movq	24(%r13), %rax
	movq	%rax, (%rsp)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_netdev_err
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rax
	incq	%rax
	movq	%rax, (%rbx)
	cmpq	(%r15), %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	$0, (%rbx)
	movq	24(%rbx), %rax
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbx), %rax
	addq	$4, %rax
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, 16(%rbx)
	movq	32(%rbx), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	cmpq	(%rbx), %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r14d, %r12d
	jl	LBB0_3
LBB0_16:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QL3032_DEVICE_ID,8,3           ## @QL3032_DEVICE_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Hit default case, not handled!\n\tdropping the packet, opcode = %x\n0x%08lx 0x%08lx 0x%08lx 0x%08lx\n"

	.comm	_NUM_RSP_Q_ENTRIES,8,3          ## @NUM_RSP_Q_ENTRIES
	.no_dead_strip	_ql_tx_rx_clean
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ql_tx_rx_clean
_ql_tx_rx_clean:                        ; @ql_tx_rx_clean
	.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, x1
	mov	x20, x0
	ldp	x8, x21, [x0, #32]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	ldr	x8, [x20]
	cmp	x0, x8
	mov	w22, #0
	ccmp	w19, #1, #8, ne
	b.ge	LBB0_2
LBB0_1:
	mov	x0, x22
	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
LBB0_2:
Lloh0:
	adrp	x25, _QL3032_DEVICE_ID@GOTPAGE
Lloh1:
	ldr	x25, [x25, _QL3032_DEVICE_ID@GOTPAGEOFF]
Lloh2:
	adrp	x26, _NUM_RSP_Q_ENTRIES@GOTPAGE
Lloh3:
	ldr	x26, [x26, _NUM_RSP_Q_ENTRIES@GOTPAGEOFF]
	mov	w27, #1
	mov	w28, #20
Lloh4:
	adrp	x23, l_.str@PAGE
Lloh5:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #16]
	add	x8, x8, #4
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	x8, [x20, #16]
	ldr	x8, [x20, #32]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	ldr	x8, [x20]
	cmp	x0, x8
	ccmp	w22, w19, #0, ne
	b.ge	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x20, #16]
	bl	_rmb
	ldr	x8, [x20, #8]
	ldr	x9, [x25]
	ldr	w2, [x24]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	and	w2, w2, #0x7f
	str	w2, [x24]
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	w8, w2, #128
	cmp	w8, #5
	b.hi	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	lsl	w8, w27, w8
	mov	x0, x20
	mov	x1, x24
	tst	w8, #0x3
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	tst	w8, w28
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	bl	_ql_process_mac_rx_intr
	add	w22, w22, #1
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_ql_process_mac_tx_intr
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_ql_process_macip_rx_intr
	add	w22, w22, #1
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	x3, x4, [x24]
	ldp	x5, x6, [x24, #16]
	mov	x0, x21
	mov	x1, x23
	bl	_netdev_err
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	str	xzr, [x20]
	ldr	x8, [x20, #24]
	b	LBB0_4
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_QL3032_DEVICE_ID,8,3           ; @QL3032_DEVICE_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Hit default case, not handled!\n\tdropping the packet, opcode = %x\n0x%08lx 0x%08lx 0x%08lx 0x%08lx\n"

	.comm	_NUM_RSP_Q_ENTRIES,8,3          ; @NUM_RSP_Q_ENTRIES
	.no_dead_strip	_ql_tx_rx_clean
.subsections_via_symbols
