	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function verify_peer_cert
_verify_peer_cert:                      ## @verify_peer_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	(%rdi), %rsi
	movq	_NS_CERT_CHECK_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_3
## %bb.1:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_x509_verify_ns_cert_type
	movq	%rax, %r15
	movq	_D_HANDSHAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	(%r12), %rdi
	callq	_print_nsCertType
	cmpq	%r15, %r14
	jne	LBB0_26
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_msg
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_3:
	movq	8(%r12), %rsi
	cmpq	$0, (%rsi)
	je	LBB0_6
## %bb.4:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_MAX_PARMS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_x509_verify_cert_ku
	movq	_D_HANDSHAKE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	cmpq	%rax, %r15
	jne	LBB0_19
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_msg
LBB0_6:
	movq	32(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.7:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%rbx, %rdi
	callq	_x509_verify_cert_eku
	movq	_D_HANDSHAKE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	cmpq	%rax, %r15
	jne	LBB0_21
## %bb.8:
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_msg
LBB0_9:
	movq	16(%r12), %rax
	movq	_VERIFY_X509_NONE@GOTPCREL(%rip), %rcx
	movq	_SUCCESS@GOTPCREL(%rip), %rbx
	cmpq	(%rcx), %rax
	je	LBB0_25
## %bb.10:
	movq	_VERIFY_X509_SUBJECT_DN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.11:
	movl	24(%r12), %edi
	movq	%r14, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_18
## %bb.12:
	movq	16(%r12), %rax
LBB0_13:
	movq	_VERIFY_X509_SUBJECT_RDN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.14:
	movl	24(%r12), %edi
	movq	%r13, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_18
## %bb.15:
	movq	16(%r12), %rax
LBB0_16:
	movq	_VERIFY_X509_SUBJECT_RDN_PREFIX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.17:
	movl	24(%r12), %r15d
	movl	%r15d, %edi
	callq	_strlen
	movl	%r15d, %edi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_18
LBB0_22:
	movq	_D_HANDSHAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%r12), %ecx
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdx
	jmp	LBB0_23
LBB0_26:
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
LBB0_23:
	xorl	%eax, %eax
	callq	_msg
	jmp	LBB0_24
LBB0_19:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_20
LBB0_21:
	leaq	L_.str.5(%rip), %rsi
LBB0_20:
	xorl	%eax, %eax
	callq	_msg
LBB0_24:
	movq	_FAILURE@GOTPCREL(%rip), %rbx
LBB0_25:
	movq	(%rbx), %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_D_HANDSHAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_msg
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_NS_CERT_CHECK_NONE,8,3         ## @NS_CERT_CHECK_NONE
	.comm	_SUCCESS,8,3                    ## @SUCCESS
	.comm	_D_HANDSHAKE,4,2                ## @D_HANDSHAKE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VERIFY OK: nsCertType=%s"

L_.str.1:                               ## @.str.1
	.asciz	"VERIFY nsCertType ERROR: %s, require nsCertType=%s"

	.comm	_FAILURE,8,3                    ## @FAILURE
	.comm	_MAX_PARMS,4,2                  ## @MAX_PARMS
L_.str.2:                               ## @.str.2
	.asciz	"VERIFY KU OK"

L_.str.3:                               ## @.str.3
	.asciz	"VERIFY KU ERROR"

L_.str.4:                               ## @.str.4
	.asciz	"VERIFY EKU OK"

L_.str.5:                               ## @.str.5
	.asciz	"VERIFY EKU ERROR"

	.comm	_VERIFY_X509_NONE,8,3           ## @VERIFY_X509_NONE
	.comm	_VERIFY_X509_SUBJECT_DN,8,3     ## @VERIFY_X509_SUBJECT_DN
	.comm	_VERIFY_X509_SUBJECT_RDN,8,3    ## @VERIFY_X509_SUBJECT_RDN
	.comm	_VERIFY_X509_SUBJECT_RDN_PREFIX,8,3 ## @VERIFY_X509_SUBJECT_RDN_PREFIX
L_.str.6:                               ## @.str.6
	.asciz	"VERIFY X509NAME OK: %s"

L_.str.7:                               ## @.str.7
	.asciz	"VERIFY X509NAME ERROR: %s, must be %s"

	.no_dead_strip	_verify_peer_cert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function verify_peer_cert
_verify_peer_cert:                      ; @verify_peer_cert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x1, [x0]
Lloh0:
	adrp	x8, _NS_CERT_CHECK_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NS_CERT_CHECK_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x1, x8
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	x25, [x8]
	mov	x0, x22
	bl	_x509_verify_ns_cert_type
	mov	x24, x0
Lloh6:
	adrp	x8, _D_HANDSHAKE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _D_HANDSHAKE@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
	ldr	x0, [x20]
	bl	_print_nsCertType
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	x25, x24
	b.ne	LBB0_19
; %bb.2:
	str	x0, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_msg
LBB0_3:
	ldr	x1, [x20, #8]
	ldr	x8, [x1]
	cbz	x8, LBB0_6
; %bb.4:
Lloh11:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
Lloh13:
	ldr	x23, [x8]
Lloh14:
	adrp	x8, _MAX_PARMS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MAX_PARMS@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_x509_verify_cert_ku
	mov	x8, x0
Lloh17:
	adrp	x9, _D_HANDSHAKE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _D_HANDSHAKE@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x9]
	cmp	x23, x8
	b.ne	LBB0_20
; %bb.5:
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_msg
LBB0_6:
	ldr	x1, [x20, #32]
	cbz	x1, LBB0_9
; %bb.7:
Lloh22:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
Lloh24:
	ldr	x23, [x8]
	mov	x0, x22
	bl	_x509_verify_cert_eku
	mov	x8, x0
Lloh25:
	adrp	x9, _D_HANDSHAKE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _D_HANDSHAKE@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x9]
	cmp	x23, x8
	b.ne	LBB0_21
; %bb.8:
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_msg
LBB0_9:
	ldr	x8, [x20, #16]
Lloh30:
	adrp	x9, _VERIFY_X509_NONE@GOTPAGE
Lloh31:
	ldr	x9, [x9, _VERIFY_X509_NONE@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_24
; %bb.10:
Lloh33:
	adrp	x9, _VERIFY_X509_SUBJECT_DN@GOTPAGE
Lloh34:
	ldr	x9, [x9, _VERIFY_X509_SUBJECT_DN@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.11:
	ldr	w0, [x20, #24]
	mov	x1, x19
	bl	_strcmp
	cbz	x0, LBB0_23
; %bb.12:
	ldr	x8, [x20, #16]
LBB0_13:
Lloh36:
	adrp	x9, _VERIFY_X509_SUBJECT_RDN@GOTPAGE
Lloh37:
	ldr	x9, [x9, _VERIFY_X509_SUBJECT_RDN@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.14:
	ldr	w0, [x20, #24]
	mov	x1, x21
	bl	_strcmp
	cbz	x0, LBB0_23
; %bb.15:
	ldr	x8, [x20, #16]
LBB0_16:
Lloh39:
	adrp	x9, _VERIFY_X509_SUBJECT_RDN_PREFIX@GOTPAGE
Lloh40:
	ldr	x9, [x9, _VERIFY_X509_SUBJECT_RDN_PREFIX@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.17:
	ldr	w22, [x20, #24]
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	mov	x0, x22
	mov	x1, x21
	bl	_strncmp
	cbz	x0, LBB0_23
LBB0_18:
Lloh42:
	adrp	x8, _D_HANDSHAKE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _D_HANDSHAKE@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	ldr	w8, [x20, #24]
	stp	x19, x8, [sp]
Lloh45:
	adrp	x1, l_.str.7@PAGE
Lloh46:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_22
LBB0_19:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	stp	x19, x0, [sp]
Lloh47:
	adrp	x1, l_.str.1@PAGE
Lloh48:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	b	LBB0_22
LBB0_20:
Lloh49:
	adrp	x1, l_.str.3@PAGE
Lloh50:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_22
LBB0_21:
Lloh51:
	adrp	x1, l_.str.5@PAGE
Lloh52:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_22:
	bl	_msg
Lloh53:
	adrp	x8, _FAILURE@GOTPAGE
Lloh54:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
	b	LBB0_25
LBB0_23:
Lloh55:
	adrp	x8, _D_HANDSHAKE@GOTPAGE
Lloh56:
	ldr	x8, [x8, _D_HANDSHAKE@GOTPAGEOFF]
Lloh57:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh58:
	adrp	x1, l_.str.6@PAGE
Lloh59:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_msg
LBB0_24:
Lloh60:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh61:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
LBB0_25:
	ldr	x0, [x8]
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.comm	_NS_CERT_CHECK_NONE,8,3         ; @NS_CERT_CHECK_NONE
	.comm	_SUCCESS,8,3                    ; @SUCCESS
	.comm	_D_HANDSHAKE,4,2                ; @D_HANDSHAKE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VERIFY OK: nsCertType=%s"

l_.str.1:                               ; @.str.1
	.asciz	"VERIFY nsCertType ERROR: %s, require nsCertType=%s"

	.comm	_FAILURE,8,3                    ; @FAILURE
	.comm	_MAX_PARMS,4,2                  ; @MAX_PARMS
l_.str.2:                               ; @.str.2
	.asciz	"VERIFY KU OK"

l_.str.3:                               ; @.str.3
	.asciz	"VERIFY KU ERROR"

l_.str.4:                               ; @.str.4
	.asciz	"VERIFY EKU OK"

l_.str.5:                               ; @.str.5
	.asciz	"VERIFY EKU ERROR"

	.comm	_VERIFY_X509_NONE,8,3           ; @VERIFY_X509_NONE
	.comm	_VERIFY_X509_SUBJECT_DN,8,3     ; @VERIFY_X509_SUBJECT_DN
	.comm	_VERIFY_X509_SUBJECT_RDN,8,3    ; @VERIFY_X509_SUBJECT_RDN
	.comm	_VERIFY_X509_SUBJECT_RDN_PREFIX,8,3 ; @VERIFY_X509_SUBJECT_RDN_PREFIX
l_.str.6:                               ; @.str.6
	.asciz	"VERIFY X509NAME OK: %s"

l_.str.7:                               ; @.str.7
	.asciz	"VERIFY X509NAME ERROR: %s, must be %s"

	.no_dead_strip	_verify_peer_cert
.subsections_via_symbols
