	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hclge_set_vport_mtu            ## -- Begin function hclge_set_vport_mtu
	.p2align	4, 0x90
_hclge_set_vport_mtu:                   ## @hclge_set_vport_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
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r12
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	addl	(%rax), %esi
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %rax
	addl	(%rax), %esi
	movq	_VLAN_HLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rsi,%rax,2), %edi
	movq	_HCLGE_MAC_MIN_FRAME@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jl	LBB0_2
## %bb.1:
	movq	_HCLGE_MAC_MAX_FRAME@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jg	LBB0_2
## %bb.3:
	movq	16(%r12), %r15
	movq	_HCLGE_MAC_DEFAULT_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_max
	movl	%eax, %r13d
	leaq	8(%r15), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpq	$0, 8(%r12)
	je	LBB0_4
## %bb.6:
	cmpl	(%r15), %r13d
	jle	LBB0_8
LBB0_7:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	4(%r15), %eax
	cmpl	$2, %eax
	jl	LBB0_11
## %bb.5:
	movq	24(%r15), %rcx
	movl	$1, %edx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpl	(%rcx,%rdx,4), %r13d
	jl	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_10
LBB0_11:
	movq	_HNAE3_DOWN_CLIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_hclge_notify_client
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_hclge_set_mac_mtu
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	movq	16(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_16
LBB0_8:
	movl	%r13d, (%r12)
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_13:
	movl	%r13d, (%r15)
	movl	%r13d, (%r12)
	movq	%r15, %rdi
	callq	_hclge_buffer_alloc
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	movl	%eax, %ebx
	movq	16(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
LBB0_16:
	movl	%ebx, %edx
	callq	_dev_err
LBB0_17:
	movq	_HNAE3_UP_CLIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_hclge_notify_client
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_18
LBB0_14:
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_ETH_FCS_LEN,4,2                ## @ETH_FCS_LEN
	.comm	_VLAN_HLEN,4,2                  ## @VLAN_HLEN
	.comm	_HCLGE_MAC_MIN_FRAME,4,2        ## @HCLGE_MAC_MIN_FRAME
	.comm	_HCLGE_MAC_MAX_FRAME,4,2        ## @HCLGE_MAC_MAX_FRAME
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HCLGE_MAC_DEFAULT_FRAME,4,2    ## @HCLGE_MAC_DEFAULT_FRAME
	.comm	_HNAE3_DOWN_CLIENT,4,2          ## @HNAE3_DOWN_CLIENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Change mtu fail, ret =%d\n"

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

	.comm	_HNAE3_UP_CLIENT,4,2            ## @HNAE3_UP_CLIENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hclge_set_vport_mtu            ; -- Begin function hclge_set_vport_mtu
	.p2align	2
_hclge_set_vport_mtu:                   ; @hclge_set_vport_mtu
	.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	x21, x0
Lloh0:
	adrp	x8, _ETH_HLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_HLEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ETH_FCS_LEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ETH_FCS_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w8, w8, w1
	add	w8, w8, w9
Lloh6:
	adrp	x9, _VLAN_HLEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VLAN_HLEN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	add	w0, w8, w9, lsl #1
Lloh9:
	adrp	x8, _HCLGE_MAC_MIN_FRAME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HCLGE_MAC_MIN_FRAME@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _HCLGE_MAC_MAX_FRAME@GOTPAGE
Lloh13:
	ldr	x9, [x9, _HCLGE_MAC_MAX_FRAME@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #0, ge
	b.gt	LBB0_4
; %bb.1:
	ldr	x20, [x21, #16]
Lloh15:
	adrp	x8, _HCLGE_MAC_DEFAULT_FRAME@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HCLGE_MAC_DEFAULT_FRAME@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_max
	mov	x22, x0
	add	x19, x20, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	w8, [x20]
	cmp	w22, w8
	b.le	LBB0_12
LBB0_3:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_4:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_5:
	mov	x0, x23
	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_6:
	ldr	w9, [x20, #4]
	cmp	w9, #2
	b.lt	LBB0_10
; %bb.7:
	ldr	x8, [x20, #24]
	add	x8, x8, #4
	sub	x9, x9, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8]
	cmp	w22, w10
	b.lt	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x8, #4
	subs	x9, x9, #1
	b.ne	LBB0_8
LBB0_10:
Lloh21:
	adrp	x8, _HNAE3_DOWN_CLIENT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HNAE3_DOWN_CLIENT@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_hclge_notify_client
	mov	x0, x20
	mov	x1, x22
	bl	_hclge_set_mac_mtu
	cbz	w0, LBB0_13
; %bb.11:
	mov	x23, x0
	ldr	x0, [x20, #16]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_15
LBB0_12:
	str	w22, [x21]
	mov	x0, x19
	bl	_mutex_unlock
	mov	w23, #0
	b	LBB0_5
LBB0_13:
	str	w22, [x20]
	str	w22, [x21]
	mov	x0, x20
	bl	_hclge_buffer_alloc
	mov	x23, x0
	cbz	w0, LBB0_16
; %bb.14:
	ldr	x0, [x20, #16]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_15:
	mov	x2, x23
	bl	_dev_err
LBB0_16:
Lloh28:
	adrp	x8, _HNAE3_UP_CLIENT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HNAE3_UP_CLIENT@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_hclge_notify_client
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_ETH_FCS_LEN,4,2                ; @ETH_FCS_LEN
	.comm	_VLAN_HLEN,4,2                  ; @VLAN_HLEN
	.comm	_HCLGE_MAC_MIN_FRAME,4,2        ; @HCLGE_MAC_MIN_FRAME
	.comm	_HCLGE_MAC_MAX_FRAME,4,2        ; @HCLGE_MAC_MAX_FRAME
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HCLGE_MAC_DEFAULT_FRAME,4,2    ; @HCLGE_MAC_DEFAULT_FRAME
	.comm	_HNAE3_DOWN_CLIENT,4,2          ; @HNAE3_DOWN_CLIENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Change mtu fail, ret =%d\n"

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

	.comm	_HNAE3_UP_CLIENT,4,2            ; @HNAE3_UP_CLIENT
.subsections_via_symbols
