	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_uninit_client_instance
_hclge_uninit_client_instance:          ## @hclge_uninit_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	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rdx
	cmpl	$0, (%rdx)
	js	LBB0_15
## %bb.1:
	leaq	16(%rdx), %rbx
	xorl	%r12d, %r12d
	movq	_HCLGE_STATE_RST_HANDLING@GOTPCREL(%rip), %r14
	movq	_HCLGE_WAIT_RESET_DONE@GOTPCREL(%rip), %r15
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	*(%rax)
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	$0, 8(%rdx)
	movq	$0, (%r13)
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%r12), %rax
	movslq	(%rdx), %rcx
	cmpq	%rcx, %r12
	movq	%rax, %r12
	jge	LBB0_15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
	movq	32(%rdx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rax
	shlq	$4, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	cmpq	$0, 24(%rdx)
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	_HCLGE_STATE_ROCE_REGISTERED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	(%r15), %edi
	callq	_msleep
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%r13), %rdi
	addq	$8, %rdi
	xorl	%esi, %esi
	callq	*(%rax)
	movq	%r12, %rdx
	movq	$0, 24(%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	$0, 8(%rax,%r13)
	movq	-80(%rbp), %r12                 ## 8-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_HNAE3_CLIENT_ROCE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 8(%rdx)
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	addq	-72(%rbp), %r13                 ## 8-byte Folded Reload
	movq	_HCLGE_STATE_NIC_REGISTERED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_12 Depth=2
	movl	(%r15), %edi
	callq	_msleep
	jmp	LBB0_12
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_STATE_ROCE_REGISTERED,4,2 ## @HCLGE_STATE_ROCE_REGISTERED
	.comm	_HCLGE_STATE_RST_HANDLING,4,2   ## @HCLGE_STATE_RST_HANDLING
	.comm	_HCLGE_WAIT_RESET_DONE,4,2      ## @HCLGE_WAIT_RESET_DONE
	.comm	_HNAE3_CLIENT_ROCE,8,3          ## @HNAE3_CLIENT_ROCE
	.comm	_HCLGE_STATE_NIC_REGISTERED,4,2 ## @HCLGE_STATE_NIC_REGISTERED
	.no_dead_strip	_hclge_uninit_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_uninit_client_instance
_hclge_uninit_client_instance:          ; @hclge_uninit_client_instance
	.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
	ldr	x22, [x1]
	ldr	w8, [x22]
	tbnz	w8, #31, LBB0_15
; %bb.1:
	mov	x19, x0
	mov	x23, #0
	add	x20, x22, #16
Lloh0:
	adrp	x24, _HNAE3_CLIENT_ROCE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _HNAE3_CLIENT_ROCE@GOTPAGEOFF]
Lloh2:
	adrp	x26, _HCLGE_STATE_RST_HANDLING@GOTPAGE
Lloh3:
	ldr	x26, [x26, _HCLGE_STATE_RST_HANDLING@GOTPAGEOFF]
Lloh4:
	adrp	x27, _HCLGE_WAIT_RESET_DONE@GOTPAGE
Lloh5:
	ldr	x27, [x27, _HCLGE_WAIT_RESET_DONE@GOTPAGEOFF]
Lloh6:
	adrp	x28, _HCLGE_STATE_ROCE_REGISTERED@GOTPAGE
Lloh7:
	ldr	x28, [x28, _HCLGE_STATE_ROCE_REGISTERED@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, x23, lsl #4
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x21
	mov	w1, #0
	blr	x8
	str	xzr, [x22, #8]
	str	xzr, [x21]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x23, #1
	ldrsw	x9, [x22]
	cmp	x23, x9
	mov	x23, x8
	b.ge	LBB0_15
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
	ldp	x8, x21, [x22, #24]
	cbz	x8, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x28]
	mov	x1, x20
	bl	_clear_bit
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x26]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w0, [x27]
	bl	_msleep
	b	LBB0_6
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, #24]
	ldr	x8, [x8]
	ldr	x8, [x8]
	add	x25, x21, x23, lsl #4
	add	x0, x25, #8
	mov	w1, #0
	blr	x8
	str	xzr, [x22, #24]
	str	xzr, [x25, #8]
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh8:
	adrp	x8, _HCLGE_STATE_NIC_REGISTERED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HCLGE_STATE_NIC_REGISTERED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_clear_bit
LBB0_13:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x26]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	w0, [x27]
	bl	_msleep
	b	LBB0_13
LBB0_15:
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_STATE_ROCE_REGISTERED,4,2 ; @HCLGE_STATE_ROCE_REGISTERED
	.comm	_HCLGE_STATE_RST_HANDLING,4,2   ; @HCLGE_STATE_RST_HANDLING
	.comm	_HCLGE_WAIT_RESET_DONE,4,2      ; @HCLGE_WAIT_RESET_DONE
	.comm	_HNAE3_CLIENT_ROCE,8,3          ; @HNAE3_CLIENT_ROCE
	.comm	_HCLGE_STATE_NIC_REGISTERED,4,2 ; @HCLGE_STATE_NIC_REGISTERED
	.no_dead_strip	_hclge_uninit_client_instance
.subsections_via_symbols
