	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_rsa_pkcs1
_test_rsa_pkcs1:                        ## @test_rsa_pkcs1
	.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	$792, %rsp                      ## imm = 0x318
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %edx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	-808(%rbp), %rdi
	leaq	-800(%rbp), %rsi
	callq	_rsa_setkey
	movl	%eax, %r14d
	movq	-808(%rbp), %rcx
	movq	_RSA_PKCS1_PADDING@GOTPCREL(%rip), %r15
	movl	(%r15), %r8d
	leaq	_test_rsa_pkcs1.ptext_ex(%rip), %rsi
	leaq	-544(%rbp), %rdx
	movl	$8, %edi
	callq	_RSA_public_encrypt
	movl	%eax, %ebx
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	-808(%rbp), %rcx
	movl	(%r15), %r8d
	leaq	-544(%rbp), %rsi
	leaq	-288(%rbp), %r14
	movl	%ebx, %edi
	movq	%r14, %rdx
	callq	_RSA_private_decrypt
	leaq	_test_rsa_pkcs1.ptext_ex(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$8, %ecx
	callq	_TEST_mem_eq
	xorl	%ebx, %ebx
	testl	%eax, %eax
	setne	%bl
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movq	-808(%rbp), %rdi
	callq	_RSA_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	%ebx, %eax
	addq	$792, %rsp                      ## imm = 0x318
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
_test_rsa_pkcs1.ptext_ex:               ## @test_rsa_pkcs1.ptext_ex
	.asciz	"T\205\2334,I\352*"

	.comm	_RSA_PKCS1_PADDING,4,2          ## @RSA_PKCS1_PADDING
	.no_dead_strip	_test_rsa_pkcs1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_rsa_pkcs1
_test_rsa_pkcs1:                        ; @test_rsa_pkcs1
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #784
	mov	x2, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	mov	x0, sp
	add	x1, sp, #8
	bl	_rsa_setkey
	mov	x20, x0
	ldr	x3, [sp]
Lloh3:
	adrp	x21, _RSA_PKCS1_PADDING@GOTPAGE
Lloh4:
	ldr	x21, [x21, _RSA_PKCS1_PADDING@GOTPAGEOFF]
	ldr	w4, [x21]
Lloh5:
	adrp	x1, _test_rsa_pkcs1.ptext_ex@PAGE
Lloh6:
	add	x1, x1, _test_rsa_pkcs1.ptext_ex@PAGEOFF
	add	x2, sp, #264
	mov	w0, #8
	bl	_RSA_public_encrypt
	mov	x19, x0
	mov	x1, x20
	bl	_TEST_int_eq
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x3, [sp]
	ldr	w4, [x21]
	add	x1, sp, #264
	add	x2, sp, #520
	mov	x0, x19
	bl	_RSA_private_decrypt
	mov	x1, x0
Lloh7:
	adrp	x2, _test_rsa_pkcs1.ptext_ex@PAGE
Lloh8:
	add	x2, x2, _test_rsa_pkcs1.ptext_ex@PAGEOFF
	add	x0, sp, #520
	mov	w3, #8
	bl	_TEST_mem_eq
	cmp	w0, #0
	cset	w19, ne
	b	LBB0_3
LBB0_2:
	mov	w19, #0
LBB0_3:
	ldr	x0, [sp]
	bl	_RSA_free
	ldur	x8, [x29, #-40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	add	sp, sp, #784
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
_test_rsa_pkcs1.ptext_ex:               ; @test_rsa_pkcs1.ptext_ex
	.asciz	"T\205\2334,I\352*"

	.comm	_RSA_PKCS1_PADDING,4,2          ; @RSA_PKCS1_PADDING
	.no_dead_strip	_test_rsa_pkcs1
.subsections_via_symbols
