	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_nic_change_mtu
_hns_nic_change_mtu:                    ## @hns_nic_change_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, %r12
	callq	_netdev_priv
	movq	%rax, %r14
	movq	8(%rax), %r13
	movq	%r12, %rdi
	callq	_netif_running
	cmpl	$67, %r15d
	jg	LBB0_4
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
LBB0_3:
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_4:
	xorl	%ebx, %ebx
	cmpl	%r15d, (%r12)
	jne	LBB0_6
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%r13), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_12
## %bb.7:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	_hns_nic_net_stop
	movl	$100, %edi
	callq	_msleep
LBB0_9:
	movq	(%r14), %rax
	movq	_AE_VERSION_1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
LBB0_10:
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_17
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_18
LBB0_12:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_13:
	movq	_BD_SIZE_2048_MAX_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, (%r12)
	jg	LBB0_10
## %bb.14:
	cmpl	%r15d, %eax
	jge	LBB0_10
## %bb.15:
	movq	%r13, %rdi
	callq	_hnae_reinit_all_ring_desc
	movq	%r12, %rdi
	callq	_hns_nic_clear_all_rx_fetch
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_hnae_reinit_all_ring_page_off
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.16:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_18
LBB0_17:
	movl	%r15d, (%r12)
	xorl	%ebx, %ebx
LBB0_18:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_5
## %bb.19:
	movq	%r12, %rdi
	callq	_hns_nic_net_open
	testq	%rax, %rax
	je	LBB0_5
## %bb.20:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_AE_VERSION_1,8,3               ## @AE_VERSION_1
	.comm	_BD_SIZE_2048_MAX_MTU,4,2       ## @BD_SIZE_2048_MAX_MTU
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clear the fetched desc fail\n"

L_.str.1:                               ## @.str.1
	.asciz	"set mtu fail, return value %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"hns net open fail\n"

	.no_dead_strip	_hns_nic_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_nic_change_mtu
_hns_nic_change_mtu:                    ; @hns_nic_change_mtu
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x23, x0
	ldr	x22, [x0, #8]
	mov	x0, x19
	bl	_netif_running
	cmp	w21, #67
	b.gt	LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_5
LBB0_3:
	ldr	w8, [x19]
	cmp	w8, w21
	b.ne	LBB0_6
; %bb.4:
	mov	w23, #0
LBB0_5:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.7:
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_hns_nic_net_stop
	mov	w0, #100
	bl	_msleep
LBB0_9:
	ldr	x8, [x23]
Lloh2:
	adrp	x9, _AE_VERSION_1@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AE_VERSION_1@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.10:
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _BD_SIZE_2048_MAX_MTU@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BD_SIZE_2048_MAX_MTU@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	ccmp	w9, w21, #0, le
	b.ge	LBB0_13
; %bb.11:
	mov	x0, x22
	bl	_hnae_reinit_all_ring_desc
	mov	x0, x19
	bl	_hns_nic_clear_all_rx_fetch
	mov	x23, x0
	mov	x0, x22
	bl	_hnae_reinit_all_ring_page_off
	cbz	w23, LBB0_13
; %bb.12:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_15
LBB0_13:
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x22
	mov	x1, x21
	blr	x8
	mov	x23, x0
	cbz	w0, LBB0_17
; %bb.14:
	str	x23, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_15:
	mov	x0, x19
	bl	_netdev_err
	cbnz	w20, LBB0_18
	b	LBB0_5
LBB0_16:
Lloh12:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_2
LBB0_17:
	str	w21, [x19]
	cbz	w20, LBB0_5
LBB0_18:
	mov	x0, x19
	bl	_hns_nic_net_open
	cbz	x0, LBB0_5
; %bb.19:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_AE_VERSION_1,8,3               ; @AE_VERSION_1
	.comm	_BD_SIZE_2048_MAX_MTU,4,2       ; @BD_SIZE_2048_MAX_MTU
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clear the fetched desc fail\n"

l_.str.1:                               ; @.str.1
	.asciz	"set mtu fail, return value %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"hns net open fail\n"

	.no_dead_strip	_hns_nic_change_mtu
.subsections_via_symbols
