	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_rsa_security_bit
_test_rsa_security_bit:                 ## @test_rsa_security_bit
	.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	$2024, %rsp                     ## imm = 0x7E8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_RSA_new
	movq	%rax, %r12
	movq	_rsa_security_bits_cases@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,8), %r15d
	movl	4(%rax,%rcx,8), %eax
	movl	%eax, -2052(%rbp)               ## 4-byte Spill
	leal	7(%r15), %ebx
	leal	14(%r15), %r13d
	testl	%ebx, %ebx
	cmovnsl	%ebx, %r13d
	movq	%r12, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	sarl	$3, %r13d
	movl	%r13d, %edi
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_TEST_int_le
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	testl	%r15d, %r15d
	cmovnsl	%r15d, %ebx
	andl	$-8, %ebx
	subl	%ebx, %r15d
	movslq	%r15d, %rax
	leaq	_test_rsa_security_bit.vals(%rip), %rcx
	movzbl	(%rax,%rcx), %esi
	leaq	-2048(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_memset
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_BN_bin2bn
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_BN_bin2bn
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_RSA_set0_key
	movl	%eax, %edi
	callq	_TEST_true
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_RSA_security_bits
	movl	%eax, %edi
	movl	-2052(%rbp), %esi               ## 4-byte Reload
	callq	_TEST_uint_eq
	xorl	%r14d, %r14d
	testq	%rax, %rax
	setne	%r14b
LBB0_4:
	movq	%r12, %rdi
	callq	_RSA_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%r14d, %eax
	addq	$2024, %rsp                     ## imm = 0x7E8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_test_rsa_security_bit.vals:            ## @test_rsa_security_bit.vals
	.ascii	"\200\001\002\004\b\020 @"

	.comm	_rsa_security_bits_cases,8,3    ## @rsa_security_bits_cases
	.no_dead_strip	_test_rsa_security_bit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_rsa_security_bit
_test_rsa_security_bit:                 ; @test_rsa_security_bit
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 w27, -56
	.cfi_offset w28, -64
	sub	sp, sp, #2016
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_RSA_new
	mov	x19, x0
Lloh3:
	adrp	x8, _rsa_security_bits_cases@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rsa_security_bits_cases@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x8, x8, w20, sxtw #3
	ldp	w22, w20, [x8]
	add	w8, w22, #7
	add	w9, w22, #14
	cmp	w8, #0
	csel	w21, w9, w8, lt
	bl	_TEST_ptr
	cbz	w0, LBB0_4
; %bb.1:
	asr	w21, w21, #3
	mov	x0, x21
	mov	w1, #2000
	bl	_TEST_int_le
	cbz	w0, LBB0_4
; %bb.2:
	negs	w8, w22
	and	w8, w8, #0x7
	and	w9, w22, #0x7
	csneg	w8, w9, w8, mi
Lloh6:
	adrp	x9, _test_rsa_security_bit.vals@PAGE
Lloh7:
	add	x9, x9, _test_rsa_security_bit.vals@PAGEOFF
	ldrb	w1, [x9, w8, sxtw]
	add	x0, sp, #8
	mov	x2, x21
	bl	_memset
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, #0
	bl	_BN_bin2bn
	mov	x22, x0
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, #0
	bl	_BN_bin2bn
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	mov	x3, #0
	bl	_RSA_set0_key
	bl	_TEST_true
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_RSA_security_bits
	mov	x1, x20
	bl	_TEST_uint_eq
	cmp	x0, #0
	cset	w20, ne
	b	LBB0_5
LBB0_4:
	mov	w20, #0
LBB0_5:
	mov	x0, x19
	bl	_RSA_free
	ldur	x8, [x29, #-56]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x20
	add	sp, sp, #2016
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_test_rsa_security_bit.vals:            ; @test_rsa_security_bit.vals
	.ascii	"\200\001\002\004\b\020 @"

	.comm	_rsa_security_bits_cases,8,3    ; @rsa_security_bits_cases
	.no_dead_strip	_test_rsa_security_bit
.subsections_via_symbols
