	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_get_32_bit_regs
_hclge_get_32_bit_regs:                 ## @hclge_get_32_bit_regs
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r13d, %r13d
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.1:
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r13
	leaq	2(%rsi), %rdi
	movl	$8, %esi
	callq	_DIV_ROUND_UP
	movl	%eax, %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movl	$8, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r12
	movq	_HCLGE_OPC_QUERY_32_BIT_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_hclge_cmd_setup_basic_desc
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	leaq	8(%r13), %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_hclge_cmd_send
	testl	%eax, %eax
	je	LBB0_4
## %bb.15:
	movl	%eax, %r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	callq	_dev_err
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_14
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_14
LBB0_4:
	testl	%r14d, %r14d
	jle	LBB0_13
## %bb.5:
	movl	%r14d, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	subq	%rax, %r15
	cmpq	-56(%rbp), %rcx                 ## 8-byte Folded Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_13
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	testq	%rcx, %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	(%r12,%rcx,8), %r14
	movl	$8, %r12d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r12), %r14
	movl	$6, %r12d
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	addl	$-2, %r12d
	incq	%r12
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	decq	%r15
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r14,%r13,4), %edi
	callq	_le32_to_cpu
	cltq
	movq	%rax, (%rbx)
	addq	$8, %rbx
	leaq	1(%r13), %rax
	cmpq	%r13, %r15
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	cmpl	%r13d, %r12d
	movq	%rax, %r13
	jne	LBB0_10
	jmp	LBB0_12
LBB0_13:
	movq	%r12, %rdi
	callq	_kfree
	xorl	%r13d, %r13d
LBB0_14:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HCLGE_OPC_QUERY_32_BIT_REG,4,2 ## @HCLGE_OPC_QUERY_32_BIT_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Query 32 bit register cmd failed, ret = %d.\n"

	.comm	_HCLGE_32_BIT_DESC_NODATA_LEN,4,2 ## @HCLGE_32_BIT_DESC_NODATA_LEN
	.comm	_HCLGE_32_BIT_REG_RTN_DATANUM,4,2 ## @HCLGE_32_BIT_REG_RTN_DATANUM
	.no_dead_strip	_hclge_get_32_bit_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_get_32_bit_regs
_hclge_get_32_bit_regs:                 ; @hclge_get_32_bit_regs
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x1, LBB0_18
; %bb.1:
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	add	x0, x1, #2
	mov	w1, #8
	bl	_DIV_ROUND_UP
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #8
	bl	_kcalloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x19, x0
Lloh3:
	adrp	x8, _HCLGE_OPC_QUERY_32_BIT_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HCLGE_OPC_QUERY_32_BIT_REG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_hclge_cmd_setup_basic_desc
	add	x0, x23, #8
	mov	x1, x19
	mov	x2, x20
	bl	_hclge_cmd_send
	cbz	w0, LBB0_5
; %bb.3:
	mov	x24, x0
	ldr	x0, [x23]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x24
	bl	_dev_err
	mov	x0, x19
	bl	_kfree
	b	LBB0_19
LBB0_4:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_19
LBB0_5:
	cmp	w20, #1
	b.lt	LBB0_17
; %bb.6:
	ldr	x25, [x19]
	ldr	w0, [x25]
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	mov	x23, x21
	str	x8, [x23], #8
	subs	x24, x22, #1
	b.eq	LBB0_16
; %bb.7:
	ldr	w0, [x25, #4]
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [x21, #8]
	subs	x24, x22, #2
	b.eq	LBB0_12
; %bb.8:
	ldr	w0, [x25, #8]
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [x21, #16]
	subs	x24, x22, #3
	b.eq	LBB0_13
; %bb.9:
	ldr	w0, [x25, #12]
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [x21, #24]
	subs	x24, x22, #4
	b.eq	LBB0_14
; %bb.10:
	ldr	w0, [x25, #16]
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [x21, #32]
	subs	x24, x22, #5
	b.eq	LBB0_15
; %bb.11:
	ldr	w0, [x25, #20]
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	add	x23, x21, #48
	str	x8, [x21, #40]
	sub	x24, x22, #6
	b	LBB0_16
LBB0_12:
	add	x23, x21, #16
	b	LBB0_16
LBB0_13:
	add	x23, x21, #24
	b	LBB0_16
LBB0_14:
	add	x23, x21, #32
	b	LBB0_16
LBB0_15:
	add	x23, x21, #40
LBB0_16:
	cmp	w20, #1
	b.ne	LBB0_20
LBB0_17:
	mov	x0, x19
	bl	_kfree
LBB0_18:
	mov	w24, #0
LBB0_19:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_20:
	mov	w8, w20
	sub	x20, x8, #1
	add	x21, x19, #20
	b	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	x23, x8
	mov	x24, x9
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x21, x21, #8
	subs	x20, x20, #1
	b.eq	LBB0_17
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldur	w0, [x21, #-12]
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x9, w0
	mov	x8, x23
	str	x9, [x8], #8
	subs	x9, x24, #1
	b.eq	LBB0_21
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldur	w0, [x21, #-8]
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [x23, #8]
	subs	x8, x24, #2
	b.eq	LBB0_31
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=1
	ldur	w0, [x21, #-4]
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [x23, #16]
	subs	x8, x24, #3
	b.eq	LBB0_32
; %bb.26:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	w0, [x21]
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [x23, #24]
	subs	x8, x24, #4
	b.eq	LBB0_33
; %bb.27:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	w0, [x21, #4]
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [x23, #32]
	subs	x8, x24, #5
	b.eq	LBB0_34
; %bb.28:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	w0, [x21, #8]
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [x23, #40]
	subs	x8, x24, #6
	b.eq	LBB0_35
; %bb.29:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	w0, [x21, #12]
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [x23, #48]
	subs	x8, x24, #7
	b.eq	LBB0_36
; %bb.30:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	w0, [x21, #16]
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [x23, #56]
	add	x23, x23, #64
	sub	x24, x24, #8
	b	LBB0_22
LBB0_31:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x23, x23, #16
	mov	x24, x8
	b	LBB0_22
LBB0_32:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x23, x23, #24
	mov	x24, x8
	b	LBB0_22
LBB0_33:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x23, x23, #32
	mov	x24, x8
	b	LBB0_22
LBB0_34:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x23, x23, #40
	mov	x24, x8
	b	LBB0_22
LBB0_35:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x23, x23, #48
	mov	x24, x8
	b	LBB0_22
LBB0_36:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x23, x23, #56
	mov	x24, x8
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HCLGE_OPC_QUERY_32_BIT_REG,4,2 ; @HCLGE_OPC_QUERY_32_BIT_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Query 32 bit register cmd failed, ret = %d.\n"

	.comm	_HCLGE_32_BIT_DESC_NODATA_LEN,4,2 ; @HCLGE_32_BIT_DESC_NODATA_LEN
	.comm	_HCLGE_32_BIT_REG_RTN_DATANUM,4,2 ; @HCLGE_32_BIT_REG_RTN_DATANUM
	.no_dead_strip	_hclge_get_32_bit_regs
.subsections_via_symbols
