	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_des_ecb
_test_des_ecb:                          ## @test_des_ecb
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_DATA_BUF_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_key_data@GOTPCREL(%rip), %rax
	movslq	%r14d, %r14
	leaq	(,%r14,4), %rdi
	addq	(%rax), %rdi
	leaq	-84(%rbp), %r13
	movq	%r13, %rsi
	callq	_DES_set_key_unchecked
	movq	_plain_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %esi
	movl	$8, %edx
	callq	_memcpy
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_DES_ENCRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-56(%rbp), %rdi
	leaq	-52(%rbp), %rbx
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_DES_ecb_encrypt
	movq	_DES_DECRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-60(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_DES_ecb_encrypt
	movl	-52(%rbp), %edi
	movq	_cipher_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %edx
	movl	$8, %esi
	movl	$8, %ecx
	callq	_TEST_mem_eq
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_key_data@GOTPCREL(%rip), %r13
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	-56(%rbp), %edi
	movl	-60(%rbp), %edx
	movl	$8, %esi
	movl	$8, %ecx
	callq	_TEST_mem_eq
	movl	$1, %r12d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leal	1(%r14), %r12d
	movq	(%r13), %rax
	movl	(%rax,%r14,4), %edi
	movq	%rbx, %rsi
	callq	_pt
	movl	%eax, %ebx
	movl	-52(%rbp), %edi
	movq	%r15, %rsi
	callq	_pt
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_TEST_info
	xorl	%r12d, %r12d
	jmp	LBB0_4
LBB0_1:
	leal	1(%r14), %r13d
	movq	_key_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %edi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_pt
	movl	%eax, %ebx
	movl	-56(%rbp), %edi
	movq	%r15, %rsi
	callq	_pt
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_TEST_info
LBB0_4:
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DATA_BUF_SIZE,4,2              ## @DATA_BUF_SIZE
	.comm	_key_data,8,3                   ## @key_data
	.comm	_plain_data,8,3                 ## @plain_data
	.comm	_DES_ENCRYPT,4,2                ## @DES_ENCRYPT
	.comm	_DES_DECRYPT,4,2                ## @DES_DECRYPT
	.comm	_cipher_data,8,3                ## @cipher_data
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Encryption error %2d k=%s p=%s"

L_.str.1:                               ## @.str.1
	.asciz	"Decryption error %2d k=%s p=%s"

	.no_dead_strip	_test_des_ecb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_des_ecb
_test_des_ecb:                          ; @test_des_ecb
	.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
	sub	sp, sp, #32
	mov	x19, x0
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x12, _DATA_BUF_SIZE@GOTPAGE
Lloh4:
	ldr	x12, [x12, _DATA_BUF_SIZE@GOTPAGEOFF]
	ldr	w8, [x12]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	w8, [x12]
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh9:
	adrp	x23, _key_data@GOTPAGE
Lloh10:
	ldr	x23, [x23, _key_data@GOTPAGEOFF]
	ldr	x8, [x23]
	sxtw	x24, w19
	sbfiz	x25, x19, #2, #32
	add	x0, x8, x25
	sub	x1, x29, #76
	bl	_DES_set_key_unchecked
Lloh11:
	adrp	x8, _plain_data@GOTPAGE
Lloh12:
	ldr	x8, [x8, _plain_data@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	w1, [x8, x25]
	mov	w2, #8
	bl	_memcpy
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh14:
	adrp	x8, _DES_ENCRYPT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DES_ENCRYPT@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	sub	x0, x29, #80
	sub	x1, x29, #84
	sub	x2, x29, #76
	bl	_DES_ecb_encrypt
Lloh17:
	adrp	x8, _DES_DECRYPT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DES_DECRYPT@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	sub	x0, x29, #84
	sub	x1, x29, #88
	sub	x2, x29, #76
	bl	_DES_ecb_encrypt
	ldur	w0, [x29, #-84]
Lloh20:
	adrp	x8, _cipher_data@GOTPAGE
Lloh21:
	ldr	x8, [x8, _cipher_data@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldr	w2, [x8, x25]
	mov	w1, #8
	mov	w3, #8
	bl	_TEST_mem_eq
	cbz	w0, LBB0_3
; %bb.1:
	ldur	w0, [x29, #-80]
	ldur	w2, [x29, #-88]
	mov	w1, #8
	mov	w3, #8
	bl	_TEST_mem_eq
	cbz	w0, LBB0_4
; %bb.2:
	mov	w0, #1
	b	LBB0_6
LBB0_3:
	add	w19, w19, #1
	ldr	x8, [x23]
	ldr	w0, [x8, x24, lsl #2]
	mov	x1, x21
	bl	_pt
	mov	x21, x0
	ldur	w0, [x29, #-80]
	mov	x1, x20
	bl	_pt
	mov	x3, x0
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
	add	w19, w19, #1
	ldr	x8, [x23]
	ldr	w0, [x8, x24, lsl #2]
	mov	x1, x21
	bl	_pt
	mov	x21, x0
	ldur	w0, [x29, #-84]
	mov	x1, x20
	bl	_pt
	mov	x3, x0
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	mov	x1, x19
	mov	x2, x21
	bl	_TEST_info
	mov	w0, #0
LBB0_6:
	mov	sp, x22
	ldur	x8, [x29, #-72]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	sub	sp, x29, #64
	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
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_DATA_BUF_SIZE,4,2              ; @DATA_BUF_SIZE
	.comm	_key_data,8,3                   ; @key_data
	.comm	_plain_data,8,3                 ; @plain_data
	.comm	_DES_ENCRYPT,4,2                ; @DES_ENCRYPT
	.comm	_DES_DECRYPT,4,2                ; @DES_DECRYPT
	.comm	_cipher_data,8,3                ; @cipher_data
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Encryption error %2d k=%s p=%s"

l_.str.1:                               ; @.str.1
	.asciz	"Decryption error %2d k=%s p=%s"

	.no_dead_strip	_test_des_ecb
.subsections_via_symbols
