	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function initialize_res_quotas
_initialize_res_quotas:                 ## @initialize_res_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	%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
	movl	%r8d, %ebx
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax), %esi
	addl	$2, %esi
	movl	%r8d, %eax
	cltd
	idivl	%esi
	movq	(%r14), %rdx
	movslq	%ecx, %r13
	movl	%eax, (%rdx,%r13,4)
	movl	%r8d, %ecx
	shrl	$31, %ecx
	addl	%r8d, %ecx
	sarl	%ecx
	addl	%eax, %ecx
	movq	8(%r14), %rax
	movl	%ecx, (%rax,%r13,4)
	callq	_mlx4_master_func_num
	cmpl	%r13d, %eax
	jne	LBB0_3
## %bb.1:
	movl	%ebx, 16(%r14)
	movq	_RES_MTT@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_3
## %bb.2:
	movl	(%r15), %eax
	addl	%eax, %ebx
	movl	%ebx, 16(%r14)
	movq	(%r14), %rcx
	addl	%eax, (%rcx,%r13,4)
	movq	8(%r14), %rcx
	addl	%eax, (%rcx,%r13,4)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RES_MTT,4,2                    ## @RES_MTT
	.no_dead_strip	_initialize_res_quotas
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function initialize_res_quotas
_initialize_res_quotas:                 ; @initialize_res_quotas
	.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	x20, x4
	mov	x21, x3
	mov	x23, x2
	mov	x19, x1
	mov	x22, x0
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	lsl	w8, w8, #1
	add	w8, w8, #2
	sdiv	w8, w4, w8
	sbfiz	x9, x21, #2, #32
	ldp	x10, x11, [x1]
	str	w8, [x10, x9]
	cmp	w4, #0
	cinc	w10, w4, lt
	add	w8, w8, w10, asr #1
	str	w8, [x11, x9]
	bl	_mlx4_master_func_num
	cmp	w0, w21
	b.ne	LBB0_3
; %bb.1:
	str	w20, [x19, #16]
Lloh0:
	adrp	x8, _RES_MTT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RES_MTT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_3
; %bb.2:
	sxtw	x8, w21
	ldr	w9, [x22]
	add	w10, w9, w20
	str	w10, [x19, #16]
	lsl	x8, x8, #2
	ldp	x10, x11, [x19]
	ldr	w12, [x10, x8]
	add	w12, w12, w9
	str	w12, [x10, x8]
	ldr	w10, [x11, x8]
	add	w9, w10, w9
	str	w9, [x11, x8]
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RES_MTT,4,2                    ; @RES_MTT
	.no_dead_strip	_initialize_res_quotas
.subsections_via_symbols
