	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_mr_alloc_phys            ## -- Begin function mthca_mr_alloc_phys
	.p2align	4, 0x90
_mthca_mr_alloc_phys:                   ## @mthca_mr_alloc_phys
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -56(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r12d
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	32(%rbp), %r14
	movl	24(%rbp), %r15d
	movl	16(%rbp), %r13d
	movl	%r8d, %esi
	callq	_mthca_alloc_mtt
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	(%r14), %esi
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movl	%esi, %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%r12d, %r8d
	callq	_mthca_write_mtt
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	%r14, (%rsp)
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_mthca_mr_alloc
	testl	%eax, %eax
	je	LBB0_4
LBB0_3:
	movl	%eax, %r12d
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_mthca_free_mtt
	movl	%r12d, %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_mr_alloc_phys            ; -- Begin function mthca_mr_alloc_phys
	.p2align	2
_mthca_mr_alloc_phys:                   ; @mthca_mr_alloc_phys
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x7
	mov	x22, x6
	mov	x23, x5
	mov	x26, x4
	mov	x24, x3
	mov	x27, x2
	mov	x25, x1
	mov	x19, x0
	ldr	x20, [x29, #16]
	mov	x1, x4
	bl	_mthca_alloc_mtt
	str	w0, [x20]
	bl	_IS_ERR
	ldr	w1, [x20]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
	mov	x0, x19
	mov	w2, #0
	mov	x3, x27
	mov	x4, x26
	bl	_mthca_write_mtt
	cbz	w0, LBB0_4
; %bb.3:
	mov	x26, x0
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	mov	x1, x25
	mov	x2, x24
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	mov	x6, x20
	bl	_mthca_mr_alloc
	mov	x26, x0
	cbz	w0, LBB0_6
LBB0_5:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mthca_free_mtt
LBB0_6:
	mov	x0, x26
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
