	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function monte_carlo_AES_encrypt
_monte_carlo_AES_encrypt:               ## @monte_carlo_AES_encrypt
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-80(%rbp), %rdi
	callq	_hextobin
	movq	%rax, %r13
	leaq	-128(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_hextobin
	leaq	-96(%rbp), %rdi
	movq	%r14, %rsi
	movq	%r13, %r14
	movq	%r12, %r13
	callq	_hextobin
	xorl	%eax, %eax
	leaq	-144(%rbp), %r12
	leaq	-112(%rbp), %r15
	movq	%r14, -152(%rbp)                ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movb	-128(%rbp), %al
	xorb	%al, -80(%rbp)
	movb	-127(%rbp), %al
	xorb	%al, -79(%rbp)
	movb	-126(%rbp), %al
	xorb	%al, -78(%rbp)
	movb	-125(%rbp), %al
	xorb	%al, -77(%rbp)
	movb	-124(%rbp), %al
	xorb	%al, -76(%rbp)
	movb	-123(%rbp), %al
	xorb	%al, -75(%rbp)
	movb	-122(%rbp), %al
	xorb	%al, -74(%rbp)
	movb	-121(%rbp), %al
	xorb	%al, -73(%rbp)
	movb	-120(%rbp), %al
	xorb	%al, -72(%rbp)
	leaq	-71(%rbp), %r10
	leaq	-70(%rbp), %rcx
	leaq	-69(%rbp), %rdx
	leaq	-68(%rbp), %rsi
	leaq	-67(%rbp), %rdi
	leaq	-66(%rbp), %r8
	leaq	-65(%rbp), %r9
	movq	%r15, %r13
	movq	%r11, %r15
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movb	-119(%rbp), %al
	xorb	%al, (%r10)
	movb	-118(%rbp), %al
	xorb	%al, (%rcx)
	movb	-117(%rbp), %al
	xorb	%al, (%rdx)
	movb	-116(%rbp), %al
	xorb	%al, (%rsi)
	movb	-115(%rbp), %al
	xorb	%al, (%rdi)
	movb	-114(%rbp), %al
	xorb	%al, (%r8)
	movb	-113(%rbp), %al
	xorb	%al, (%r9)
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$46, %edi
	callq	_putchar
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movl	-132(%rbp), %eax                ## 4-byte Reload
	incl	%eax
	cmpl	$100, %eax
	je	LBB0_10
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movl	%eax, -132(%rbp)                ## 4-byte Spill
	movq	%r12, %rdi
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdx
	callq	*8(%r13)
	movl	$1000, %r14d                    ## imm = 0x3E8
	movq	%r15, %r12
	movq	%r13, %r15
	leaq	-176(%rbp), %r13
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	leaq	-144(%rbp), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movl	$16, %ecx
	callq	*(%r15)
	decl	%r14d
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %r11
	leaq	-144(%rbp), %r12
	movq	-152(%rbp), %r14                ## 8-byte Reload
	cmpq	$16, %r14
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$24, %r14
	movq	%r15, %r13
	movq	%r11, %r15
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movsd	-168(%rbp), %xmm0               ## xmm0 = mem[0],zero
	movsd	-128(%rbp), %xmm1               ## xmm1 = mem[0],zero
	movlhps	%xmm1, %xmm0                    ## xmm0 = xmm0[0],xmm1[0]
	xorps	-80(%rbp), %xmm0
	movaps	%xmm0, -80(%rbp)
	movb	-120(%rbp), %al
	xorb	%al, -64(%rbp)
	leaq	-63(%rbp), %r10
	leaq	-62(%rbp), %rcx
	leaq	-61(%rbp), %rdx
	leaq	-60(%rbp), %rsi
	leaq	-59(%rbp), %rdi
	leaq	-58(%rbp), %r8
	leaq	-57(%rbp), %r9
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movaps	-80(%rbp), %xmm0
	movaps	-64(%rbp), %xmm1
	xorps	-176(%rbp), %xmm0
	movaps	%xmm0, -80(%rbp)
	xorps	-128(%rbp), %xmm1
	movaps	%xmm1, -64(%rbp)
	jmp	LBB0_9
LBB0_10:
	movl	$32, %edi
	callq	_putchar
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	leaq	L_.str.2(%rip), %rdi
	leaq	-128(%rbp), %rsi
	leaq	-96(%rbp), %rdx
	movl	$16, %ecx
	callq	_check_equals
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_stdout,4,2                     ## @stdout
	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"MC AES encrypt"

	.no_dead_strip	_monte_carlo_AES_encrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function monte_carlo_AES_encrypt
_monte_carlo_AES_encrypt:               ; @monte_carlo_AES_encrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #352
	.cfi_def_cfa_offset 352
	stp	x28, x27, [sp, #256]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #272]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #288]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #304]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #320]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #336]            ; 16-byte Folded Spill
	add	x29, sp, #336
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	sub	x23, x29, #128
	sub	x0, x29, #128
	bl	_hextobin
	mov	x20, x0
	add	x0, sp, #160
	mov	x1, x22
	bl	_hextobin
	sub	x0, x29, #144
	mov	x1, x21
	bl	_hextobin
	mov	w21, #0
	orr	x9, x23, #0x1
	orr	x8, x23, #0x2
	stp	x8, x9, [sp, #112]              ; 16-byte Folded Spill
	orr	x9, x23, #0x3
	orr	x8, x23, #0x4
	stp	x8, x9, [sp, #96]               ; 16-byte Folded Spill
	mov	w8, #5
	orr	x8, x23, x8
	str	x8, [sp, #88]                   ; 8-byte Folded Spill
	orr	x9, x23, #0x6
	orr	x8, x23, #0x7
	stp	x8, x9, [sp, #72]               ; 16-byte Folded Spill
	orr	x9, x23, #0x8
	mov	w8, #9
	orr	x8, x23, x8
	str	x8, [sp, #128]                  ; 8-byte Folded Spill
	mov	w8, #10
	orr	x24, x23, x8
	mov	w8, #11
	orr	x25, x23, x8
	orr	x26, x23, #0xc
	mov	w8, #13
	orr	x27, x23, x8
	orr	x28, x23, #0xe
	orr	x22, x23, #0xf
	add	x8, x23, #16
	stp	x8, x9, [sp, #56]               ; 16-byte Folded Spill
	add	x9, x23, #17
	add	x8, x23, #18
	stp	x8, x9, [sp, #40]               ; 16-byte Folded Spill
	add	x9, x23, #19
	add	x8, x23, #20
	stp	x8, x9, [sp, #24]               ; 16-byte Folded Spill
	add	x9, x23, #21
	add	x8, x23, #22
	stp	x8, x9, [sp, #8]                ; 16-byte Folded Spill
	add	x8, x23, #23
	str	x8, [sp]                        ; 8-byte Folded Spill
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [sp, #160]
	ldurb	w9, [x29, #-128]
	eor	w8, w9, w8
	ldp	x3, x4, [sp, #112]              ; 16-byte Folded Reload
	ldp	x1, x2, [sp, #96]               ; 16-byte Folded Reload
	ldp	x17, x0, [sp, #80]              ; 16-byte Folded Reload
	sturb	w8, [x29, #-128]
	ldp	x15, x16, [sp, #64]             ; 16-byte Folded Reload
	ldr	x14, [sp, #128]                 ; 8-byte Folded Reload
	mov	x13, x24
	mov	x12, x25
	mov	x11, x26
	mov	x10, x27
	mov	x9, x28
	mov	x8, x22
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w5, [sp, #161]
	ldrb	w6, [x4]
	eor	w5, w6, w5
	strb	w5, [x4]
	ldrb	w4, [sp, #162]
	ldrb	w5, [x3]
	eor	w4, w5, w4
	strb	w4, [x3]
	ldrb	w3, [sp, #163]
	ldrb	w4, [x2]
	eor	w3, w4, w3
	strb	w3, [x2]
	ldrb	w2, [sp, #164]
	ldrb	w3, [x1]
	eor	w2, w3, w2
	strb	w2, [x1]
	ldrb	w1, [sp, #165]
	ldrb	w2, [x0]
	eor	w1, w2, w1
	strb	w1, [x0]
	ldrb	w0, [sp, #166]
	ldrb	w1, [x17]
	eor	w0, w1, w0
	strb	w0, [x17]
	ldrb	w17, [sp, #167]
	ldrb	w0, [x16]
	eor	w17, w0, w17
	strb	w17, [x16]
	ldrb	w16, [sp, #168]
	ldrb	w17, [x15]
	eor	w16, w17, w16
	strb	w16, [x15]
	ldrb	w15, [sp, #169]
	ldrb	w16, [x14]
	eor	w15, w16, w15
	strb	w15, [x14]
	ldrb	w14, [sp, #170]
	ldrb	w15, [x13]
	eor	w14, w15, w14
	strb	w14, [x13]
	ldrb	w13, [sp, #171]
	ldrb	w14, [x12]
	eor	w13, w14, w13
	strb	w13, [x12]
	ldrb	w12, [sp, #172]
	ldrb	w13, [x11]
	eor	w12, w13, w12
	strb	w12, [x11]
	ldrb	w11, [sp, #173]
	ldrb	w12, [x10]
	eor	w11, w12, w11
	strb	w11, [x10]
	ldrb	w10, [sp, #174]
	ldrb	w11, [x9]
	eor	w10, w11, w10
	strb	w10, [x9]
	ldrb	w9, [sp, #175]
	ldrb	w10, [x8]
	eor	w9, w10, w9
	strb	w9, [x8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #46
	bl	_putchar
Lloh3:
	adrp	x8, _stdout@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_fflush
	add	w21, w21, #1
	cmp	w21, #100
	b.eq	LBB0_10
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x8, [x19, #8]
	add	x0, sp, #136
	sub	x1, x29, #128
	mov	x2, x20
	blr	x8
	mov	w23, #1000
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #144
	add	x1, sp, #160
	mov	w2, #16
	bl	_memcpy
	sub	x0, x29, #160
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x8, [x19]
	add	x0, sp, #136
	sub	x1, x29, #160
	add	x2, sp, #160
	mov	w3, #16
	blr	x8
	subs	w23, w23, #1
	b.ne	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x20, #16
	b.eq	LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x20, #24
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	d0, [sp, #152]
	ldrb	w8, [sp, #160]
	ldurb	w9, [x29, #-120]
	eor	w8, w9, w8
	ldr	x4, [sp, #128]                  ; 8-byte Folded Reload
	mov	x3, x24
	mov	x2, x25
	ldur	d1, [x29, #-128]
	mov	x1, x26
	mov	x0, x27
	mov	x17, x28
	mov	x16, x22
	eor.8b	v0, v1, v0
	ldp	x14, x15, [sp, #48]             ; 16-byte Folded Reload
	ldp	x12, x13, [sp, #32]             ; 16-byte Folded Reload
	stur	d0, [x29, #-128]
	sturb	w8, [x29, #-120]
	ldp	x10, x11, [sp, #16]             ; 16-byte Folded Reload
	ldp	x8, x9, [sp]                    ; 16-byte Folded Reload
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	q0, [sp, #144]
	ldp	q1, q2, [x29, #-128]
	eor.16b	v0, v1, v0
	ldr	q1, [sp, #160]
	eor.16b	v1, v2, v1
	stp	q0, q1, [x29, #-128]
	b	LBB0_3
LBB0_10:
	mov	w0, #32
	bl	_putchar
Lloh6:
	adrp	x8, _stdout@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_fflush
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x1, sp, #160
	sub	x2, x29, #144
	mov	w3, #16
	bl	_check_equals
	ldur	x8, [x29, #-96]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #336]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #320]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #304]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #288]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #272]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #256]            ; 16-byte Folded Reload
	add	sp, sp, #352
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_stdout,4,2                     ; @stdout
	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"MC AES encrypt"

	.no_dead_strip	_monte_carlo_AES_encrypt
.subsections_via_symbols
