	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sldns_rr_dnskey_key_size_raw   ## -- Begin function sldns_rr_dnskey_key_size_raw
	.p2align	4, 0x90
_sldns_rr_dnskey_key_size_raw:          ## @sldns_rr_dnskey_key_size_raw
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %rbx
	movq	%rdi, %rsi
	leal	-130(%rdx), %eax
	cmpl	$3, %eax
	jae	LBB0_4
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.2:
	movzbl	(%rsi), %eax
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	notq	%rax
	addq	%rbx, %rax
	shlq	$3, %rax
	jmp	LBB0_13
LBB0_4:
	addl	$-138, %edx
	cmpl	$1, %edx
	ja	LBB0_12
## %bb.5:
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.6:
	movzbl	(%rsi), %eax
	shlq	$6, %rax
	addq	$512, %rax                      ## imm = 0x200
	jmp	LBB0_13
LBB0_10:
	cmpq	$4, %rbx
	jb	LBB0_12
## %bb.11:
	incq	%rsi
	leaq	-9(%rbp), %rdi
	movl	$2, %edx
	callq	_memmove
	movzbl	-9(%rbp), %edi
	callq	_ntohs
	movzbl	%al, %eax
	subq	%rax, %rbx
	leaq	-24(,%rbx,8), %rax
	jmp	LBB0_13
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	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	_sldns_rr_dnskey_key_size_raw   ; -- Begin function sldns_rr_dnskey_key_size_raw
	.p2align	2
_sldns_rr_dnskey_key_size_raw:          ; @sldns_rr_dnskey_key_size_raw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	sub	w8, w2, #130
	cmp	w8, #3
	b.hs	LBB0_4
; %bb.1:
	cbz	x19, LBB0_9
; %bb.2:
	ldrb	w8, [x0]
	cbz	x8, LBB0_7
; %bb.3:
	mvn	x8, x8
	add	x8, x8, x19
	lsl	x0, x8, #3
	b	LBB0_10
LBB0_4:
	sub	w8, w2, #138
	cmp	w8, #1
	b.hi	LBB0_9
; %bb.5:
	cbz	x19, LBB0_9
; %bb.6:
	ldrb	w8, [x0]
	lsl	x8, x8, #6
	add	x0, x8, #512
	b	LBB0_10
LBB0_7:
	cmp	x19, #4
	b.lo	LBB0_9
; %bb.8:
	add	x1, x0, #1
	add	x0, sp, #15
	mov	w2, #2
	bl	_memmove
	ldrb	w0, [sp, #15]
	bl	_ntohs
	sub	x8, x19, w0, uxtw
	lsl	x8, x8, #3
	sub	x0, x8, #24
	b	LBB0_10
LBB0_9:
	mov	x0, #0
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
