	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avr_custom_des
_avr_custom_des:                        ## @avr_custom_des
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movq	%rdi, %r12
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	cmpl	$0, (%rax)
	je	LBB0_12
## %bb.3:
	leaq	-52(%rbp), %rsi
	movq	%r12, %rdi
	callq	___esil_pop_argument
	testl	%eax, %eax
	je	LBB0_12
## %bb.4:
	leaq	L_.str(%rip), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_r_anal_esil_reg_read
	leaq	L_.str.1(%rip), %rsi
	leaq	-60(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_r_anal_esil_reg_read
	leaq	L_.str.2(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_r_anal_esil_reg_read
	movq	_UT32_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	-60(%rbp), %ecx
	andl	%eax, %ecx
	movl	%ecx, -48(%rbp)
	andl	-44(%rbp), %eax
	movl	%eax, -36(%rbp)
	movl	-52(%rbp), %eax
	movq	_desctx@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, (%rbx)
LBB0_6:
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	leaq	-48(%rbp), %r14
	leaq	-64(%rbp), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_r_des_permute_key
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rsi
	xorl	%edi, %edi
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_r_des_round_key
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rsi
	addq	$4, %rsi
	addq	$4, %rdx
	movl	$1, %edi
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_r_des_round_key
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rsi
	addq	$8, %rsi
	addq	$8, %rdx
	movl	$2, %edi
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_r_des_round_key
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rsi
	addq	$12, %rsi
	addq	$12, %rdx
	movl	$3, %edi
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_r_des_round_key
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rsi
	addq	$16, %rsi
	addq	$16, %rdx
	movl	$4, %edi
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_r_des_round_key
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rsi
	addq	$20, %rsi
	addq	$20, %rdx
	movl	$5, %edi
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_r_des_round_key
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rsi
	addq	$24, %rsi
	addq	$24, %rdx
	movl	$6, %edi
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_r_des_round_key
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rsi
	addq	$28, %rsi
	addq	$28, %rdx
	movl	$7, %edi
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_r_des_round_key
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rsi
	addq	$32, %rsi
	addq	$32, %rdx
	movl	$8, %edi
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_r_des_round_key
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rsi
	addq	$36, %rsi
	addq	$36, %rdx
	movl	$9, %edi
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_r_des_round_key
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rsi
	addq	$40, %rsi
	addq	$40, %rdx
	movl	$10, %edi
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_r_des_round_key
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rsi
	addq	$44, %rsi
	addq	$44, %rdx
	movl	$11, %edi
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_r_des_round_key
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rsi
	addq	$48, %rsi
	addq	$48, %rdx
	movl	$12, %edi
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_r_des_round_key
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rsi
	addq	$52, %rsi
	addq	$52, %rdx
	movl	$13, %edi
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_r_des_round_key
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rsi
	addq	$56, %rsi
	addq	$56, %rdx
	movl	$14, %edi
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_r_des_round_key
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rsi
	addq	$60, %rsi
	addq	$60, %rdx
	movl	$15, %edi
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_r_des_round_key
	leaq	-36(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	callq	_r_des_permute_block0
LBB0_8:
	movl	(%rbx), %eax
	movl	$15, %ecx
	subl	%eax, %ecx
	cmpl	$0, -56(%rbp)
	cmovnel	%eax, %ecx
	movslq	%ecx, %rcx
	shlq	$2, %rcx
	movq	16(%rbx), %rdx
	addq	%rcx, %rdx
	addq	8(%rbx), %rcx
	leaq	-36(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	callq	_r_des_round
	movl	(%rbx), %eax
	cmpl	$15, %eax
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rdi
	leaq	-36(%rbp), %rsi
	callq	_r_des_permute_block1
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_10:
	incl	%eax
LBB0_11:
	movl	%eax, (%rbx)
	movl	-44(%rbp), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_r_anal_esil_reg_write
	movl	$1, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hf"

L_.str.1:                               ## @.str.1
	.asciz	"deskey"

L_.str.2:                               ## @.str.2
	.asciz	"text"

	.comm	_UT32_MAX,4,2                   ## @UT32_MAX
	.comm	_desctx,24,3                    ## @desctx
	.no_dead_strip	_avr_custom_des
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avr_custom_des
_avr_custom_des:                        ; @avr_custom_des
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_13
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_10
; %bb.2:
	ldr	w8, [x8]
	cbz	w8, LBB0_10
; %bb.3:
	add	x1, sp, #16
	mov	x0, x19
	bl	___esil_pop_argument
	cbz	w0, LBB0_13
; %bb.4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #24
	mov	x0, x19
	mov	x3, #0
	bl	_r_anal_esil_reg_read
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	sub	x2, x29, #20
	mov	x0, x19
	mov	x3, #0
	bl	_r_anal_esil_reg_read
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #20
	mov	x0, x19
	mov	x3, #0
	bl	_r_anal_esil_reg_read
Lloh6:
	adrp	x8, _UT32_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UT32_MAX@GOTPAGEOFF]
	ldur	w9, [x29, #-20]
Lloh8:
	ldr	w8, [x8]
	and	w9, w8, w9
	str	w9, [sp, #12]
	ldr	w9, [sp, #20]
	and	w8, w9, w8
	str	w8, [sp, #4]
	ldr	w8, [sp, #16]
Lloh9:
	adrp	x20, _desctx@GOTPAGE
Lloh10:
	ldr	x20, [x20, _desctx@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	w8, w9
	b.eq	LBB0_6
; %bb.5:
	str	w8, [x20]
LBB0_6:
	cbnz	w8, LBB0_8
; %bb.7:
	add	x0, sp, #12
	add	x1, sp, #8
	bl	_r_des_permute_key
	ldp	x2, x1, [x20, #8]
	add	x3, sp, #12
	add	x4, sp, #8
	mov	w0, #0
	bl	_r_des_round_key
	ldp	x9, x8, [x20, #8]
	add	x1, x8, #4
	add	x2, x9, #4
	add	x3, sp, #12
	add	x4, sp, #8
	mov	w0, #1
	bl	_r_des_round_key
	ldp	x9, x8, [x20, #8]
	add	x1, x8, #8
	add	x2, x9, #8
	add	x3, sp, #12
	add	x4, sp, #8
	mov	w0, #2
	bl	_r_des_round_key
	ldp	x9, x8, [x20, #8]
	add	x1, x8, #12
	add	x2, x9, #12
	add	x3, sp, #12
	add	x4, sp, #8
	mov	w0, #3
	bl	_r_des_round_key
	ldp	x9, x8, [x20, #8]
	add	x1, x8, #16
	add	x2, x9, #16
	add	x3, sp, #12
	add	x4, sp, #8
	mov	w0, #4
	bl	_r_des_round_key
	ldp	x9, x8, [x20, #8]
	add	x1, x8, #20
	add	x2, x9, #20
	add	x3, sp, #12
	add	x4, sp, #8
	mov	w0, #5
	bl	_r_des_round_key
	ldp	x9, x8, [x20, #8]
	add	x1, x8, #24
	add	x2, x9, #24
	add	x3, sp, #12
	add	x4, sp, #8
	mov	w0, #6
	bl	_r_des_round_key
	ldp	x9, x8, [x20, #8]
	add	x1, x8, #28
	add	x2, x9, #28
	add	x3, sp, #12
	add	x4, sp, #8
	mov	w0, #7
	bl	_r_des_round_key
	ldp	x9, x8, [x20, #8]
	add	x1, x8, #32
	add	x2, x9, #32
	add	x3, sp, #12
	add	x4, sp, #8
	mov	w0, #8
	bl	_r_des_round_key
	ldp	x9, x8, [x20, #8]
	add	x1, x8, #36
	add	x2, x9, #36
	add	x3, sp, #12
	add	x4, sp, #8
	mov	w0, #9
	bl	_r_des_round_key
	ldp	x9, x8, [x20, #8]
	add	x1, x8, #40
	add	x2, x9, #40
	add	x3, sp, #12
	add	x4, sp, #8
	mov	w0, #10
	bl	_r_des_round_key
	ldp	x9, x8, [x20, #8]
	add	x1, x8, #44
	add	x2, x9, #44
	add	x3, sp, #12
	add	x4, sp, #8
	mov	w0, #11
	bl	_r_des_round_key
	ldp	x9, x8, [x20, #8]
	add	x1, x8, #48
	add	x2, x9, #48
	add	x3, sp, #12
	add	x4, sp, #8
	mov	w0, #12
	bl	_r_des_round_key
	ldp	x9, x8, [x20, #8]
	add	x1, x8, #52
	add	x2, x9, #52
	add	x3, sp, #12
	add	x4, sp, #8
	mov	w0, #13
	bl	_r_des_round_key
	ldp	x9, x8, [x20, #8]
	add	x1, x8, #56
	add	x2, x9, #56
	add	x3, sp, #12
	add	x4, sp, #8
	mov	w0, #14
	bl	_r_des_round_key
	ldp	x9, x8, [x20, #8]
	add	x1, x8, #60
	add	x2, x9, #60
	add	x3, sp, #12
	add	x4, sp, #8
	mov	w0, #15
	bl	_r_des_round_key
	add	x0, sp, #4
	mov	x1, sp
	bl	_r_des_permute_block0
LBB0_8:
	ldr	w8, [sp, #24]
	ldr	w9, [x20]
	mov	w10, #15
	sub	w10, w10, w9
	cmp	w8, #0
	csel	w8, w10, w9, eq
	sbfiz	x8, x8, #2, #32
	ldp	x10, x9, [x20, #8]
	add	x2, x9, x8
	add	x3, x10, x8
	add	x0, sp, #4
	mov	x1, sp
	bl	_r_des_round
	ldr	w8, [x20]
	cmp	w8, #15
	b.ne	LBB0_11
; %bb.9:
	mov	x0, sp
	add	x1, sp, #4
	bl	_r_des_permute_block1
	mov	w8, #0
	b	LBB0_12
LBB0_10:
	mov	w0, #0
	b	LBB0_13
LBB0_11:
	add	w8, w8, #1
LBB0_12:
	str	w8, [x20]
	ldr	w2, [sp, #20]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_r_anal_esil_reg_write
	mov	w0, #1
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hf"

l_.str.1:                               ; @.str.1
	.asciz	"deskey"

l_.str.2:                               ; @.str.2
	.asciz	"text"

	.comm	_UT32_MAX,4,2                   ; @UT32_MAX
	.comm	_desctx,24,3                    ; @desctx
	.no_dead_strip	_avr_custom_des
.subsections_via_symbols
