	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HLPFILE_PageByOffset           ## -- Begin function HLPFILE_PageByOffset
	.p2align	4, 0x90
_HLPFILE_PageByOffset:                  ## @HLPFILE_PageByOffset
	.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
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_debugstr_a
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_WINE_TRACE
	cmpl	$-1, %ebx
	je	LBB0_11
## %bb.2:
	movq	8(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.3:
	xorl	%eax, %eax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %eax
	subl	%edx, %eax
	movl	%eax, (%r15)
	movq	%rcx, %rax
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %edx
	cmpl	%ebx, %edx
	jg	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%edx, (%rax)
	jl	LBB0_7
	jmp	LBB0_8
LBB0_9:
	testq	%rax, %rax
	jne	LBB0_12
LBB0_10:
	movl	(%r14), %edi
	callq	_debugstr_a
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_WINE_ERR
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<%s>[%x]\n"

L_.str.1:                               ## @.str.1
	.asciz	"Page of offset %u not found in file %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HLPFILE_PageByOffset           ; -- Begin function HLPFILE_PageByOffset
	.p2align	2
_HLPFILE_PageByOffset:                  ; @HLPFILE_PageByOffset
	.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
	cbz	x0, LBB0_12
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_debugstr_a
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_WINE_TRACE
	cmn	w19, #1
	b.eq	LBB0_11
; %bb.2:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_10
; %bb.3:
	mov	x0, #0
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	w9, w19, w9
	str	w9, [x21]
	mov	x0, x8
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8]
	cmp	w9, w19
	b.gt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	x0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w10, [x0]
	cmp	w10, w9
	b.lt	LBB0_4
	b	LBB0_5
LBB0_9:
	cbnz	x0, LBB0_12
LBB0_10:
	ldr	w0, [x20]
	bl	_debugstr_a
	mov	x2, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_WINE_ERR
LBB0_11:
	mov	x0, #0
LBB0_12:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<%s>[%x]\n"

l_.str.1:                               ; @.str.1
	.asciz	"Page of offset %u not found in file %s\n"

.subsections_via_symbols
