	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode_pkcs1
_encode_pkcs1:                          ## @encode_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	%r12
	pushq	%rbx
	subq	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movq	%rcx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	$0, -40(%rbp)
	leaq	-88(%rbp), %rax
	movq	%rax, -96(%rbp)
	movl	%edx, %edi
	callq	_OBJ_nid2obj
	movq	%rax, -80(%rbp)
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rdi
	callq	_OBJ_length
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_V_ASN1_NULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	$0, -72(%rbp)
	leaq	-72(%rbp), %rax
	movq	%rax, -88(%rbp)
	leaq	-56(%rbp), %rax
	movq	%rax, -104(%rbp)
	movq	%rbx, -56(%rbp)
	movl	%r12d, -48(%rbp)
	leaq	-104(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	callq	_i2d_X509_SIG
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	movq	-40(%rbp), %rcx
	movq	%rcx, (%r15)
	movl	%eax, (%r14)
	movl	$1, %eax
	jmp	LBB0_8
LBB0_4:
	movq	_RSA_F_ENCODE_PKCS1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RSA_R_UNKNOWN_ALGORITHM_TYPE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_RSA_F_ENCODE_PKCS1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RSA_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	callq	_RSAerr
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RSA_F_ENCODE_PKCS1,4,2         ## @RSA_F_ENCODE_PKCS1
	.comm	_RSA_R_UNKNOWN_ALGORITHM_TYPE,4,2 ## @RSA_R_UNKNOWN_ALGORITHM_TYPE
	.comm	_RSA_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD,4,2 ## @RSA_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD
	.comm	_V_ASN1_NULL,4,2                ## @V_ASN1_NULL
	.no_dead_strip	_encode_pkcs1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode_pkcs1
_encode_pkcs1:                          ; @encode_pkcs1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x4
	mov	x22, x3
	mov	x19, x1
	mov	x20, x0
	str	xzr, [sp, #8]
	add	x8, sp, #48
	stur	x8, [x29, #-40]
	mov	x0, x2
	bl	_OBJ_nid2obj
	str	x0, [sp, #56]
	cbz	x0, LBB0_4
; %bb.1:
	bl	_OBJ_length
	cbz	x0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _V_ASN1_NULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V_ASN1_NULL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	str	xzr, [sp, #32]
	add	x8, sp, #32
	str	x8, [sp, #48]
	add	x8, sp, #16
	stur	x8, [x29, #-48]
	str	x22, [sp, #16]
	str	w21, [sp, #24]
	sub	x0, x29, #48
	add	x1, sp, #8
	bl	_i2d_X509_SIG
	tbnz	w0, #31, LBB0_7
; %bb.3:
	ldr	x8, [sp, #8]
	str	x8, [x20]
	str	w0, [x19]
	mov	w0, #1
	b	LBB0_8
LBB0_4:
Lloh3:
	adrp	x8, _RSA_F_ENCODE_PKCS1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RSA_F_ENCODE_PKCS1@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _RSA_R_UNKNOWN_ALGORITHM_TYPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RSA_R_UNKNOWN_ALGORITHM_TYPE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _RSA_F_ENCODE_PKCS1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RSA_F_ENCODE_PKCS1@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _RSA_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RSA_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
	bl	_RSAerr
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RSA_F_ENCODE_PKCS1,4,2         ; @RSA_F_ENCODE_PKCS1
	.comm	_RSA_R_UNKNOWN_ALGORITHM_TYPE,4,2 ; @RSA_R_UNKNOWN_ALGORITHM_TYPE
	.comm	_RSA_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD,4,2 ; @RSA_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD
	.comm	_V_ASN1_NULL,4,2                ; @V_ASN1_NULL
	.no_dead_strip	_encode_pkcs1
.subsections_via_symbols
