	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsa_verify_signature
_dsa_verify_signature:                  ## @dsa_verify_signature
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, %rbx
	movq	%rdx, %r14
	movl	%edi, %r12d
	xorl	%eax, %eax
	callq	_DSA_new
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r13
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %eax
	movl	12(%r14), %edi
	leal	7(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$3, %esi
	leaq	-48(%rbp), %rdx
	leaq	-88(%rbp), %rcx
	callq	_decode_DSAPublicKey
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_21
## %bb.2:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	callq	_heim_int2BN
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_free_DSAPublicKey
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.3:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_DSA_set0_key
	cmpl	$1, %eax
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jne	LBB0_8
## %bb.4:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movl	(%rax), %esi
	movl	4(%rax), %edi
	leaq	-64(%rbp), %rdx
	leaq	-88(%rbp), %rcx
	callq	_decode_DSAParams
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rcx
	movl	%r12d, %edi
	jmp	LBB0_20
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rcx
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_hx509_set_error_string
	movl	(%r14), %r15d
	jmp	LBB0_22
LBB0_8:
	movq	%rbx, %rdi
	callq	_BN_free
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str.1(%rip), %rcx
	movl	%r12d, %edi
	jmp	LBB0_20
LBB0_9:
	movq	_HX509_CRYPTO_SIG_INVALID_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str.2(%rip), %rcx
	movl	%r12d, %edi
	jmp	LBB0_20
LBB0_10:
	leaq	-56(%rbp), %rdi
	callq	_heim_int2BN
	movq	%rax, %r14
	leaq	-60(%rbp), %rdi
	callq	_heim_int2BN
	movq	%rax, %r15
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_heim_int2BN
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_free_DSAParams
	testq	%r14, %r14
	je	LBB0_17
## %bb.11:
	testq	%r15, %r15
	je	LBB0_17
## %bb.12:
	testq	%r12, %r12
	je	LBB0_17
## %bb.13:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	%r12, %rcx
	callq	_DSA_set0_pqg
	cmpl	$1, %eax
	jne	LBB0_23
## %bb.14:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rsi
	movl	(%rax), %edx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rcx
	movl	(%rax), %r8d
	movl	$-1, %edi
	movq	%r13, %r9
	callq	_DSA_verify
	xorl	%r15d, %r15d
	cmpl	$1, %eax
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	je	LBB0_21
## %bb.15:
	incl	%eax
	cmpl	$1, %eax
	ja	LBB0_24
## %bb.16:
	movq	_HX509_CRYPTO_BAD_SIGNATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str.5(%rip), %rcx
	jmp	LBB0_20
LBB0_17:
	movq	%r14, %rdi
	callq	_BN_free
	movq	%r15, %rdi
	callq	_BN_free
	movq	%r12, %rdi
	callq	_BN_free
LBB0_18:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str(%rip), %rcx
LBB0_19:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
LBB0_20:
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_hx509_set_error_string
LBB0_21:
	movq	%r13, %rdi
	callq	_DSA_free
LBB0_22:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	%r14, %rdi
	callq	_BN_free
	movq	%r15, %rdi
	callq	_BN_free
	movq	%r12, %rdi
	callq	_BN_free
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str.4(%rip), %rcx
	jmp	LBB0_19
LBB0_24:
	movq	_HX509_CRYPTO_SIG_INVALID_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str.6(%rip), %rcx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"failed to set DSA key"

	.comm	_HX509_CRYPTO_SIG_INVALID_FORMAT,4,2 ## @HX509_CRYPTO_SIG_INVALID_FORMAT
L_.str.2:                               ## @.str.2
	.asciz	"DSA parameters missing"

L_.str.3:                               ## @.str.3
	.asciz	"DSA parameters failed to decode"

L_.str.4:                               ## @.str.4
	.asciz	"failed to set DSA parameters"

	.comm	_HX509_CRYPTO_BAD_SIGNATURE,4,2 ## @HX509_CRYPTO_BAD_SIGNATURE
L_.str.5:                               ## @.str.5
	.asciz	"BAD DSA sigature"

L_.str.6:                               ## @.str.6
	.asciz	"Invalid format of DSA sigature"

	.no_dead_strip	_dsa_verify_signature
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsa_verify_signature
_dsa_verify_signature:                  ; @dsa_verify_signature
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x5
	mov	x23, x4
	mov	x24, x2
	mov	x20, x0
	bl	_DSA_new
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldp	w8, w0, [x24, #8]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w1, w8, #3
	add	x2, sp, #28
	add	x3, sp, #8
	bl	_decode_DSAPublicKey
	mov	x22, x0
	cbnz	w0, LBB0_19
; %bb.2:
	add	x0, sp, #28
	bl	_heim_int2BN
	mov	x22, x0
	add	x0, sp, #28
	bl	_free_DSAPublicKey
	cbz	x22, LBB0_17
; %bb.3:
	mov	x0, x19
	mov	x1, x22
	mov	x2, #0
	bl	_DSA_set0_key
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.4:
	ldr	x8, [x24]
	cbz	x8, LBB0_9
; %bb.5:
	ldp	w1, w0, [x8]
	add	x24, sp, #16
	add	x2, sp, #16
	add	x3, sp, #8
	bl	_decode_DSAParams
	cbz	w0, LBB0_10
; %bb.6:
	mov	x22, x0
Lloh0:
	adrp	x3, l_.str.3@PAGE
Lloh1:
	add	x3, x3, l_.str.3@PAGEOFF
	b	LBB0_18
LBB0_7:
Lloh2:
	adrp	x19, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x19, [x19, _ENOMEM@GOTPAGEOFF]
	ldr	w2, [x19]
Lloh4:
	adrp	x3, l_.str@PAGE
Lloh5:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	w1, #0
	bl	_hx509_set_error_string
	ldr	w22, [x19]
	b	LBB0_20
LBB0_8:
	mov	x0, x22
	bl	_BN_free
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
Lloh9:
	adrp	x3, l_.str.1@PAGE
Lloh10:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_9:
Lloh11:
	adrp	x8, _HX509_CRYPTO_SIG_INVALID_FORMAT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HX509_CRYPTO_SIG_INVALID_FORMAT@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
Lloh14:
	adrp	x3, l_.str.2@PAGE
Lloh15:
	add	x3, x3, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_10:
	add	x0, x24, #8
	bl	_heim_int2BN
	mov	x25, x0
	orr	x0, x24, #0x4
	bl	_heim_int2BN
	mov	x24, x0
	add	x0, sp, #16
	bl	_heim_int2BN
	mov	x22, x0
	add	x0, sp, #16
	bl	_free_DSAParams
	cbz	x25, LBB0_16
; %bb.11:
	cbz	x24, LBB0_16
; %bb.12:
	cbz	x22, LBB0_16
; %bb.13:
	mov	x0, x19
	mov	x1, x25
	mov	x2, x24
	mov	x3, x22
	bl	_DSA_set0_pqg
	cmp	w0, #1
	b.ne	LBB0_21
; %bb.14:
	ldr	x1, [x23, #8]
	ldr	w2, [x23]
	ldr	x3, [x21, #8]
	ldr	w4, [x21]
	mov	w0, #-1
	mov	x5, x19
	bl	_DSA_verify
	cmp	w0, #1
	b.ne	LBB0_22
; %bb.15:
	mov	w22, #0
	b	LBB0_19
LBB0_16:
	mov	x0, x25
	bl	_BN_free
	mov	x0, x24
	bl	_BN_free
	mov	x0, x22
	bl	_BN_free
LBB0_17:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w22, [x8]
Lloh19:
	adrp	x3, l_.str@PAGE
Lloh20:
	add	x3, x3, l_.str@PAGEOFF
LBB0_18:
	mov	x0, x20
	mov	w1, #0
	mov	x2, x22
	bl	_hx509_set_error_string
LBB0_19:
	mov	x0, x19
	bl	_DSA_free
LBB0_20:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_21:
	mov	x0, x25
	bl	_BN_free
	mov	x0, x24
	bl	_BN_free
	mov	x0, x22
	bl	_BN_free
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w22, [x8]
Lloh24:
	adrp	x3, l_.str.4@PAGE
Lloh25:
	add	x3, x3, l_.str.4@PAGEOFF
	b	LBB0_18
LBB0_22:
	add	w8, w0, #1
	cmp	w8, #1
	b.hi	LBB0_24
; %bb.23:
Lloh26:
	adrp	x8, _HX509_CRYPTO_BAD_SIGNATURE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _HX509_CRYPTO_BAD_SIGNATURE@GOTPAGEOFF]
Lloh28:
	ldr	w22, [x8]
Lloh29:
	adrp	x3, l_.str.5@PAGE
Lloh30:
	add	x3, x3, l_.str.5@PAGEOFF
	b	LBB0_18
LBB0_24:
Lloh31:
	adrp	x8, _HX509_CRYPTO_SIG_INVALID_FORMAT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _HX509_CRYPTO_SIG_INVALID_FORMAT@GOTPAGEOFF]
Lloh33:
	ldr	w22, [x8]
Lloh34:
	adrp	x3, l_.str.6@PAGE
Lloh35:
	add	x3, x3, l_.str.6@PAGEOFF
	b	LBB0_18
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"failed to set DSA key"

	.comm	_HX509_CRYPTO_SIG_INVALID_FORMAT,4,2 ; @HX509_CRYPTO_SIG_INVALID_FORMAT
l_.str.2:                               ; @.str.2
	.asciz	"DSA parameters missing"

l_.str.3:                               ; @.str.3
	.asciz	"DSA parameters failed to decode"

l_.str.4:                               ; @.str.4
	.asciz	"failed to set DSA parameters"

	.comm	_HX509_CRYPTO_BAD_SIGNATURE,4,2 ; @HX509_CRYPTO_BAD_SIGNATURE
l_.str.5:                               ; @.str.5
	.asciz	"BAD DSA sigature"

l_.str.6:                               ; @.str.6
	.asciz	"Invalid format of DSA sigature"

	.no_dead_strip	_dsa_verify_signature
.subsections_via_symbols
