	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iheap_word_bsearch             ## -- Begin function iheap_word_bsearch
	.p2align	4, 0x90
_iheap_word_bsearch:                    ## @iheap_word_bsearch
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	testl	%esi, %esi
	jle	LBB0_9
## %bb.1:
	movl	$-1, %r8d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, %r8d
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%esi, %eax
	subl	%r8d, %eax
	cmpl	$1, %eax
	jle	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rsi,%r8), %ecx
	sarl	%ecx
	movslq	%ecx, %rax
	cmpq	%rdx, (%rdi,%rax,8)
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, %esi
	jmp	LBB0_5
LBB0_6:
	testl	%r8d, %r8d
	js	LBB0_9
## %bb.7:
	movl	%r8d, %eax
	cmpq	%rdx, (%rdi,%rax,8)
	jne	LBB0_9
## %bb.8:
	leaq	(%rdi,%rax,8), %rax
	popq	%rbp
	retq
LBB0_9:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iheap_word_bsearch             ; -- Begin function iheap_word_bsearch
	.p2align	2
_iheap_word_bsearch:                    ; @iheap_word_bsearch
	.cfi_startproc
; %bb.0:
	cmp	w1, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w8, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w9, w1, w8
	asr	w9, w9, #1
	ldr	x10, [x0, w9, sxtw #3]
	cmp	x10, x2
	csel	w8, w8, w9, gt
	csel	w1, w9, w1, gt
	sub	w9, w1, w8
	cmp	w9, #1
	b.gt	LBB0_2
; %bb.3:
	tbnz	w8, #31, LBB0_5
; %bb.4:
	add	x0, x0, w8, uxtw #3
	ldr	x8, [x0]
	cmp	x8, x2
	b.eq	LBB0_6
LBB0_5:
	mov	x0, #0
LBB0_6:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
