	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_bitlen_dsa
_check_bitlen_dsa:                      ## @check_bitlen_dsa
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	leaq	-64(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	callq	_DSA_get0_pqg
	leaq	-40(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_DSA_get0_key
	movq	-64(%rbp), %rdi
	callq	_BN_num_bits
	movl	%eax, %ebx
	testb	$7, %bl
	jne	LBB0_9
## %bb.1:
	movq	-56(%rbp), %rdi
	callq	_BN_num_bits
	cmpl	$160, %eax
	jne	LBB0_9
## %bb.2:
	movq	-48(%rbp), %rdi
	callq	_BN_num_bits
	cmpl	%ebx, %eax
	jg	LBB0_9
## %bb.3:
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.4:
	movq	-40(%rbp), %rdi
	callq	_BN_num_bits
	cmpl	%ebx, %eax
	jg	LBB0_9
## %bb.5:
	movq	_MS_DSS1MAGIC@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	-32(%rbp), %rdi
	callq	_BN_num_bits
	cmpl	$160, %eax
	jle	LBB0_7
LBB0_9:
	movq	_PEM_F_CHECK_BITLEN_DSA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PEM_R_UNSUPPORTED_KEY_COMPONENTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PEMerr
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_MS_DSS2MAGIC@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MS_DSS1MAGIC,4,2               ## @MS_DSS1MAGIC
	.comm	_MS_DSS2MAGIC,4,2               ## @MS_DSS2MAGIC
	.comm	_PEM_F_CHECK_BITLEN_DSA,4,2     ## @PEM_F_CHECK_BITLEN_DSA
	.comm	_PEM_R_UNSUPPORTED_KEY_COMPONENTS,4,2 ## @PEM_R_UNSUPPORTED_KEY_COMPONENTS
	.no_dead_strip	_check_bitlen_dsa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_bitlen_dsa
_check_bitlen_dsa:                      ; @check_bitlen_dsa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	stp	xzr, xzr, [sp, #32]
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #8]
	add	x1, sp, #40
	add	x2, sp, #32
	add	x3, sp, #24
	bl	_DSA_get0_pqg
	add	x1, sp, #16
	add	x2, sp, #8
	mov	x0, x20
	bl	_DSA_get0_key
	ldr	x0, [sp, #40]
	bl	_BN_num_bits
	tst	w0, #0x7
	b.ne	LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	x0, [sp, #32]
	bl	_BN_num_bits
	cmp	w0, #160
	b.ne	LBB0_7
; %bb.2:
	ldr	x0, [sp, #24]
	bl	_BN_num_bits
	cmp	w0, w20
	b.gt	LBB0_7
; %bb.3:
	cbz	w21, LBB0_6
; %bb.4:
	ldr	x0, [sp, #16]
	bl	_BN_num_bits
	cmp	w0, w20
	b.gt	LBB0_7
; %bb.5:
Lloh0:
	adrp	x8, _MS_DSS1MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MS_DSS1MAGIC@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	ldr	x0, [sp, #8]
	bl	_BN_num_bits
	cmp	w0, #160
	b.le	LBB0_9
LBB0_7:
Lloh2:
	adrp	x8, _PEM_F_CHECK_BITLEN_DSA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PEM_F_CHECK_BITLEN_DSA@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _PEM_R_UNSUPPORTED_KEY_COMPONENTS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PEM_R_UNSUPPORTED_KEY_COMPONENTS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_PEMerr
	mov	w20, #0
LBB0_8:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
LBB0_9:
Lloh8:
	adrp	x8, _MS_DSS2MAGIC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MS_DSS2MAGIC@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MS_DSS1MAGIC,4,2               ; @MS_DSS1MAGIC
	.comm	_MS_DSS2MAGIC,4,2               ; @MS_DSS2MAGIC
	.comm	_PEM_F_CHECK_BITLEN_DSA,4,2     ; @PEM_F_CHECK_BITLEN_DSA
	.comm	_PEM_R_UNSUPPORTED_KEY_COMPONENTS,4,2 ; @PEM_R_UNSUPPORTED_KEY_COMPONENTS
	.no_dead_strip	_check_bitlen_dsa
.subsections_via_symbols
