	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssh_dss_sign                   ## -- Begin function ssh_dss_sign
	.p2align	4, 0x90
_ssh_dss_sign:                          ## @ssh_dss_sign
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SSH_DIGEST_MAX_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, %r15
	leaq	(,%rax,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	_SIGBLOB_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	_SSH_DIGEST_SHA1@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_ssh_digest_bytes
	movq	%rax, %r12
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	$0, (%rbx)
LBB0_2:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	$0, (%rax)
LBB0_4:
	testq	%r13, %r13
	je	LBB0_7
## %bb.5:
	cmpq	$0, (%r13)
	je	LBB0_7
## %bb.6:
	movl	8(%r13), %edi
	callq	_sshkey_type_plain
	movq	_KEY_DSA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.9:
	testq	%r12, %r12
	je	LBB0_10
## %bb.11:
	movl	(%r14), %edi
	shll	$2, %r15d
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %r8
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rcx
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_ssh_digest_memory
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %r14d
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_33
LBB0_7:
	movq	_SSH_ERR_INVALID_ARGUMENT@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %r14d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_34:
	movq	%rbx, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_36
## %bb.35:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_SSH_ERR_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_13:
	movq	(%r13), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_DSA_do_sign
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	leaq	-112(%rbp), %rsi
	leaq	-104(%rbp), %rdx
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_DSA_SIG_get0
	movq	-112(%rbp), %rdi
	callq	_BN_num_bytes
	movq	%rax, %r15
	movq	-104(%rbp), %rdi
	callq	_BN_num_bytes
	movq	%rax, %r14
	movq	_INTBLOB_LEN@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	cmpq	%rax, %r15
	ja	LBB0_17
## %bb.16:
	cmpq	%rax, %r14
	ja	LBB0_17
## %bb.20:
	movq	_SIGBLOB_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_explicit_bzero
	movq	-112(%rbp), %rdi
	movq	_SIGBLOB_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(,%rax,4), %rsi
	addq	%r13, %rsi
	movq	(%r12), %rax
	shlq	$2, %rax
	subq	%rax, %rsi
	shlq	$2, %r15
	subq	%r15, %rsi
	callq	_BN_bn2bin
	movq	-104(%rbp), %rdi
	movq	_SIGBLOB_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(,%rax,4), %rsi
	addq	%r13, %rsi
	shlq	$2, %r14
	subq	%r14, %rsi
	callq	_BN_bn2bin
	xorl	%eax, %eax
	callq	_sshbuf_new
	testq	%rax, %rax
	je	LBB0_21
## %bb.22:
	movq	%rax, %r13
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_sshbuf_put_cstring
	testl	%eax, %eax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_23
## %bb.24:
	movq	_SIGBLOB_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_sshbuf_put_string
	testl	%eax, %eax
	je	LBB0_25
LBB0_23:
	movl	%eax, %r14d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_32:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_33
LBB0_14:
	movq	%r15, %rdi
	movq	_SSH_ERR_LIBCRYPTO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_33
LBB0_17:
	movq	_SSH_ERR_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_21:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %r14d
	xorl	%r13d, %r13d
LBB0_19:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
LBB0_33:
	movl	%r15d, %esi
	callq	_explicit_bzero
	movq	%r12, %rdi
	callq	_DSA_SIG_free
	movq	%r13, %rdi
	callq	_sshbuf_free
	jmp	LBB0_34
LBB0_25:
	movq	%r13, %rdi
	callq	_sshbuf_len
	movq	%rax, %r15
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_29
## %bb.26:
	movq	%r15, %rdi
	movq	%rax, %r12
	callq	_malloc
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_27
## %bb.28:
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_sshbuf_ptr
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_memcpy
	movq	-80(%rbp), %r12                 ## 8-byte Reload
LBB0_29:
	xorl	%r14d, %r14d
	movq	%rbx, %rax
	testq	%rbx, %rbx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_31
## %bb.30:
	movq	%r15, (%rax)
LBB0_31:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_32
LBB0_27:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_19
LBB0_36:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_DIGEST_MAX_LENGTH,4,2      ## @SSH_DIGEST_MAX_LENGTH
	.comm	_SIGBLOB_LEN,4,2                ## @SIGBLOB_LEN
	.comm	_SSH_DIGEST_SHA1,4,2            ## @SSH_DIGEST_SHA1
	.comm	_SSH_ERR_INVALID_ARGUMENT,4,2   ## @SSH_ERR_INVALID_ARGUMENT
	.comm	_KEY_DSA,8,3                    ## @KEY_DSA
	.comm	_SSH_ERR_INTERNAL_ERROR,4,2     ## @SSH_ERR_INTERNAL_ERROR
	.comm	_SSH_ERR_LIBCRYPTO_ERROR,4,2    ## @SSH_ERR_LIBCRYPTO_ERROR
	.comm	_INTBLOB_LEN,8,3                ## @INTBLOB_LEN
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ## @SSH_ERR_ALLOC_FAIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ssh-dss"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssh_dss_sign                   ; -- Begin function ssh_dss_sign
	.p2align	2
_ssh_dss_sign:                          ; @ssh_dss_sign
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x25, x4
	mov	x26, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	mov	x8, sp
	stur	x8, [x29, #-112]                ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _SSH_DIGEST_MAX_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSH_DIGEST_MAX_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	lsl	x8, x21, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh8:
	adrp	x8, _SIGBLOB_LEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIGBLOB_LEN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x24, x9, x8
	mov	sp, x24
Lloh13:
	adrp	x28, _SSH_DIGEST_SHA1@GOTPAGE
Lloh14:
	ldr	x28, [x28, _SSH_DIGEST_SHA1@GOTPAGEOFF]
	ldr	w0, [x28]
	bl	_ssh_digest_bytes
	mov	x27, x0
	cbz	x20, LBB0_2
; %bb.1:
	str	xzr, [x20]
LBB0_2:
	cbz	x22, LBB0_4
; %bb.3:
	str	xzr, [x22]
LBB0_4:
	cbz	x23, LBB0_10
; %bb.5:
	ldr	x8, [x23]
	cbz	x8, LBB0_10
; %bb.6:
	ldr	w0, [x23, #8]
	bl	_sshkey_type_plain
Lloh15:
	adrp	x8, _KEY_DSA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _KEY_DSA@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.7:
	cbz	x27, LBB0_14
; %bb.8:
	ldr	w0, [x28]
	lsl	w28, w21, #2
	mov	x1, x26
	mov	x2, x25
	mov	x3, x19
	mov	x4, x28
	bl	_ssh_digest_memory
	cbz	w0, LBB0_15
; %bb.9:
	mov	x26, x0
	mov	x23, #0
	mov	x25, #0
	b	LBB0_31
LBB0_10:
Lloh18:
	adrp	x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGEOFF]
LBB0_11:
	ldr	w26, [x8]
	ldur	x21, [x29, #-112]               ; 8-byte Folded Reload
LBB0_12:
	mov	sp, x21
	ldur	x8, [x29, #-88]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.13:
	mov	x0, x26
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh23:
	adrp	x8, _SSH_ERR_INTERNAL_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SSH_ERR_INTERNAL_ERROR@GOTPAGEOFF]
	b	LBB0_11
LBB0_15:
	ldr	x2, [x23]
	mov	x0, x19
	mov	x1, x27
	bl	_DSA_do_sign
	mov	x23, x0
	cbz	x0, LBB0_22
; %bb.16:
	sub	x1, x29, #96
	sub	x2, x29, #104
	mov	x0, x23
	bl	_DSA_SIG_get0
	ldur	x0, [x29, #-96]
	bl	_BN_num_bytes
	mov	x26, x0
	ldur	x0, [x29, #-104]
	bl	_BN_num_bytes
Lloh25:
	adrp	x21, _INTBLOB_LEN@GOTPAGE
Lloh26:
	ldr	x21, [x21, _INTBLOB_LEN@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x26, x8
	b.hi	LBB0_23
; %bb.17:
	mov	x25, x0
	cmp	x0, x8
	b.hi	LBB0_23
; %bb.18:
Lloh27:
	adrp	x27, _SIGBLOB_LEN@GOTPAGE
Lloh28:
	ldr	x27, [x27, _SIGBLOB_LEN@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x0, x24
	bl	_explicit_bzero
	ldur	x0, [x29, #-96]
	ldrsw	x8, [x27]
	add	x8, x24, x8, lsl #2
	ldr	x9, [x21]
	sub	x8, x8, x9, lsl #2
	sub	x1, x8, x26, lsl #2
	bl	_BN_bn2bin
	ldur	x0, [x29, #-104]
	ldrsw	x8, [x27]
	add	x8, x24, x8, lsl #2
	sub	x1, x8, x25, lsl #2
	bl	_BN_bn2bin
	bl	_sshbuf_new
	mov	x25, x0
	cbz	x0, LBB0_29
; %bb.19:
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x25
	bl	_sshbuf_put_cstring
	cbnz	w0, LBB0_21
; %bb.20:
	ldr	w2, [x27]
	mov	x0, x25
	mov	x1, x24
	bl	_sshbuf_put_string
	cbz	w0, LBB0_24
LBB0_21:
	mov	x26, x0
	b	LBB0_31
LBB0_22:
	mov	x25, #0
Lloh31:
	adrp	x8, _SSH_ERR_LIBCRYPTO_ERROR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SSH_ERR_LIBCRYPTO_ERROR@GOTPAGEOFF]
	b	LBB0_30
LBB0_23:
	mov	x25, #0
Lloh33:
	adrp	x8, _SSH_ERR_INTERNAL_ERROR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SSH_ERR_INTERNAL_ERROR@GOTPAGEOFF]
	b	LBB0_30
LBB0_24:
	mov	x0, x25
	bl	_sshbuf_len
	mov	x24, x0
	cbz	x22, LBB0_27
; %bb.25:
	mov	x0, x24
	bl	_malloc
	str	x0, [x22]
	cbz	x0, LBB0_29
; %bb.26:
	mov	x26, x0
	mov	x0, x25
	bl	_sshbuf_ptr
	mov	x1, x0
	mov	x0, x26
	mov	x2, x24
	bl	_memcpy
LBB0_27:
	ldur	x21, [x29, #-112]               ; 8-byte Folded Reload
	mov	w26, #0
	cbz	x20, LBB0_32
; %bb.28:
	str	x24, [x20]
	b	LBB0_32
LBB0_29:
Lloh35:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
LBB0_30:
	ldr	w26, [x8]
LBB0_31:
	ldur	x21, [x29, #-112]               ; 8-byte Folded Reload
LBB0_32:
	mov	x0, x19
	mov	x1, x28
	bl	_explicit_bzero
	mov	x0, x23
	bl	_DSA_SIG_free
	mov	x0, x25
	bl	_sshbuf_free
	b	LBB0_12
LBB0_33:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_DIGEST_MAX_LENGTH,4,2      ; @SSH_DIGEST_MAX_LENGTH
	.comm	_SIGBLOB_LEN,4,2                ; @SIGBLOB_LEN
	.comm	_SSH_DIGEST_SHA1,4,2            ; @SSH_DIGEST_SHA1
	.comm	_SSH_ERR_INVALID_ARGUMENT,4,2   ; @SSH_ERR_INVALID_ARGUMENT
	.comm	_KEY_DSA,8,3                    ; @KEY_DSA
	.comm	_SSH_ERR_INTERNAL_ERROR,4,2     ; @SSH_ERR_INTERNAL_ERROR
	.comm	_SSH_ERR_LIBCRYPTO_ERROR,4,2    ; @SSH_ERR_LIBCRYPTO_ERROR
	.comm	_INTBLOB_LEN,8,3                ; @INTBLOB_LEN
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ; @SSH_ERR_ALLOC_FAIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ssh-dss"

.subsections_via_symbols
