	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_ae_set_mtu
_hns_ae_set_mtu:                        ## @hns_ae_set_mtu
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_hns_get_mac_cb
	movq	%rax, %r12
	movq	(%rax), %rax
	movl	4(%rax), %edi
	callq	_AE_IS_VER1
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%r12), %rax
	movl	(%rax), %r13d
	jmp	LBB0_3
LBB0_1:
	movq	_BD_SIZE_2048_MAX_MTU@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	cmpl	%r15d, (%rax)
	setl	%r13b
	shll	$11, %r13d
	addl	$2048, %r13d                    ## imm = 0x800
LBB0_3:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	callq	_hns_mac_set_mtu
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	cmpl	$0, (%r14)
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	movl	%r13d, (%rdi)
	movl	%r13d, %esi
	callq	_hns_rcb_set_rx_ring_bs
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BD_SIZE_2048_MAX_MTU,4,2       ## @BD_SIZE_2048_MAX_MTU
	.no_dead_strip	_hns_ae_set_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_ae_set_mtu
_hns_ae_set_mtu:                        ; @hns_ae_set_mtu
	.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	x21, x1
	mov	x19, x0
	bl	_hns_get_mac_cb
	mov	x22, x0
	ldr	x8, [x0]
	ldr	w0, [x8, #4]
	bl	_AE_IS_VER1
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x22]
	ldr	w20, [x8]
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _BD_SIZE_2048_MAX_MTU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BD_SIZE_2048_MAX_MTU@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #2048
	mov	w10, #4096
	cmp	w8, w21
	csel	w20, w10, w9, lt
LBB0_3:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_hns_mac_set_mtu
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.4:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x22, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x22, lsl #3]
	str	w20, [x0]
	mov	x1, x20
	bl	_hns_rcb_set_rx_ring_bs
	add	x22, x22, #1
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.lt	LBB0_6
LBB0_7:
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_BD_SIZE_2048_MAX_MTU,4,2       ; @BD_SIZE_2048_MAX_MTU
	.no_dead_strip	_hns_ae_set_mtu
.subsections_via_symbols
