	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HLPFILE_PageByHash             ## -- Begin function HLPFILE_PageByHash
	.p2align	4, 0x90
_HLPFILE_PageByHash:                    ## @HLPFILE_PageByHash
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.2:
	movl	16(%rbx), %edi
	callq	_debugstr_a
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_WINE_TRACE
	cmpl	$16, (%rbx)
	jg	LBB0_6
## %bb.3:
	cmpq	%r15, 8(%rbx)
	jbe	LBB0_8
## %bb.4:
	movq	24(%rbx), %rax
	movl	(%rax,%r15,4), %esi
	movq	%rbx, %rdi
	jmp	LBB0_5
LBB0_9:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HLPFILE_Contents               ## TAILCALL
LBB0_6:
	movl	20(%rbx), %r12d
	movq	%r15, %rdi
	callq	_LongToPtr
	movq	_comp_PageByHash@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_HLPFILE_BPTreeSearch
	testq	%rax, %rax
	je	LBB0_7
## %bb.10:
	movq	%rax, %rdi
	movl	$4, %esi
	callq	_GET_UINT
	movq	%rbx, %rdi
	movl	%eax, %esi
LBB0_5:
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HLPFILE_PageByOffset           ## TAILCALL
LBB0_7:
	movl	16(%rbx), %edi
	callq	_debugstr_a
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_WINE_ERR
LBB0_8:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<%s>[%x]\n"

	.comm	_comp_PageByHash,4,2            ## @comp_PageByHash
L_.str.1:                               ## @.str.1
	.asciz	"Page of hash %x 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_PageByHash             ; -- Begin function HLPFILE_PageByHash
	.p2align	2
_HLPFILE_PageByHash:                    ; @HLPFILE_PageByHash
	.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_10
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	cbz	x1, LBB0_5
; %bb.2:
	ldr	w0, [x20, #16]
	bl	_debugstr_a
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	bl	_WINE_TRACE
	ldr	w8, [x20]
	cmp	w8, #16
	b.gt	LBB0_6
; %bb.3:
	ldr	x8, [x20, #8]
	cmp	x8, x21
	b.ls	LBB0_10
; %bb.4:
	ldr	x8, [x20, #24]
	ldr	w1, [x8, x21, lsl #2]
	b	LBB0_8
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	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
	b	_HLPFILE_Contents
LBB0_6:
	ldr	w22, [x20, #20]
	mov	x0, x21
	bl	_LongToPtr
	mov	x1, x0
Lloh2:
	adrp	x8, _comp_PageByHash@GOTPAGE
Lloh3:
	ldr	x8, [x8, _comp_PageByHash@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_HLPFILE_BPTreeSearch
	cbz	x0, LBB0_9
; %bb.7:
	mov	w1, #4
	bl	_GET_UINT
	mov	x1, x0
LBB0_8:
	mov	x0, x20
	mov	x2, x19
	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
	b	_HLPFILE_PageByOffset
LBB0_9:
	ldr	w0, [x20, #16]
	bl	_debugstr_a
	mov	x2, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_WINE_ERR
LBB0_10:
	mov	x0, #0
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<%s>[%x]\n"

	.comm	_comp_PageByHash,4,2            ; @comp_PageByHash
l_.str.1:                               ; @.str.1
	.asciz	"Page of hash %x not found in file %s\n"

.subsections_via_symbols
