	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ts_compute_imprint
_ts_compute_imprint:                    ## @ts_compute_imprint
	.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
	pushq	%rax
	movl	$4136, %eax                     ## imm = 0x1028
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, %rbx
	movq	%rdx, %r13
	movq	%rdi, -4168(%rbp)               ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rsi), %rax
	movq	(%rax), %rdi
	movq	$0, (%rdx)
	movq	$0, (%rcx)
	callq	_X509_ALGOR_dup
	movq	%rax, (%r13)
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rbx, -4152(%rbp)               ## 8-byte Spill
	movl	(%rax), %edi
	callq	_EVP_get_digestbyobj
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_EVP_MD_size
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movq	%r12, -4160(%rbp)               ## 8-byte Spill
	movl	%eax, (%r12)
	movl	%eax, %edi
	callq	_OPENSSL_malloc
	movq	-4152(%rbp), %rcx               ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	je	LBB0_5
## %bb.11:
	xorl	%eax, %eax
	callq	_EVP_MD_CTX_new
	testq	%rax, %rax
	je	LBB0_5
## %bb.12:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_EVP_DigestInit
	testl	%eax, %eax
	je	LBB0_6
## %bb.13:
	leaq	-4144(%rbp), %r14
	movq	-4160(%rbp), %r12               ## 8-byte Reload
	movq	-4168(%rbp), %rbx               ## 8-byte Reload
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_BIO_read
	testl	%eax, %eax
	jle	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_EVP_DigestUpdate
	testl	%eax, %eax
	jne	LBB0_14
	jmp	LBB0_7
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_2
LBB0_4:
	movq	%r12, -4160(%rbp)               ## 8-byte Spill
	movq	_TS_R_UNSUPPORTED_MD_ALGORITHM@GOTPCREL(%rip), %rbx
LBB0_5:
	movq	_TS_F_TS_COMPUTE_IMPRINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_TSerr
	xorl	%r15d, %r15d
LBB0_6:
	movq	-4160(%rbp), %r12               ## 8-byte Reload
	jmp	LBB0_7
LBB0_9:
	xorl	%r15d, %r15d
LBB0_7:
	xorl	%r14d, %r14d
	movq	-4152(%rbp), %rbx               ## 8-byte Reload
LBB0_2:
	movq	%r15, %rdi
	callq	_EVP_MD_CTX_free
	movq	(%r13), %rdi
	callq	_X509_ALGOR_free
	movq	(%rbx), %rdi
	callq	_OPENSSL_free
	movl	$0, (%r12)
	movq	$0, (%rbx)
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movl	%r14d, %eax
	addq	$4136, %rsp                     ## imm = 0x1028
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	-4152(%rbp), %rbx               ## 8-byte Reload
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_EVP_DigestFinal
	testl	%eax, %eax
	movl	$0, %r14d
	je	LBB0_2
## %bb.17:
	movq	%r15, %rdi
	callq	_EVP_MD_CTX_free
	movl	$1, %r14d
	jmp	LBB0_18
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TS_F_TS_COMPUTE_IMPRINT,4,2    ## @TS_F_TS_COMPUTE_IMPRINT
	.comm	_TS_R_UNSUPPORTED_MD_ALGORITHM,4,2 ## @TS_R_UNSUPPORTED_MD_ALGORITHM
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_ts_compute_imprint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ts_compute_imprint
_ts_compute_imprint:                    ; @ts_compute_imprint
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -72
	.cfi_offset w28, -80
	mov	w9, #4112
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #16
	mov	x20, x4
	mov	x19, x3
	mov	x21, x2
	mov	x22, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x8, [x1]
	ldr	x0, [x8]
	str	xzr, [x2]
	str	xzr, [x3]
	bl	_X509_ALGOR_dup
	str	x0, [x21]
	cbz	x0, LBB0_11
; %bb.1:
	ldr	w0, [x0]
	bl	_EVP_get_digestbyobj
	cbz	x0, LBB0_8
; %bb.2:
	mov	x24, x0
	bl	_EVP_MD_size
	tbnz	w0, #31, LBB0_11
; %bb.3:
	str	w0, [x20]
	bl	_OPENSSL_malloc
	str	x0, [x19]
	cbz	x0, LBB0_9
; %bb.4:
	bl	_EVP_MD_CTX_new
	cbz	x0, LBB0_9
; %bb.5:
	mov	x23, x0
	mov	x1, x24
	bl	_EVP_DigestInit
	cbz	w0, LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x22
	mov	w2, #4096
	bl	_BIO_read
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x23
	bl	_EVP_DigestUpdate
	cbnz	w0, LBB0_6
	b	LBB0_12
LBB0_8:
Lloh5:
	adrp	x8, _TS_R_UNSUPPORTED_MD_ALGORITHM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TS_R_UNSUPPORTED_MD_ALGORITHM@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh7:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
LBB0_10:
Lloh9:
	adrp	x9, _TS_F_TS_COMPUTE_IMPRINT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TS_F_TS_COMPUTE_IMPRINT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_TSerr
LBB0_11:
	mov	x23, #0
LBB0_12:
	mov	x0, x23
	bl	_EVP_MD_CTX_free
	ldr	x0, [x21]
	bl	_X509_ALGOR_free
	ldr	x0, [x19]
	bl	_OPENSSL_free
	mov	w0, #0
	str	wzr, [x20]
	str	xzr, [x19]
LBB0_13:
	ldur	x8, [x29, #-72]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.14:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #16
	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	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	ldr	x1, [x19]
	mov	x0, x23
	mov	x2, #0
	bl	_EVP_DigestFinal
	cbz	w0, LBB0_12
; %bb.16:
	mov	x0, x23
	bl	_EVP_MD_CTX_free
	mov	w0, #1
	b	LBB0_13
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TS_F_TS_COMPUTE_IMPRINT,4,2    ; @TS_F_TS_COMPUTE_IMPRINT
	.comm	_TS_R_UNSUPPORTED_MD_ALGORITHM,4,2 ; @TS_R_UNSUPPORTED_MD_ALGORITHM
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_ts_compute_imprint
.subsections_via_symbols
