	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bsearch_hash                   ## -- Begin function bsearch_hash
	.p2align	4, 0x90
_bsearch_hash:                          ## @bsearch_hash
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r13
	movzbl	(%rdi), %r15d
	movl	(%rsi,%r15,4), %edi
	callq	_ntohl
	movl	%eax, %ebx
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	decl	%r15d
	movl	(%r14,%r15,4), %edi
	callq	_ntohl
	movl	%eax, %r14d
	cmpl	%r14d, %ebx
	jg	LBB0_4
	jmp	LBB0_9
LBB0_1:
	xorl	%r14d, %r14d
	cmpl	%r14d, %ebx
	jg	LBB0_4
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%r15d
	movl	%r15d, %r14d
	cmpl	%r14d, %ebx
	jle	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	subl	%r14d, %eax
	movl	%eax, %r15d
	shrl	$31, %r15d
	addl	%eax, %r15d
	sarl	%r15d
	addl	%r14d, %r15d
	movq	%r15, %rdi
	imulq	-56(%rbp), %rdi                 ## 8-byte Folded Reload
	addq	%r12, %rdi
	movq	%r13, %rsi
	callq	_hashcmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	jle	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r15d, %ebx
	cmpl	%r14d, %ebx
	jg	LBB0_4
LBB0_9:
	xorl	%eax, %eax
	movl	%r14d, %r15d
	jmp	LBB0_10
LBB0_5:
	movl	$1, %eax
LBB0_10:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.11:
	movl	%r15d, (%rcx)
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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	_bsearch_hash                   ; -- Begin function bsearch_hash
	.p2align	2
_bsearch_hash:                          ; @bsearch_hash
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
	ldrb	w25, [x0]
	ldr	w0, [x1, x25, lsl #2]
	bl	_ntohl
	mov	x24, x0
	cbz	x25, LBB0_2
; %bb.1:
	sub	w8, w25, #1
	ldr	w0, [x23, w8, uxtw #2]
	bl	_ntohl
	mov	x23, x0
	b	LBB0_5
LBB0_2:
	mov	w23, #0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	w8, w24, w23
	cmp	w8, #0
	cinc	w8, w8, lt
	add	w25, w23, w8, asr #1
	madd	x0, x25, x20, x21
	mov	x1, x22
	bl	_hashcmp
	cbz	w0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w0, #0
	csel	w24, w25, w24, gt
	csinc	w23, w23, w25, gt
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w24, w23
	b.gt	LBB0_3
; %bb.6:
	mov	w8, #0
	mov	w0, #0
	cbz	x19, LBB0_8
LBB0_7:
	str	w23, [x19]
	mov	x0, x8
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	w8, #1
	mov	x23, x25
	mov	w0, #1
	cbnz	x19, LBB0_7
	b	LBB0_8
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
