	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rsa_verify_cert
_rsa_verify_cert:                       ## @rsa_verify_cert
	.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	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -1076(%rbp)               ## 4-byte Spill
	movq	%r8, -1088(%rbp)                ## 8-byte Spill
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movl	%edi, %r13d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SHA256_DIGEST_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	addl	$2, %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	xorl	%eax, %eax
	callq	_SSL_load_error_strings
	movl	%r13d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_lseek
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	%r13d, %edi
	movq	%r12, %rsi
	callq	_sha256_fd
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.5:
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.6:
	movq	%rbx, %rdi
	callq	_load_public_key_file
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_warn
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
LBB0_9:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_load_public_key_buf
LBB0_7:
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_EVP_MD_CTX_create
	testq	%rax, %rax
	je	LBB0_17
## %bb.11:
	movq	%rax, %r15
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_EVP_sha256
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	_EVP_DigestVerifyInit
	cmpl	$1, %eax
	jne	LBB0_15
## %bb.12:
	movq	%r12, %rdi
	callq	_strlen
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_EVP_DigestVerifyUpdate
	cmpl	$1, %eax
	jne	LBB0_15
## %bb.13:
	movq	%r15, %rdi
	movq	-1088(%rbp), %rsi               ## 8-byte Reload
	movl	-1076(%rbp), %edx               ## 4-byte Reload
	callq	_EVP_DigestVerifyFinal
	cmpl	$1, %eax
	jne	LBB0_15
## %bb.14:
	movl	$1, %ebx
	leaq	L_str(%rip), %rdi
	jmp	LBB0_16
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
LBB0_4:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_18
LBB0_15:
	xorl	%eax, %eax
	callq	_ERR_get_error
	leaq	-1072(%rbp), %rsi
	movl	%eax, %edi
	callq	_ERR_error_string
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_warnx
	leaq	L_str.6(%rip), %rdi
LBB0_16:
	callq	_puts
	movq	%r14, %rdi
	callq	_EVP_PKEY_free
	movq	%r15, %rdi
	callq	_EVP_MD_CTX_destroy
	jmp	LBB0_18
LBB0_17:
	xorl	%eax, %eax
	callq	_ERR_get_error
	leaq	-1072(%rbp), %rsi
	movl	%eax, %edi
	callq	_ERR_error_string
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_warnx
	leaq	L_str.6(%rip), %rdi
	callq	_puts
	movq	%r14, %rdi
	callq	_EVP_PKEY_free
LBB0_18:
	xorl	%eax, %eax
	callq	_ERR_free_strings
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SHA256_DIGEST_LENGTH,4,2       ## @SHA256_DIGEST_LENGTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lseek"

L_.str.1:                               ## @.str.1
	.asciz	"Error creating SHA256 hash for package"

L_.str.2:                               ## @.str.2
	.asciz	"Error reading public key"

L_.str.3:                               ## @.str.3
	.asciz	"%s"

L_str:                                  ## @str
	.asciz	"done"

L_str.6:                                ## @str.6
	.asciz	"failed"

	.no_dead_strip	_rsa_verify_cert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rsa_verify_cert
_rsa_verify_cert:                       ; @rsa_verify_cert
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #1040
	mov	x19, sp
	mov	x21, x5
	mov	x22, x4
	mov	x20, x3
	mov	x23, x2
	mov	x25, x1
	mov	x26, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _SHA256_DIGEST_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SHA256_DIGEST_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w8, w8, #1
	add	w8, w8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x24, x9, x8
	mov	sp, x24
	bl	_SSL_load_error_strings
	mov	x0, x26
	mov	w1, #0
	mov	w2, #0
	bl	_lseek
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.1:
	mov	x0, x26
	mov	x1, x24
	bl	_sha256_fd
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.2:
	cbz	x25, LBB0_11
; %bb.3:
	mov	x0, x25
	bl	_load_public_key_file
	mov	x20, x0
	cbz	x0, LBB0_12
LBB0_4:
	bl	_EVP_MD_CTX_create
	cbz	x0, LBB0_15
; %bb.5:
	mov	x23, x0
	bl	_EVP_sha256
	mov	x2, x0
	mov	x0, x23
	mov	x1, #0
	mov	x3, #0
	mov	x4, x20
	bl	_EVP_DigestVerifyInit
	cmp	w0, #1
	b.ne	LBB0_13
; %bb.6:
	mov	x0, x24
	bl	_strlen
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_EVP_DigestVerifyUpdate
	cmp	w0, #1
	b.ne	LBB0_13
; %bb.7:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_EVP_DigestVerifyFinal
	cmp	w0, #1
	b.ne	LBB0_13
; %bb.8:
	mov	w21, #1
Lloh8:
	adrp	x0, l_str@PAGE
Lloh9:
	add	x0, x0, l_str@PAGEOFF
	b	LBB0_14
LBB0_9:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	b	LBB0_16
LBB0_10:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warnx
	b	LBB0_16
LBB0_11:
	mov	x0, x23
	mov	x1, x20
	bl	_load_public_key_buf
	mov	x20, x0
	cbnz	x0, LBB0_4
LBB0_12:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_warnx
	b	LBB0_16
LBB0_13:
	bl	_ERR_get_error
	add	x1, x19, #8
	bl	_ERR_error_string
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_warnx
	add	sp, sp, #16
	mov	w21, #0
Lloh18:
	adrp	x0, l_str.6@PAGE
Lloh19:
	add	x0, x0, l_str.6@PAGEOFF
LBB0_14:
	bl	_puts
	mov	x0, x20
	bl	_EVP_PKEY_free
	mov	x0, x23
	bl	_EVP_MD_CTX_destroy
	b	LBB0_17
LBB0_15:
	bl	_ERR_get_error
	add	x1, x19, #8
	bl	_ERR_error_string
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_warnx
	add	sp, sp, #16
Lloh22:
	adrp	x0, l_str.6@PAGE
Lloh23:
	add	x0, x0, l_str.6@PAGEOFF
	bl	_puts
	mov	x0, x20
	bl	_EVP_PKEY_free
LBB0_16:
	mov	w21, #0
LBB0_17:
	bl	_ERR_free_strings
	ldur	x8, [x29, #-88]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	mov	x0, x21
	sub	sp, x29, #80
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_SHA256_DIGEST_LENGTH,4,2       ; @SHA256_DIGEST_LENGTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lseek"

l_.str.1:                               ; @.str.1
	.asciz	"Error creating SHA256 hash for package"

l_.str.2:                               ; @.str.2
	.asciz	"Error reading public key"

l_.str.3:                               ; @.str.3
	.asciz	"%s"

l_str:                                  ; @str
	.asciz	"done"

l_str.6:                                ; @str.6
	.asciz	"failed"

	.no_dead_strip	_rsa_verify_cert
.subsections_via_symbols
