	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_init_uar_table            ## -- Begin function mlx4_init_uar_table
	.p2align	4, 0x90
_mlx4_init_uar_table:                   ## @mlx4_init_uar_table
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_mlx4_get_num_reserved_uar
	movl	%eax, %r14d
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mlx4_dbg
	movl	4(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mlx4_dbg
	movl	(%rbx), %edx
	cmpl	%r14d, %edx
	jle	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_mlx4_priv
	movl	(%rbx), %esi
	movl	4(%rbx), %ecx
	leal	-1(%rsi), %edx
	movq	%rax, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%r8d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlx4_bitmap_init               ## TAILCALL
LBB0_1:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_mlx4_err
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_mlx4_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"uar_page_shift = %d"

L_.str.1:                               ## @.str.1
	.asciz	"Effective reserved_uars=%d"

L_.str.2:                               ## @.str.2
	.asciz	"Only %d UAR pages (need more than %d)\n"

L_.str.3:                               ## @.str.3
	.asciz	"Increase firmware log2_uar_bar_megabytes?\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_init_uar_table            ; -- Begin function mlx4_init_uar_table
	.p2align	2
_mlx4_init_uar_table:                   ; @mlx4_init_uar_table
	.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
	bl	_mlx4_get_num_reserved_uar
	mov	x20, x0
	ldr	w2, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mlx4_dbg
	ldr	w2, [x19, #4]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mlx4_dbg
	ldr	w8, [x19]
	cmp	w8, w20
	b.le	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_mlx4_priv
	ldp	w1, w3, [x19]
	sub	w2, w1, #1
	mov	w4, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_mlx4_bitmap_init
LBB0_2:
	stp	x8, x20, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	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	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"uar_page_shift = %d"

l_.str.1:                               ; @.str.1
	.asciz	"Effective reserved_uars=%d"

l_.str.2:                               ; @.str.2
	.asciz	"Only %d UAR pages (need more than %d)\n"

l_.str.3:                               ; @.str.3
	.asciz	"Increase firmware log2_uar_bar_megabytes?\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
