	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ldns_key_dsa2bin
_ldns_key_dsa2bin:                      ## @ldns_key_dsa2bin
	.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
	xorl	%r14d, %r14d
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	%rdx, %r15
	movq	%rdi, %r12
	movq	32(%rsi), %r13
	movq	24(%rsi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rbx
	movq	16(%rsi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_BN_num_bytes
	movl	%eax, (%r15)
	cmpl	$135, %eax
	jg	LBB0_3
## %bb.2:
	leal	-64(%rax), %ecx
	movq	%rbx, %r14
	leal	-57(%rax), %ebx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %ebx
	shrl	$3, %ebx
	leal	(%rax,%rax,2), %edx
	addl	$21, %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_memset
	movb	%bl, (%r12)
	leaq	1(%r12), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_BN_bn2bin
	leaq	21(%r12), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_BN_bn2bin
	movslq	(%r15), %rax
	leaq	(%r12,%rax,2), %rbx
	addq	$21, %rbx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_BN_num_bytes
	subq	%rax, %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_BN_bn2bin
	movslq	(%r15), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%r12,%rax), %rbx
	addq	$21, %rbx
	movq	%r14, %rdi
	callq	_BN_num_bytes
	subq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_BN_bn2bin
	movl	(%r15), %eax
	leal	(%rax,%rax,2), %eax
	addl	$21, %eax
	movl	%eax, (%r15)
	movl	$1, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.no_dead_strip	_ldns_key_dsa2bin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ldns_key_dsa2bin
_ldns_key_dsa2bin:                      ; @ldns_key_dsa2bin
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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_2
; %bb.1:
	mov	x19, x2
	mov	x21, x0
	ldp	x24, x23, [x1, #24]
	ldp	x20, x22, [x1, #8]
	mov	x0, x23
	bl	_BN_num_bytes
	str	w0, [x19]
	cmp	w0, #135
	b.le	LBB0_3
LBB0_2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	sub	w8, w0, #64
	sub	w9, w0, #57
	cmp	w8, #0
	csel	w8, w9, w8, lt
	lsr	w25, w8, #3
	add	w8, w0, w0, lsl #1
	add	w2, w8, #21
	mov	x0, x21
	mov	w1, #0
	bl	_memset
	add	x8, x21, #1
	strb	w25, [x21], #21
	str	x8, [sp]
	mov	x0, x24
	bl	_BN_bn2bin
	str	x21, [sp]
	mov	x0, x23
	bl	_BN_bn2bin
	ldrsw	x8, [x19]
	add	x23, x21, x8, lsl #1
	mov	x0, x22
	bl	_BN_num_bytes
	sub	x8, x23, x0
	str	x8, [sp]
	mov	x0, x22
	bl	_BN_bn2bin
	ldrsw	x8, [x19]
	add	x8, x8, x8, lsl #1
	add	x21, x21, x8
	mov	x0, x20
	bl	_BN_num_bytes
	sub	x8, x21, x0
	str	x8, [sp]
	mov	x0, x20
	bl	_BN_bn2bin
	ldr	w8, [x19]
	add	w8, w8, w8, lsl #1
	add	w8, w8, #21
	str	w8, [x19]
	mov	w0, #1
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.no_dead_strip	_ldns_key_dsa2bin
.subsections_via_symbols
