	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kmac_set_ctx_params
_kmac_set_ctx_params:                   ## @kmac_set_ctx_params
	.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	%rsi, %rbx
	movq	%rdi, %r14
	addq	$24, %rdi
	callq	_ossl_prov_digest_md
	movq	%rax, %r15
	movq	_OSSL_MAC_PARAM_XOF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	20(%r14), %rsi
	movq	%rax, %rdi
	callq	_OSSL_PARAM_get_int
	testl	%eax, %eax
	je	LBB0_18
LBB0_2:
	movq	_OSSL_MAC_PARAM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	16(%r14), %rsi
	movq	%rax, %rdi
	callq	_OSSL_PARAM_get_size_t
	testl	%eax, %eax
	je	LBB0_18
LBB0_4:
	movq	_OSSL_MAC_PARAM_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movl	(%rax), %r12d
	cmpl	$4, %r12d
	jl	LBB0_12
## %bb.6:
	movq	_KMAC_MAX_KEY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	jg	LBB0_12
## %bb.7:
	movl	12(%r14), %r13d
	leaq	8(%r14), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_EVP_MD_block_size
	movl	%r13d, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_kmac_bytepad_encode_key
	testl	%eax, %eax
	je	LBB0_18
LBB0_8:
	movq	_OSSL_MAC_PARAM_CUSTOM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:
	movl	(%rax), %ecx
	movq	_KMAC_MAX_CUSTOM@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jle	LBB0_15
## %bb.10:
	movq	_ERR_LIB_PROV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PROV_R_INVALID_CUSTOM_LENGTH@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_12:
	movq	_ERR_LIB_PROV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PROV_R_INVALID_KEY_LENGTH@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %esi
	callq	_ERR_raise
LBB0_18:
	xorl	%eax, %eax
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	4(%r14), %edi
	movl	4(%rax), %edx
	movq	%r14, %rsi
	callq	_encode_string
	testl	%eax, %eax
	je	LBB0_18
LBB0_16:
	movl	$1, %eax
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_OSSL_MAC_PARAM_XOF,4,2         ## @OSSL_MAC_PARAM_XOF
	.comm	_OSSL_MAC_PARAM_SIZE,4,2        ## @OSSL_MAC_PARAM_SIZE
	.comm	_OSSL_MAC_PARAM_KEY,4,2         ## @OSSL_MAC_PARAM_KEY
	.comm	_KMAC_MAX_KEY,4,2               ## @KMAC_MAX_KEY
	.comm	_ERR_LIB_PROV,4,2               ## @ERR_LIB_PROV
	.comm	_PROV_R_INVALID_KEY_LENGTH,4,2  ## @PROV_R_INVALID_KEY_LENGTH
	.comm	_OSSL_MAC_PARAM_CUSTOM,4,2      ## @OSSL_MAC_PARAM_CUSTOM
	.comm	_KMAC_MAX_CUSTOM,4,2            ## @KMAC_MAX_CUSTOM
	.comm	_PROV_R_INVALID_CUSTOM_LENGTH,4,2 ## @PROV_R_INVALID_CUSTOM_LENGTH
	.no_dead_strip	_kmac_set_ctx_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kmac_set_ctx_params
_kmac_set_ctx_params:                   ; @kmac_set_ctx_params
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	add	x0, x0, #24
	bl	_ossl_prov_digest_md
	mov	x21, x0
Lloh0:
	adrp	x8, _OSSL_MAC_PARAM_XOF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OSSL_MAC_PARAM_XOF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_2
; %bb.1:
	add	x1, x19, #20
	bl	_OSSL_PARAM_get_int
	cbz	w0, LBB0_14
LBB0_2:
Lloh3:
	adrp	x8, _OSSL_MAC_PARAM_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OSSL_MAC_PARAM_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_4
; %bb.3:
	add	x1, x19, #16
	bl	_OSSL_PARAM_get_size_t
	cbz	w0, LBB0_14
LBB0_4:
Lloh6:
	adrp	x8, _OSSL_MAC_PARAM_KEY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OSSL_MAC_PARAM_KEY@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_8
; %bb.5:
	ldr	w22, [x0]
Lloh9:
	adrp	x8, _KMAC_MAX_KEY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KMAC_MAX_KEY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w22, #4
	ccmp	w22, w8, #0, ge
	b.le	LBB0_7
; %bb.6:
Lloh12:
	adrp	x8, _ERR_LIB_PROV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERR_LIB_PROV@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _PROV_R_INVALID_KEY_LENGTH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PROV_R_INVALID_KEY_LENGTH@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
	ldr	w23, [x19, #12]
	add	x24, x19, #8
	ldr	w25, [x0, #4]
	mov	x0, x21
	bl	_EVP_MD_block_size
	mov	x4, x0
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
	mov	x3, x22
	bl	_kmac_bytepad_encode_key
	cbz	w0, LBB0_14
LBB0_8:
Lloh17:
	adrp	x8, _OSSL_MAC_PARAM_CUSTOM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OSSL_MAC_PARAM_CUSTOM@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_13
; %bb.9:
	ldr	w3, [x0]
Lloh20:
	adrp	x8, _KMAC_MAX_CUSTOM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _KMAC_MAX_CUSTOM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w3, w8
	b.le	LBB0_12
; %bb.10:
Lloh23:
	adrp	x8, _ERR_LIB_PROV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERR_LIB_PROV@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x8, _PROV_R_INVALID_CUSTOM_LENGTH@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PROV_R_INVALID_CUSTOM_LENGTH@GOTPAGEOFF]
LBB0_11:
	ldr	w1, [x8]
	bl	_ERR_raise
	mov	w0, #0
	b	LBB0_14
LBB0_12:
	ldr	w8, [x19, #4]
	ldr	w2, [x0, #4]
	mov	x0, x8
	mov	x1, x19
	bl	_encode_string
	cbz	w0, LBB0_14
LBB0_13:
	mov	w0, #1
LBB0_14:
	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	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_OSSL_MAC_PARAM_XOF,4,2         ; @OSSL_MAC_PARAM_XOF
	.comm	_OSSL_MAC_PARAM_SIZE,4,2        ; @OSSL_MAC_PARAM_SIZE
	.comm	_OSSL_MAC_PARAM_KEY,4,2         ; @OSSL_MAC_PARAM_KEY
	.comm	_KMAC_MAX_KEY,4,2               ; @KMAC_MAX_KEY
	.comm	_ERR_LIB_PROV,4,2               ; @ERR_LIB_PROV
	.comm	_PROV_R_INVALID_KEY_LENGTH,4,2  ; @PROV_R_INVALID_KEY_LENGTH
	.comm	_OSSL_MAC_PARAM_CUSTOM,4,2      ; @OSSL_MAC_PARAM_CUSTOM
	.comm	_KMAC_MAX_CUSTOM,4,2            ; @KMAC_MAX_CUSTOM
	.comm	_PROV_R_INVALID_CUSTOM_LENGTH,4,2 ; @PROV_R_INVALID_CUSTOM_LENGTH
	.no_dead_strip	_kmac_set_ctx_params
.subsections_via_symbols
