	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SSKDF_mac_kdm
_SSKDF_mac_kdm:                         ## @SSKDF_mac_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, %r14
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	movq	%rsp, -144(%rbp)                ## 8-byte Spill
	movq	56(%rbp), %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_EVP_MAX_MD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdx
	movq	$0, -80(%rbp)
	movq	_SSKDF_MAX_INLEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	-1(%r13), %rcx
	xorl	%r15d, %r15d
	cmpq	%rax, %rcx
	jae	LBB0_22
## %bb.1:
	cmpq	24(%rbp), %rax
	jb	LBB0_22
## %bb.2:
	cmpq	40(%rbp), %rax
	jb	LBB0_22
## %bb.3:
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	_OSSL_MAC_PARAM_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_OSSL_PARAM_construct_octet_string
	movl	%eax, -56(%rbp)
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_OSSL_PARAM_construct_end
	movl	%eax, -52(%rbp)
	leaq	-56(%rbp), %rsi
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_EVP_MAC_CTX_set_params
	testl	%eax, %eax
	je	LBB0_17
## %bb.4:
	leaq	-80(%rbp), %r9
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	callq	_kmac_init
	testl	%eax, %eax
	je	LBB0_16
## %bb.5:
	movq	-80(%rbp), %r15
	testq	%r15, %r15
	cmoveq	-88(%rbp), %r15                 ## 8-byte Folded Reload
	movq	%rbx, %rdi
	callq	_EVP_MAC_init
	testl	%eax, %eax
	je	LBB0_16
## %bb.6:
	movq	%rbx, %rdi
	callq	_EVP_MAC_size
	testq	%rax, %rax
	je	LBB0_16
## %bb.7:
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	$16777216, -68(%rbp)            ## imm = 0x1000000
	movq	%rbx, %rdi
	callq	_EVP_MAC_CTX_dup
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_24
## %bb.8:
	movq	%rax, %r12
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movq	48(%rbp), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$2, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	$4, %edx
	movq	%r12, %rdi
	leaq	-68(%rbp), %rsi
	callq	_EVP_MAC_update
	testq	%rax, %rax
	je	LBB0_25
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	movq	16(%rbp), %rsi
	movq	24(%rbp), %rdx
	callq	_EVP_MAC_update
	testq	%rax, %rax
	je	LBB0_25
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	movq	32(%rbp), %rsi
	movq	40(%rbp), %rdx
	callq	_EVP_MAC_update
	testq	%rax, %rax
	je	LBB0_25
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-120(%rbp), %r14                ## 8-byte Reload
	cmpq	%r14, %r13
	jb	LBB0_26
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	%r13, %rcx
	callq	_EVP_MAC_final
	testl	%eax, %eax
	je	LBB0_29
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	subq	%r14, %r13
	je	LBB0_28
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	addq	%r14, %rbx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_EVP_MAC_CTX_free
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	movl	%ebx, %eax
	bswapl	%eax
	movl	%eax, -68(%rbp)
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_EVP_MAC_CTX_dup
	movq	%rax, %r12
	incq	%rbx
	xorl	%r15d, %r15d
	movl	$0, %r14d
	testq	%rax, %rax
	jne	LBB0_9
	jmp	LBB0_18
LBB0_16:
	xorl	%r15d, %r15d
LBB0_17:
	xorl	%r14d, %r14d
LBB0_18:
	movq	-80(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_OPENSSL_clear_free
	jmp	LBB0_21
LBB0_20:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-136(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_OPENSSL_cleanse
LBB0_21:
	movq	%r14, %rdi
	callq	_EVP_MAC_CTX_free
LBB0_22:
	movq	-144(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_30
## %bb.23:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	xorl	%r15d, %r15d
	jmp	LBB0_18
LBB0_25:
	xorl	%r15d, %r15d
	movq	%r12, %r14
	jmp	LBB0_18
LBB0_26:
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rsi
	xorl	%edx, %edx
	movq	%r13, %rcx
	callq	_EVP_MAC_final
	testl	%eax, %eax
	je	LBB0_29
## %bb.27:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_memcpy
LBB0_28:
	movl	$1, %r15d
LBB0_29:
	movq	%r12, %r14
	jmp	LBB0_18
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_MAX_MD_SIZE,4,2            ## @EVP_MAX_MD_SIZE
	.comm	_SSKDF_MAX_INLEN,8,3            ## @SSKDF_MAX_INLEN
	.comm	_OSSL_MAC_PARAM_KEY,4,2         ## @OSSL_MAC_PARAM_KEY
	.no_dead_strip	_SSKDF_mac_kdm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SSKDF_mac_kdm
_SSKDF_mac_kdm:                         ; @SSKDF_mac_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, #96
	mov	x23, x7
	mov	x28, x6
	mov	x21, x3
	mov	x19, x2
	mov	x24, x1
	mov	x25, x0
	mov	x12, sp
	ldr	x22, [x29, #40]
	ldr	x26, [x29, #24]
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	w20, [x8]
	mov	x9, x20
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x9, x9, #0x1fffffff0
	sub	x27, x8, x9
	mov	sp, x27
Lloh8:
	adrp	x8, _SSKDF_MAX_INLEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SSKDF_MAX_INLEN@GOTPAGEOFF]
	stur	xzr, [x29, #-112]
Lloh10:
	ldr	x8, [x8]
	sub	x9, x22, #1
	cmp	x9, x8
	ccmp	x8, x7, #0, lo
	ccmp	x8, x26, #0, hs
	b.hs	LBB0_2
; %bb.1:
	mov	w24, #0
	b	LBB0_21
LBB0_2:
	stur	x12, [x29, #-120]               ; 8-byte Folded Spill
Lloh11:
	adrp	x8, _OSSL_MAC_PARAM_KEY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OSSL_MAC_PARAM_KEY@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x4
	mov	x2, x5
	bl	_OSSL_PARAM_construct_octet_string
	stur	w0, [x29, #-96]
	bl	_OSSL_PARAM_construct_end
	stur	w0, [x29, #-92]
	sub	x1, x29, #96
	mov	x0, x25
	bl	_EVP_MAC_CTX_set_params
	stp	x27, x21, [x29, #-136]          ; 16-byte Folded Spill
	cbz	w0, LBB0_15
; %bb.3:
	sub	x5, x29, #112
	mov	x0, x25
	mov	x1, x24
	mov	x2, x19
	mov	x3, x21
	mov	x4, x22
	bl	_kmac_init
	cbz	w0, LBB0_15
; %bb.4:
	ldur	x8, [x29, #-112]
	cmp	x8, #0
	csel	x19, x27, x8, eq
	mov	x0, x25
	bl	_EVP_MAC_init
	cbz	w0, LBB0_15
; %bb.5:
	mov	x0, x25
	bl	_EVP_MAC_size
	mov	x24, x0
	cbz	x0, LBB0_16
; %bb.6:
	stur	x19, [x29, #-168]               ; 8-byte Folded Spill
	mov	w8, #16777216
	stur	w8, [x29, #-100]
	mov	x0, x25
	bl	_EVP_MAC_CTX_dup
	cbz	x0, LBB0_15
; %bb.7:
	mov	x19, x0
	stur	x28, [x29, #-144]               ; 8-byte Folded Spill
	ldr	x28, [x29, #32]
	ldr	x8, [x29, #16]
	stp	x24, x8, [x29, #-160]           ; 16-byte Folded Spill
	mov	w21, #2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sub	x1, x29, #100
	mov	x0, x19
	mov	w2, #4
	bl	_EVP_MAC_update
	cbz	x0, LBB0_26
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	ldur	x1, [x29, #-144]                ; 8-byte Folded Reload
	mov	x2, x23
	bl	_EVP_MAC_update
	cbz	x0, LBB0_26
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	ldur	x1, [x29, #-152]                ; 8-byte Folded Reload
	mov	x2, x26
	bl	_EVP_MAC_update
	cbz	x0, LBB0_26
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldur	x24, [x29, #-160]               ; 8-byte Folded Reload
	mov	x0, x19
	cmp	x22, x24
	b.lo	LBB0_23
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x1, x28
	mov	x2, #0
	mov	x3, x22
	bl	_EVP_MAC_final
	cbz	w0, LBB0_26
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	subs	x22, x22, x24
	b.eq	LBB0_25
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x28, x28, x24
	mov	x0, x19
	bl	_EVP_MAC_CTX_free
	rev	w8, w21
	stur	w8, [x29, #-100]
	mov	x0, x25
	bl	_EVP_MAC_CTX_dup
	mov	x19, x0
	mov	w24, #0
	mov	x27, #0
	add	x21, x21, #1
	cbnz	x0, LBB0_8
	b	LBB0_17
LBB0_15:
	mov	w24, #0
LBB0_16:
	mov	x27, #0
LBB0_17:
	ldur	x0, [x29, #-112]
	cbz	x0, LBB0_19
; %bb.18:
	ldur	x1, [x29, #-128]                ; 8-byte Folded Reload
	bl	_OPENSSL_clear_free
	b	LBB0_20
LBB0_19:
	ldur	x0, [x29, #-136]                ; 8-byte Folded Reload
	mov	x1, x20
	bl	_OPENSSL_cleanse
LBB0_20:
	mov	x0, x27
	bl	_EVP_MAC_CTX_free
	ldur	x12, [x29, #-120]               ; 8-byte Folded Reload
LBB0_21:
	mov	sp, x12
	ldur	x8, [x29, #-88]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.22:
	mov	x0, x24
	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_23:
	ldur	x21, [x29, #-168]               ; 8-byte Folded Reload
	mov	x1, x21
	mov	x2, #0
	mov	x3, x22
	bl	_EVP_MAC_final
	cbz	w0, LBB0_26
; %bb.24:
	mov	x0, x28
	mov	x1, x21
	mov	x2, x22
	bl	_memcpy
LBB0_25:
	mov	w24, #1
	mov	x27, x19
	b	LBB0_17
LBB0_26:
	mov	w24, #0
	mov	x27, x19
	b	LBB0_17
LBB0_27:
	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	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_MAX_MD_SIZE,4,2            ; @EVP_MAX_MD_SIZE
	.comm	_SSKDF_MAX_INLEN,8,3            ; @SSKDF_MAX_INLEN
	.comm	_OSSL_MAC_PARAM_KEY,4,2         ; @OSSL_MAC_PARAM_KEY
	.no_dead_strip	_SSKDF_mac_kdm
.subsections_via_symbols
