	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_write_mtt_size           ## -- Begin function mthca_write_mtt_size
	.p2align	4, 0x90
_mthca_write_mtt_size:                  ## @mthca_write_mtt_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	8(%rdi), %rax
	cmpq	%rax, 16(%rdi)
	je	LBB0_1
LBB0_2:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	$2, %eax
	addl	$-2, %eax
	popq	%rbp
	retq
LBB0_1:
	movq	_MTHCA_FLAG_FMR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.3:
	callq	_mthca_is_memfree
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	sarl	$2, %ecx
	testq	%rax, %rax
	movl	$134217727, %eax                ## imm = 0x7FFFFFF
	cmovnel	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MTHCA_FLAG_FMR,4,2             ## @MTHCA_FLAG_FMR
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_write_mtt_size           ; -- Begin function mthca_write_mtt_size
	.p2align	2
_mthca_write_mtt_size:                  ; @mthca_write_mtt_size
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	add	x8, x0, #8
	ldr	x9, [x0, #16]
	cmp	x9, x8
	b.eq	LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	asr	w8, w8, #2
	sub	w0, w8, #2
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _MTHCA_FLAG_FMR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MTHCA_FLAG_FMR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.3:
	bl	_mthca_is_memfree
Lloh6:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	asr	w8, w8, #2
	cmp	x0, #0
	mov	w9, #134217727
	csel	w0, w9, w8, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MTHCA_FLAG_FMR,4,2             ; @MTHCA_FLAG_FMR
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
.subsections_via_symbols
