	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns3_client_init
_hns3_client_init:                      ## @hns3_client_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	32(%rdi), %r13
	movq	24(%rdi), %rax
	movq	(%rax), %rax
	leaq	-44(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	*(%rax)
	movl	-44(%rbp), %esi
	movl	$48, %edi
	callq	_alloc_etherdev_mq
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%r13, 24(%rax)
	movq	%rbx, 40(%rax)
	movq	%r15, (%rax)
	movq	$0, 32(%rax)
	movq	_HNS3_NIC_STATE_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r14), %r12
	movq	%r12, %rsi
	callq	_set_bit
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DEFAULT_MSG_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_netif_msg_init
	movl	%eax, 16(%r15)
	movq	%rbx, 8(%r15)
	movq	%r14, (%r15)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_hns3_init_mac_addr
	movq	%rbx, %rdi
	callq	_hns3_set_default_feature
	movq	_HNS3_TX_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_IFF_UNICAST_FLT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
	movq	_hns3_nic_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_SET_NETDEV_DEV
	movq	%rbx, %rdi
	callq	_hns3_ethtool_set_ops
	movq	%rbx, %rdi
	callq	_netif_carrier_off
	movq	%r14, %rdi
	callq	_hns3_get_ring_config
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_20
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_21
LBB0_4:
	movq	%r14, %rdi
	callq	_hns3_nic_alloc_vector_data
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_19
LBB0_6:
	movq	%r14, %rdi
	callq	_hns3_nic_init_vector_data
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_18
LBB0_8:
	movq	%r14, %rdi
	callq	_hns3_init_all_ring
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_17
LBB0_10:
	movq	%rbx, %rdi
	callq	_hns3_init_phy
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.11:
	movq	%rbx, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %r13d
	movq	24(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
LBB0_13:
	movq	%r15, %rdi
	callq	_hns3_client_start
	testl	%eax, %eax
	je	LBB0_22
## %bb.14:
	movl	%eax, %r13d
	movq	24(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_unregister_netdev
LBB0_15:
	movq	%rbx, %rdi
	callq	_hns3_uninit_phy
LBB0_16:
	movq	%r14, %rdi
	callq	_hns3_uninit_all_ring
LBB0_17:
	movq	%r14, %rdi
	callq	_hns3_nic_uninit_vector_data
LBB0_18:
	movq	%r14, %rdi
	callq	_hns3_nic_dealloc_vector_data
LBB0_19:
	movq	$0, 8(%r14)
LBB0_20:
	movq	$0, (%r14)
	movq	%rbx, %rdi
	callq	_free_netdev
LBB0_21:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	%r15, %rdi
	callq	_hns3_dcbnl_setup
	movq	%r15, %rdi
	callq	_hns3_dbg_init
	movq	_HNS3_MAX_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_HNS3_NIC_STATE_INITED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_set_bit
	movq	%r15, %rdi
	callq	_netif_msg_drv
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_21
## %bb.23:
	movq	%r14, %rdi
	callq	_hns3_info_show
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HNS3_NIC_STATE_DOWN,4,2        ## @HNS3_NIC_STATE_DOWN
	.comm	_debug,4,2                      ## @debug
	.comm	_DEFAULT_MSG_LEVEL,4,2          ## @DEFAULT_MSG_LEVEL
	.comm	_HNS3_TX_TIMEOUT,4,2            ## @HNS3_TX_TIMEOUT
	.comm	_IFF_UNICAST_FLT,4,2            ## @IFF_UNICAST_FLT
	.comm	_hns3_nic_netdev_ops,4,2        ## @hns3_nic_netdev_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"probe register netdev fail!\n"

L_.str.1:                               ## @.str.1
	.asciz	"hns3_client_start fail! ret=%d\n"

	.comm	_HNS3_MAX_MTU,4,2               ## @HNS3_MAX_MTU
	.comm	_HNS3_NIC_STATE_INITED,4,2      ## @HNS3_NIC_STATE_INITED
	.no_dead_strip	_hns3_client_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns3_client_init
_hns3_client_init:                      ; @hns3_client_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x0
	ldp	x8, x23, [x0, #24]
	ldr	x8, [x8]
	ldr	x8, [x8]
	add	x1, sp, #12
	add	x2, sp, #8
	blr	x8
	ldr	w1, [sp, #12]
	mov	w0, #48
	bl	_alloc_etherdev_mq
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	stp	xzr, x20, [x0, #32]
	str	x21, [x0]
	str	x23, [x0, #24]
Lloh0:
	adrp	x8, _HNS3_NIC_STATE_DOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HNS3_NIC_STATE_DOWN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x22, x19, #16
	mov	x1, x22
	bl	_set_bit
Lloh3:
	adrp	x8, _debug@GOTPAGE
Lloh4:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _DEFAULT_MSG_LEVEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DEFAULT_MSG_LEVEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_netif_msg_init
	str	w0, [x21, #16]
	stp	x19, x20, [x21]
	mov	x0, x20
	mov	w1, #1
	bl	_hns3_init_mac_addr
	mov	x0, x20
	bl	_hns3_set_default_feature
Lloh9:
	adrp	x8, _HNS3_TX_TIMEOUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HNS3_TX_TIMEOUT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _IFF_UNICAST_FLT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IFF_UNICAST_FLT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	ldr	w10, [x20, #16]
	orr	w9, w10, w9
	stp	w9, w8, [x20, #16]
Lloh15:
	adrp	x8, _hns3_nic_netdev_ops@GOTPAGE
Lloh16:
	ldr	x8, [x8, _hns3_nic_netdev_ops@GOTPAGEOFF]
	str	x8, [x20, #8]
	mov	x0, x20
	mov	x1, x23
	bl	_SET_NETDEV_DEV
	mov	x0, x20
	bl	_hns3_ethtool_set_ops
	mov	x0, x20
	bl	_netif_carrier_off
	mov	x0, x19
	bl	_hns3_get_ring_config
	cbz	w0, LBB0_4
; %bb.2:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_20
LBB0_3:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_21
LBB0_4:
	mov	x0, x19
	bl	_hns3_nic_alloc_vector_data
	cbz	w0, LBB0_6
; %bb.5:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_19
LBB0_6:
	mov	x0, x19
	bl	_hns3_nic_init_vector_data
	cbz	w0, LBB0_8
; %bb.7:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_18
LBB0_8:
	mov	x0, x19
	bl	_hns3_init_all_ring
	cbz	w0, LBB0_10
; %bb.9:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_17
LBB0_10:
	mov	x0, x20
	bl	_hns3_init_phy
	mov	x23, x0
	cbnz	w0, LBB0_16
; %bb.11:
	mov	x0, x20
	bl	_register_netdev
	cbz	w0, LBB0_13
; %bb.12:
	mov	x23, x0
	ldr	x0, [x19, #24]
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_15
LBB0_13:
	mov	x0, x21
	bl	_hns3_client_start
	cbz	w0, LBB0_22
; %bb.14:
	mov	x23, x0
	ldr	x0, [x19, #24]
	str	x23, [sp]
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	mov	x0, x20
	bl	_unregister_netdev
LBB0_15:
	mov	x0, x20
	bl	_hns3_uninit_phy
LBB0_16:
	mov	x0, x19
	bl	_hns3_uninit_all_ring
LBB0_17:
	mov	x0, x19
	bl	_hns3_nic_uninit_vector_data
LBB0_18:
	mov	x0, x19
	bl	_hns3_nic_dealloc_vector_data
LBB0_19:
	str	xzr, [x19, #8]
LBB0_20:
	str	xzr, [x19]
	mov	x0, x20
	bl	_free_netdev
LBB0_21:
	mov	x0, x23
	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
	add	sp, sp, #80
	ret
LBB0_22:
	mov	x0, x21
	bl	_hns3_dcbnl_setup
	mov	x0, x21
	bl	_hns3_dbg_init
Lloh36:
	adrp	x8, _HNS3_MAX_MTU@GOTPAGE
Lloh37:
	ldr	x8, [x8, _HNS3_MAX_MTU@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh39:
	adrp	x8, _HNS3_NIC_STATE_INITED@GOTPAGE
Lloh40:
	ldr	x8, [x8, _HNS3_NIC_STATE_INITED@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_set_bit
	mov	x0, x21
	bl	_netif_msg_drv
	cbz	x0, LBB0_24
; %bb.23:
	mov	x0, x19
	bl	_hns3_info_show
LBB0_24:
	mov	w23, #0
	b	LBB0_21
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HNS3_NIC_STATE_DOWN,4,2        ; @HNS3_NIC_STATE_DOWN
	.comm	_debug,4,2                      ; @debug
	.comm	_DEFAULT_MSG_LEVEL,4,2          ; @DEFAULT_MSG_LEVEL
	.comm	_HNS3_TX_TIMEOUT,4,2            ; @HNS3_TX_TIMEOUT
	.comm	_IFF_UNICAST_FLT,4,2            ; @IFF_UNICAST_FLT
	.comm	_hns3_nic_netdev_ops,4,2        ; @hns3_nic_netdev_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"probe register netdev fail!\n"

l_.str.1:                               ; @.str.1
	.asciz	"hns3_client_start fail! ret=%d\n"

	.comm	_HNS3_MAX_MTU,4,2               ; @HNS3_MAX_MTU
	.comm	_HNS3_NIC_STATE_INITED,4,2      ; @HNS3_NIC_STATE_INITED
	.no_dead_strip	_hns3_client_init
.subsections_via_symbols
