	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_total_uuars
_get_total_uuars:                       ## @get_total_uuars
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	movq	_MLX5_DEF_TOT_UUARS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rdi
	callq	_atoi
	movl	%eax, %ebx
LBB0_2:
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.4:
	movq	_MLX5_ADAPTER_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	%r14d, %eax
	cltd
	idivl	(%rcx)
	movq	_MLX5_NUM_NON_FP_BFREGS_PER_UAR@GOTPCREL(%rip), %r14
	imull	(%r14), %eax
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_max
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_align
	movq	_MLX5_MAX_BFREGS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_7
## %bb.5:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_DEF_TOT_UUARS,4,2         ## @MLX5_DEF_TOT_UUARS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MLX5_TOTAL_UUARS"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MLX5_ADAPTER_PAGE_SIZE,4,2     ## @MLX5_ADAPTER_PAGE_SIZE
	.comm	_MLX5_NUM_NON_FP_BFREGS_PER_UAR,4,2 ## @MLX5_NUM_NON_FP_BFREGS_PER_UAR
	.comm	_MLX5_MAX_BFREGS,4,2            ## @MLX5_MAX_BFREGS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_get_total_uuars
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_total_uuars
_get_total_uuars:                       ; @get_total_uuars
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _MLX5_DEF_TOT_UUARS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_DEF_TOT_UUARS@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_2
; %bb.1:
	bl	_atoi
	mov	x20, x0
LBB0_2:
	cmp	w20, #0
	b.le	LBB0_5
; %bb.3:
Lloh5:
	adrp	x8, _MLX5_ADAPTER_PAGE_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MLX5_ADAPTER_PAGE_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	sdiv	w8, w19, w8
Lloh8:
	adrp	x19, _MLX5_NUM_NON_FP_BFREGS_PER_UAR@GOTPAGE
Lloh9:
	ldr	x19, [x19, _MLX5_NUM_NON_FP_BFREGS_PER_UAR@GOTPAGEOFF]
	ldr	w9, [x19]
	mul	w0, w9, w8
	mov	x1, x20
	bl	_max
	ldr	w1, [x19]
	bl	_align
Lloh10:
	adrp	x8, _MLX5_MAX_BFREGS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MLX5_MAX_BFREGS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w0, w8
	b.le	LBB0_7
; %bb.4:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_DEF_TOT_UUARS,4,2         ; @MLX5_DEF_TOT_UUARS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MLX5_TOTAL_UUARS"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MLX5_ADAPTER_PAGE_SIZE,4,2     ; @MLX5_ADAPTER_PAGE_SIZE
	.comm	_MLX5_NUM_NON_FP_BFREGS_PER_UAR,4,2 ; @MLX5_NUM_NON_FP_BFREGS_PER_UAR
	.comm	_MLX5_MAX_BFREGS,4,2            ; @MLX5_MAX_BFREGS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_get_total_uuars
.subsections_via_symbols
