	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sbox
_sbox:                                  ## @sbox
	.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
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	$0, (%rdi)
	movq	$-48, %r14
	xorl	%esi, %esi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	leal	48(%r14), %esi
	movq	%r15, %rdi
	callq	_GETBIT
	movl	%eax, %r12d
	leal	49(%r14), %esi
	movq	%r15, %rdi
	callq	_GETBIT
	movl	%eax, %ebx
	shll	$2, %r12d
	addl	%eax, %ebx
	orl	%r12d, %ebx
	leal	50(%r14), %esi
	movq	%r15, %rdi
	callq	_GETBIT
	movl	%eax, %r12d
	orl	%ebx, %r12d
	leal	51(%r14), %esi
	movq	%r15, %rdi
	callq	_GETBIT
	movl	%eax, %r13d
	shll	$2, %r12d
	addl	%eax, %r13d
	leal	52(%r14), %esi
	movq	%r15, %rdi
	callq	_GETBIT
	movl	%eax, %ebx
	orl	%r13d, %ebx
	orl	%r12d, %ebx
	addl	%ebx, %ebx
	leal	53(%r14), %esi
	movq	%r15, %rdi
	callq	_GETBIT
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	orl	%ebx, %eax
	movq	_SBox@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rsi,8), %rcx
	cltq
	movl	(%rcx,%rax,4), %eax
	movl	%esi, %ecx
	shrl	%ecx
	movl	%eax, %edx
	shlb	$4, %dl
	testb	$1, %sil
	movzbl	%dl, %edx
	cmovnel	%eax, %edx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	orb	%dl, (%rax,%rcx)
	incq	%rsi
	addq	$6, %r14
	jne	LBB0_1
## %bb.2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SBox,8,3                       ## @SBox
	.no_dead_strip	_sbox
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sbox
_sbox:                                  ; @sbox
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	mov	x22, #0
	str	wzr, [x0]
	mov	x23, #-48
Lloh0:
	adrp	x24, _SBox@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SBox@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	w1, w23, #48
	mov	x0, x19
	bl	_GETBIT
	mov	x21, x0
	add	w1, w23, #49
	mov	x0, x19
	bl	_GETBIT
	lsl	w8, w21, #2
	orr	w21, w8, w0, lsl #1
	add	w1, w23, #50
	mov	x0, x19
	bl	_GETBIT
	orr	w21, w0, w21
	add	w1, w23, #51
	mov	x0, x19
	bl	_GETBIT
	lsl	w8, w21, #2
	orr	w21, w8, w0, lsl #1
	add	w1, w23, #52
	mov	x0, x19
	bl	_GETBIT
	orr	w21, w0, w21
	add	w1, w23, #53
	mov	x0, x19
	bl	_GETBIT
	orr	w8, w0, w21, lsl #1
	ldr	x9, [x24]
	ldr	x9, [x9, x22, lsl #3]
	ldr	w8, [x9, w8, sxtw #2]
	ubfx	x9, x22, #1, #31
	ldrb	w10, [x20, x9]
	lsl	w11, w8, #4
	tst	x22, #0x1
	csel	w8, w11, w8, eq
	orr	w8, w10, w8
	strb	w8, [x20, x9]
	add	x22, x22, #1
	adds	x23, x23, #6
	b.ne	LBB0_1
; %bb.2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SBox,8,3                       ; @SBox
	.no_dead_strip	_sbox
.subsections_via_symbols
