	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_key_buf2dsa_raw           ## -- Begin function ldns_key_buf2dsa_raw
	.p2align	4, 0x90
_ldns_key_buf2dsa_raw:                  ## @ldns_key_buf2dsa_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.1:
	movq	%rdi, %rbx
	movzbl	(%rdi), %eax
	cmpq	$8, %rax
	ja	LBB0_13
## %bb.4:
	leaq	64(,%rax,8), %r12
	movq	_SHA_DIGEST_LENGTH@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	leaq	(%r12,%r12,2), %rcx
	orq	$1, %rcx
	addq	%rax, %rcx
	cmpq	%rsi, %rcx
	ja	LBB0_13
## %bb.6:
	leaq	1(%rbx), %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_BN_bin2bn
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r15), %r13d
	leal	1(%r13), %eax
	movslq	%eax, %rdi
	addq	%rbx, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_BN_bin2bn
	movq	%rax, %r15
	leal	(%r12,%r13), %eax
	incl	%eax
	movslq	%eax, %r14
	leaq	(%rbx,%r14), %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_BN_bin2bn
	movq	%rax, %r13
	addl	%r12d, %r14d
	movslq	%r14d, %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	addq	%rbx, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_BN_bin2bn
	movq	%rax, %rbx
	testq	%r14, %r14
	je	LBB0_12
## %bb.7:
	testq	%r15, %r15
	je	LBB0_12
## %bb.8:
	testq	%r13, %r13
	je	LBB0_12
## %bb.9:
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.10:
	xorl	%eax, %eax
	callq	_DSA_new
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r15, 24(%rax)
	movq	%r14, 16(%rax)
	movq	%r13, 8(%rax)
	movq	%rbx, (%rax)
	jmp	LBB0_14
LBB0_12:
	movq	%r14, %rdi
	callq	_BN_free
	movq	%r15, %rdi
	callq	_BN_free
	movq	%r13, %rdi
	callq	_BN_free
	movq	%rbx, %rdi
	callq	_BN_free
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SHA_DIGEST_LENGTH,8,3          ## @SHA_DIGEST_LENGTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_key_buf2dsa_raw           ; -- Begin function ldns_key_buf2dsa_raw
	.p2align	2
_ldns_key_buf2dsa_raw:                  ; @ldns_key_buf2dsa_raw
	.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
	cbz	x1, LBB0_7
; %bb.1:
	mov	x19, x0
	ldrb	w8, [x0]
	cmp	x8, #8
	b.hi	LBB0_7
; %bb.2:
	lsl	x8, x8, #3
Lloh0:
	adrp	x22, _SHA_DIGEST_LENGTH@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SHA_DIGEST_LENGTH@GOTPAGEOFF]
	add	x21, x8, #64
	ldr	x8, [x22]
	add	x9, x21, x21, lsl #1
	orr	x9, x9, #0x1
	add	x9, x8, x9
	cmp	x9, x1
	b.hi	LBB0_7
; %bb.3:
	add	x0, x19, #1
	mov	x1, x8
	mov	x2, #0
	bl	_BN_bin2bn
	mov	x20, x0
	ldr	w8, [x22]
	add	w8, w8, #1
	sxtw	x23, w8
	add	x0, x19, x23
	mov	x1, x21
	mov	x2, #0
	bl	_BN_bin2bn
	mov	x22, x0
	mov	w24, w21
	add	x25, x23, x24
	add	x0, x19, x25
	mov	x1, x21
	mov	x2, #0
	bl	_BN_bin2bn
	mov	x23, x0
	add	x8, x24, w25, sxtw
	add	x0, x19, x8
	mov	x1, x21
	mov	x2, #0
	bl	_BN_bin2bn
	mov	x19, x0
	cmp	x20, #0
	ccmp	x22, #0, #4, ne
	ccmp	x23, #0, #4, ne
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_6
; %bb.4:
	bl	_DSA_new
	cbz	x0, LBB0_6
; %bb.5:
	stp	x20, x22, [x0, #16]
	stp	x19, x23, [x0]
	b	LBB0_8
LBB0_6:
	mov	x0, x20
	bl	_BN_free
	mov	x0, x22
	bl	_BN_free
	mov	x0, x23
	bl	_BN_free
	mov	x0, x19
	bl	_BN_free
LBB0_7:
	mov	x0, #0
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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SHA_DIGEST_LENGTH,8,3          ; @SHA_DIGEST_LENGTH
.subsections_via_symbols
