	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_ib_init_cong_debugfs      ## -- Begin function mlx5_ib_init_cong_debugfs
	.p2align	4, 0x90
_mlx5_ib_init_cong_debugfs:             ## @mlx5_ib_init_cong_debugfs
	.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	_mlx5_debugfs_root@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_11
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r12
	leal	1(%r14), %ebx
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_mlx5_ib_get_native_port_mdev
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	%rax, %r13
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	_cc_query_allowed@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_MLX5_CAP_GEN
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:
	movq	_cc_modify_allowed@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_MLX5_CAP_GEN
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%rax, %rbx
	movq	(%r12), %rax
	movslq	%r14d, %rcx
	movq	%rbx, (%rax,%rcx,8)
	movl	(%r13), %esi
	leaq	L_.str(%rip), %rdi
	callq	_debugfs_create_dir
	movl	%eax, %edx
	movl	%eax, 8(%rbx)
	movq	_MLX5_IB_DBG_CC_MAX@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_10
## %bb.6:
	movq	(%rbx), %rsi
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rsi,%r15), %rcx
	movl	%r13d, (%rsi,%r15)
	movq	%r12, 16(%rsi,%r15)
	movl	%r14d, 4(%rsi,%r15)
	movq	_mlx5_ib_dbg_cc_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r13,4), %edi
	movl	$384, %esi                      ## imm = 0x180
	movq	_dbg_cc_fops@GOTPCREL(%rip), %r8
	callq	_debugfs_create_file
	movq	(%rbx), %rsi
	movl	%eax, 8(%rsi,%r15)
	incq	%r13
	movq	_MLX5_IB_DBG_CC_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jge	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	8(%rbx), %edx
	addq	$24, %r15
	jmp	LBB0_7
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_mlx5_ib_warn
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_mlx5_ib_cleanup_cong_debugfs
LBB0_10:
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlx5_ib_put_native_port_mdev   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mlx5_debugfs_root,4,2          ## @mlx5_debugfs_root
	.comm	_cc_query_allowed,4,2           ## @cc_query_allowed
	.comm	_cc_modify_allowed,4,2          ## @cc_modify_allowed
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cc_params"

	.comm	_MLX5_IB_DBG_CC_MAX,4,2         ## @MLX5_IB_DBG_CC_MAX
	.comm	_mlx5_ib_dbg_cc_name,8,3        ## @mlx5_ib_dbg_cc_name
	.comm	_dbg_cc_fops,4,2                ## @dbg_cc_fops
L_.str.1:                               ## @.str.1
	.asciz	"cong debugfs failure\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_ib_init_cong_debugfs      ; -- Begin function mlx5_ib_init_cong_debugfs
	.p2align	2
_mlx5_ib_init_cong_debugfs:             ; @mlx5_ib_init_cong_debugfs
	.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
Lloh0:
	adrp	x8, _mlx5_debugfs_root@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mlx5_debugfs_root@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	add	w21, w1, #1
	mov	x1, x21
	mov	x2, #0
	bl	_mlx5_ib_get_native_port_mdev
	cbz	x0, LBB0_9
; %bb.2:
	mov	x23, x0
Lloh3:
	adrp	x8, _cc_query_allowed@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cc_query_allowed@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_MLX5_CAP_GEN
	cbz	w0, LBB0_11
; %bb.3:
Lloh6:
	adrp	x8, _cc_modify_allowed@GOTPAGE
Lloh7:
	ldr	x8, [x8, _cc_modify_allowed@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_MLX5_CAP_GEN
	cbz	w0, LBB0_11
; %bb.4:
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.5:
	mov	x22, x0
	ldr	x8, [x19]
	str	x0, [x8, w20, sxtw #3]
	ldr	w1, [x23]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debugfs_create_dir
	str	w0, [x22, #8]
Lloh14:
	adrp	x24, _MLX5_IB_DBG_CC_MAX@GOTPAGE
Lloh15:
	ldr	x24, [x24, _MLX5_IB_DBG_CC_MAX@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.6:
	mov	x2, x0
	mov	x25, #0
	mov	x26, #0
	ldr	x8, [x22]
Lloh16:
	adrp	x27, _mlx5_ib_dbg_cc_name@GOTPAGE
Lloh17:
	ldr	x27, [x27, _mlx5_ib_dbg_cc_name@GOTPAGEOFF]
Lloh18:
	adrp	x23, _dbg_cc_fops@GOTPAGE
Lloh19:
	ldr	x23, [x23, _dbg_cc_fops@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x3, x8, x25
	str	x19, [x3, #16]
	stp	w26, w20, [x3]
	ldr	x8, [x27]
	ldr	w0, [x8, x26, lsl #2]
	mov	w1, #384
	mov	x4, x23
	bl	_debugfs_create_file
	ldr	x8, [x22]
	add	x9, x8, x25
	str	w0, [x9, #8]
	add	x26, x26, #1
	ldrsw	x9, [x24]
	cmp	x26, x9
	b.ge	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w2, [x22, #8]
	add	x25, x25, #24
	b	LBB0_7
LBB0_9:
	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:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mlx5_ib_warn
	mov	x0, x19
	mov	x1, x20
	bl	_mlx5_ib_cleanup_cong_debugfs
LBB0_11:
	mov	x0, x19
	mov	x1, x21
	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
	b	_mlx5_ib_put_native_port_mdev
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_mlx5_debugfs_root,4,2          ; @mlx5_debugfs_root
	.comm	_cc_query_allowed,4,2           ; @cc_query_allowed
	.comm	_cc_modify_allowed,4,2          ; @cc_modify_allowed
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cc_params"

	.comm	_MLX5_IB_DBG_CC_MAX,4,2         ; @MLX5_IB_DBG_CC_MAX
	.comm	_mlx5_ib_dbg_cc_name,8,3        ; @mlx5_ib_dbg_cc_name
	.comm	_dbg_cc_fops,4,2                ; @dbg_cc_fops
l_.str.1:                               ; @.str.1
	.asciz	"cong debugfs failure\n"

.subsections_via_symbols
