	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_alloc_mtt_range
_mlx4_alloc_mtt_range:                  ## @mlx4_alloc_mtt_range
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	$0, -20(%rbp)
	callq	_mlx4_is_mfunc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	leaq	-20(%rbp), %rdi
	movl	%r14d, %esi
	callq	_set_param_l
	movl	-20(%rbp), %esi
	movq	_RES_MTT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_RES_OP_RESERVE_AND_MAP@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	-24(%rbp), %rdx
	movq	%rbx, %rdi
	pushq	%rax
	pushq	%r10
	callq	_mlx4_cmd_imm
	addq	$16, %rsp
	movl	%eax, %ecx
	movl	$-1, %eax
	testl	%ecx, %ecx
	jne	LBB0_3
## %bb.2:
	leaq	-24(%rbp), %rdi
	callq	_get_param_l
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	___mlx4_alloc_mtt_range         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RES_MTT,4,2                    ## @RES_MTT
	.comm	_RES_OP_RESERVE_AND_MAP,4,2     ## @RES_OP_RESERVE_AND_MAP
	.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_alloc_mtt_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_alloc_mtt_range
_mlx4_alloc_mtt_range:                  ; @mlx4_alloc_mtt_range
	.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	x20, x1
	mov	x19, x0
	str	wzr, [sp, #12]
	bl	_mlx4_is_mfunc
	cbz	x0, LBB0_3
; %bb.1:
	add	x0, sp, #12
	mov	x1, x20
	bl	_set_param_l
	ldr	w1, [sp, #12]
Lloh0:
	adrp	x8, _RES_MTT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RES_MTT@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x8, _RES_OP_RESERVE_AND_MAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RES_OP_RESERVE_AND_MAP@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, #8
	mov	x0, x19
	bl	_mlx4_cmd_imm
	cbz	w0, LBB0_4
; %bb.2:
	mov	w0, #-1
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	___mlx4_alloc_mtt_range
LBB0_4:
	add	x0, sp, #8
	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_MTT,4,2                    ; @RES_MTT
	.comm	_RES_OP_RESERVE_AND_MAP,4,2     ; @RES_OP_RESERVE_AND_MAP
	.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_alloc_mtt_range
.subsections_via_symbols
