	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function x942kdf_hash_kdm
_x942kdf_hash_kdm:                      ## @x942kdf_hash_kdm
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	movq	%rdi, %r15
	movq	24(%rbp), %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_EVP_MAX_MD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_X942KDF_MAX_INLEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	-1(%r12), %rcx
	cmpq	%rax, %rcx
	jae	LBB0_15
## %bb.1:
	cmpq	-104(%rbp), %rax                ## 8-byte Folded Reload
	jb	LBB0_15
## %bb.2:
	cmpq	-96(%rbp), %rax                 ## 8-byte Folded Reload
	jb	LBB0_15
## %bb.3:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_EVP_MD_size
	testl	%eax, %eax
	jle	LBB0_16
## %bb.4:
	movl	%eax, %r14d
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	callq	_EVP_MD_CTX_create
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_EVP_MD_CTX_create
	testq	%rbx, %rbx
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_19
## %bb.5:
	testq	%rax, %rax
	je	LBB0_19
## %bb.6:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_EVP_DigestInit
	testl	%eax, %eax
	je	LBB0_17
## %bb.7:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	$16777216, (%rax)               ## imm = 0x1000000
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_EVP_MD_CTX_copy_ex
	testl	%eax, %eax
	je	LBB0_17
## %bb.8:
	movq	16(%rbp), %r13
	movl	%r14d, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$2, %r14d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	callq	_EVP_DigestUpdate
	testl	%eax, %eax
	je	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	callq	_EVP_DigestUpdate
	testl	%eax, %eax
	je	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	-72(%rbp), %r12                 ## 8-byte Folded Reload
	jb	LBB0_25
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_EVP_DigestFinal_ex
	testl	%eax, %eax
	je	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	subq	%rax, %r12
	je	LBB0_27
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	addq	%rax, %r13
	movl	%r14d, %eax
	bswapl	%eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_EVP_MD_CTX_copy_ex
	incq	%r14
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_20
LBB0_15:
	movq	_ERR_LIB_PROV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PROV_R_BAD_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ERR_raise
LBB0_16:
	xorl	%r15d, %r15d
	jmp	LBB0_21
LBB0_19:
	xorl	%r15d, %r15d
	jmp	LBB0_20
LBB0_17:
	xorl	%r15d, %r15d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_20:
	movq	%rbx, %rdi
	callq	_EVP_MD_CTX_free
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_EVP_MD_CTX_free
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-112(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_OPENSSL_cleanse
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.22:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_EVP_DigestFinal_ex
	testl	%eax, %eax
	je	LBB0_20
## %bb.26:
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_memcpy
LBB0_27:
	movl	$1, %r15d
	jmp	LBB0_20
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_MAX_MD_SIZE,4,2            ## @EVP_MAX_MD_SIZE
	.comm	_X942KDF_MAX_INLEN,8,3          ## @X942KDF_MAX_INLEN
	.comm	_ERR_LIB_PROV,4,2               ## @ERR_LIB_PROV
	.comm	_PROV_R_BAD_LENGTH,4,2          ## @PROV_R_BAD_LENGTH
	.no_dead_strip	_x942kdf_hash_kdm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function x942kdf_hash_kdm
_x942kdf_hash_kdm:                      ; @x942kdf_hash_kdm
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #48
	mov	x23, x7
	mov	x24, x6
	stur	x5, [x29, #-96]                 ; 8-byte Folded Spill
	mov	x26, x4
	mov	x21, x3
	mov	x28, x2
	mov	x27, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _EVP_MAX_MD_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVP_MAX_MD_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	mov	x9, x19
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x19, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
Lloh8:
	adrp	x8, _X942KDF_MAX_INLEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _X942KDF_MAX_INLEN@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	sub	x9, x7, #1
	cmp	x9, x8
	ccmp	x8, x2, #0, lo
	ccmp	x8, x4, #0, hs
	b.hs	LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _ERR_LIB_PROV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERR_LIB_PROV@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _PROV_R_BAD_LENGTH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PROV_R_BAD_LENGTH@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_ERR_raise
	b	LBB0_17
LBB0_2:
	mov	x0, x22
	bl	_EVP_MD_size
	cmp	w0, #1
	b.lt	LBB0_17
; %bb.3:
	mov	x25, x0
	stp	x21, x27, [x29, #-112]          ; 16-byte Folded Spill
	stur	x20, [x29, #-120]               ; 8-byte Folded Spill
	bl	_EVP_MD_CTX_create
	mov	x21, x0
	bl	_EVP_MD_CTX_create
	mov	x20, x0
	mov	w27, #0
	cbz	x21, LBB0_16
; %bb.4:
	cbz	x20, LBB0_16
; %bb.5:
	mov	x0, x20
	mov	x1, x22
	bl	_EVP_DigestInit
	mov	x27, x20
	cbz	w0, LBB0_14
; %bb.6:
	mov	w8, #16777216
	ldur	x20, [x29, #-96]                ; 8-byte Folded Reload
	str	w8, [x20]
	mov	x0, x21
	mov	x1, x27
	bl	_EVP_MD_CTX_copy_ex
	cbz	w0, LBB0_14
; %bb.7:
	mov	w22, w25
	mov	w25, #2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	ldur	x1, [x29, #-104]                ; 8-byte Folded Reload
	mov	x2, x28
	bl	_EVP_DigestUpdate
	cbz	w0, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	ldur	x1, [x29, #-112]                ; 8-byte Folded Reload
	mov	x2, x26
	bl	_EVP_DigestUpdate
	cbz	w0, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	x23, x22
	b.lo	LBB0_20
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	mov	x1, x24
	mov	x2, #0
	bl	_EVP_DigestFinal_ex
	cbz	w0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	subs	x23, x23, x22
	b.eq	LBB0_22
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x24, x24, x22
	rev	w8, w25
	str	w8, [x20]
	mov	x0, x21
	mov	x1, x27
	bl	_EVP_MD_CTX_copy_ex
	add	x25, x25, #1
	cbnz	w0, LBB0_8
LBB0_14:
	mov	x20, x27
LBB0_15:
	mov	w27, #0
LBB0_16:
	mov	x0, x21
	bl	_EVP_MD_CTX_free
	mov	x0, x20
	bl	_EVP_MD_CTX_free
	ldur	x0, [x29, #-120]                ; 8-byte Folded Reload
	mov	x1, x19
	bl	_OPENSSL_cleanse
	b	LBB0_18
LBB0_17:
	mov	w27, #0
LBB0_18:
	ldur	x8, [x29, #-88]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.19:
	mov	x0, x27
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_20:
	mov	x20, x27
	mov	x0, x21
	ldur	x22, [x29, #-120]               ; 8-byte Folded Reload
	mov	x1, x22
	mov	x2, #0
	bl	_EVP_DigestFinal_ex
	cbz	w0, LBB0_15
; %bb.21:
	mov	x0, x24
	mov	x1, x22
	mov	x2, x23
	bl	_memcpy
	mov	w27, #1
	b	LBB0_16
LBB0_22:
	mov	x20, x27
	mov	w27, #1
	b	LBB0_16
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_MAX_MD_SIZE,4,2            ; @EVP_MAX_MD_SIZE
	.comm	_X942KDF_MAX_INLEN,8,3          ; @X942KDF_MAX_INLEN
	.comm	_ERR_LIB_PROV,4,2               ; @ERR_LIB_PROV
	.comm	_PROV_R_BAD_LENGTH,4,2          ; @PROV_R_BAD_LENGTH
	.no_dead_strip	_x942kdf_hash_kdm
.subsections_via_symbols
