	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclgevf_init_hdev
_hclgevf_init_hdev:                     ## @hclgevf_init_hdev
	.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	8(%rdi), %rbx
	callq	_hclgevf_pci_init
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	addq	$4, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_32
LBB0_2:
	movq	%r14, %rdi
	callq	_hclgevf_cmd_queue_init
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %r15d
	addq	$4, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_4
LBB0_5:
	movq	%r14, %rdi
	callq	_hclgevf_cmd_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.6:
	movq	%r14, %rdi
	callq	_hclgevf_query_vf_resource
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r15d
	movq	8(%r14), %rdi
	addq	$4, %rdi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_10
LBB0_8:
	movq	%r14, %rdi
	callq	_hclgevf_init_msi
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	movl	%eax, %r15d
	addq	$4, %rbx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
LBB0_10:
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_14:
	movq	%r14, %rdi
	callq	_hclgevf_cmd_uninit
LBB0_4:
	movq	%r14, %rdi
	callq	_hclgevf_pci_uninit
	movq	_HCLGEVF_STATE_IRQ_INITED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
LBB0_32:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r14, %rdi
	callq	_hclgevf_state_init
	movq	_HNAE3_VF_FUNC_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	%r14, %rdi
	callq	_hclgevf_misc_irq_init
	testl	%eax, %eax
	je	LBB0_15
## %bb.12:
	movl	%eax, %r15d
	addq	$4, %rbx
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_13
LBB0_15:
	movq	_HCLGEVF_STATE_IRQ_INITED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	movq	%r14, %rdi
	callq	_hclgevf_configure
	testl	%eax, %eax
	je	LBB0_20
## %bb.16:
	movl	%eax, %r15d
	addq	$4, %rbx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_17
LBB0_20:
	movq	%r14, %rdi
	callq	_hclgevf_alloc_tqps
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	%eax, %r15d
	addq	$4, %rbx
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_17
LBB0_22:
	movq	%r14, %rdi
	callq	_hclgevf_set_handle_info
	testl	%eax, %eax
	je	LBB0_24
## %bb.23:
	movl	%eax, %r15d
	addq	$4, %rbx
	leaq	L_.str.7(%rip), %rsi
LBB0_17:
	movq	%rbx, %rdi
LBB0_18:
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_19:
	movq	%r14, %rdi
	callq	_hclgevf_misc_irq_uninit
LBB0_13:
	movq	%r14, %rdi
	callq	_hclgevf_state_uninit
	movq	%r14, %rdi
	callq	_hclgevf_uninit_msi
	jmp	LBB0_14
LBB0_24:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_hclgevf_config_gro
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.25:
	cmpl	$33, (%rbx)
	jl	LBB0_27
## %bb.26:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_hclgevf_set_promisc_mode
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_19
LBB0_27:
	movq	%r14, %rdi
	callq	_hclgevf_rss_init_hw
	testl	%eax, %eax
	je	LBB0_29
## %bb.28:
	movl	%eax, %r15d
	movq	8(%r14), %rdi
	addq	$4, %rdi
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_18
LBB0_29:
	movq	%r14, %rdi
	callq	_hclgevf_init_vlan_config
	testl	%eax, %eax
	je	LBB0_31
## %bb.30:
	movl	%eax, %r15d
	movq	8(%r14), %rdi
	addq	$4, %rdi
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_18
LBB0_31:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	8(%r14), %rdi
	addq	$4, %rdi
	movq	_HCLGEVF_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.10(%rip), %rsi
	callq	_dev_info
	xorl	%r15d, %r15d
	jmp	LBB0_32
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCI initialization failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"Cmd queue init failed: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Query vf status error, ret = %d.\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed(%d) to init MSI/MSI-X\n"

	.comm	_HNAE3_VF_FUNC_RESET,4,2        ## @HNAE3_VF_FUNC_RESET
L_.str.4:                               ## @.str.4
	.asciz	"failed(%d) to init Misc IRQ(vector0)\n"

	.comm	_HCLGEVF_STATE_IRQ_INITED,4,2   ## @HCLGEVF_STATE_IRQ_INITED
L_.str.5:                               ## @.str.5
	.asciz	"failed(%d) to fetch configuration\n"

L_.str.6:                               ## @.str.6
	.asciz	"failed(%d) to allocate TQPs\n"

L_.str.7:                               ## @.str.7
	.asciz	"failed(%d) to set handle info\n"

L_.str.8:                               ## @.str.8
	.asciz	"failed(%d) to initialize RSS\n"

L_.str.9:                               ## @.str.9
	.asciz	"failed(%d) to initialize VLAN config\n"

	.comm	_jiffies,4,2                    ## @jiffies
L_.str.10:                              ## @.str.10
	.asciz	"finished initializing %s driver\n"

	.comm	_HCLGEVF_DRIVER_NAME,4,2        ## @HCLGEVF_DRIVER_NAME
	.no_dead_strip	_hclgevf_init_hdev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclgevf_init_hdev
_hclgevf_init_hdev:                     ; @hclgevf_init_hdev
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x22, [x0, #8]
	bl	_hclgevf_pci_init
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	add	x0, x22, #4
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_12
LBB0_2:
	mov	x0, x19
	bl	_hclgevf_cmd_queue_init
Lloh2:
	adrp	x21, _HCLGEVF_STATE_IRQ_INITED@GOTPAGE
Lloh3:
	ldr	x21, [x21, _HCLGEVF_STATE_IRQ_INITED@GOTPAGEOFF]
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
	add	x0, x22, #4
	str	x20, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_11
LBB0_4:
	mov	x0, x19
	bl	_hclgevf_cmd_init
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.5:
	mov	x0, x19
	bl	_hclgevf_query_vf_resource
	cbz	w0, LBB0_7
; %bb.6:
	mov	x20, x0
	ldr	x8, [x19, #8]
	add	x0, x8, #4
	str	x20, [sp]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_hclgevf_init_msi
	cbz	w0, LBB0_13
; %bb.8:
	mov	x20, x0
	add	x0, x22, #4
	str	x20, [sp]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_9:
	bl	_dev_err
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
LBB0_10:
	mov	x0, x19
	bl	_hclgevf_cmd_uninit
LBB0_11:
	mov	x0, x19
	bl	_hclgevf_pci_uninit
	ldr	w0, [x21]
	mov	x1, x19
	bl	_clear_bit
LBB0_12:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
LBB0_13:
	mov	x0, x19
	bl	_hclgevf_state_init
Lloh10:
	adrp	x8, _HNAE3_VF_FUNC_RESET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HNAE3_VF_FUNC_RESET@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	mov	x0, x19
	bl	_hclgevf_misc_irq_init
	cbz	w0, LBB0_15
; %bb.14:
	mov	x20, x0
	add	x0, x22, #4
	str	x20, [sp]
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	b	LBB0_23
LBB0_15:
	ldr	w0, [x21]
	mov	x1, x19
	bl	_set_bit
	mov	x0, x19
	bl	_hclgevf_configure
	cbz	w0, LBB0_17
; %bb.16:
	mov	x20, x0
	add	x0, x22, #4
	str	x20, [sp]
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_21
LBB0_17:
	mov	x0, x19
	bl	_hclgevf_alloc_tqps
	cbz	w0, LBB0_19
; %bb.18:
	mov	x20, x0
	add	x0, x22, #4
	str	x20, [sp]
Lloh17:
	adrp	x1, l_.str.6@PAGE
Lloh18:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_21
LBB0_19:
	mov	x0, x19
	bl	_hclgevf_set_handle_info
	cbz	w0, LBB0_24
; %bb.20:
	mov	x20, x0
	add	x0, x22, #4
	str	x20, [sp]
Lloh19:
	adrp	x1, l_.str.7@PAGE
Lloh20:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_21:
	bl	_dev_err
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
LBB0_22:
	mov	x0, x19
	bl	_hclgevf_misc_irq_uninit
LBB0_23:
	mov	x0, x19
	bl	_hclgevf_state_uninit
	mov	x0, x19
	bl	_hclgevf_uninit_msi
	b	LBB0_10
LBB0_24:
	mov	x0, x19
	mov	w1, #1
	bl	_hclgevf_config_gro
	mov	x20, x0
	cbnz	w0, LBB0_22
; %bb.25:
	ldr	w8, [x22]
	cmp	w8, #33
	b.lt	LBB0_27
; %bb.26:
	mov	x0, x19
	mov	w1, #1
	bl	_hclgevf_set_promisc_mode
	mov	x20, x0
	cbnz	w0, LBB0_22
LBB0_27:
	mov	x0, x19
	bl	_hclgevf_rss_init_hw
	cbz	w0, LBB0_29
; %bb.28:
	mov	x20, x0
	ldr	x8, [x19, #8]
	add	x0, x8, #4
	str	x20, [sp]
Lloh21:
	adrp	x1, l_.str.8@PAGE
Lloh22:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_21
LBB0_29:
	mov	x0, x19
	bl	_hclgevf_init_vlan_config
	mov	x20, x0
	cbz	w0, LBB0_31
; %bb.30:
	ldr	x8, [x19, #8]
	add	x0, x8, #4
	str	x20, [sp]
Lloh23:
	adrp	x1, l_.str.9@PAGE
Lloh24:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_21
LBB0_31:
Lloh25:
	adrp	x8, _jiffies@GOTPAGE
Lloh26:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldr	x8, [x19, #8]
	add	x0, x8, #4
Lloh28:
	adrp	x8, _HCLGEVF_DRIVER_NAME@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HCLGEVF_DRIVER_NAME@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
Lloh31:
	adrp	x1, l_.str.10@PAGE
Lloh32:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_dev_info
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCI initialization failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"Cmd queue init failed: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Query vf status error, ret = %d.\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed(%d) to init MSI/MSI-X\n"

	.comm	_HNAE3_VF_FUNC_RESET,4,2        ; @HNAE3_VF_FUNC_RESET
l_.str.4:                               ; @.str.4
	.asciz	"failed(%d) to init Misc IRQ(vector0)\n"

	.comm	_HCLGEVF_STATE_IRQ_INITED,4,2   ; @HCLGEVF_STATE_IRQ_INITED
l_.str.5:                               ; @.str.5
	.asciz	"failed(%d) to fetch configuration\n"

l_.str.6:                               ; @.str.6
	.asciz	"failed(%d) to allocate TQPs\n"

l_.str.7:                               ; @.str.7
	.asciz	"failed(%d) to set handle info\n"

l_.str.8:                               ; @.str.8
	.asciz	"failed(%d) to initialize RSS\n"

l_.str.9:                               ; @.str.9
	.asciz	"failed(%d) to initialize VLAN config\n"

	.comm	_jiffies,4,2                    ; @jiffies
l_.str.10:                              ; @.str.10
	.asciz	"finished initializing %s driver\n"

	.comm	_HCLGEVF_DRIVER_NAME,4,2        ; @HCLGEVF_DRIVER_NAME
	.no_dead_strip	_hclgevf_init_hdev
.subsections_via_symbols
