	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_calc_keytag_raw           ## -- Begin function ldns_calc_keytag_raw
	.p2align	4, 0x90
_ldns_calc_keytag_raw:                  ## @ldns_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
	cmpq	$4, %rsi
	jae	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_2:
	movl	12(%rdi), %eax
	movq	_LDNS_RSAMD5@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.6:
	movq	$0, -8(%rbp)
	cmpq	$5, %rsi
	jb	LBB0_7
## %bb.8:
	leaq	(%rdi,%rsi,4), %rsi
	addq	$-12, %rsi
	leaq	-8(%rbp), %rdi
	movl	$2, %edx
	callq	_memmove
	movq	-8(%rbp), %rdi
	jmp	LBB0_9
LBB0_3:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdi,%rcx,4), %r8d
	movl	%r8d, %edx
	shll	$8, %edx
	testb	$1, %cl
	cmovnel	%r8d, %edx
	addl	%edx, %eax
	incl	%ecx
	cmpq	%rsi, %rcx
	jb	LBB0_4
## %bb.5:
	movl	%eax, %ecx
	shrl	$16, %ecx
	addl	%eax, %ecx
	movzwl	%cx, %eax
	jmp	LBB0_10
LBB0_7:
	xorl	%edi, %edi
LBB0_9:
	callq	_ntohs
LBB0_10:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RSAMD5,4,2                ## @LDNS_RSAMD5
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_calc_keytag_raw           ; -- Begin function ldns_calc_keytag_raw
	.p2align	2
_ldns_calc_keytag_raw:                  ; @ldns_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	x0, #0
	b	LBB0_9
LBB0_2:
	ldr	w8, [x0, #12]
Lloh0:
	adrp	x9, _LDNS_RSAMD5@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LDNS_RSAMD5@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.3:
	mov	x8, #0
	str	xzr, [sp, #8]
	cmp	x1, #5
	b.lo	LBB0_5
; %bb.4:
	add	x8, x0, x1, lsl #2
	sub	x1, x8, #12
	add	x0, sp, #8
	mov	w2, #2
	bl	_memmove
	ldr	x8, [sp, #8]
LBB0_5:
	mov	x0, x8
	bl	_ntohs
	b	LBB0_9
LBB0_6:
	mov	x9, #0
	mov	w8, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x0, x9, lsl #2]
	lsl	w11, w10, #8
	tst	x9, #0x1
	csel	w10, w11, w10, eq
	add	w8, w10, w8
	add	w9, w9, #1
	cmp	x9, x1
	b.lo	LBB0_7
; %bb.8:
	add	w8, w8, w8, lsr #16
	and	w0, w8, #0xffff
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RSAMD5,4,2                ; @LDNS_RSAMD5
.subsections_via_symbols
