	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_nic_try_get_ae
_hns_nic_try_get_ae:                    ## @hns_nic_try_get_ae
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r12
	movq	32(%rax), %rdi
	movl	20(%rax), %edx
	movl	24(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	callq	_hnae_get_handle
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	16(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	jmp	LBB0_10
LBB0_2:
	movq	%rbx, (%r12)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_hns_nic_init_phy
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	movl	16(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_9
LBB0_4:
	movq	%r12, %rdi
	callq	_hns_nic_init_ring_data
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_9
LBB0_6:
	movq	%r15, %rdi
	callq	_hns_nic_set_priv_ops
	movq	%r15, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %r14d
	movl	16(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	movq	%r12, %rdi
	callq	_hns_nic_uninit_ring_data
	movq	$0, 8(%r12)
LBB0_9:
	movq	(%r12), %rdi
	callq	_hnae_put_handle
	movq	$0, (%r12)
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"has not handle, register notifier!\n"

L_.str.1:                               ## @.str.1
	.asciz	"probe phy device fail!\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"probe register netdev fail!\n"

	.no_dead_strip	_hns_nic_try_get_ae
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_nic_try_get_ae
_hns_nic_try_get_ae:                    ; @hns_nic_try_get_ae
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x0, [x0, #32]
	ldp	w2, w1, [x19, #20]
	mov	x3, #0
	bl	_hnae_get_handle
	mov	x20, x0
	bl	_IS_ERR_OR_NULL
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	ldr	w0, [x19, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	b	LBB0_9
LBB0_2:
	str	x20, [x19]
	mov	x0, x21
	mov	x1, x20
	bl	_hns_nic_init_phy
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
	ldr	w0, [x19, #16]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_8
LBB0_4:
	mov	x0, x19
	bl	_hns_nic_init_ring_data
	cbz	w0, LBB0_6
; %bb.5:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_6:
	mov	x0, x21
	bl	_hns_nic_set_priv_ops
	mov	x0, x21
	bl	_register_netdev
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.7:
	ldr	w0, [x19, #16]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	mov	x0, x19
	bl	_hns_nic_uninit_ring_data
	str	xzr, [x19, #8]
LBB0_8:
	ldr	x0, [x19]
	bl	_hnae_put_handle
	str	xzr, [x19]
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"has not handle, register notifier!\n"

l_.str.1:                               ; @.str.1
	.asciz	"probe phy device fail!\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"probe register netdev fail!\n"

	.no_dead_strip	_hns_nic_try_get_ae
.subsections_via_symbols
