	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_dcbnl_ieee_getqcnstats
_mlx4_en_dcbnl_ieee_getqcnstats:        ## @mlx4_en_dcbnl_ieee_getqcnstats
	.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	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r12
	movq	8(%rax), %rax
	movq	(%rax), %rdi
	movq	_MLX4_DEV_CAP_FLAG2_QCN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.3:
	callq	_mlx4_alloc_cmd_mailbox
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_11:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_IEEE_8021QAZ_MAX_TCS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_10
## %bb.6:
	movq	8(%r13), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	$256, %eax                      ## imm = 0x100
	movl	%ebx, %ecx
	shll	%cl, %eax
	orl	(%r12), %eax
	movq	_MLX4_CTRL_ALGO_802_1_QAU_REACTION_POINT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$16, %ecx
	orl	%eax, %ecx
	movq	8(%r12), %rax
	movq	(%rax), %rdi
	movq	%r13, %r14
	movl	(%r13), %edx
	movq	_MLX4_CONGESTION_CONTROL_GET_STATISTICS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_MLX4_CMD_CONGESTION_CTRL_OPCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MLX4_CMD_TIME_CLASS_C@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_MLX4_CMD_NATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%esi, %esi
	pushq	%rax
	pushq	%r10
	callq	_mlx4_cmd_box
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	4(%r15), %edi
	callq	_be64_to_cpu
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	8(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	(%r15), %edi
	callq	_be32_to_cpu
	movq	(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movq	_IEEE_8021QAZ_MAX_TCS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	movq	%r14, %r13
	jl	LBB0_7
LBB0_10:
	movq	8(%r12), %rax
	movq	(%rax), %rdi
	movq	%r13, %rsi
	callq	_mlx4_free_cmd_mailbox
	xorl	%r13d, %r13d
	jmp	LBB0_11
LBB0_8:
	movl	%eax, %r13d
	movq	8(%r12), %rax
	movq	(%rax), %rdi
	movq	%r14, %rsi
	callq	_mlx4_free_cmd_mailbox
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_DEV_CAP_FLAG2_QCN,4,2     ## @MLX4_DEV_CAP_FLAG2_QCN
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IEEE_8021QAZ_MAX_TCS,4,2       ## @IEEE_8021QAZ_MAX_TCS
	.comm	_MLX4_CTRL_ALGO_802_1_QAU_REACTION_POINT,4,2 ## @MLX4_CTRL_ALGO_802_1_QAU_REACTION_POINT
	.comm	_MLX4_CONGESTION_CONTROL_GET_STATISTICS,4,2 ## @MLX4_CONGESTION_CONTROL_GET_STATISTICS
	.comm	_MLX4_CMD_CONGESTION_CTRL_OPCODE,4,2 ## @MLX4_CMD_CONGESTION_CTRL_OPCODE
	.comm	_MLX4_CMD_TIME_CLASS_C,4,2      ## @MLX4_CMD_TIME_CLASS_C
	.comm	_MLX4_CMD_NATIVE,4,2            ## @MLX4_CMD_NATIVE
	.no_dead_strip	_mlx4_en_dcbnl_ieee_getqcnstats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_en_dcbnl_ieee_getqcnstats
_mlx4_en_dcbnl_ieee_getqcnstats:        ; @mlx4_en_dcbnl_ieee_getqcnstats
	.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
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x0, [x8]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MLX4_DEV_CAP_FLAG2_QCN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX4_DEV_CAP_FLAG2_QCN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	bl	_mlx4_alloc_cmd_mailbox
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	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_6:
Lloh7:
	adrp	x8, _IEEE_8021QAZ_MAX_TCS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IEEE_8021QAZ_MAX_TCS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.7:
	mov	x24, #0
	ldr	x25, [x21, #8]
Lloh10:
	adrp	x28, _MLX4_CONGESTION_CONTROL_GET_STATISTICS@GOTPAGE
Lloh11:
	ldr	x28, [x28, _MLX4_CONGESTION_CONTROL_GET_STATISTICS@GOTPAGEOFF]
Lloh12:
	adrp	x23, _MLX4_CMD_CONGESTION_CTRL_OPCODE@GOTPAGE
Lloh13:
	ldr	x23, [x23, _MLX4_CMD_CONGESTION_CTRL_OPCODE@GOTPAGEOFF]
Lloh14:
	adrp	x26, _MLX4_CMD_TIME_CLASS_C@GOTPAGE
Lloh15:
	ldr	x26, [x26, _MLX4_CMD_TIME_CLASS_C@GOTPAGEOFF]
Lloh16:
	adrp	x27, _MLX4_CMD_NATIVE@GOTPAGE
Lloh17:
	ldr	x27, [x27, _MLX4_CMD_NATIVE@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	mov	w9, #256
	lsl	w9, w9, w24
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _MLX4_CTRL_ALGO_802_1_QAU_REACTION_POINT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MLX4_CTRL_ALGO_802_1_QAU_REACTION_POINT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w3, w8, w9, lsl #16
	ldr	x8, [x20, #8]
	ldr	x0, [x8]
	ldr	w2, [x21]
	ldr	w4, [x28]
	ldr	w5, [x23]
	ldr	w6, [x26]
	ldr	w7, [x27]
	mov	w1, #0
	bl	_mlx4_cmd_box
	cbnz	w0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x25, #4]
	bl	_be64_to_cpu
	ldr	x8, [x19, #8]
	lsl	x22, x24, #2
	str	w0, [x8, x22]
	ldr	w0, [x25]
	bl	_be32_to_cpu
	ldr	x8, [x19]
	str	w0, [x8, x22]
	add	x24, x24, #1
Lloh21:
	adrp	x8, _IEEE_8021QAZ_MAX_TCS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IEEE_8021QAZ_MAX_TCS@GOTPAGEOFF]
Lloh23:
	ldrsw	x8, [x8]
	cmp	x24, x8
	b.lt	LBB0_8
LBB0_10:
	ldr	x8, [x20, #8]
	ldr	x0, [x8]
	mov	x1, x21
	bl	_mlx4_free_cmd_mailbox
	mov	w22, #0
	b	LBB0_5
LBB0_11:
	mov	x22, x0
	ldr	x8, [x20, #8]
	ldr	x0, [x8]
	mov	x1, x21
	bl	_mlx4_free_cmd_mailbox
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_DEV_CAP_FLAG2_QCN,4,2     ; @MLX4_DEV_CAP_FLAG2_QCN
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IEEE_8021QAZ_MAX_TCS,4,2       ; @IEEE_8021QAZ_MAX_TCS
	.comm	_MLX4_CTRL_ALGO_802_1_QAU_REACTION_POINT,4,2 ; @MLX4_CTRL_ALGO_802_1_QAU_REACTION_POINT
	.comm	_MLX4_CONGESTION_CONTROL_GET_STATISTICS,4,2 ; @MLX4_CONGESTION_CONTROL_GET_STATISTICS
	.comm	_MLX4_CMD_CONGESTION_CTRL_OPCODE,4,2 ; @MLX4_CMD_CONGESTION_CTRL_OPCODE
	.comm	_MLX4_CMD_TIME_CLASS_C,4,2      ; @MLX4_CMD_TIME_CLASS_C
	.comm	_MLX4_CMD_NATIVE,4,2            ; @MLX4_CMD_NATIVE
	.no_dead_strip	_mlx4_en_dcbnl_ieee_getqcnstats
.subsections_via_symbols
