	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_tc_qdisc_init         ## -- Begin function mlxsw_sp_tc_qdisc_init
	.p2align	4, 0x90
_mlxsw_sp_tc_qdisc_init:                ## @mlxsw_sp_tc_qdisc_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, (%r14)
	movl	$255, (%rax)
	movq	_MLXSW_SP_PORT_DEFAULT_TCLASS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_IEEE_8021QAZ_MAX_TCS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	(%r15), %edx
	movl	$8, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %rcx
	movq	%rax, 8(%r14)
	cmpl	$0, (%rbx)
	jle	LBB0_3
## %bb.4:
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, 4(%rcx,%rdx,8)
	incq	%rdx
	movslq	(%rbx), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_5
	jmp	LBB0_8
LBB0_6:
	movq	(%r14), %rdi
	callq	_kfree
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_3:
	xorl	%eax, %eax
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_MLXSW_SP_PORT_DEFAULT_TCLASS,4,2 ## @MLXSW_SP_PORT_DEFAULT_TCLASS
	.comm	_IEEE_8021QAZ_MAX_TCS,4,2       ## @IEEE_8021QAZ_MAX_TCS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_tc_qdisc_init         ; -- Begin function mlxsw_sp_tc_qdisc_init
	.p2align	2
_mlxsw_sp_tc_qdisc_init:                ; @mlxsw_sp_tc_qdisc_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	str	x0, [x19]
	mov	w8, #255
	str	w8, [x0]
Lloh2:
	adrp	x8, _MLXSW_SP_PORT_DEFAULT_TCLASS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MLXSW_SP_PORT_DEFAULT_TCLASS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x0, #4]
Lloh5:
	adrp	x20, _IEEE_8021QAZ_MAX_TCS@GOTPAGE
Lloh6:
	ldr	x20, [x20, _IEEE_8021QAZ_MAX_TCS@GOTPAGEOFF]
	ldr	w0, [x20]
	ldr	w2, [x21]
	mov	w1, #8
	bl	_kcalloc
	cbz	x0, LBB0_6
; %bb.2:
	str	x0, [x19, #8]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x8, #0
	add	x9, x0, #4
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	str	w8, [x9], #8
	add	x8, x8, #1
	ldrsw	x10, [x20]
	cmp	x8, x10
	b.lt	LBB0_4
LBB0_5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
	ldr	x0, [x19]
	bl	_kfree
LBB0_7:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_MLXSW_SP_PORT_DEFAULT_TCLASS,4,2 ; @MLXSW_SP_PORT_DEFAULT_TCLASS
	.comm	_IEEE_8021QAZ_MAX_TCS,4,2       ; @IEEE_8021QAZ_MAX_TCS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
