	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_nic_net_open
_hns_nic_net_open:                      ## @hns_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	16(%rax), %r15
	movq	_NIC_STATE_TESTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_test_bit
	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	$0, (%rbx)
	movq	%r14, %rdi
	callq	_netif_carrier_off
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_netif_set_real_num_tx_queues
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_netif_set_real_num_rx_queues
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	%r14, %rdi
	callq	_hns_nic_net_up
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_9
LBB0_3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_9
LBB0_5:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_9:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_netdev_err
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_NIC_STATE_TESTING,4,2          ## @NIC_STATE_TESTING
	.comm	_EBUSY,4,2                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"netif_set_real_num_tx_queues fail, ret=%d!\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"hns net up fail, ret=%d!\n"

	.no_dead_strip	_hns_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 hns_nic_net_open
_hns_nic_net_open:                      ; @hns_nic_net_open
	.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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x21, [x0, #16]
Lloh0:
	adrp	x8, _NIC_STATE_TESTING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIC_STATE_TESTING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x20, #8
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_2:
	str	xzr, [x20]
	mov	x0, x19
	bl	_netif_carrier_off
	ldr	w1, [x21]
	mov	x0, x19
	bl	_netif_set_real_num_tx_queues
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_netif_set_real_num_rx_queues
	tbnz	w0, #31, LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_hns_nic_net_up
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.5:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_6:
	mov	x20, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
	mov	x20, x0
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	mov	x0, x19
	mov	x2, x20
	bl	_netdev_err
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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NIC_STATE_TESTING,4,2          ; @NIC_STATE_TESTING
	.comm	_EBUSY,4,2                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"netif_set_real_num_tx_queues fail, ret=%d!\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"hns net up fail, ret=%d!\n"

	.no_dead_strip	_hns_nic_net_open
.subsections_via_symbols
