	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RSA_sign                       ## -- Begin function RSA_sign
	.p2align	4, 0x90
_RSA_sign:                              ## @RSA_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movq	%r8, %r14
	movq	%rcx, %r15
	movl	%edx, %ebx
	movq	%rsi, %r12
	movl	%edi, %edx
	movl	$0, -44(%rbp)
	movq	$0, -56(%rbp)
	movq	(%r9), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%edx, %edi
	movq	%r12, %rsi
	movl	%ebx, %edx
	movq	%r15, %rcx
	movq	%r14, %r8
	movq	%r13, %r9
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_2:
	movq	_NID_md5_sha1@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_5
## %bb.3:
	movq	_SSL_SIG_LENGTH@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_11
## %bb.4:
	movl	%ebx, -44(%rbp)
	jmp	LBB0_7
LBB0_5:
	leaq	-56(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	movq	%r12, %rcx
	movl	%ebx, %r8d
	callq	_encode_pkcs1
	testl	%eax, %eax
	je	LBB0_13
## %bb.6:
	movq	-56(%rbp), %r12
	movl	-44(%rbp), %ebx
LBB0_7:
	movq	%r13, %rdi
	callq	_RSA_size
	movq	_RSA_PKCS1_PADDING_SIZE@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	cmpl	%eax, %ebx
	jle	LBB0_9
## %bb.8:
	movq	_RSA_F_RSA_SIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_RSAerr
	jmp	LBB0_13
LBB0_9:
	movl	-44(%rbp), %edi
	movq	_RSA_PKCS1_PADDING@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%r13, %rcx
	callq	_RSA_private_encrypt
	testl	%eax, %eax
	jle	LBB0_13
## %bb.10:
	movl	%eax, (%r14)
	movl	$1, %ebx
	jmp	LBB0_14
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	movq	-56(%rbp), %rdi
	movslq	-44(%rbp), %rsi
	callq	_OPENSSL_clear_free
	jmp	LBB0_15
LBB0_11:
	movq	_RSA_F_RSA_SIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RSA_R_INVALID_MESSAGE_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_RSAerr
	xorl	%ebx, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NID_md5_sha1,4,2               ## @NID_md5_sha1
	.comm	_SSL_SIG_LENGTH,4,2             ## @SSL_SIG_LENGTH
	.comm	_RSA_F_RSA_SIGN,4,2             ## @RSA_F_RSA_SIGN
	.comm	_RSA_R_INVALID_MESSAGE_LENGTH,4,2 ## @RSA_R_INVALID_MESSAGE_LENGTH
	.comm	_RSA_PKCS1_PADDING_SIZE,4,2     ## @RSA_PKCS1_PADDING_SIZE
	.comm	_RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY,4,2 ## @RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY
	.comm	_RSA_PKCS1_PADDING,4,2          ## @RSA_PKCS1_PADDING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RSA_sign                       ; -- Begin function RSA_sign
	.p2align	2
_RSA_sign:                              ; @RSA_sign
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x5
	mov	x19, x4
	mov	x21, x3
	mov	x23, x2
	mov	x22, x1
	mov	x2, x0
	str	wzr, [sp, #12]
	str	xzr, [sp]
	ldr	x8, [x5]
	ldr	x6, [x8]
	cbz	x6, LBB0_2
; %bb.1:
	mov	x0, x2
	mov	x1, x22
	mov	x2, x23
	mov	x3, x21
	mov	x4, x19
	mov	x5, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	br	x6
LBB0_2:
Lloh0:
	adrp	x8, _NID_md5_sha1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NID_md5_sha1@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _SSL_SIG_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_SIG_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_13
; %bb.4:
	str	w23, [sp, #12]
	b	LBB0_7
LBB0_5:
	mov	x0, sp
	add	x1, sp, #12
	mov	x3, x22
	mov	x4, x23
	bl	_encode_pkcs1
	cbz	w0, LBB0_11
; %bb.6:
	ldr	x22, [sp]
	ldr	w23, [sp, #12]
LBB0_7:
	mov	x0, x20
	bl	_RSA_size
Lloh6:
	adrp	x8, _RSA_PKCS1_PADDING_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RSA_PKCS1_PADDING_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	sub	w8, w0, w8
	cmp	w23, w8
	b.le	LBB0_9
; %bb.8:
Lloh9:
	adrp	x8, _RSA_F_RSA_SIGN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RSA_F_RSA_SIGN@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_RSAerr
	b	LBB0_11
LBB0_9:
	ldr	w0, [sp, #12]
Lloh15:
	adrp	x8, _RSA_PKCS1_PADDING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RSA_PKCS1_PADDING@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_RSA_private_encrypt
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.10:
	str	w0, [x19]
	mov	w19, #1
	b	LBB0_12
LBB0_11:
	mov	w19, #0
LBB0_12:
	ldr	x0, [sp]
	ldrsw	x1, [sp, #12]
	bl	_OPENSSL_clear_free
	b	LBB0_14
LBB0_13:
Lloh18:
	adrp	x8, _RSA_F_RSA_SIGN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RSA_F_RSA_SIGN@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x8, _RSA_R_INVALID_MESSAGE_LENGTH@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RSA_R_INVALID_MESSAGE_LENGTH@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_RSAerr
	mov	w19, #0
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_NID_md5_sha1,4,2               ; @NID_md5_sha1
	.comm	_SSL_SIG_LENGTH,4,2             ; @SSL_SIG_LENGTH
	.comm	_RSA_F_RSA_SIGN,4,2             ; @RSA_F_RSA_SIGN
	.comm	_RSA_R_INVALID_MESSAGE_LENGTH,4,2 ; @RSA_R_INVALID_MESSAGE_LENGTH
	.comm	_RSA_PKCS1_PADDING_SIZE,4,2     ; @RSA_PKCS1_PADDING_SIZE
	.comm	_RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY,4,2 ; @RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY
	.comm	_RSA_PKCS1_PADDING,4,2          ; @RSA_PKCS1_PADDING
.subsections_via_symbols
