	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_tests@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	___arraycount
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.6(%rip), %rdi
	movq	%r15, %rsi
	callq	_warnx
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-100(%rbp), %edi                ## 4-byte Reload
	callq	_close
	incq	%r15
	movq	(%r12), %rdi
	callq	___arraycount
	cmpq	%rax, %r15
	jae	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%edx, %edx
	callq	_open
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	callq	_err
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	-232(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	_CRYPTO_AES_CTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -172(%rbp)
	movq	(%r12), %rax
	movq	%r15, %r14
	shlq	$5, %r14
	movl	28(%rax,%r14), %ecx
	movl	%ecx, -176(%rbp)
	leaq	(%rax,%r14), %rdi
	addq	$24, %rdi
	callq	___UNCONST
	movq	%rax, -184(%rbp)
	movq	_CIOCGSESSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movq	%r13, %rdx
	callq	_ioctl
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdx
	callq	_err
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	-168(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movl	-188(%rbp), %eax
	movl	%eax, -124(%rbp)
	movq	_COP_ENCRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -128(%rbp)
	movq	(%r12), %rax
	movq	(%rax,%r14), %rcx
	movq	%rcx, -168(%rbp)
	leaq	(%rax,%r14), %rdi
	addq	$20, %rdi
	callq	___UNCONST
	movq	%rax, -136(%rbp)
	leaq	-96(%rbp), %rax
	movq	%rax, -160(%rbp)
	movl	$36, -152(%rbp)
	movq	(%r12), %rax
	leaq	(%rax,%r14), %rdi
	addq	$16, %rdi
	callq	___UNCONST
	movq	%rax, -144(%rbp)
	movq	_CIOCCRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, -100(%rbp)                ## 4-byte Spill
	movl	%ebx, %edi
	movq	%r13, %rdx
	callq	_ioctl
	testl	%eax, %eax
	jns	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdx
	callq	_err
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-160(%rbp), %rdi
	movq	(%r12), %rax
	movq	(%rax,%r14), %rdx
	movq	8(%rax,%r14), %rsi
	callq	_memcmp
	testq	%rax, %rax
	leaq	L_.str.5(%rip), %rbx
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	(%r12), %rax
	cmpq	$0, (%rax,%r14)
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	-96(%rbp,%r13), %edx
	movq	8(%rax,%r14), %rax
	movl	(%rax,%r13,4), %ecx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_printf
	incq	%r13
	movq	(%r12), %rax
	cmpq	(%rax,%r14), %r13
	jb	LBB0_11
	jmp	LBB0_12
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	xorl	%eax, %eax
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_tests,8,3                      ## @tests
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/crypto"

	.comm	_O_RDWR,4,2                     ## @O_RDWR
L_.str.1:                               ## @.str.1
	.asciz	"open %zu"

	.comm	_CRYPTO_AES_CTR,4,2             ## @CRYPTO_AES_CTR
	.comm	_CIOCGSESSION,4,2               ## @CIOCGSESSION
L_.str.2:                               ## @.str.2
	.asciz	"CIOCGSESSION %zu"

	.comm	_COP_ENCRYPT,4,2                ## @COP_ENCRYPT
	.comm	_CIOCCRYPT,4,2                  ## @CIOCCRYPT
L_.str.3:                               ## @.str.3
	.asciz	"CIOCCRYPT %zu"

L_.str.5:                               ## @.str.5
	.asciz	"0x%2zu:  0x%2x    0x%2x\n"

L_.str.6:                               ## @.str.6
	.asciz	"verification failed %zu"

L_str:                                  ## @str
	.asciz	" Loc  Actual  Golden"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	x28, x27, [sp, #208]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #224]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #240]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #256]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x28, _tests@GOTPAGE
Lloh4:
	ldr	x28, [x28, _tests@GOTPAGEOFF]
	ldr	x0, [x28]
	bl	___arraycount
	cbz	x0, LBB0_14
; %bb.1:
	mov	x19, #0
Lloh5:
	adrp	x24, _COP_ENCRYPT@GOTPAGE
Lloh6:
	ldr	x24, [x24, _COP_ENCRYPT@GOTPAGEOFF]
	sub	x25, x29, #132
	mov	w21, #36
Lloh7:
	adrp	x20, _CIOCCRYPT@GOTPAGE
Lloh8:
	ldr	x20, [x20, _CIOCCRYPT@GOTPAGEOFF]
Lloh9:
	adrp	x26, l_.str.5@PAGE
Lloh10:
	add	x26, x26, l_.str.5@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh11:
	adrp	x0, l_.str.6@PAGE
Lloh12:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x19
	bl	_warnx
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x27
	bl	_close
	add	x19, x19, #1
	ldr	x0, [x28]
	bl	___arraycount
	cmp	x19, x0
	b.hs	LBB0_14
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
Lloh13:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #0
	bl	_open
	mov	x27, x0
	tbz	w0, #31, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_err
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #88
	mov	w1, #0
	mov	w2, #64
	bl	_memset
Lloh20:
	adrp	x8, _CRYPTO_AES_CTR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CRYPTO_AES_CTR@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [sp, #148]
	ldr	x8, [x28]
	add	x8, x8, x19, lsl #5
	ldr	w9, [x8, #28]
	str	w9, [sp, #144]
	add	x0, x8, #24
	bl	___UNCONST
	str	x0, [sp, #136]
Lloh23:
	adrp	x8, _CIOCGSESSION@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CIOCGSESSION@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	add	x2, sp, #88
	mov	x0, x27
	bl	_ioctl
	tbz	w0, #31, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_err
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	ldr	w8, [sp, #132]
	ldr	w9, [x24]
	stp	w9, w8, [sp, #64]
	ldr	x8, [x28]
	lsl	x22, x19, #5
	add	x0, x8, x22
	ldr	x8, [x0], #20
	str	x8, [sp, #24]
	bl	___UNCONST
	str	x0, [sp, #56]
	str	x25, [sp, #32]
	str	w21, [sp, #40]
	ldr	x8, [x28]
	add	x8, x8, x22
	add	x0, x8, #16
	bl	___UNCONST
	str	x0, [sp, #48]
	ldr	w1, [x20]
	add	x2, sp, #24
	mov	x0, x27
	bl	_ioctl
	tbz	w0, #31, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x19
	bl	_err
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #32]
	ldr	x8, [x28]
	add	x8, x8, x19, lsl #5
	ldp	x2, x1, [x8]
	bl	_memcmp
	cbz	x0, LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh30:
	adrp	x0, l_str@PAGE
Lloh31:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	x8, [x28]
	ldr	x9, [x8, x22]
	cbz	x9, LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, #0
LBB0_13:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w9, [x25, x23]
	add	x8, x8, x22
	ldr	x8, [x8, #8]
	ldr	w8, [x8, x23, lsl #2]
	stp	x9, x8, [sp, #8]
	str	x23, [sp]
	mov	x0, x26
	bl	_printf
	add	x23, x23, #1
	ldr	x8, [x28]
	ldr	x9, [x8, x22]
	cmp	x23, x9
	b.lo	LBB0_13
	b	LBB0_2
LBB0_14:
	ldur	x8, [x29, #-96]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	w0, #0
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #256]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #240]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #224]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #208]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_tests,8,3                      ; @tests
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/crypto"

	.comm	_O_RDWR,4,2                     ; @O_RDWR
l_.str.1:                               ; @.str.1
	.asciz	"open %zu"

	.comm	_CRYPTO_AES_CTR,4,2             ; @CRYPTO_AES_CTR
	.comm	_CIOCGSESSION,4,2               ; @CIOCGSESSION
l_.str.2:                               ; @.str.2
	.asciz	"CIOCGSESSION %zu"

	.comm	_COP_ENCRYPT,4,2                ; @COP_ENCRYPT
	.comm	_CIOCCRYPT,4,2                  ; @CIOCCRYPT
l_.str.3:                               ; @.str.3
	.asciz	"CIOCCRYPT %zu"

l_.str.5:                               ; @.str.5
	.asciz	"0x%2zu:  0x%2x    0x%2x\n"

l_.str.6:                               ; @.str.6
	.asciz	"verification failed %zu"

l_str:                                  ; @str
	.asciz	" Loc  Actual  Golden"

.subsections_via_symbols
