	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function optimise_sboxes
_optimise_sboxes:                       ## @optimise_sboxes
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%r14
	cmpq	$4, %r14
	je	LBB0_10
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
                                        ##     Child Loop BB0_4 Depth 2
	leaq	(%r14,%r14,2), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rsi,%rax,8), %r15
	addq	$16, %r15
	movq	%r14, %r12
	shlq	$4, %r12
	leaq	(%rdi,%r12), %r13
	addq	$8, %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15), %esi
	movl	%ebx, %edi
	callq	_extract_inputs
	movq	(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	$256, %rbx                      ## imm = 0x100
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rsi,%rax,8), %r8
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi,%r12), %r10
	leaq	(%rsi,%rax,8), %r9
	addq	$8, %r9
	xorl	%edx, %edx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%rdx
	cmpq	$64, %rdx
	je	LBB0_9
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r8,%rdx,4), %eax
	movl	$0, (%r10,%rdx,4)
	xorl	%ebx, %ebx
	testb	$1, %al
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	(%r9), %rcx
	movzbl	(%rcx), %ecx
	movl	$1, %ebx
	shll	%cl, %ebx
	movl	%ebx, (%r10,%rdx,4)
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	testb	$2, %al
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	(%r9), %rax
	movzbl	4(%rax), %eax
	btsl	%eax, %ebx
	movl	%ebx, (%r10,%rdx,4)
	jmp	LBB0_8
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_optimise_sboxes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function optimise_sboxes
_optimise_sboxes:                       ; @optimise_sboxes
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x22, #0
	mov	w23, #24
	mov	w24, #1
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	cmp	x22, #4
	b.eq	LBB0_10
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
                                        ;     Child Loop BB0_6 Depth 2
	mov	x21, #0
	madd	x8, x22, x23, x19
	add	x25, x8, #16
	add	x8, x20, x22, lsl #4
	add	x26, x8, #8
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x25]
	mov	x0, x21
	bl	_extract_inputs
	ldr	x8, [x26]
	str	w0, [x8, x21, lsl #2]
	add	x21, x21, #1
	cmp	x21, #256
	b.ne	LBB0_3
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x8, #0
	madd	x9, x22, x23, x19
	ldr	x10, [x9], #8
	lsl	x11, x22, #4
	ldr	x11, [x20, x11]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x8, x8, #4
	cmp	x8, #256
	b.eq	LBB0_1
LBB0_6:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	w12, #0
	ldr	w13, [x10, x8]
	str	wzr, [x11, x8]
	tbz	w13, #0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x12, [x9]
	ldr	w12, [x12]
	lsl	w12, w24, w12
	str	w12, [x11, x8]
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=2
	tbz	w13, #1, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x13, [x9]
	ldr	w13, [x13, #4]
	lsl	w13, w24, w13
	orr	w12, w12, w13
	str	w12, [x11, x8]
	b	LBB0_5
LBB0_10:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_optimise_sboxes
.subsections_via_symbols
