	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns3_nic_net_open
_hns3_nic_net_open:                     ## @hns3_nic_net_open
	.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, %r12
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_hns3_get_handle
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_hns3_nic_resetting
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_2:
	movq	%r12, %rdi
	callq	_netif_carrier_off
	movq	%r12, %rdi
	callq	_hns3_nic_set_real_num_queue
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	movq	%r12, %rdi
	callq	_hns3_nic_net_up
	testl	%eax, %eax
	je	LBB0_4
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_netdev_err
	jmp	LBB0_10
LBB0_4:
	movq	_HNAE3_MAX_USER_PRIO@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_netdev_set_prio_tc_map
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	(%r15), %edi
	movl	$1, %esi
	callq	*%rax
LBB0_9:
	movq	%r15, %rdi
	callq	_hns3_config_xps
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_netif_dbg
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"net up fail, ret=%d!\n"

	.comm	_HNAE3_MAX_USER_PRIO,4,2        ## @HNAE3_MAX_USER_PRIO
	.comm	_drv,4,2                        ## @drv
L_.str.1:                               ## @.str.1
	.asciz	"net open\n"

	.no_dead_strip	_hns3_nic_net_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns3_nic_net_open
_hns3_nic_net_open:                     ; @hns3_nic_net_open
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	mov	x0, x19
	bl	_hns3_get_handle
	mov	x20, x0
	mov	x0, x19
	bl	_hns3_nic_resetting
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_11
LBB0_2:
	mov	x0, x19
	bl	_netif_carrier_off
	mov	x0, x19
	bl	_hns3_nic_set_real_num_queue
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.3:
	mov	x0, x19
	bl	_hns3_nic_net_up
	cbz	w0, LBB0_5
; %bb.4:
	mov	x22, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_netdev_err
	b	LBB0_11
LBB0_5:
Lloh5:
	adrp	x23, _HNAE3_MAX_USER_PRIO@GOTPAGE
Lloh6:
	ldr	x23, [x23, _HNAE3_MAX_USER_PRIO@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x22, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w2, [x8, x22, lsl #2]
	mov	x0, x19
	mov	x1, x22
	bl	_netdev_set_prio_tc_map
	add	x22, x22, #1
	ldrsw	x8, [x23]
	cmp	x22, x8
	b.lt	LBB0_7
LBB0_8:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	w0, [x21]
	mov	w1, #1
	blr	x8
LBB0_10:
	mov	x0, x21
	bl	_hns3_config_xps
Lloh7:
	adrp	x8, _drv@GOTPAGE
Lloh8:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x3, l_.str.1@PAGE
Lloh11:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_netif_dbg
	mov	w22, #0
LBB0_11:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"net up fail, ret=%d!\n"

	.comm	_HNAE3_MAX_USER_PRIO,4,2        ; @HNAE3_MAX_USER_PRIO
	.comm	_drv,4,2                        ; @drv
l_.str.1:                               ; @.str.1
	.asciz	"net open\n"

	.no_dead_strip	_hns3_nic_net_open
.subsections_via_symbols
