	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_set_page_pi
_mlx5_set_page_pi:                      ## @mlx5_set_page_pi
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	callq	_to_mmr
	movq	%rax, %rbx
	movslq	16(%rax), %rax
	addq	(%rbx), %rax
	xorl	%edi, %edi
	cmpq	8(%rbx), %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movq	_MLX5_EN_RD@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	24(%rbx), %r15
	movq	_MLX5_EN_WR@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_cpu_to_be64
	movslq	16(%rbx), %rcx
	movq	(%rbx), %rdx
	leaq	1(%rdx), %rsi
	movq	%rsi, (%rbx)
	addq	%rdx, %rcx
	movl	%eax, (%r15,%rcx,4)
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MLX5_EN_RD,4,2                 ## @MLX5_EN_RD
	.comm	_MLX5_EN_WR,4,2                 ## @MLX5_EN_WR
	.no_dead_strip	_mlx5_set_page_pi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_set_page_pi
_mlx5_set_page_pi:                      ; @mlx5_set_page_pi
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	bl	_to_mmr
	mov	x19, x0
	ldrsw	x8, [x0, #16]
	ldp	x9, x10, [x0]
	add	x8, x9, x8
	cmp	x8, x10
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	ldr	x21, [x19, #24]
Lloh3:
	adrp	x8, _MLX5_EN_RD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX5_EN_RD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w8, w8, w20
Lloh6:
	adrp	x9, _MLX5_EN_WR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MLX5_EN_WR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w0, w8, w9
	bl	_cpu_to_be64
	mov	x8, x0
	mov	w0, #0
	ldrsw	x9, [x19, #16]
	ldr	x10, [x19]
	add	x11, x10, #1
	str	x11, [x19]
	add	x9, x10, x9
	str	w8, [x21, x9, lsl #2]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MLX5_EN_RD,4,2                 ; @MLX5_EN_RD
	.comm	_MLX5_EN_WR,4,2                 ; @MLX5_EN_WR
	.no_dead_strip	_mlx5_set_page_pi
.subsections_via_symbols
