	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_ib_mmap_clock_info_page
_mlx5_ib_mmap_clock_info_page:          ## @mlx5_ib_mmap_clock_info_page
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rsi), %rax
	subq	8(%rsi), %rax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rsi, %rbx
	movq	_VM_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rsi)
	je	LBB0_2
## %bb.4:
	movq	%rdi, %r14
	movl	20(%rbx), %edi
	callq	_get_index
	movq	_MLX5_IB_CLOCK_INFO_V1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movl	16(%rbx), %eax
	movq	_VM_WRITE@GOTPCREL(%rip), %rcx
	movq	_VM_EXEC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_8
## %bb.7:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_8:
	movq	_VM_MAYWRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, 16(%rbx)
	movq	(%r14), %rax
	movl	(%rax), %edi
	testl	%edi, %edi
	je	LBB0_5
## %bb.9:
	movq	8(%rbx), %r14
	callq	_virt_to_page
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_vm_insert_page                 ## TAILCALL
LBB0_5:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_VM_SHARED,4,2                  ## @VM_SHARED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MLX5_IB_CLOCK_INFO_V1,8,3      ## @MLX5_IB_CLOCK_INFO_V1
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_VM_WRITE,4,2                   ## @VM_WRITE
	.comm	_VM_EXEC,4,2                    ## @VM_EXEC
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_VM_MAYWRITE,4,2                ## @VM_MAYWRITE
	.no_dead_strip	_mlx5_ib_mmap_clock_info_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_ib_mmap_clock_info_page
_mlx5_ib_mmap_clock_info_page:          ; @mlx5_ib_mmap_clock_info_page
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldp	x8, x9, [x1]
Lloh0:
	adrp	x10, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	sub	x8, x8, x9
	cmp	x8, x10
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x1
	ldr	w8, [x1, #16]
Lloh3:
	adrp	x9, _VM_SHARED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VM_SHARED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
	mov	x20, x0
	ldr	w0, [x19, #20]
	bl	_get_index
Lloh6:
	adrp	x8, _MLX5_IB_CLOCK_INFO_V1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLX5_IB_CLOCK_INFO_V1@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.3:
	ldr	w8, [x19, #16]
Lloh9:
	adrp	x9, _VM_WRITE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VM_WRITE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _VM_EXEC@GOTPAGE
Lloh13:
	ldr	x10, [x10, _VM_EXEC@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
Lloh15:
	adrp	x8, _EPERM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh19:
	adrp	x9, _VM_MAYWRITE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _VM_MAYWRITE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x19, #16]
	ldr	x8, [x20]
	ldr	w0, [x8]
	cbz	w0, LBB0_8
; %bb.7:
	ldr	x20, [x19, #8]
	bl	_virt_to_page
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vm_insert_page
LBB0_8:
Lloh22:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_VM_SHARED,4,2                  ; @VM_SHARED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MLX5_IB_CLOCK_INFO_V1,8,3      ; @MLX5_IB_CLOCK_INFO_V1
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_VM_WRITE,4,2                   ; @VM_WRITE
	.comm	_VM_EXEC,4,2                    ; @VM_EXEC
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_VM_MAYWRITE,4,2                ; @VM_MAYWRITE
	.no_dead_strip	_mlx5_ib_mmap_clock_info_page
.subsections_via_symbols
