	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_mpt_reserve
_mlx4_mpt_reserve:                      ## @mlx4_mpt_reserve
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_mlx4_is_mfunc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_RES_MPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_RES_OP_RESERVE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_MLX4_CMD_ALLOC_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MLX4_CMD_TIME_CLASS_A@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_MLX4_CMD_WRAPPED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	pushq	%rax
	pushq	%r10
	callq	_mlx4_cmd_imm
	addq	$16, %rsp
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_3
## %bb.2:
	leaq	-12(%rbp), %rdi
	callq	_get_param_l
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	___mlx4_mpt_reserve             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RES_MPT,4,2                    ## @RES_MPT
	.comm	_RES_OP_RESERVE,4,2             ## @RES_OP_RESERVE
	.comm	_MLX4_CMD_ALLOC_RES,4,2         ## @MLX4_CMD_ALLOC_RES
	.comm	_MLX4_CMD_TIME_CLASS_A,4,2      ## @MLX4_CMD_TIME_CLASS_A
	.comm	_MLX4_CMD_WRAPPED,4,2           ## @MLX4_CMD_WRAPPED
	.no_dead_strip	_mlx4_mpt_reserve
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_mpt_reserve
_mlx4_mpt_reserve:                      ; @mlx4_mpt_reserve
	.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_is_mfunc
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _RES_MPT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RES_MPT@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x8, _RES_OP_RESERVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RES_OP_RESERVE@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
Lloh6:
	adrp	x8, _MLX4_CMD_ALLOC_RES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLX4_CMD_ALLOC_RES@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
Lloh9:
	adrp	x8, _MLX4_CMD_TIME_CLASS_A@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLX4_CMD_TIME_CLASS_A@GOTPAGEOFF]
Lloh11:
	ldr	w6, [x8]
Lloh12:
	adrp	x8, _MLX4_CMD_WRAPPED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MLX4_CMD_WRAPPED@GOTPAGEOFF]
Lloh14:
	ldr	w7, [x8]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #0
	bl	_mlx4_cmd_imm
	cbz	x0, LBB0_4
; %bb.2:
	mov	w0, #-1
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	___mlx4_mpt_reserve
LBB0_4:
	add	x0, sp, #12
	bl	_get_param_l
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	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_MPT,4,2                    ; @RES_MPT
	.comm	_RES_OP_RESERVE,4,2             ; @RES_OP_RESERVE
	.comm	_MLX4_CMD_ALLOC_RES,4,2         ; @MLX4_CMD_ALLOC_RES
	.comm	_MLX4_CMD_TIME_CLASS_A,4,2      ; @MLX4_CMD_TIME_CLASS_A
	.comm	_MLX4_CMD_WRAPPED,4,2           ; @MLX4_CMD_WRAPPED
	.no_dead_strip	_mlx4_mpt_reserve
.subsections_via_symbols
