	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_init_nic_client_instance
_hclge_init_nic_client_instance:        ## @hclge_init_nic_client_instance
	.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
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	(%rsi), %rbx
	movq	8(%rdi), %r14
	movl	16(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %rax
	movq	%rsi, %rdi
	callq	*(%rax)
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	_HCLGE_STATE_NIC_REGISTERED@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_set_bit
	movq	_HCLGE_STATE_RST_HANDLING@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_3
## %bb.2:
	cmpl	16(%r14), %r12d
	jne	LBB0_3
## %bb.8:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_hclge_config_nic_hw_error
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r12d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_dev_err
	jmp	LBB0_4
LBB0_3:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_4:
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_HCLGE_WAIT_RESET_DONE@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	callq	_msleep
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_6
LBB0_7:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	*8(%rax)
LBB0_12:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_hnae3_set_client_init_flag
	movq	8(%r14), %rdi
	callq	_netif_msg_drv
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_hclge_info_show
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_STATE_NIC_REGISTERED,4,2 ## @HCLGE_STATE_NIC_REGISTERED
	.comm	_HCLGE_STATE_RST_HANDLING,4,2   ## @HCLGE_STATE_RST_HANDLING
	.comm	_EBUSY,4,2                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fail(%d) to enable hw error interrupts\n"

	.comm	_HCLGE_WAIT_RESET_DONE,4,2      ## @HCLGE_WAIT_RESET_DONE
	.no_dead_strip	_hclge_init_nic_client_instance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_init_nic_client_instance
_hclge_init_nic_client_instance:        ; @hclge_init_nic_client_instance
	.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
	mov	x20, x1
	mov	x23, x0
	ldr	x21, [x1]
	ldr	x19, [x0, #8]
	ldr	w26, [x19, #16]
	ldr	x8, [x21]
	ldr	x8, [x8]
	mov	x0, x1
	blr	x8
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.1:
Lloh0:
	adrp	x25, _HCLGE_STATE_NIC_REGISTERED@GOTPAGE
Lloh1:
	ldr	x25, [x25, _HCLGE_STATE_NIC_REGISTERED@GOTPAGEOFF]
	ldr	w0, [x25]
	mov	x1, x19
	bl	_set_bit
Lloh2:
	adrp	x24, _HCLGE_STATE_RST_HANDLING@GOTPAGE
Lloh3:
	ldr	x24, [x24, _HCLGE_STATE_RST_HANDLING@GOTPAGEOFF]
	ldr	w0, [x24]
	mov	x1, x19
	bl	_test_bit
	cbnz	x0, LBB0_5
; %bb.2:
	ldr	w8, [x19, #16]
	cmp	w26, w8
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x19
	mov	w1, #1
	bl	_hclge_config_nic_hw_error
	cbz	w0, LBB0_11
; %bb.4:
	mov	x22, x0
	ldr	x0, [x23]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_err
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	ldr	w0, [x25]
	mov	x1, x19
	bl	_clear_bit
	ldr	w0, [x24]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_9
; %bb.7:
Lloh9:
	adrp	x23, _HCLGE_WAIT_RESET_DONE@GOTPAGE
Lloh10:
	ldr	x23, [x23, _HCLGE_WAIT_RESET_DONE@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	bl	_msleep
	ldr	w0, [x24]
	mov	x1, x19
	bl	_test_bit
	cbnz	x0, LBB0_8
LBB0_9:
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	mov	x0, x20
	mov	w1, #0
	blr	x8
LBB0_10:
	mov	x0, x22
	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_11:
	mov	x0, x21
	mov	x1, x23
	mov	w2, #1
	bl	_hnae3_set_client_init_flag
	ldr	x0, [x19, #8]
	bl	_netif_msg_drv
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_hclge_info_show
LBB0_13:
	mov	w22, #0
	b	LBB0_10
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_STATE_NIC_REGISTERED,4,2 ; @HCLGE_STATE_NIC_REGISTERED
	.comm	_HCLGE_STATE_RST_HANDLING,4,2   ; @HCLGE_STATE_RST_HANDLING
	.comm	_EBUSY,4,2                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fail(%d) to enable hw error interrupts\n"

	.comm	_HCLGE_WAIT_RESET_DONE,4,2      ; @HCLGE_WAIT_RESET_DONE
	.no_dead_strip	_hclge_init_nic_client_instance
.subsections_via_symbols
