	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function octeon_droq_bh
_octeon_droq_bh:                        ## @octeon_droq_bh
	.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
	movq	%rdi, %r15
	movq	32(%rdi), %rbx
	callq	_MAX_OCTEON_OUTPUT_QUEUES
	testl	%eax, %eax
	jle	LBB0_8
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	_MAX_PACKET_BUDGET@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	%r15, %rdi
	callq	_MAX_OCTEON_OUTPUT_QUEUES
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%r15), %r12d
	movl	%ebx, %edi
	callq	_BIT_ULL
	testl	%r12d, %eax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	movl	(%r13), %edx
	movq	%r15, %rdi
	callq	_octeon_droq_process_packets
	orl	%eax, %r14d
	movq	16(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	xorl	%esi, %esi
	callq	_lio_enable_irq
	movq	%r15, %rdi
	callq	_OCTEON_CN23XX_PF
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 8(%r15)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %r12d
	addl	%ebx, %r12d
	movl	%r12d, %edi
	callq	_CN23XX_SLI_OQ_PKT_INT_LEVELS
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$64, %edx
	callq	_octeon_write_csr64
	movl	%r12d, %edi
	callq	_CN23XX_SLI_OQ_PKTS_SENT
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_octeon_write_csr64
	jmp	LBB0_6
LBB0_7:
	testl	%r14d, %r14d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_8
## %bb.9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tasklet_schedule               ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PACKET_BUDGET,4,2          ## @MAX_PACKET_BUDGET
	.no_dead_strip	_octeon_droq_bh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function octeon_droq_bh
_octeon_droq_bh:                        ; @octeon_droq_bh
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	ldr	x19, [x0, #32]
	bl	_MAX_OCTEON_OUTPUT_QUEUES
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x21, #0
	mov	w23, #0
Lloh0:
	adrp	x24, _MAX_PACKET_BUDGET@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MAX_PACKET_BUDGET@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	mov	x0, x20
	bl	_MAX_OCTEON_OUTPUT_QUEUES
	cmp	x21, w0, sxtw
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x20, #24]
	mov	x0, x21
	bl	_BIT_ULL
	tst	w0, w22
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #16]
	lsl	x22, x21, #2
	ldr	w1, [x8, x22]
	ldr	w2, [x24]
	mov	x0, x20
	bl	_octeon_droq_process_packets
	orr	w23, w0, w23
	ldr	x8, [x20, #16]
	ldr	w0, [x8, x22]
	mov	x1, #0
	bl	_lio_enable_irq
	mov	x0, x20
	bl	_OCTEON_CN23XX_PF
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20]
	add	w22, w21, w8
	mov	x0, x22
	bl	_CN23XX_SLI_OQ_PKT_INT_LEVELS
	mov	x1, x0
	mov	x0, x20
	mov	w2, #64
	bl	_octeon_write_csr64
	mov	x0, x22
	bl	_CN23XX_SLI_OQ_PKTS_SENT
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_octeon_write_csr64
	b	LBB0_2
LBB0_7:
	cbz	w23, LBB0_9
; %bb.8:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_tasklet_schedule
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PACKET_BUDGET,4,2          ; @MAX_PACKET_BUDGET
	.no_dead_strip	_octeon_droq_bh
.subsections_via_symbols
