	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_init_umv_space
_hclge_init_umv_space:                  ## @hclge_init_umv_space
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	$0, -24(%rbp)
	movq	(%rdi), %rsi
	leaq	-24(%rbp), %rdx
	movl	$1, %ecx
	callq	_hclge_set_umv_space
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	-24(%rbp), %rcx
	movq	(%rbx), %rdx
	cmpq	%rdx, %rcx
	jge	LBB0_3
## %bb.2:
	movq	32(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_3:
	leaq	24(%rbx), %rdi
	callq	_mutex_init
	movl	-24(%rbp), %eax
	movl	%eax, 8(%rbx)
	movl	16(%rbx), %ecx
	addl	$2, %ecx
	cltd
	idivl	%ecx
	movl	%eax, 12(%rbx)
	addl	%eax, %edx
	movl	%edx, 20(%rbx)
LBB0_4:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Alloc umv space failed, want %d, get %d\n"

	.no_dead_strip	_hclge_init_umv_space
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_init_umv_space
_hclge_init_umv_space:                  ; @hclge_init_umv_space
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	str	xzr, [sp, #8]
	ldr	x1, [x0]
	add	x2, sp, #8
	mov	w3, #1
	bl	_hclge_set_umv_space
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x3, [sp, #8]
	ldr	x2, [x19]
	cmp	x3, x2
	b.ge	LBB0_3
; %bb.2:
	ldr	x0, [x19, #32]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_3:
	add	x0, x19, #24
	bl	_mutex_init
	ldr	w8, [sp, #8]
	ldr	w9, [x19, #16]
	add	w9, w9, #2
	sdiv	w10, w8, w9
	stp	w8, w10, [x19, #8]
	msub	w8, w10, w9, w8
	add	w8, w8, w10
	str	w8, [x19, #20]
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Alloc umv space failed, want %d, get %d\n"

	.no_dead_strip	_hclge_init_umv_space
.subsections_via_symbols
