	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_decode_key                     ## -- Begin function decode_key
	.p2align	4, 0x90
_decode_key:                            ## @decode_key
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movl	%edi, %ebx
	movq	%rsp, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_EVP_MAX_MD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rcx
	movl	$-1, %eax
	cmpl	$6, %ebx
	jne	LBB0_14
## %bb.1:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	$0, 8(%r15)
	movq	(%r12), %r12
	movb	(%r12), %r14b
	cmpb	$4, %r14b
	jne	LBB0_3
## %bb.2:
	movb	$-103, (%rcx)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movb	%bh, 1(%rcx)
	movb	%bl, 2(%rcx)
	leaq	L_.str(%rip), %rdi
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, %r15
	callq	_EVP_get_digestbyname
	leaq	-52(%rbp), %rdi
	movq	%rax, %rsi
	callq	_EVP_DigestInit
	movl	$3, %edx
	leaq	-52(%rbp), %rdi
	movq	%r15, %rsi
	callq	_EVP_DigestUpdate
	leaq	-52(%rbp), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_EVP_DigestUpdate
	movl	%r13d, -56(%rbp)
	leaq	-56(%rbp), %rdx
	leaq	-52(%rbp), %rdi
	movq	%r15, %rsi
	callq	_EVP_DigestFinal
	movl	-56(%rbp), %edi
	addl	$-8, %edi
	addq	%r15, %rdi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	$8, %esi
	callq	_octets2hex
	movl	%eax, 16(%r15)
LBB0_3:
	xorl	%eax, %eax
	cmpb	$3, %r14b
	sete	%al
	leaq	6(%r12,%rax,2), %rcx
	movq	%rcx, -88(%rbp)
	movzbl	5(%r12,%rax,2), %eax
	movl	%eax, (%r15)
	cmpl	$1, %eax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_9
## %bb.4:
	xorl	%eax, %eax
	callq	_RSA_new
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movq	%rax, %rbx
	leaq	-88(%rbp), %r12
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_mpi2bn
	movq	%rax, 8(%rbx)
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_mpi2bn
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	callq	_EVP_PKEY_new
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	cmpq	$0, 8(%rbx)
	je	LBB0_10
## %bb.7:
	cmpq	$0, (%rbx)
	je	LBB0_10
## %bb.8:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_EVP_PKEY_set1_RSA
	testl	%eax, %eax
	je	LBB0_10
LBB0_9:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	jmp	LBB0_14
LBB0_10:
	movq	%rbx, %rdi
	callq	_RSA_free
LBB0_11:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	callq	_EVP_PKEY_free
	movq	$0, 8(%r15)
LBB0_13:
	movl	$-1, %eax
LBB0_14:
	movq	%r14, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_16
## %bb.15:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_MAX_MD_SIZE,4,2            ## @EVP_MAX_MD_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sha1"

	.comm	_br_rsa_public_key,4,2          ## @br_rsa_public_key
	.comm	_br_sha1_SIZE,4,2               ## @br_sha1_SIZE
	.comm	_br_sha512_SIZE,4,2             ## @br_sha512_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_decode_key                     ; -- Begin function decode_key
	.p2align	2
_decode_key:                            ; @decode_key
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #32
	mov	x20, x3
	mov	x19, x2
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _EVP_MAX_MD_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVP_MAX_MD_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x9, x23
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	cmp	w0, #6
	b.ne	LBB0_12
; %bb.1:
	str	xzr, [x20, #8]
	ldr	x21, [x1]
	ldrb	w25, [x21]
	cmp	w25, #4
	b.ne	LBB0_3
; %bb.2:
	mov	w8, #153
	strb	w8, [x22]
	lsr	x8, x19, #8
	strb	w8, [x22, #1]
	strb	w19, [x22, #2]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_EVP_get_digestbyname
	mov	x1, x0
	sub	x0, x29, #84
	bl	_EVP_DigestInit
	sub	x0, x29, #84
	mov	x1, x22
	mov	w2, #3
	bl	_EVP_DigestUpdate
	sub	x0, x29, #84
	mov	x1, x21
	mov	x2, x19
	bl	_EVP_DigestUpdate
	stur	w23, [x29, #-88]
	sub	x0, x29, #84
	sub	x2, x29, #88
	mov	x1, x22
	bl	_EVP_DigestFinal
	ldur	w8, [x29, #-88]
	sub	w8, w8, #8
	add	x0, x22, x8
	mov	w1, #8
	bl	_octets2hex
	str	w0, [x20, #16]
LBB0_3:
	cmp	w25, #3
	mov	w8, #5
	mov	w9, #7
	csel	x8, x9, x8, eq
	add	x8, x21, x8
	add	x9, x8, #1
	stur	x9, [x29, #-80]
	ldrb	w8, [x8]
	str	w8, [x20]
	cmp	w8, #1
	b.ne	LBB0_13
; %bb.4:
	bl	_RSA_new
	cbz	x0, LBB0_10
; %bb.5:
	mov	x21, x0
	sub	x0, x29, #80
	bl	_mpi2bn
	str	x0, [x21, #8]
	sub	x0, x29, #80
	bl	_mpi2bn
	str	x0, [x21]
	bl	_EVP_PKEY_new
	str	x0, [x20, #8]
	cbz	x0, LBB0_9
; %bb.6:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	x8, [x21]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x1, x21
	bl	_EVP_PKEY_set1_RSA
	cbnz	w0, LBB0_13
LBB0_9:
	mov	x0, x21
	bl	_RSA_free
LBB0_10:
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_EVP_PKEY_free
	str	xzr, [x20, #8]
LBB0_12:
	mov	w19, #-1
LBB0_13:
	mov	sp, x24
	ldur	x8, [x29, #-72]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x19
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_MAX_MD_SIZE,4,2            ; @EVP_MAX_MD_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sha1"

	.comm	_br_rsa_public_key,4,2          ; @br_rsa_public_key
	.comm	_br_sha1_SIZE,4,2               ; @br_sha1_SIZE
	.comm	_br_sha512_SIZE,4,2             ; @br_sha512_SIZE
.subsections_via_symbols
