	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_nic_net_up
_hns_nic_net_up:                        ## @hns_nic_net_up
	.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, %r14
	movq	8(%rax), %r15
	movq	_NIC_STATE_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	callq	_hns_nic_init_irq
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_netdev_err
	jmp	LBB0_18
LBB0_3:
	xorl	%r13d, %r13d
	jmp	LBB0_18
LBB0_4:
	cmpl	$0, (%r15)
	jle	LBB0_8
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_hns_nic_ring_open
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incl	%ebx
	movl	(%r15), %eax
	addl	%eax, %eax
	cmpl	%eax, %ebx
	jl	LBB0_6
	jmp	LBB0_9
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	8(%r12), %esi
	movq	%r15, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_12
LBB0_11:
	movl	%eax, %r13d
	testl	%ebx, %ebx
	jle	LBB0_17
LBB0_15:
	incl	%ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %esi
	movq	%r12, %rdi
	callq	_hns_nic_ring_close
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_16
LBB0_17:
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_hns_nic_free_irq
	movq	_NIC_STATE_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
LBB0_18:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.13:
	movq	%r15, %rdi
	callq	*%rax
	testl	%eax, %eax
	je	LBB0_19
## %bb.14:
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_netif_stop_queue
	testl	%ebx, %ebx
	jg	LBB0_15
	jmp	LBB0_17
LBB0_19:
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.20:
	callq	_phy_start
LBB0_21:
	movq	_NIC_STATE_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	addq	$4, %r14
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_SERVICE_TIMER_HZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_mod_timer
	xorl	%r13d, %r13d
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_NIC_STATE_DOWN,4,2             ## @NIC_STATE_DOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hns init irq failed! ret=%d\n"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_SERVICE_TIMER_HZ,8,3           ## @SERVICE_TIMER_HZ
	.no_dead_strip	_hns_nic_net_up
.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_up
_hns_nic_net_up:                        ; @hns_nic_net_up
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x24, _NIC_STATE_DOWN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NIC_STATE_DOWN@GOTPAGEOFF]
	ldr	w0, [x24]
	mov	x1, x19
	bl	_test_bit
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_hns_nic_init_irq
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_netdev_err
	b	LBB0_14
LBB0_3:
	mov	w22, #0
	b	LBB0_14
LBB0_4:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	mov	w23, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_hns_nic_ring_open
	cbnz	w0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w23, w23, #1
	ldr	w8, [x21]
	cmp	w23, w8, lsl #1
	b.lt	LBB0_6
	b	LBB0_9
LBB0_8:
	mov	w23, #0
LBB0_9:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w1, [x20, #8]
	mov	x0, x21
	blr	x8
	cbz	w0, LBB0_15
LBB0_10:
	mov	x22, x0
	cmp	w23, #1
	b.lt	LBB0_13
LBB0_11:
	add	w23, w23, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	sub	w1, w23, #2
	mov	x0, x20
	bl	_hns_nic_ring_close
	sub	w23, w23, #1
	cmp	w23, #1
	b.hi	LBB0_12
LBB0_13:
	ldr	w0, [x21]
	mov	x1, x19
	bl	_hns_nic_free_irq
	ldr	w0, [x24]
	mov	x1, x19
	bl	_set_bit
LBB0_14:
	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
LBB0_15:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_18
; %bb.16:
	mov	x0, x21
	blr	x8
	cbz	w0, LBB0_18
; %bb.17:
	mov	x22, x0
	mov	x0, x20
	bl	_netif_stop_queue
	cmp	w23, #1
	b.ge	LBB0_11
	b	LBB0_13
LBB0_18:
	ldr	x0, [x20]
	cbz	x0, LBB0_20
; %bb.19:
	bl	_phy_start
LBB0_20:
	ldr	w0, [x24]
	mov	x1, x19
	bl	_clear_bit
Lloh4:
	adrp	x8, _jiffies@GOTPAGE
Lloh5:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
	add	x0, x19, #4
Lloh6:
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _SERVICE_TIMER_HZ@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SERVICE_TIMER_HZ@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_mod_timer
	mov	w22, #0
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_NIC_STATE_DOWN,4,2             ; @NIC_STATE_DOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hns init irq failed! ret=%d\n"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_SERVICE_TIMER_HZ,8,3           ; @SERVICE_TIMER_HZ
	.no_dead_strip	_hns_nic_net_up
.subsections_via_symbols
