	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_ae_start
_hns_ae_start:                          ## @hns_ae_start
	.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
	callq	_hns_get_mac_cb
	movq	%rax, %r14
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_hns_mac_vm_config_bc_en
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	cmpl	$0, (%r15)
	jle	LBB0_7
## %bb.2:
	xorl	%ebx, %ebx
	movq	_RCB_INT_FLAG_TX@GOTPCREL(%rip), %r12
	movq	_RCB_INT_FLAG_RX@GOTPCREL(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	callq	_hns_rcbv2_int_clr_hw
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_AE_IS_VER1
	movl	(%r13), %esi
	orl	(%r12), %esi
	movq	8(%r15), %rcx
	movl	(%rcx,%rbx,4), %edi
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_hns_rcb_int_clr_hw
	jmp	LBB0_6
LBB0_7:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_hns_ae_ring_enable_all
	movl	$100, %edi
	callq	_msleep
	movq	%r14, %rdi
	callq	_hns_mac_start
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RCB_INT_FLAG_TX,4,2            ## @RCB_INT_FLAG_TX
	.comm	_RCB_INT_FLAG_RX,4,2            ## @RCB_INT_FLAG_RX
	.no_dead_strip	_hns_ae_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_ae_start
_hns_ae_start:                          ; @hns_ae_start
	.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	_hns_get_mac_cb
	mov	x19, x0
	mov	w1, #0
	mov	w2, #1
	bl	_hns_mac_vm_config_bc_en
	cbnz	w0, LBB0_8
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x21, #0
Lloh0:
	adrp	x22, _RCB_INT_FLAG_TX@GOTPAGE
Lloh1:
	ldr	x22, [x22, _RCB_INT_FLAG_TX@GOTPAGEOFF]
Lloh2:
	adrp	x23, _RCB_INT_FLAG_RX@GOTPAGE
Lloh3:
	ldr	x23, [x23, _RCB_INT_FLAG_RX@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_hns_rcbv2_int_clr_hw
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_AE_IS_VER1
	mov	x8, x0
	ldr	x9, [x20, #8]
	ldr	w0, [x9, x21, lsl #2]
	ldr	w9, [x22]
	ldr	w10, [x23]
	orr	w1, w10, w9
	cbz	x8, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_hns_rcb_int_clr_hw
	b	LBB0_4
LBB0_7:
	mov	x0, x20
	mov	w1, #1
	bl	_hns_ae_ring_enable_all
	mov	w0, #100
	bl	_msleep
	mov	x0, x19
	bl	_hns_mac_start
	mov	w0, #0
LBB0_8:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RCB_INT_FLAG_TX,4,2            ; @RCB_INT_FLAG_TX
	.comm	_RCB_INT_FLAG_RX,4,2            ; @RCB_INT_FLAG_RX
	.no_dead_strip	_hns_ae_start
.subsections_via_symbols
