	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function sldns_calc_keytag_raw
LCPI0_0:
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	1                               ## 0x1
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_1:
	.quad	1                               ## 0x1
	.quad	1                               ## 0x1
LCPI0_2:
	.quad	4                               ## 0x4
	.quad	4                               ## 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_sldns_calc_keytag_raw
	.p2align	4, 0x90
_sldns_calc_keytag_raw:                 ## @sldns_calc_keytag_raw
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	xorl	%eax, %eax
	cmpq	$4, %rsi
	jb	LBB0_12
## %bb.1:
	movq	24(%rdi), %rax
	movq	_LDNS_RSAMD5@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.9:
	movl	$0, -4(%rbp)
	xorl	%eax, %eax
	cmpq	$5, %rsi
	jb	LBB0_11
## %bb.10:
	leaq	(%rdi,%rsi,8), %rsi
	addq	$-24, %rsi
	leaq	-4(%rbp), %rdi
	movl	$2, %edx
	callq	_memmove
	movl	-4(%rbp), %eax
LBB0_11:
	movl	%eax, %edi
	callq	_ntohs
	jmp	LBB0_12
LBB0_2:
	cmpq	$4, %rsi
	jae	LBB0_4
## %bb.3:
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	jmp	LBB0_7
LBB0_4:
	movq	%rsi, %r8
	andq	$-4, %r8
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
	pxor	%xmm8, %xmm8
	xorl	%ecx, %ecx
	movdqa	LCPI0_1(%rip), %xmm9            ## xmm9 = [1,1]
	movdqa	LCPI0_2(%rip), %xmm10           ## xmm10 = [4,4]
	pxor	%xmm5, %xmm5
	pxor	%xmm3, %xmm3
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm1, %xmm0
	pand	%xmm9, %xmm0
	pcmpeqq	%xmm8, %xmm0
	movdqu	(%rdi,%rcx,8), %xmm7
	movdqu	16(%rdi,%rcx,8), %xmm2
	movdqa	%xmm7, %xmm4
	psllq	$8, %xmm4
	movdqa	%xmm2, %xmm6
	psllq	$8, %xmm6
	blendvpd	%xmm0, %xmm4, %xmm7
	blendvpd	%xmm0, %xmm6, %xmm2
	pshufd	$232, %xmm7, %xmm0              ## xmm0 = xmm7[0,2,2,3]
	paddd	%xmm0, %xmm5
	pshufd	$232, %xmm2, %xmm0              ## xmm0 = xmm2[0,2,2,3]
	paddd	%xmm0, %xmm3
	addq	$4, %rcx
	paddq	%xmm10, %xmm1
	cmpq	%rcx, %r8
	jne	LBB0_5
## %bb.6:
	paddd	%xmm5, %xmm3
	pshufd	$85, %xmm3, %xmm0               ## xmm0 = xmm3[1,1,1,1]
	paddd	%xmm3, %xmm0
	movd	%xmm0, %ecx
	cmpq	%rsi, %r8
	je	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdi,%r8,8), %eax
	movl	%eax, %edx
	shll	$8, %edx
	testb	$1, %r8b
	cmovnel	%eax, %edx
	addl	%edx, %ecx
	incq	%r8
	cmpq	%r8, %rsi
	jne	LBB0_7
LBB0_8:
	movl	%ecx, %eax
	shrl	$16, %eax
	addl	%ecx, %eax
	movzwl	%ax, %eax
LBB0_12:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RSAMD5,8,3                ## @LDNS_RSAMD5
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function sldns_calc_keytag_raw
lCPI0_0:
	.quad	0                               ; 0x0
	.quad	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_sldns_calc_keytag_raw
	.p2align	2
_sldns_calc_keytag_raw:                 ; @sldns_calc_keytag_raw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cmp	x1, #4
	b.hs	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_13
LBB0_2:
	ldr	x8, [x0, #24]
Lloh0:
	adrp	x9, _LDNS_RSAMD5@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LDNS_RSAMD5@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	mov	w8, #0
	stur	wzr, [x29, #-4]
	cmp	x1, #5
	b.lo	LBB0_5
; %bb.4:
	add	x8, x0, x1, lsl #3
	sub	x1, x8, #24
	sub	x0, x29, #4
	mov	w2, #2
	bl	_memmove
	ldur	w8, [x29, #-4]
LBB0_5:
	mov	x0, x8
	bl	_ntohs
	b	LBB0_13
LBB0_6:
	cmp	x1, #8
	b.hs	LBB0_8
; %bb.7:
	mov	w9, #0
	mov	x8, #0
	b	LBB0_11
LBB0_8:
	and	x8, x1, #0xfffffffffffffff8
Lloh3:
	adrp	x9, lCPI0_0@PAGE
Lloh4:
	ldr	q1, [x9, lCPI0_0@PAGEOFF]
	movi.2d	v0, #0000000000000000
	add	x9, x0, #32
	mov	w10, #1
	dup.2d	v2, x10
	mov	w10, #8
	dup.2d	v3, x10
	mov	x10, x8
	movi.2d	v4, #0000000000000000
	movi.2d	v5, #0000000000000000
	movi.2d	v6, #0000000000000000
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	and.16b	v7, v1, v2
	cmeq.2d	v7, v7, #0
	ldp	q16, q17, [x9, #-32]
	ldp	q18, q19, [x9], #64
	shl.2d	v20, v16, #8
	shl.2d	v21, v17, #8
	shl.2d	v22, v18, #8
	shl.2d	v23, v19, #8
	bit.16b	v16, v20, v7
	bit.16b	v17, v21, v7
	bit.16b	v18, v22, v7
	bsl.16b	v7, v23, v19
	xtn.2s	v16, v16
	xtn.2s	v17, v17
	xtn.2s	v18, v18
	xtn.2s	v7, v7
	add.2s	v0, v0, v16
	add.2s	v4, v4, v17
	add.2s	v5, v5, v18
	add.2s	v6, v6, v7
	add.2d	v1, v1, v3
	subs	x10, x10, #8
	b.ne	LBB0_9
; %bb.10:
	add.2s	v0, v4, v0
	add.2s	v0, v5, v0
	add.2s	v0, v6, v0
	addp.2s	v0, v0, v0
	fmov	w9, s0
	cmp	x8, x1
	b.eq	LBB0_12
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x0, x8, lsl #3]
	lsl	w11, w10, #8
	tst	x8, #0x1
	csel	w10, w11, w10, eq
	add	w9, w9, w10
	add	x8, x8, #1
	cmp	x1, x8
	b.ne	LBB0_11
LBB0_12:
	add	w8, w9, w9, lsr #16
	and	w0, w8, #0xffff
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RSAMD5,8,3                ; @LDNS_RSAMD5
.subsections_via_symbols
