	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RSA_sign_ASN1_OCTET_STRING     ## -- Begin function RSA_sign_ASN1_OCTET_STRING
	.p2align	4, 0x90
_RSA_sign_ASN1_OCTET_STRING:            ## @RSA_sign_ASN1_OCTET_STRING
	.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	$40, %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, %r14
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	_V_ASN1_OCTET_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	%edx, -80(%rbp)
	movq	%rsi, -72(%rbp)
	xorl	%r13d, %r13d
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	callq	_i2d_ASN1_OCTET_STRING
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_RSA_size
	movl	%eax, %ebx
	movq	_RSA_PKCS1_PADDING_SIZE@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	subl	(%rax), %ecx
	cmpl	%ecx, %r12d
	jle	LBB0_2
## %bb.1:
	movq	_RSA_F_RSA_SIGN_ASN1_OCTET_STRING@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_8
LBB0_2:
	movq	%r14, %r13
	incl	%ebx
	movl	%ebx, %edi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	%rax, -56(%rbp)
	leaq	-80(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_i2d_ASN1_OCTET_STRING
	movq	_RSA_PKCS1_PADDING@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r12d, %edi
	movq	%r14, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	callq	_RSA_private_encrypt
	testl	%eax, %eax
	jle	LBB0_5
## %bb.6:
	movl	%eax, (%r13)
	movl	$1, %r13d
	jmp	LBB0_7
LBB0_3:
	movq	_RSA_F_RSA_SIGN_ASN1_OCTET_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_RSAerr
	xorl	%r13d, %r13d
	jmp	LBB0_8
LBB0_5:
	xorl	%r13d, %r13d
LBB0_7:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_OPENSSL_clear_free
LBB0_8:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V_ASN1_OCTET_STRING,4,2        ## @V_ASN1_OCTET_STRING
	.comm	_RSA_PKCS1_PADDING_SIZE,4,2     ## @RSA_PKCS1_PADDING_SIZE
	.comm	_RSA_F_RSA_SIGN_ASN1_OCTET_STRING,4,2 ## @RSA_F_RSA_SIGN_ASN1_OCTET_STRING
	.comm	_RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY,4,2 ## @RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.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_ASN1_OCTET_STRING     ; -- Begin function RSA_sign_ASN1_OCTET_STRING
	.p2align	2
_RSA_sign_ASN1_OCTET_STRING:            ; @RSA_sign_ASN1_OCTET_STRING
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x5
	mov	x19, x4
	mov	x21, x3
	str	w2, [sp, #8]
Lloh0:
	adrp	x8, _V_ASN1_OCTET_STRING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V_ASN1_OCTET_STRING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	str	x1, [sp, #16]
	add	x0, sp, #8
	mov	x1, #0
	bl	_i2d_ASN1_OCTET_STRING
	mov	x24, x0
	mov	x0, x20
	bl	_RSA_size
Lloh3:
	adrp	x8, _RSA_PKCS1_PADDING_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RSA_PKCS1_PADDING_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sub	w8, w0, w8
	cmp	w24, w8
	b.le	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _RSA_F_RSA_SIGN_ASN1_OCTET_STRING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RSA_F_RSA_SIGN_ASN1_OCTET_STRING@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
	add	w22, w0, #1
	mov	x0, x22
	bl	_OPENSSL_malloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x23, x0
	str	x0, [sp]
	add	x0, sp, #8
	mov	x1, sp
	bl	_i2d_ASN1_OCTET_STRING
Lloh11:
	adrp	x8, _RSA_PKCS1_PADDING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RSA_PKCS1_PADDING@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
	mov	x0, x24
	mov	x1, x23
	mov	x2, x21
	mov	x3, x20
	bl	_RSA_private_encrypt
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.4:
	str	w0, [x19]
	mov	w19, #1
	b	LBB0_8
LBB0_5:
Lloh14:
	adrp	x8, _RSA_F_RSA_SIGN_ASN1_OCTET_STRING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RSA_F_RSA_SIGN_ASN1_OCTET_STRING@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
	bl	_RSAerr
	mov	w19, #0
	b	LBB0_9
LBB0_7:
	mov	w19, #0
LBB0_8:
	mov	x0, x23
	mov	x1, x22
	bl	_OPENSSL_clear_free
LBB0_9:
	mov	x0, x19
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_V_ASN1_OCTET_STRING,4,2        ; @V_ASN1_OCTET_STRING
	.comm	_RSA_PKCS1_PADDING_SIZE,4,2     ; @RSA_PKCS1_PADDING_SIZE
	.comm	_RSA_F_RSA_SIGN_ASN1_OCTET_STRING,4,2 ; @RSA_F_RSA_SIGN_ASN1_OCTET_STRING
	.comm	_RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY,4,2 ; @RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_RSA_PKCS1_PADDING,4,2          ; @RSA_PKCS1_PADDING
.subsections_via_symbols
