	.file	"extr_anal_avr.c_avr_custom_des.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"hf"
.LC1:
	.string	"deskey"
.LC2:
	.string	"text"
	.text
	.p2align 4
	.type	avr_custom_des, @function
avr_custom_des:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	je	.L4
	mov	rax, QWORD PTR [rdi]
	mov	rbp, rdi
	test	rax, rax
	je	.L4
	mov	ecx, DWORD PTR [rax]
	test	ecx, ecx
	jne	.L23
.L4:
	xor	eax, eax
.L1:
	mov	rbx, QWORD PTR 40[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L24
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	lea	rsi, 20[rsp]
	call	__esil_pop_argument@PLT
	test	eax, eax
	je	.L4
	xor	ecx, ecx
	lea	rdx, 12[rsp]
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	r_anal_esil_reg_read@PLT
	xor	ecx, ecx
	lea	rdx, 8[rsp]
	mov	rdi, rbp
	lea	rsi, .LC1[rip]
	call	r_anal_esil_reg_read@PLT
	xor	ecx, ecx
	lea	rdx, 16[rsp]
	mov	rdi, rbp
	lea	rsi, .LC2[rip]
	call	r_anal_esil_reg_read@PLT
	mov	eax, DWORD PTR 8[rsp]
	mov	edx, DWORD PTR UT32_MAX[rip]
	mov	ecx, eax
	and	ecx, edx
	mov	DWORD PTR 24[rsp], ecx
	mov	ecx, 32
	sar	eax, cl
	mov	DWORD PTR 28[rsp], eax
	mov	eax, DWORD PTR 16[rsp]
	and	edx, eax
	sar	eax, cl
	mov	DWORD PTR 36[rsp], eax
	movsx	rax, DWORD PTR 20[rsp]
	cmp	DWORD PTR desctx[rip], eax
	mov	DWORD PTR 32[rsp], edx
	je	.L5
	mov	DWORD PTR desctx[rip], eax
.L5:
	lea	r12, 36[rsp]
	lea	r13, 32[rsp]
	test	eax, eax
	je	.L25
.L6:
	mov	edx, DWORD PTR 12[rsp]
	mov	rcx, QWORD PTR desctx[rip+8]
	mov	rsi, QWORD PTR desctx[rip+16]
	test	edx, edx
	je	.L8
	sal	rax, 2
	mov	rdi, r13
	lea	rdx, [rsi+rax]
	add	rcx, rax
	mov	rsi, r12
	call	r_des_round@PLT
.L9:
	mov	eax, DWORD PTR desctx[rip]
	cmp	eax, 15
	je	.L26
	add	eax, 1
	mov	DWORD PTR desctx[rip], eax
.L11:
	mov	edx, DWORD PTR 16[rsp]
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	r_anal_esil_reg_write@PLT
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edx, 15
	mov	rdi, r13
	sub	edx, eax
	movsx	rdx, edx
	sal	rdx, 2
	add	rcx, rdx
	add	rdx, rsi
	mov	rsi, r12
	call	r_des_round@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L25:
	lea	r13, 28[rsp]
	lea	r12, 24[rsp]
	xor	ebx, ebx
	mov	rsi, r13
	mov	rdi, r12
	call	r_des_permute_key@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdx, QWORD PTR desctx[rip+8]
	mov	edi, ebx
	mov	r8, r13
	mov	rcx, r12
	lea	rsi, 0[0+rbx*4]
	add	rbx, 1
	add	rdx, rsi
	add	rsi, QWORD PTR desctx[rip+16]
	call	r_des_round_key@PLT
	cmp	rbx, 16
	jne	.L7
	lea	r12, 36[rsp]
	lea	r13, 32[rsp]
	mov	rsi, r12
	mov	rdi, r13
	call	r_des_permute_block0@PLT
	movsx	rax, DWORD PTR desctx[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rsi, r13
	mov	rdi, r12
	call	r_des_permute_block1@PLT
	mov	DWORD PTR desctx[rip], 0
	jmp	.L11
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	avr_custom_des, .-avr_custom_des
	.comm	desctx,24,16
	.comm	UT32_MAX,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_anal_avr.c_avr_custom_des.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"hf\000"
	.align	2
.LC1:
	.ascii	"deskey\000"
	.align	2
.LC2:
	.ascii	"text\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	avr_custom_des, %function
avr_custom_des:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L31
	sub	sp, sp, #48
	subs	r5, r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	beq	.L4
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L28
.L4:
	mov	r0, #0
.L1:
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L29
	add	sp, sp, #48
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L28:
	add	r1, sp, #24
	bl	__esil_pop_argument
	cmp	r0, #0
	beq	.L4
	mov	r3, #0
	ldr	r1, .L31+4
	add	r2, sp, #16
	mov	r0, r5
	bl	r_anal_esil_reg_read
	mov	r3, #0
	ldr	r1, .L31+8
	add	r2, sp, #12
	mov	r0, r5
	bl	r_anal_esil_reg_read
	mov	r3, #0
	ldr	r1, .L31+12
	add	r2, sp, #20
	mov	r0, r5
	bl	r_anal_esil_reg_read
	mov	r0, #32
	ldr	r3, .L31+16
	ldr	r6, .L31+20
	ldr	r1, [r3]
	ldr	r2, [sp, #12]
	ldr	r3, [sp, #20]
	ldr	r4, [sp, #24]
	and	ip, r2, r1
	and	r1, r1, r3
	asr	r2, r2, r0
	asr	r3, r3, r0
	ldr	r0, [r6]
	str	ip, [sp, #28]
	cmp	r0, r4
	strne	r4, [r6]
	cmp	r4, #0
	str	r1, [sp, #36]
	str	r2, [sp, #32]
	str	r3, [sp, #40]
	beq	.L24
	add	r7, sp, #40
	add	r8, sp, #36
.L6:
	ldr	r3, [sp, #16]
	ldr	r2, [r6, #8]
	cmp	r3, #0
	ldr	r3, [r6, #4]
	rsbeq	r4, r4, #15
	add	r3, r3, r4, lsl #2
	mov	r1, r7
	mov	r0, r8
	add	r2, r2, r4, lsl #2
	bl	r_des_round
	ldr	r3, [r6]
	cmp	r3, #15
	addne	r3, r3, #1
	strne	r3, [r6]
	beq	.L30
.L11:
	mov	r0, r5
	ldr	r2, [sp, #20]
	ldr	r1, .L31+12
	bl	r_anal_esil_reg_write
	mov	r0, #1
	b	.L1
.L24:
	add	r7, sp, #32
	mov	r1, r7
	add	r0, sp, #28
	bl	r_des_permute_key
.L7:
	ldr	r2, [r6, #4]
	ldr	r1, [r6, #8]
	mov	r0, r4
	add	r2, r2, r4, lsl #2
	add	r1, r1, r4, lsl #2
	str	r7, [sp]
	add	r3, sp, #28
	add	r4, r4, #1
	bl	r_des_round_key
	cmp	r4, #16
	bne	.L7
	add	r7, sp, #40
	add	r8, sp, #36
	mov	r1, r7
	mov	r0, r8
	bl	r_des_permute_block0
	ldr	r4, [r6]
	b	.L6
.L30:
	mov	r1, r8
	mov	r0, r7
	bl	r_des_permute_block1
	mov	r3, #0
	str	r3, [r6]
	b	.L11
.L29:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	UT32_MAX
	.word	desctx
	.size	avr_custom_des, .-avr_custom_des
	.comm	desctx,12,4
	.comm	UT32_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
