	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_dbg_dump_ncl_config
_hclge_dbg_dump_ncl_config:             ## @hclge_dbg_dump_ncl_config
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_HCLGE_CMD_NCL_CONFIG_BD_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	(,%r14,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leaq	L_.str(%rip), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_3
## %bb.1:
	movl	-56(%rbp), %eax
	cmpl	$4095, %eax                     ## imm = 0xFFF
	jg	LBB0_3
## %bb.2:
	movl	-52(%rbp), %ecx
	movl	$4096, %edx                     ## imm = 0x1000
	subl	%eax, %edx
	cmpl	%edx, %ecx
	jle	LBB0_7
LBB0_3:
	movq	(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	callq	_dev_err
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.6:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%r12), %rdi
	testl	%eax, %eax
	js	LBB0_13
## %bb.8:
	testl	%ecx, %ecx
	jle	LBB0_13
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_info
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.10:
	movq	_HCLGE_OPC_QUERY_NCL_CONFIG@GOTPCREL(%rip), %rbx
	leaq	-52(%rbp), %r13
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edx
	shll	$16, %edx
	cmpl	$116, %eax
	movl	$7602176, %eax                  ## imm = 0x740000
	cmovael	%eax, %edx
	orl	-56(%rbp), %edx
	movl	(%rbx), %r8d
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %ecx
	callq	_hclge_dbg_cmd_send
	testl	%eax, %eax
	jne	LBB0_5
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	leaq	-56(%rbp), %rdx
	movq	%r13, %rcx
	callq	_hclge_ncl_config_data_print
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	jg	LBB0_11
	jmp	LBB0_5
LBB0_13:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_4
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_CMD_NCL_CONFIG_BD_NUM,4,2 ## @HCLGE_CMD_NCL_CONFIG_BD_NUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%x %x"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid offset or length.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Non-positive offset or length.\n"

L_.str.3:                               ## @.str.3
	.asciz	"offset |    data\n"

	.comm	_HCLGE_OPC_QUERY_NCL_CONFIG,4,2 ## @HCLGE_OPC_QUERY_NCL_CONFIG
	.comm	_HCLGE_MAX_NCL_CONFIG_LENGTH,4,2 ## @HCLGE_MAX_NCL_CONFIG_LENGTH
	.comm	_HCLGE_MAX_NCL_CONFIG_OFFSET,4,2 ## @HCLGE_MAX_NCL_CONFIG_OFFSET
	.no_dead_strip	_hclge_dbg_dump_ncl_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_dbg_dump_ncl_config
_hclge_dbg_dump_ncl_config:             ; @hclge_dbg_dump_ncl_config
	.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
	sub	sp, sp, #16
	mov	x12, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _HCLGE_CMD_NCL_CONFIG_BD_NUM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HCLGE_CMD_NCL_CONFIG_BD_NUM@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	lsl	x8, x20, #2
	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, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	sub	x2, x29, #60
	sub	x3, x29, #64
	mov	x0, x12
	bl	_sscanf
	cmp	w0, #2
	b.ne	LBB0_3
; %bb.1:
	ldur	w8, [x29, #-60]
	cmp	w8, #4095
	b.gt	LBB0_3
; %bb.2:
	ldur	w9, [x29, #-64]
	mov	w10, #4096
	sub	w10, w10, w8
	cmp	w9, w10
	b.le	LBB0_7
LBB0_3:
	ldr	x0, [x19]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	bl	_dev_err
LBB0_5:
	ldur	x8, [x29, #-56]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.6:
	sub	sp, x29, #48
	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
LBB0_7:
	ldr	x0, [x19]
	tbnz	w8, #31, LBB0_13
; %bb.8:
	cmp	w9, #0
	b.le	LBB0_13
; %bb.9:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_info
	ldur	w8, [x29, #-64]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.10:
	mov	w22, #7602176
Lloh17:
	adrp	x23, _HCLGE_OPC_QUERY_NCL_CONFIG@GOTPAGE
Lloh18:
	ldr	x23, [x23, _HCLGE_OPC_QUERY_NCL_CONFIG@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldur	w9, [x29, #-60]
	lsl	w10, w8, #16
	cmp	w8, #115
	csel	w8, w22, w10, hi
	orr	w2, w9, w8
	ldr	w4, [x23]
	mov	x0, x19
	mov	x1, x21
	mov	x3, x20
	bl	_hclge_dbg_cmd_send
	cbnz	w0, LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	sub	x2, x29, #60
	sub	x3, x29, #64
	mov	x0, x19
	mov	x1, x21
	bl	_hclge_ncl_config_data_print
	ldur	w8, [x29, #-64]
	cmp	w8, #0
	b.gt	LBB0_11
	b	LBB0_5
LBB0_13:
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_CMD_NCL_CONFIG_BD_NUM,4,2 ; @HCLGE_CMD_NCL_CONFIG_BD_NUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%x %x"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid offset or length.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Non-positive offset or length.\n"

l_.str.3:                               ; @.str.3
	.asciz	"offset |    data\n"

	.comm	_HCLGE_OPC_QUERY_NCL_CONFIG,4,2 ; @HCLGE_OPC_QUERY_NCL_CONFIG
	.comm	_HCLGE_MAX_NCL_CONFIG_LENGTH,4,2 ; @HCLGE_MAX_NCL_CONFIG_LENGTH
	.comm	_HCLGE_MAX_NCL_CONFIG_OFFSET,4,2 ; @HCLGE_MAX_NCL_CONFIG_OFFSET
	.no_dead_strip	_hclge_dbg_dump_ncl_config
.subsections_via_symbols
