	.file	"extr_pkey_mac.c_pkey_mac_ctrl.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"engine"
	.section	.text.unlikely,"ax",@progbits
.LCOLDB1:
	.text
.LHOTB1:
	.p2align 4
	.type	pkey_mac_ctrl, @function
pkey_mac_ctrl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movsx	r12, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	EVP_PKEY_CTX_get_data@PLT
	lea	esi, -130[rbx]
	cmp	esi, 4
	ja	.L24
	lea	rdx, .L4[rip]
	mov	rbp, rax
	movsx	rax, DWORD PTR [rdx+rsi*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR 24[rbp]
	cmp	eax, 128
	je	.L19
	cmp	eax, 129
	setne	al
	movzx	eax, al
	lea	eax, -2[rax+rax]
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rbx, QWORD PTR 40[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L54
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	edx, DWORD PTR 24[rbp]
	mov	eax, -2
	cmp	edx, 128
	je	.L1
	xor	eax, eax
	cmp	edx, 129
	jne	.L1
	mov	rdi, r13
	call	EVP_CIPHER_nid@PLT
	mov	edi, eax
	call	OBJ_nid2sn@PLT
	mov	rdi, QWORD PTR [r14]
	mov	r12, rax
	call	ENGINE_get_id@PLT
	xor	edx, edx
	lea	rdi, .LC0[rip]
	mov	rsi, rax
	call	OSSL_PARAM_construct_utf8_string@PLT
	mov	rdi, QWORD PTR OSSL_MAC_PARAM_CIPHER[rip]
	xor	edx, edx
	mov	rsi, r12
	mov	DWORD PTR 16[rsp], eax
	call	OSSL_PARAM_construct_utf8_string@PLT
	mov	DWORD PTR 20[rsp], eax
	xor	eax, eax
	call	OSSL_PARAM_construct_end@PLT
	mov	rdi, QWORD PTR 0[rbp]
	lea	rsi, 16[rsp]
	mov	DWORD PTR 24[rsp], eax
	call	EVP_MAC_CTX_set_params@PLT
	test	eax, eax
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L51:
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR OSSL_PARAM_END[rip]
	mov	edi, DWORD PTR OSSL_MAC_PARAM_SIZE[rip]
	mov	rsi, rsp
	mov	QWORD PTR [rsp], r12
	mov	QWORD PTR 8[rsp], 0
	lea	r12, 16[rsp]
	mov	DWORD PTR 16[rsp], eax
	mov	DWORD PTR 20[rsp], eax
	call	OSSL_PARAM_construct_size_t@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	rsi, r12
	mov	DWORD PTR 16[rsp], eax
	call	EVP_MAC_CTX_set_params@PLT
	test	eax, eax
	je	.L51
	mov	edi, DWORD PTR OSSL_MAC_PARAM_SIZE[rip]
	lea	rsi, 8[rsp]
	call	OSSL_PARAM_construct_size_t@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	rsi, r12
	mov	DWORD PTR 16[rsp], eax
	call	EVP_MAC_CTX_get_params@PLT
	test	eax, eax
	je	.L51
	mov	rax, QWORD PTR [rsp]
	cmp	QWORD PTR 8[rsp], rax
	sete	al
	movzx	eax, al
	lea	eax, -2[rax+rax*2]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR 24[rbp]
	cmp	eax, 128
	je	.L17
	cmp	eax, 129
	jne	.L51
	mov	edi, DWORD PTR OSSL_MAC_PARAM_KEY[rip]
	mov	rsi, r13
	mov	edx, r12d
	call	OSSL_PARAM_construct_octet_string@PLT
	mov	DWORD PTR 16[rsp], eax
	xor	eax, eax
	call	OSSL_PARAM_construct_end@PLT
	mov	rdi, QWORD PTR 0[rbp]
	lea	rsi, 16[rsp]
	mov	DWORD PTR 20[rsp], eax
	call	EVP_MAC_CTX_set_params@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR 24[rbp]
	cmp	eax, 128
	je	.L11
	cmp	eax, 129
	jne	.L51
	mov	rax, QWORD PTR 8[r14]
	test	rax, rax
	je	.L51
	mov	rdi, QWORD PTR [rax]
	call	EVP_MAC_CTX_dup@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L51
	mov	rdi, QWORD PTR 0[rbp]
	call	EVP_MAC_CTX_free@PLT
	mov	QWORD PTR 0[rbp], rbx
.L50:
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, QWORD PTR 0[rbp]
	call	EVP_MAC_init@PLT
	test	eax, eax
	je	.L51
	mov	rax, QWORD PTR 8[r14]
	mov	rdi, QWORD PTR 8[rbp]
	mov	rbx, QWORD PTR [rax]
	call	EVP_MD_nid@PLT
	mov	edi, eax
	call	OBJ_nid2sn@PLT
	mov	rdi, QWORD PTR [r14]
	mov	r12, rax
	test	rdi, rdi
	je	.L22
	call	ENGINE_get_id@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L22
	xor	edx, edx
	lea	rdi, .LC0[rip]
	mov	r13d, 3
	mov	r14d, 2
	call	OSSL_PARAM_construct_utf8_string@PLT
	mov	r15d, 1
	mov	DWORD PTR 16[rsp], eax
.L21:
	mov	rdi, QWORD PTR OSSL_MAC_PARAM_DIGEST[rip]
	xor	edx, edx
	mov	rsi, r12
	call	OSSL_PARAM_construct_utf8_string@PLT
	mov	rsi, QWORD PTR [rbx]
	mov	edi, DWORD PTR OSSL_MAC_PARAM_KEY[rip]
	mov	DWORD PTR 16[rsp+r15*4], eax
	mov	edx, DWORD PTR 8[rbx]
	call	OSSL_PARAM_construct_octet_string@PLT
	mov	DWORD PTR 16[rsp+r14*4], eax
	xor	eax, eax
	call	OSSL_PARAM_construct_end@PLT
	mov	rdi, QWORD PTR 0[rbp]
	lea	rsi, 16[rsp]
	mov	DWORD PTR 16[rsp+r13*4], eax
	call	EVP_MAC_CTX_set_params@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	test	r13, r13
	sete	dl
	test	r12d, r12d
	setg	al
	test	dl, al
	jne	.L51
	cmp	r12d, -1
	jl	.L51
	lea	rdi, 16[rbp]
	mov	edx, r12d
	mov	rsi, r13
	call	ASN1_OCTET_STRING_set@PLT
	test	eax, eax
	setne	al
	movzx	eax, al
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	QWORD PTR 8[rbp], r13
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, QWORD PTR 0[rbp]
	call	EVP_MAC_init@PLT
	test	eax, eax
	jne	.L50
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	r13d, 2
	mov	r14d, 1
	xor	r15d, r15d
	jmp	.L21
.L54:
	call	__stack_chk_fail@PLT
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	pkey_mac_ctrl.cold, @function
pkey_mac_ctrl.cold:
.LFSB0:
.L24:
	.cfi_def_cfa_offset 112
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	mov	eax, -2
	jmp	.L1
	.cfi_endproc
.LFE0:
	.text
	.size	pkey_mac_ctrl, .-pkey_mac_ctrl
	.section	.text.unlikely
	.size	pkey_mac_ctrl.cold, .-pkey_mac_ctrl.cold
.LCOLDE1:
	.text
.LHOTE1:
	.comm	OSSL_PARAM_END,4,4
	.comm	OSSL_MAC_PARAM_SIZE,4,4
	.comm	OSSL_MAC_PARAM_KEY,4,4
	.comm	OSSL_MAC_PARAM_DIGEST,8,8
	.comm	OSSL_MAC_PARAM_CIPHER,8,8
	.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_pkey_mac.c_pkey_mac_ctrl.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"engine\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pkey_mac_ctrl, %function
pkey_mac_ctrl:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r7, r3
	ldr	r3, .L51
	mov	r4, r1
	sub	sp, sp, #36
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r6, r0
	bl	EVP_PKEY_CTX_get_data
	sub	r1, r4, #130
	mov	r4, r0
	cmp	r1, #4
	ldrls	pc, [pc, r1, asl #2]
	b	.L25
.L4:
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L3:
	ldr	r3, [r0, #12]
	cmp	r3, #128
	beq	.L25
	cmp	r3, #129
	bne	.L26
	mov	r0, r7
	bl	EVP_CIPHER_nid
	bl	OBJ_nid2sn
	mov	r5, r0
	ldr	r0, [r6]
	bl	ENGINE_get_id
	mov	r2, #0
	mov	r1, r0
	ldr	r0, .L51+4
	bl	OSSL_PARAM_construct_utf8_string
	mov	r3, r0
	ldr	r2, .L51+8
	mov	r1, r5
	ldr	r0, [r2]
	mov	r2, #0
	str	r3, [sp, #12]
	bl	OSSL_PARAM_construct_utf8_string
	str	r0, [sp, #16]
	bl	OSSL_PARAM_construct_end
	mov	r3, r0
	add	r1, sp, #12
	ldr	r0, [r4]
	str	r3, [sp, #20]
	bl	EVP_MAC_CTX_set_params
	cmp	r0, #0
	bne	.L9
.L26:
	mov	r0, #0
	b	.L1
.L8:
	ldr	r3, [r0, #12]
	cmp	r3, #128
	beq	.L17
	cmp	r3, #129
	bne	.L26
	ldr	r3, .L51+12
	mov	r1, r7
	ldr	r0, [r3]
	mov	r2, r5
	bl	OSSL_PARAM_construct_octet_string
	str	r0, [sp, #12]
	bl	OSSL_PARAM_construct_end
	mov	r3, r0
	add	r1, sp, #12
	ldr	r0, [r4]
	str	r3, [sp, #16]
	bl	EVP_MAC_CTX_set_params
.L1:
	ldr	r3, .L51
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L50
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L6:
	ldr	r3, [r0, #12]
	cmp	r3, #128
	beq	.L11
	cmp	r3, #129
	bne	.L26
	ldr	r3, [r6, #4]
	cmp	r3, #0
	beq	.L26
	ldr	r0, [r3]
	bl	EVP_MAC_CTX_dup
	subs	r5, r0, #0
	beq	.L26
	ldr	r0, [r4]
	bl	EVP_MAC_CTX_free
	str	r5, [r4]
.L48:
	mov	r0, #1
	b	.L1
.L7:
	mov	r2, #0
	ldr	r3, .L51+16
	ldr	r6, .L51+20
	ldr	r3, [r3]
	add	r1, sp, #4
	ldr	r0, [r6]
	str	r3, [sp, #12]
	str	r3, [sp, #16]
	str	r2, [sp, #8]
	str	r5, [sp, #4]
	bl	OSSL_PARAM_construct_size_t
	mov	r3, r0
	add	r1, sp, #12
	ldr	r0, [r4]
	str	r3, [sp, #12]
	bl	EVP_MAC_CTX_set_params
	cmp	r0, #0
	beq	.L26
	add	r1, sp, #8
	ldr	r0, [r6]
	bl	OSSL_PARAM_construct_size_t
	mov	r3, r0
	add	r1, sp, #12
	ldr	r0, [r4]
	str	r3, [sp, #12]
	bl	EVP_MAC_CTX_get_params
	cmp	r0, #0
	beq	.L26
	ldr	r2, [sp, #8]
	ldr	r3, [sp, #4]
	cmp	r2, r3
	mvnne	r0, #1
	moveq	r0, #1
	b	.L1
.L5:
	ldr	r3, [r0, #12]
	cmp	r3, #128
	beq	.L19
	cmp	r3, #129
	movne	r0, #0
	mvneq	r0, #1
	b	.L1
.L25:
	mvn	r0, #1
	b	.L1
.L17:
	cmp	r5, #0
	movle	r3, #0
	movgt	r3, #1
	cmn	r5, #1
	movge	r2, #0
	movlt	r2, #1
	cmp	r7, #0
	movne	r3, #0
	orrs	r3, r2, r3
	bne	.L26
	mov	r2, r5
	mov	r1, r7
	add	r0, r0, #8
	bl	ASN1_OCTET_STRING_set
	subs	r0, r0, #0
	movne	r0, #1
	b	.L1
.L11:
	str	r7, [r0, #4]
	mov	r0, #1
	b	.L1
.L19:
	ldr	r0, [r0]
	bl	EVP_MAC_init
	cmp	r0, #0
	beq	.L26
	ldr	r3, [r6, #4]
	ldr	r0, [r4, #4]
	ldr	r9, [r3]
	bl	EVP_MD_nid
	bl	OBJ_nid2sn
	ldr	r3, [r6]
	mov	r5, r0
	cmp	r3, #0
	beq	.L22
	mov	r0, r3
	bl	ENGINE_get_id
	subs	r1, r0, #0
	beq	.L22
	mov	r2, #0
	ldr	r0, .L51+4
	bl	OSSL_PARAM_construct_utf8_string
	mov	r6, #3
	mov	r7, #2
	mov	r8, #1
	str	r0, [sp, #12]
.L21:
	ldr	r3, .L51+24
	mov	r1, r5
	mov	r2, #0
	ldr	r0, [r3]
	bl	OSSL_PARAM_construct_utf8_string
	add	r3, sp, #32
	ldr	ip, .L51+12
	add	r3, r3, r8, lsl #2
	str	r0, [r3, #-20]
	ldm	r9, {r1, r2}
	ldr	r0, [ip]
	bl	OSSL_PARAM_construct_octet_string
	add	r3, sp, #32
	add	r3, r3, r7, lsl #2
	str	r0, [r3, #-20]
	bl	OSSL_PARAM_construct_end
	mov	r2, r0
	add	r3, sp, #32
	ldr	r0, [r4]
	add	r3, r3, r6, lsl #2
	add	r1, sp, #12
	str	r2, [r3, #-20]
	bl	EVP_MAC_CTX_set_params
	b	.L1
.L9:
	ldr	r0, [r4]
	bl	EVP_MAC_init
	cmp	r0, #0
	bne	.L48
	b	.L26
.L22:
	mov	r6, #2
	mov	r7, #1
	mov	r8, #0
	b	.L21
.L50:
	bl	__stack_chk_fail
.L52:
	.align	2
.L51:
	.word	.LC1
	.word	.LC0
	.word	OSSL_MAC_PARAM_CIPHER
	.word	OSSL_MAC_PARAM_KEY
	.word	OSSL_PARAM_END
	.word	OSSL_MAC_PARAM_SIZE
	.word	OSSL_MAC_PARAM_DIGEST
	.size	pkey_mac_ctrl, .-pkey_mac_ctrl
	.comm	OSSL_PARAM_END,4,4
	.comm	OSSL_MAC_PARAM_SIZE,4,4
	.comm	OSSL_MAC_PARAM_KEY,4,4
	.comm	OSSL_MAC_PARAM_DIGEST,4,4
	.comm	OSSL_MAC_PARAM_CIPHER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
