	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_pci_cq_tasklet
_mlxsw_pci_cq_tasklet:                  ## @mlxsw_pci_cq_tasklet
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	24(%rdi), %r15
	movl	(%rdi), %eax
	sarl	%eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	leaq	12(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	4(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_mlxsw_pci_rdq_get
	movl	8(%r12), %ecx
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	%r13, %r8
	callq	_mlxsw_pci_cqe_rdq_handle
	movq	-72(%rbp), %rax                 ## 8-byte Reload
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-96(%rbp), %rsp                 ## 8-byte Reload
	incl	(%rax)
	incl	%r14d
	cmpl	%r14d, -56(%rbp)                ## 4-byte Folded Reload
	je	LBB0_7
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_mlxsw_pci_cq_sw_cqe_get
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mlxsw_pci_cqe_wqe_counter_get
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	8(%r12), %edi
	movq	%rbx, %rsi
	callq	_mlxsw_pci_cqe_sr_get
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	8(%r12), %edi
	movq	%rbx, %rsi
	callq	_mlxsw_pci_cqe_dqn_get
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	_MLXSW_PCI_CQE_SIZE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movl	16(%r12), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_memcpy
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_mlxsw_pci_queue_doorbell_consumer_ring
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_mlxsw_pci_sdq_get
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	%r13, %rcx
	callq	_mlxsw_pci_cqe_sdq_handle
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_6:
	testl	%r14d, %r14d
	je	LBB0_8
LBB0_7:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_mlxsw_pci_queue_doorbell_arm_consumer_ring
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_PCI_CQE_SIZE_MAX,4,2     ## @MLXSW_PCI_CQE_SIZE_MAX
	.no_dead_strip	_mlxsw_pci_cq_tasklet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_pci_cq_tasklet
_mlxsw_pci_cq_tasklet:                  ; @mlxsw_pci_cq_tasklet
	.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
	sub	sp, sp, #32
	mov	x19, x0
	mov	w26, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x20, [x0, #24]
	ldr	w8, [x0]
	asr	w27, w8, #1
	add	x9, x0, #12
	add	x8, x0, #4
	stp	x8, x9, [x29, #-104]            ; 16-byte Folded Spill
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_mlxsw_pci_rdq_get
	mov	x1, x0
	ldr	w3, [x19, #8]
	mov	x0, x20
	mov	x2, x21
	mov	x4, x22
	bl	_mlxsw_pci_cqe_rdq_handle
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	sp, x28
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	add	w26, w26, #1
	cmp	w27, w26
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_mlxsw_pci_cq_sw_cqe_get
	cbz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x0
	bl	_mlxsw_pci_cqe_wqe_counter_get
	mov	x21, x0
	ldr	w0, [x19, #8]
	mov	x1, x23
	bl	_mlxsw_pci_cqe_sr_get
	mov	x25, x0
	ldr	w0, [x19, #8]
	mov	x1, x23
	bl	_mlxsw_pci_cqe_dqn_get
	mov	x24, x0
	mov	x28, sp
Lloh3:
	adrp	x8, _MLXSW_PCI_CQE_SIZE_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLXSW_PCI_CQE_SIZE_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	w2, [x19, #16]
	mov	x0, x22
	mov	x1, x23
	bl	_memcpy
	mov	x0, x20
	mov	x1, x19
	bl	_mlxsw_pci_queue_doorbell_consumer_ring
	mov	x0, x20
	mov	x1, x24
	cbz	x25, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_mlxsw_pci_sdq_get
	mov	x1, x0
	mov	x0, x20
	mov	x2, x21
	mov	x3, x22
	bl	_mlxsw_pci_cqe_sdq_handle
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	b	LBB0_2
LBB0_6:
	cbz	w26, LBB0_8
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	bl	_mlxsw_pci_queue_doorbell_arm_consumer_ring
LBB0_8:
	ldur	x8, [x29, #-88]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #80
	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_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_PCI_CQE_SIZE_MAX,4,2     ; @MLXSW_PCI_CQE_SIZE_MAX
	.no_dead_strip	_mlxsw_pci_cq_tasklet
.subsections_via_symbols
