	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_px_find_digest                 ## -- Begin function px_find_digest
	.p2align	4, 0x90
_px_find_digest:                        ## @px_find_digest
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_px_openssl_initialized@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	$1, (%rax)
	xorl	%eax, %eax
	callq	_OpenSSL_add_all_algorithms
LBB0_2:
	movq	_digest_resowner_callback_registered@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jne	LBB0_4
## %bb.3:
	movq	_digest_free_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_RegisterResourceReleaseCallback
	movl	$1, (%r15)
LBB0_4:
	movq	%rbx, %rdi
	callq	_EVP_get_digestbyname
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r13
	movq	_TopMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$40, %esi
	callq	_MemoryContextAlloc
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_EVP_MD_CTX_create
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	xorl	%r15d, %r15d
	movq	%rax, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_EVP_DigestInit_ex
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movq	%r13, 32(%r12)
	movq	%rbx, 24(%r12)
	movq	_CurrentResourceOwner@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	_open_digests@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 8(%r12)
	movq	$0, (%r12)
	movq	%r12, (%rax)
	movl	$32, %edi
	callq	_px_alloc
	movq	_digest_result_size@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%rax)
	movq	_digest_block_size@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	movq	_digest_reset@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	movq	_digest_update@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	_digest_finish@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movq	_digest_free@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	%r12, (%rax)
	movq	%rax, (%r14)
	jmp	LBB0_10
LBB0_5:
	movq	_PXE_NO_HASH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_10
LBB0_7:
	movq	%r12, %rdi
	callq	_pfree
	movl	$-1, %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_px_openssl_initialized,4,2     ## @px_openssl_initialized
	.comm	_digest_resowner_callback_registered,4,2 ## @digest_resowner_callback_registered
	.comm	_digest_free_callback,4,2       ## @digest_free_callback
	.comm	_PXE_NO_HASH,4,2                ## @PXE_NO_HASH
	.comm	_TopMemoryContext,4,2           ## @TopMemoryContext
	.comm	_CurrentResourceOwner,4,2       ## @CurrentResourceOwner
	.comm	_open_digests,8,3               ## @open_digests
	.comm	_digest_result_size,4,2         ## @digest_result_size
	.comm	_digest_block_size,4,2          ## @digest_block_size
	.comm	_digest_reset,4,2               ## @digest_reset
	.comm	_digest_update,4,2              ## @digest_update
	.comm	_digest_finish,4,2              ## @digest_finish
	.comm	_digest_free,4,2                ## @digest_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_px_find_digest                 ; -- Begin function px_find_digest
	.p2align	2
_px_find_digest:                        ; @px_find_digest
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _px_openssl_initialized@GOTPAGE
Lloh1:
	ldr	x8, [x8, _px_openssl_initialized@GOTPAGEOFF]
	ldr	w9, [x8]
	cbnz	w9, LBB0_2
; %bb.1:
	mov	w9, #1
	str	w9, [x8]
	bl	_OpenSSL_add_all_algorithms
LBB0_2:
Lloh2:
	adrp	x21, _digest_resowner_callback_registered@GOTPAGE
Lloh3:
	ldr	x21, [x21, _digest_resowner_callback_registered@GOTPAGEOFF]
	ldr	w8, [x21]
	cbnz	w8, LBB0_4
; %bb.3:
Lloh4:
	adrp	x8, _digest_free_callback@GOTPAGE
Lloh5:
	ldr	x8, [x8, _digest_free_callback@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_RegisterResourceReleaseCallback
	mov	w8, #1
	str	w8, [x21]
LBB0_4:
	mov	x0, x20
	bl	_EVP_get_digestbyname
	cbz	x0, LBB0_8
; %bb.5:
	mov	x21, x0
Lloh7:
	adrp	x8, _TopMemoryContext@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TopMemoryContext@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	w1, #40
	bl	_MemoryContextAlloc
	mov	x20, x0
	bl	_EVP_MD_CTX_create
	cbz	x0, LBB0_9
; %bb.6:
	mov	x22, x0
	mov	x1, x21
	mov	x2, #0
	bl	_EVP_DigestInit_ex
	cbz	x0, LBB0_9
; %bb.7:
	stp	x22, x21, [x20, #24]
Lloh10:
	adrp	x8, _CurrentResourceOwner@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CurrentResourceOwner@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x20, #16]
Lloh13:
	adrp	x8, _open_digests@GOTPAGE
Lloh14:
	ldr	x8, [x8, _open_digests@GOTPAGEOFF]
	ldr	x9, [x8]
	stp	xzr, x9, [x20]
	str	x20, [x8]
	mov	w0, #32
	bl	_px_alloc
	mov	x8, x0
	mov	w0, #0
Lloh15:
	adrp	x9, _digest_result_size@GOTPAGE
Lloh16:
	ldr	x9, [x9, _digest_result_size@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _digest_block_size@GOTPAGE
Lloh19:
	ldr	x10, [x10, _digest_block_size@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	stp	w10, w9, [x8, #24]
Lloh21:
	adrp	x9, _digest_reset@GOTPAGE
Lloh22:
	ldr	x9, [x9, _digest_reset@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _digest_update@GOTPAGE
Lloh25:
	ldr	x10, [x10, _digest_update@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	stp	w10, w9, [x8, #16]
Lloh27:
	adrp	x9, _digest_finish@GOTPAGE
Lloh28:
	ldr	x9, [x9, _digest_finish@GOTPAGEOFF]
Lloh29:
	adrp	x10, _digest_free@GOTPAGE
Lloh30:
	ldr	x10, [x10, _digest_free@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
Lloh32:
	ldr	w10, [x10]
	stp	w10, w9, [x8, #8]
	str	x20, [x8]
	str	x8, [x19]
	b	LBB0_10
LBB0_8:
Lloh33:
	adrp	x8, _PXE_NO_HASH@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PXE_NO_HASH@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_9:
	mov	x0, x20
	bl	_pfree
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh31
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_px_openssl_initialized,4,2     ; @px_openssl_initialized
	.comm	_digest_resowner_callback_registered,4,2 ; @digest_resowner_callback_registered
	.comm	_digest_free_callback,4,2       ; @digest_free_callback
	.comm	_PXE_NO_HASH,4,2                ; @PXE_NO_HASH
	.comm	_TopMemoryContext,4,2           ; @TopMemoryContext
	.comm	_CurrentResourceOwner,4,2       ; @CurrentResourceOwner
	.comm	_open_digests,8,3               ; @open_digests
	.comm	_digest_result_size,4,2         ; @digest_result_size
	.comm	_digest_block_size,4,2          ; @digest_block_size
	.comm	_digest_reset,4,2               ; @digest_reset
	.comm	_digest_update,4,2              ; @digest_update
	.comm	_digest_finish,4,2              ; @digest_finish
	.comm	_digest_free,4,2                ; @digest_free
.subsections_via_symbols
