	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_cert_verify_tbs_data
_get_cert_verify_tbs_data:              ## @get_cert_verify_tbs_data
	.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, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_SSL_IS_TLS13
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_TLS13_TBS_START_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r12, %rdi
	movl	$32, %esi
	callq	_memset
	movq	16(%rbx), %rax
	movq	_TLS_ST_CR_CERT_VRFY@GOTPCREL(%rip), %r14
	movq	_TLS_ST_SW_CERT_VRFY@GOTPCREL(%rip), %rcx
	movslq	(%r13), %rdi
	addq	%r12, %rdi
	cmpq	(%rcx), %rax
	leaq	_get_cert_verify_tbs_data.servercontext(%rip), %rcx
	leaq	_get_cert_verify_tbs_data.clientcontext(%rip), %rsi
	cmoveq	%rcx, %rsi
	cmpq	(%r14), %rax
	cmoveq	%rcx, %rsi
	callq	_strcpy
	movq	16(%rbx), %rcx
	movq	_TLS13_TBS_PREAMBLE_SIZE@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	addq	%r12, %rax
	cmpq	(%r14), %rcx
	je	LBB0_3
## %bb.2:
	movq	_TLS_ST_SR_CERT_VRFY@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_3
## %bb.4:
	movq	_EVP_MAX_MD_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r13, %r14
	leaq	-56(%rbp), %r13
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%r13, %rcx
	callq	_ssl_handshake_hash
	movq	%r13, %rbx
	movq	%r14, %r13
	testl	%eax, %eax
	jne	LBB0_5
	jmp	LBB0_9
LBB0_6:
	movl	8(%rbx), %edi
	movq	%r15, %rsi
	callq	_BIO_get_mem_data
	testq	%rax, %rax
	jle	LBB0_8
## %bb.7:
	movq	%rax, (%r14)
	movl	$1, %eax
	jmp	LBB0_10
LBB0_3:
	movl	12(%rbx), %esi
	movq	(%rbx), %rdx
	movq	%rax, %rdi
	callq	_memcpy
LBB0_5:
	movq	(%rbx), %rax
	movq	%r12, (%r15)
	addq	(%r13), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movl	$1, %eax
	jmp	LBB0_10
LBB0_8:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_GET_CERT_VERIFY_TBS_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_SSLfatal
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @get_cert_verify_tbs_data.servercontext
_get_cert_verify_tbs_data.servercontext:
	.asciz	"TLS 1.3, server CertificateVerify"

	.p2align	4                               ## @get_cert_verify_tbs_data.clientcontext
_get_cert_verify_tbs_data.clientcontext:
	.asciz	"TLS 1.3, client CertificateVerify"

	.comm	_TLS13_TBS_START_SIZE,4,2       ## @TLS13_TBS_START_SIZE
	.comm	_TLS_ST_CR_CERT_VRFY,8,3        ## @TLS_ST_CR_CERT_VRFY
	.comm	_TLS_ST_SW_CERT_VRFY,8,3        ## @TLS_ST_SW_CERT_VRFY
	.comm	_TLS_ST_SR_CERT_VRFY,8,3        ## @TLS_ST_SR_CERT_VRFY
	.comm	_TLS13_TBS_PREAMBLE_SIZE,8,3    ## @TLS13_TBS_PREAMBLE_SIZE
	.comm	_EVP_MAX_MD_SIZE,4,2            ## @EVP_MAX_MD_SIZE
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_GET_CERT_VERIFY_TBS_DATA,4,2 ## @SSL_F_GET_CERT_VERIFY_TBS_DATA
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.no_dead_strip	_get_cert_verify_tbs_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_cert_verify_tbs_data
_get_cert_verify_tbs_data:              ; @get_cert_verify_tbs_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_SSL_IS_TLS13
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x23, _TLS13_TBS_START_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _TLS13_TBS_START_SIZE@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x22
	mov	w1, #32
	bl	_memset
	ldr	x8, [x20, #16]
Lloh2:
	adrp	x24, _TLS_ST_CR_CERT_VRFY@GOTPAGE
Lloh3:
	ldr	x24, [x24, _TLS_ST_CR_CERT_VRFY@GOTPAGEOFF]
	ldr	x9, [x24]
Lloh4:
	adrp	x10, _TLS_ST_SW_CERT_VRFY@GOTPAGE
Lloh5:
	ldr	x10, [x10, _TLS_ST_SW_CERT_VRFY@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
	ldrsw	x8, [x23]
	add	x0, x22, x8
Lloh7:
	adrp	x8, _get_cert_verify_tbs_data.clientcontext@PAGE
Lloh8:
	add	x8, x8, _get_cert_verify_tbs_data.clientcontext@PAGEOFF
Lloh9:
	adrp	x9, _get_cert_verify_tbs_data.servercontext@PAGE
Lloh10:
	add	x9, x9, _get_cert_verify_tbs_data.servercontext@PAGEOFF
	csel	x1, x9, x8, eq
	bl	_strcpy
	ldr	x9, [x20, #16]
	ldr	x10, [x24]
Lloh11:
	adrp	x8, _TLS_ST_SR_CERT_VRFY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TLS_ST_SR_CERT_VRFY@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x8]
Lloh14:
	adrp	x23, _TLS13_TBS_PREAMBLE_SIZE@GOTPAGE
Lloh15:
	ldr	x23, [x23, _TLS13_TBS_PREAMBLE_SIZE@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x8, x22, x8
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_5
; %bb.2:
	ldr	w1, [x20, #12]
	ldr	x2, [x20]
	mov	x0, x8
	bl	_memcpy
	mov	x24, x20
	b	LBB0_6
LBB0_3:
	ldr	w0, [x20, #8]
	mov	x1, x21
	bl	_BIO_get_mem_data
	cmp	x0, #1
	b.lt	LBB0_7
; %bb.4:
	str	x0, [x19]
	mov	w0, #1
	b	LBB0_8
LBB0_5:
Lloh16:
	adrp	x9, _EVP_MAX_MD_SIZE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _EVP_MAX_MD_SIZE@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x9]
	add	x24, sp, #8
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x8
	bl	_ssl_handshake_hash
	cbz	w0, LBB0_8
LBB0_6:
	ldr	x8, [x24]
	str	x22, [x21]
	ldr	x9, [x23]
	add	x8, x8, x9
	str	x8, [x19]
	mov	w0, #1
	b	LBB0_8
LBB0_7:
Lloh19:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _SSL_F_GET_CERT_VERIFY_TBS_DATA@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SSL_F_GET_CERT_VERIFY_TBS_DATA@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
Lloh25:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_SSLfatal
	mov	w0, #0
LBB0_8:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_get_cert_verify_tbs_data.servercontext: ; @get_cert_verify_tbs_data.servercontext
	.asciz	"TLS 1.3, server CertificateVerify"

_get_cert_verify_tbs_data.clientcontext: ; @get_cert_verify_tbs_data.clientcontext
	.asciz	"TLS 1.3, client CertificateVerify"

	.comm	_TLS13_TBS_START_SIZE,4,2       ; @TLS13_TBS_START_SIZE
	.comm	_TLS_ST_CR_CERT_VRFY,8,3        ; @TLS_ST_CR_CERT_VRFY
	.comm	_TLS_ST_SW_CERT_VRFY,8,3        ; @TLS_ST_SW_CERT_VRFY
	.comm	_TLS_ST_SR_CERT_VRFY,8,3        ; @TLS_ST_SR_CERT_VRFY
	.comm	_TLS13_TBS_PREAMBLE_SIZE,8,3    ; @TLS13_TBS_PREAMBLE_SIZE
	.comm	_EVP_MAX_MD_SIZE,4,2            ; @EVP_MAX_MD_SIZE
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_GET_CERT_VERIFY_TBS_DATA,4,2 ; @SSL_F_GET_CERT_VERIFY_TBS_DATA
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.no_dead_strip	_get_cert_verify_tbs_data
.subsections_via_symbols
