	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ql_clean_inbound_rx_ring
_ql_clean_inbound_rx_ring:              ## @ql_clean_inbound_rx_ring
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %r12
	movq	32(%rdi), %r14
	movl	8(%rdi), %edi
	callq	_ql_read_sh_reg
	movq	%rax, %r10
	xorl	%r15d, %r15d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_rx_status@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %ecx
	movq	%r14, %rdi
	leaq	L_.str.1(%rip), %r8
	xorl	%eax, %eax
	callq	_netif_printk
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%r15d
	movq	%r12, %rdi
	callq	_ql_update_cq
	movl	8(%r12), %edi
	callq	_ql_read_sh_reg
	movq	%rax, %r10
	cmpl	%r15d, %r13d
	je	LBB0_8
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rbx
	cmpq	%rbx, %r10
	je	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_rx_status@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %ecx
	movl	24(%r12), %r9d
	movq	%r14, %rdi
	leaq	L_.str(%rip), %r8
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r10
	callq	_netif_printk
	addq	$16, %rsp
	movq	16(%r12), %rbx
	xorl	%eax, %eax
	callq	_rmb
	movl	(%rbx), %r9d
	cmpl	$129, %r9d
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$128, %r9d
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_ql_process_mac_rx_intr
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ql_process_chip_ae_intr
	jmp	LBB0_7
LBB0_8:
	movl	%r13d, %r15d
LBB0_9:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ql_update_buffer_queues
	movq	%r12, %rdi
	callq	_ql_write_cq_idx
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rx_status,4,2                  ## @rx_status
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cq_id = %d, prod = %d, cnsmr = %d.\n."

L_.str.1:                               ## @.str.1
	.asciz	"Hit default case, not handled! dropping the packet, opcode = %x.\n"

	.no_dead_strip	_ql_clean_inbound_rx_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ql_clean_inbound_rx_ring
_ql_clean_inbound_rx_ring:              ; @ql_clean_inbound_rx_ring
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x1
	mov	x19, x0
	ldr	x20, [x0, #32]
	ldr	w0, [x0, #8]
	bl	_ql_read_sh_reg
	mov	w21, #0
Lloh0:
	adrp	x26, _rx_status@GOTPAGE
Lloh1:
	ldr	x26, [x26, _rx_status@GOTPAGEOFF]
Lloh2:
	adrp	x27, _KERN_DEBUG@GOTPAGE
Lloh3:
	ldr	x27, [x27, _KERN_DEBUG@GOTPAGEOFF]
Lloh4:
	adrp	x23, l_.str@PAGE
Lloh5:
	add	x23, x23, l_.str@PAGEOFF
Lloh6:
	adrp	x24, l_.str.1@PAGE
Lloh7:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x26]
	ldr	w2, [x27]
	ldr	w3, [x20]
	mov	x0, x20
	mov	x4, x24
	bl	_netif_printk
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w21, #1
	mov	x0, x19
	bl	_ql_update_cq
	ldr	w0, [x19, #8]
	bl	_ql_read_sh_reg
	cmp	w22, w21
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x26]
	ldr	w2, [x27]
	ldr	w3, [x20]
	ldr	w5, [x19, #24]
	stp	x0, x8, [sp]
	mov	x0, x20
	mov	x4, x23
	bl	_netif_printk
	ldr	x25, [x19, #16]
	bl	_rmb
	ldr	w5, [x25]
	cmp	w5, #129
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w5, #128
	b.ne	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x25
	bl	_ql_process_mac_rx_intr
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x25
	bl	_ql_process_chip_ae_intr
	b	LBB0_2
LBB0_8:
	mov	x21, x22
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	bl	_ql_update_buffer_queues
	mov	x0, x19
	bl	_ql_write_cq_idx
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_rx_status,4,2                  ; @rx_status
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cq_id = %d, prod = %d, cnsmr = %d.\n."

l_.str.1:                               ; @.str.1
	.asciz	"Hit default case, not handled! dropping the packet, opcode = %x.\n"

	.no_dead_strip	_ql_clean_inbound_rx_ring
.subsections_via_symbols
