	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_init_quotas               ## -- Begin function mlx4_init_quotas
	.p2align	4, 0x90
_mlx4_init_quotas:                      ## @mlx4_init_quotas
	.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_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_mlx4_is_slave
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_mlx4_is_mfunc
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	_mlx4_master_func_num
	movq	(%r14), %rcx
	movq	_RES_QP@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %rdx
	cltq
	movq	(%rdx,%rax,8), %rdx
	movq	%rdx, 32(%rbx)
	movq	_RES_CQ@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %rdx
	movq	(%rdx,%rax,8), %rdx
	movq	%rdx, 24(%rbx)
	movq	_RES_SRQ@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %rdx
	movq	(%rdx,%rax,8), %rdx
	movq	%rdx, 16(%rbx)
	movq	_RES_MTT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %rdx
	movq	(%rdx,%rax,8), %rdx
	movq	%rdx, 8(%rbx)
	movq	_RES_MPT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_4
LBB0_2:
	movq	104(%rbx), %r14
	movq	112(%rbx), %r15
	movq	%rbx, %rdi
	callq	_mlx4_num_reserved_sqps
	addq	%r14, %rax
	subq	%rax, %r15
	movq	%r15, 32(%rbx)
	movq	96(%rbx), %rax
	subq	88(%rbx), %rax
	movq	%rax, 24(%rbx)
	movq	80(%rbx), %rax
	subq	72(%rbx), %rax
	movq	%rax, 16(%rbx)
	movq	64(%rbx), %rcx
	subq	56(%rbx), %rcx
	movq	48(%rbx), %rax
	movq	%rcx, 8(%rbx)
	subq	40(%rbx), %rax
LBB0_4:
	movq	%rax, (%rbx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RES_QP,8,3                     ## @RES_QP
	.comm	_RES_CQ,8,3                     ## @RES_CQ
	.comm	_RES_SRQ,8,3                    ## @RES_SRQ
	.comm	_RES_MTT,8,3                    ## @RES_MTT
	.comm	_RES_MPT,8,3                    ## @RES_MPT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_init_quotas               ; -- Begin function mlx4_init_quotas
	.p2align	2
_mlx4_init_quotas:                      ; @mlx4_init_quotas
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_mlx4_priv
	mov	x20, x0
	mov	x0, x19
	bl	_mlx4_is_slave
	cbnz	x0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_mlx4_is_mfunc
	cbz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_mlx4_master_func_num
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _RES_QP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RES_QP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	sbfiz	x10, x0, #3, #32
	ldr	x9, [x9, x10]
Lloh3:
	adrp	x11, _RES_CQ@GOTPAGE
Lloh4:
	ldr	x11, [x11, _RES_CQ@GOTPAGEOFF]
	str	x9, [x19, #32]
Lloh5:
	ldr	x9, [x11]
	ldr	x9, [x8, x9, lsl #3]
	ldr	x9, [x9, x10]
	str	x9, [x19, #24]
Lloh6:
	adrp	x9, _RES_SRQ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RES_SRQ@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	ldr	x9, [x9, x10]
	str	x9, [x19, #16]
Lloh9:
	adrp	x9, _RES_MTT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RES_MTT@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	ldr	x9, [x9, x10]
Lloh12:
	adrp	x11, _RES_MPT@GOTPAGE
Lloh13:
	ldr	x11, [x11, _RES_MPT@GOTPAGEOFF]
	str	x9, [x19, #8]
Lloh14:
	ldr	x9, [x11]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x8, [x8, x10]
	b	LBB0_4
LBB0_3:
	ldp	x21, x20, [x19, #104]
	mov	x0, x19
	bl	_mlx4_num_reserved_sqps
	add	x8, x21, x0
	sub	x8, x20, x8
	ldp	x10, x9, [x19, #88]
	sub	x9, x9, x10
	stp	x9, x8, [x19, #24]
	ldp	x9, x8, [x19, #72]
	sub	x8, x8, x9
	ldp	x10, x9, [x19, #56]
	sub	x9, x9, x10
	stp	x9, x8, [x19, #8]
	ldp	x9, x8, [x19, #40]
	sub	x8, x8, x9
LBB0_4:
	str	x8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_RES_QP,8,3                     ; @RES_QP
	.comm	_RES_CQ,8,3                     ; @RES_CQ
	.comm	_RES_SRQ,8,3                    ; @RES_SRQ
	.comm	_RES_MTT,8,3                    ; @RES_MTT
	.comm	_RES_MPT,8,3                    ; @RES_MPT
.subsections_via_symbols
