	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kmac_init
_kmac_init:                             ## @kmac_init
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rcx, -64(%rbp)
	movl	$1, %r12d
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.1:
	movq	%r9, %r14
	movq	%r8, %r13
	movq	%rcx, %rbx
	movq	%rdi, %r15
	movq	_OSSL_MAC_PARAM_CUSTOM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OSSL_PARAM_construct_octet_string
	movl	%eax, -56(%rbp)
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_OSSL_PARAM_construct_end
	movl	%eax, -52(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_EVP_MAC_CTX_set_params
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.4:
	cmpq	%r13, %rbx
	je	LBB0_7
## %bb.5:
	addq	$-20, %rbx
	rolq	$62, %rbx
	cmpq	$11, %rbx
	ja	LBB0_11
## %bb.6:
	movl	$2189, %eax                     ## imm = 0x88D
	btq	%rbx, %rax
	jb	LBB0_7
	jmp	LBB0_11
LBB0_3:
	movq	%r13, -64(%rbp)
LBB0_7:
	movq	_OSSL_MAC_PARAM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-64(%rbp), %rsi
	callq	_OSSL_PARAM_construct_size_t
	movl	%eax, -56(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_EVP_MAC_CTX_set_params
	testq	%rax, %rax
	jle	LBB0_11
## %bb.8:
	movq	-64(%rbp), %rdi
	movq	_EVP_MAX_MD_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jbe	LBB0_10
## %bb.9:
	callq	_OPENSSL_zalloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_11
LBB0_10:
	movl	$1, %r12d
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_OSSL_MAC_PARAM_CUSTOM,4,2      ## @OSSL_MAC_PARAM_CUSTOM
	.comm	_OSSL_MAC_PARAM_SIZE,4,2        ## @OSSL_MAC_PARAM_SIZE
	.comm	_EVP_MAX_MD_SIZE,8,3            ## @EVP_MAX_MD_SIZE
	.no_dead_strip	_kmac_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kmac_init
_kmac_init:                             ; @kmac_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	str	x3, [sp, #8]
	cbz	x1, LBB0_10
; %bb.1:
	mov	x19, x5
	mov	x22, x4
	mov	x21, x3
	mov	x20, x0
Lloh3:
	adrp	x8, _OSSL_MAC_PARAM_CUSTOM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OSSL_MAC_PARAM_CUSTOM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_OSSL_PARAM_construct_octet_string
	str	w0, [sp, #16]
	bl	_OSSL_PARAM_construct_end
	str	w0, [sp, #20]
	add	x1, sp, #16
	mov	x0, x20
	bl	_EVP_MAC_CTX_set_params
	cbz	x0, LBB0_11
; %bb.2:
	cbz	x21, LBB0_6
; %bb.3:
	cmp	x21, x22
	b.eq	LBB0_7
; %bb.4:
	mov	w0, #0
	sub	x8, x21, #20
	ror	x8, x8, #2
	cmp	x8, #11
	b.hi	LBB0_11
; %bb.5:
	mov	w9, #1
	lsl	x8, x9, x8
	mov	w9, #2189
	tst	x8, x9
	b.ne	LBB0_7
	b	LBB0_11
LBB0_6:
	str	x22, [sp, #8]
LBB0_7:
Lloh6:
	adrp	x8, _OSSL_MAC_PARAM_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OSSL_MAC_PARAM_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_OSSL_PARAM_construct_size_t
	str	w0, [sp, #16]
	add	x1, sp, #16
	mov	x0, x20
	bl	_EVP_MAC_CTX_set_params
	cmp	x0, #1
	b.lt	LBB0_13
; %bb.8:
	ldr	x0, [sp, #8]
Lloh9:
	adrp	x8, _EVP_MAX_MD_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EVP_MAX_MD_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ls	LBB0_10
; %bb.9:
	bl	_OPENSSL_zalloc
	str	x0, [x19]
	cbz	x0, LBB0_11
LBB0_10:
	mov	w0, #1
LBB0_11:
	ldr	x8, [sp, #24]
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_14
; %bb.12:
	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
	add	sp, sp, #80
	ret
LBB0_13:
	mov	w0, #0
	b	LBB0_11
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_OSSL_MAC_PARAM_CUSTOM,4,2      ; @OSSL_MAC_PARAM_CUSTOM
	.comm	_OSSL_MAC_PARAM_SIZE,4,2        ; @OSSL_MAC_PARAM_SIZE
	.comm	_EVP_MAX_MD_SIZE,8,3            ; @EVP_MAX_MD_SIZE
	.no_dead_strip	_kmac_init
.subsections_via_symbols
