	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dns_record_hash_lookup
_dns_record_hash_lookup:                ## @dns_record_hash_lookup
	.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	_RH@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movl	$-1, %eax
	testq	%r9, %r9
	je	LBB0_13
## %bb.1:
	movq	_records_buff@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movslq	%edi, %rcx
	movl	(%rsi,%rcx,4), %r8d
	movl	%r8d, %edx
	andl	$-4, %edx
	cmpl	$128, %edx
	jne	LBB0_13
## %bb.2:
	movl	4(%rsi,%rcx,4), %eax
	movq	%rcx, %r13
	movq	%rsi, %r12
	cmpq	$0, 8(%rsi,%rcx,4)
	leal	4(%rax), %edx
	cmovel	%eax, %edx
	movl	%r8d, %ebx
	movl	%r8d, %r15d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	jle	LBB0_5
## %bb.3:
	movq	16(%r12,%r13,4), %rsi
	movq	_records_hash_prime@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	leal	-1(%r10), %ecx
	movl	-44(%rbp), %r11d                ## 4-byte Reload
	xorl	%edi, %edi
	movl	%r8d, %r15d
	movl	%r8d, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	shll	$8, %eax
	addl	%ebx, %eax
	movl	(%rsi,%rdi,4), %ebx
	addl	%ebx, %eax
	xorl	%edx, %edx
	divl	%r10d
	leal	(%r15,%r15,2), %eax
	addl	%ebx, %eax
	movl	%edx, %ebx
	xorl	%edx, %edx
	divl	%ecx
	incq	%rdi
	movl	%edx, %r15d
	cmpq	%rdi, %r11
	jne	LBB0_4
LBB0_5:
	incl	%r15d
	movq	_records_hash_prime@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	movq	%r12, %r10
	movq	%r12, %rax
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	addl	%r15d, %ebx
	movl	(%rsi), %edx
	cmpl	%edx, %ebx
	cmovbl	%ecx, %edx
	subl	%edx, %ebx
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %r14d
	movq	(%r9,%r14,8), %rdx
	cmpl	%r8d, (%rax,%rdx,4)
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	4(%rax,%rdx,4), %edi
	cmpl	4(%r10,%r13,4), %edi
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rax,%rdx,4), %rdi
	cmpq	8(%r10,%r13,4), %rdi
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rsi, %r12
	movq	16(%rax,%rdx,4), %rdi
	movq	16(%r10,%r13,4), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r10, %r15
	callq	_memcmp
	movq	_RH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_records_buff@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r15,%r13,4), %r8d
	movq	%r12, %rsi
	movq	%r15, %r10
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	xorl	%ecx, %ecx
	jmp	LBB0_11
LBB0_12:
	movl	(%r9,%r14,8), %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RH,8,3                         ## @RH
	.comm	_records_buff,8,3               ## @records_buff
	.comm	_records_hash_prime,4,2         ## @records_hash_prime
	.comm	_tot_hashed_records,8,3         ## @tot_hashed_records
	.comm	_max_hashed_records,8,3         ## @max_hashed_records
	.no_dead_strip	_dns_record_hash_lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dns_record_hash_lookup
_dns_record_hash_lookup:                ; @dns_record_hash_lookup
	.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
Lloh0:
	adrp	x20, _RH@GOTPAGE
Lloh1:
	ldr	x20, [x20, _RH@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_12
; %bb.1:
Lloh2:
	adrp	x21, _records_buff@GOTPAGE
Lloh3:
	ldr	x21, [x21, _records_buff@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x22, x9, w0, sxtw #2
	ldr	w10, [x22]
	and	w11, w10, #0xfffffffc
	cmp	w11, #128
	b.ne	LBB0_12
; %bb.2:
	ldr	w11, [x22, #4]
	ldr	x12, [x22, #8]
	add	w13, w11, #4
	cmp	x12, #0
	csel	w19, w11, w13, eq
Lloh4:
	adrp	x23, _records_hash_prime@GOTPAGE
Lloh5:
	ldr	x23, [x23, _records_hash_prime@GOTPAGEOFF]
	mov	x24, x10
	mov	x12, x10
	cmp	w19, #1
	b.lt	LBB0_5
; %bb.3:
	ldr	x11, [x22, #16]
	ldr	w13, [x23]
	sub	w14, w13, #1
	mov	x15, x19
	mov	x12, x10
	mov	x24, x10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w16, w24, w24, lsl #8
	ldr	w17, [x11], #4
	add	w16, w17, w16
	udiv	w0, w16, w13
	msub	w24, w0, w13, w16
	add	w12, w12, w12, lsl #1
	add	w12, w17, w12
	udiv	w16, w12, w14
	msub	w12, w16, w14, w12
	subs	x15, x15, #1
	b.ne	LBB0_4
LBB0_5:
	add	w25, w12, #1
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w11, [x23]
	add	w12, w25, w24
	cmp	w12, w11
	csel	w11, wzr, w11, lo
	sub	w24, w12, w11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8, w24, uxtw #3]
	add	x11, x9, x11, lsl #2
	ldr	w12, [x11]
	cmp	w12, w10
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w12, [x11, #4]
	ldr	w13, [x22, #4]
	cmp	w12, w13
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x12, [x11, #8]
	ldr	x13, [x22, #8]
	cmp	x12, x13
	b.ne	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x11, #16]
	ldr	x1, [x22, #16]
	mov	x2, x19
	bl	_memcmp
	ldr	x8, [x20]
	cbz	w0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x21]
	ldr	w10, [x22]
	b	LBB0_6
LBB0_12:
	mov	w0, #-1
	b	LBB0_14
LBB0_13:
	ldr	x0, [x8, w24, uxtw #3]
LBB0_14:
                                        ; kill: def $w0 killed $w0 killed $x0
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RH,8,3                         ; @RH
	.comm	_records_buff,8,3               ; @records_buff
	.comm	_records_hash_prime,4,2         ; @records_hash_prime
	.comm	_tot_hashed_records,8,3         ; @tot_hashed_records
	.comm	_max_hashed_records,8,3         ; @max_hashed_records
	.no_dead_strip	_dns_record_hash_lookup
.subsections_via_symbols
