	.file	"extr_sskdf.c_sskdf_set_ctx_params.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sskdf_set_ctx_params, @function
sskdf_set_ctx_params:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 40[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	PROV_LIBRARY_CONTEXT_OF@PLT
	lea	rdi, 36[rbx]
	mov	rsi, rbp
	mov	rdx, rax
	mov	r12, rax
	call	ossl_prov_digest_load_from_params@PLT
	test	eax, eax
	jne	.L2
.L4:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L34
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	mov	r9, r12
	lea	rdi, 32[rbx]
	mov	rsi, rbp
	call	ossl_prov_macctx_load_from_params@PLT
	test	eax, eax
	je	.L4
	mov	esi, DWORD PTR OSSL_KDF_PARAM_SECRET[rip]
	mov	rdi, rbp
	call	OSSL_PARAM_locate_const@PLT
	mov	rdx, rax
	test	rax, rax
	je	.L35
.L5:
	lea	rsi, 24[rbx]
	lea	rdi, 28[rbx]
	call	sskdf_set_buffer@PLT
	test	eax, eax
	je	.L4
.L8:
	mov	esi, DWORD PTR OSSL_KDF_PARAM_INFO[rip]
	mov	rdi, rbp
	call	OSSL_PARAM_locate_const@PLT
	mov	rdx, rax
	test	rax, rax
	je	.L7
	lea	rsi, 16[rbx]
	lea	rdi, 20[rbx]
	call	sskdf_set_buffer@PLT
	test	eax, eax
	je	.L4
.L7:
	mov	esi, DWORD PTR OSSL_KDF_PARAM_SALT[rip]
	mov	rdi, rbp
	call	OSSL_PARAM_locate_const@PLT
	mov	rdx, rax
	test	rax, rax
	je	.L10
	lea	rsi, 8[rbx]
	lea	rdi, 12[rbx]
	call	sskdf_set_buffer@PLT
	test	eax, eax
	je	.L4
.L10:
	mov	esi, DWORD PTR OSSL_KDF_PARAM_MAC_SIZE[rip]
	mov	rdi, rbp
	call	OSSL_PARAM_locate_const@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L32
	mov	rsi, rsp
	call	OSSL_PARAM_get_size_t@PLT
	test	eax, eax
	je	.L4
	mov	rax, QWORD PTR [rsp]
	test	rax, rax
	je	.L4
	mov	QWORD PTR [rbx], rax
.L32:
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L35:
	mov	esi, DWORD PTR OSSL_KDF_PARAM_KEY[rip]
	mov	rdi, rbp
	call	OSSL_PARAM_locate_const@PLT
	mov	rdx, rax
	test	rax, rax
	jne	.L5
	jmp	.L8
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sskdf_set_ctx_params, .-sskdf_set_ctx_params
	.comm	OSSL_KDF_PARAM_SECRET,4,4
	.comm	OSSL_KDF_PARAM_SALT,4,4
	.comm	OSSL_KDF_PARAM_MAC_SIZE,4,4
	.comm	OSSL_KDF_PARAM_KEY,4,4
	.comm	OSSL_KDF_PARAM_INFO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sskdf.c_sskdf_set_ctx_params.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sskdf_set_ctx_params, %function
sskdf_set_ctx_params:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L35
	sub	sp, sp, #16
	mov	r4, r0
	ldr	r0, [r0, #36]
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	PROV_LIBRARY_CONTEXT_OF
	mov	r1, r5
	mov	r2, r0
	mov	r6, r0
	add	r0, r4, #32
	bl	ossl_prov_digest_load_from_params
	cmp	r0, #0
	bne	.L2
.L4:
	mov	r0, #0
.L1:
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L33
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	mov	r3, #0
	mov	r1, r5
	mov	r2, r3
	stm	sp, {r3, r6}
	add	r0, r4, #28
	bl	ossl_prov_macctx_load_from_params
	cmp	r0, #0
	beq	.L4
	ldr	r3, .L35+4
	mov	r0, r5
	ldr	r1, [r3]
	bl	OSSL_PARAM_locate_const
	subs	r2, r0, #0
	beq	.L34
.L5:
	add	r1, r4, #20
	add	r0, r4, #24
	bl	sskdf_set_buffer
	cmp	r0, #0
	beq	.L4
.L8:
	ldr	r3, .L35+8
	mov	r0, r5
	ldr	r1, [r3]
	bl	OSSL_PARAM_locate_const
	subs	r2, r0, #0
	beq	.L7
	add	r1, r4, #12
	add	r0, r4, #16
	bl	sskdf_set_buffer
	cmp	r0, #0
	beq	.L4
.L7:
	ldr	r3, .L35+12
	mov	r0, r5
	ldr	r1, [r3]
	bl	OSSL_PARAM_locate_const
	subs	r2, r0, #0
	beq	.L10
	add	r1, r4, #4
	add	r0, r4, #8
	bl	sskdf_set_buffer
	cmp	r0, #0
	beq	.L4
.L10:
	ldr	r3, .L35+16
	mov	r0, r5
	ldr	r1, [r3]
	bl	OSSL_PARAM_locate_const
	cmp	r0, #0
	moveq	r0, #1
	beq	.L1
	add	r1, sp, #8
	bl	OSSL_PARAM_get_size_t
	cmp	r0, #0
	beq	.L4
	ldr	r3, [sp, #8]
	cmp	r3, #0
	beq	.L4
	mov	r0, #1
	str	r3, [r4]
	b	.L1
.L34:
	ldr	r3, .L35+20
	mov	r0, r5
	ldr	r1, [r3]
	bl	OSSL_PARAM_locate_const
	subs	r2, r0, #0
	bne	.L5
	b	.L8
.L33:
	bl	__stack_chk_fail
.L36:
	.align	2
.L35:
	.word	.LC0
	.word	OSSL_KDF_PARAM_SECRET
	.word	OSSL_KDF_PARAM_INFO
	.word	OSSL_KDF_PARAM_SALT
	.word	OSSL_KDF_PARAM_MAC_SIZE
	.word	OSSL_KDF_PARAM_KEY
	.size	sskdf_set_ctx_params, .-sskdf_set_ctx_params
	.comm	OSSL_KDF_PARAM_SECRET,4,4
	.comm	OSSL_KDF_PARAM_SALT,4,4
	.comm	OSSL_KDF_PARAM_MAC_SIZE,4,4
	.comm	OSSL_KDF_PARAM_KEY,4,4
	.comm	OSSL_KDF_PARAM_INFO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
