	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls_certificate_verify
_tls_certificate_verify:                ## @tls_certificate_verify
	.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	%rsi, %r15
	movq	%rdi, %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), %eax
	movslq	%eax, %rbx
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	leaq	(%rbx,%rbx,2), %r12
	addq	$7, %r12
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	cmpb	$0, (%r15)
	je	LBB0_1
## %bb.3:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_SSL_get_peer_certificate
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_EX_TEMPFAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_pjdlog_exitx
LBB0_5:
	xorl	%eax, %eax
	callq	_EVP_sha256
	leaq	-52(%rbp), %rcx
	movq	%r13, %rdi
	movl	%eax, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_X509_digest
	cmpl	$1, %eax
	je	LBB0_7
## %bb.6:
	movq	_EX_TEMPFAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_pjdlog_exitx
LBB0_7:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movl	-52(%rbp), %eax
	xorl	%edi, %edi
	movq	_EVP_MAX_MD_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	setbe	%dil
	callq	_PJDLOG_ASSERT
	movq	%r13, %rdi
	callq	_X509_free
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_strlcpy
	movq	%rbx, %rdi
	callq	_strlen
	movslq	%eax, %r14
	addq	%rbx, %r14
	cmpl	$0, -52(%rbp)
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.9:
	movq	%rbx, %r13
	addq	%r12, %r13
	xorl	%r15d, %r15d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	leaq	3(%r14), %rbx
	xorl	%edi, %edi
	cmpq	%r13, %rbx
	setbe	%dil
	callq	_PJDLOG_VERIFY
	movzbl	(%r12,%r15), %edx
	movq	%r14, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_sprintf
	incq	%r15
	movl	-52(%rbp), %eax
	movq	%rbx, %r14
	cmpq	%rax, %r15
	jb	LBB0_10
	jmp	LBB0_11
LBB0_1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pjdlog_debug                   ## TAILCALL
LBB0_8:
	movq	%r14, %rbx
LBB0_11:
	movb	$0, -1(%rbx)
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_EX_NOPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_pjdlog_exitx
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	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	"No fingerprint verification requested."

	.comm	_EX_TEMPFAIL,4,2                ## @EX_TEMPFAIL
L_.str.1:                               ## @.str.1
	.asciz	"No peer certificate received."

L_.str.2:                               ## @.str.2
	.asciz	"X509_digest() failed."

L_.str.3:                               ## @.str.3
	.asciz	"SHA256="

L_.str.4:                               ## @.str.4
	.asciz	"%02hhX:"

	.comm	_EX_NOPERM,4,2                  ## @EX_NOPERM
L_.str.5:                               ## @.str.5
	.asciz	"Finger print doesn't match. Received \"%s\", expected \"%s\""

	.no_dead_strip	_tls_certificate_verify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tls_certificate_verify
_tls_certificate_verify:                ; @tls_certificate_verify
	.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, #16
	mov	x19, x1
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	x24, _EVP_MAX_MD_SIZE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _EVP_MAX_MD_SIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	sxtw	x12, w8
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x1fffffff0
	sub	x21, x9, x10
	mov	sp, x21
	add	x8, x12, w8, sxtw #1
	add	x22, x8, #7
	add	x8, x8, #22
	and	x8, x8, #0xfffffffffffffff0
	mov	x9, x22
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x20, x9, x8
	mov	sp, x20
	ldrb	w8, [x1]
	cbz	w8, LBB0_8
; %bb.1:
	bl	_SSL_get_peer_certificate
	mov	x23, x0
	cbnz	x0, LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _EX_TEMPFAIL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EX_TEMPFAIL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_pjdlog_exitx
LBB0_3:
	bl	_EVP_sha256
	mov	x1, x0
	sub	x3, x29, #76
	mov	x0, x23
	mov	x2, x21
	bl	_X509_digest
	cmp	w0, #1
	b.eq	LBB0_5
; %bb.4:
Lloh14:
	adrp	x8, _EX_TEMPFAIL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EX_TEMPFAIL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_pjdlog_exitx
LBB0_5:
	ldur	w8, [x29, #-76]
	ldr	w9, [x24]
	cmp	w8, w9
	cset	w0, ls
	bl	_PJDLOG_ASSERT
	mov	x0, x23
	bl	_X509_free
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_strlcpy
	mov	x0, x20
	bl	_strlen
	add	x23, x20, w0, sxtw
	ldur	w8, [x29, #-76]
	cbz	w8, LBB0_10
; %bb.6:
	mov	x24, #0
	add	x25, x20, x22
Lloh21:
	adrp	x22, l_.str.4@PAGE
Lloh22:
	add	x22, x22, l_.str.4@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x26, x23, #3
	cmp	x26, x25
	cset	w0, ls
	bl	_PJDLOG_VERIFY
	ldrb	w2, [x21, x24]
	mov	x0, x23
	mov	x1, x22
	bl	_sprintf
	add	x24, x24, #1
	ldur	w8, [x29, #-76]
	mov	x23, x26
	cmp	x24, x8
	b.lo	LBB0_7
	b	LBB0_11
LBB0_8:
	ldur	x8, [x29, #-72]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.9:
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	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
	b	_pjdlog_debug
LBB0_10:
	mov	x26, x23
LBB0_11:
	sturb	wzr, [x26, #-1]
	mov	x0, x20
	mov	x1, x19
	bl	_strcasecmp
	cbz	x0, LBB0_13
; %bb.12:
Lloh28:
	adrp	x8, _EX_NOPERM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EX_NOPERM@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	stp	x20, x19, [sp, #-16]!
Lloh31:
	adrp	x1, l_.str.5@PAGE
Lloh32:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_pjdlog_exitx
	add	sp, sp, #16
LBB0_13:
	ldur	x8, [x29, #-72]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	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	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_MAX_MD_SIZE,4,2            ; @EVP_MAX_MD_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No fingerprint verification requested."

	.comm	_EX_TEMPFAIL,4,2                ; @EX_TEMPFAIL
l_.str.1:                               ; @.str.1
	.asciz	"No peer certificate received."

l_.str.2:                               ; @.str.2
	.asciz	"X509_digest() failed."

l_.str.3:                               ; @.str.3
	.asciz	"SHA256="

l_.str.4:                               ; @.str.4
	.asciz	"%02hhX:"

	.comm	_EX_NOPERM,4,2                  ; @EX_NOPERM
l_.str.5:                               ; @.str.5
	.asciz	"Finger print doesn't match. Received \"%s\", expected \"%s\""

	.no_dead_strip	_tls_certificate_verify
.subsections_via_symbols
