	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function challenge
_challenge:                             ## @challenge
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	$4, %r14d
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%ecx, %eax
	movl	(%r12,%rax,4), %eax
	movl	%ebx, %ecx
	shrl	$3, %ecx
	movl	$3, %edx
	subl	%ecx, %edx
	movl	%eax, (%r12,%rdx,4)
	movl	12(%r12), %eax
	movl	24(%r12), %ecx
	leal	(%rcx,%rcx,2), %ecx
	addl	%ecx, 20(%r12)
	leal	1(%rax), %ecx
	imull	%eax, %ecx
	leal	1(%rcx), %eax
	imull	%ecx, %eax
	leal	1(%rax), %ecx
	imull	%eax, %ecx
	movl	%ecx, 12(%r12)
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
	addl	$7, %r14d
	addl	$2, %r15d
	cmpl	$228, %r14d
	je	LBB0_9
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %ecx
	shrl	$2, %ecx
	movl	%ebx, %eax
	andl	$3, %eax
	je	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	andl	$3, %ecx
	movl	(%r12,%rcx,4), %ecx
	movl	%ebx, %edx
	shrl	$3, %edx
	movl	%ecx, 12(%r12,%rdx,4)
	cmpl	$1, %eax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$3, %eax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	12(%r12), %eax
	movl	16(%r12), %ecx
	leal	(%rcx,%rax,4), %eax
	addl	20(%r12), %eax
	addl	%eax, 8(%r12)
	movl	%r15d, %eax
	andl	$2, %eax
	movl	(%r12,%rax,4), %eax
	leal	(%rax,%rax,8), %eax
	addl	%ecx, %eax
	addl	$9, %eax
	movl	%eax, 16(%r12)
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %eax
	movl	12(%r12), %ecx
	leal	(%r14,%rax,8), %eax
	movl	%eax, (%r12)
	leal	(%rcx,%rcx,2), %eax
	addl	%eax, 24(%r12)
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	24(%r12), %eax
	incl	%eax
	movl	4(%r12), %ecx
	imull	%eax, %ecx
	imull	%eax, %eax
	imull	%ecx, %eax
	movl	%eax, 4(%r12)
	movq	%r12, %rdi
	callq	_le64_to_cpup
	movzbl	28(%r12), %ecx
	andb	$15, %cl
	movl	%eax, %edi
	shll	%cl, %edi
	addl	%eax, %edi
	callq	_cpu_to_le64
	movl	%eax, (%r12)
	movq	%r12, %rdi
	callq	_le64_to_cpup
	movzbl	28(%r12), %ecx
	andb	$15, %cl
	movl	%eax, %edi
	shll	%cl, %edi
	addl	%eax, %edi
	callq	_cpu_to_le64
	movl	%eax, (%r12)
	movq	%r12, %rdi
	callq	_le64_to_cpup
	movzbl	28(%r12), %ecx
	andb	$15, %cl
	movl	%eax, %edi
	shll	%cl, %edi
	addl	%eax, %edi
	callq	_cpu_to_le64
	movl	%eax, (%r12)
	jmp	LBB0_8
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_challenge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function challenge
_challenge:                             ; @challenge
	.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, x0
	mov	w20, #0
	mov	w21, #0
	mov	w22, #4
	mov	w23, #3
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	lsr	w8, w21, #2
	ldr	w8, [x19, w8, uxtw #2]
	sub	w9, w23, w21, lsr #3
	str	w8, [x19, w9, uxtw #2]
	ldp	w9, w8, [x19, #20]
	add	w8, w8, w8, lsl #1
	add	w8, w9, w8
	str	w8, [x19, #20]
	ldr	w8, [x19, #12]
	madd	w8, w8, w8, w8
	madd	w8, w8, w8, w8
	madd	w8, w8, w8, w8
	str	w8, [x19, #12]
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w21, #1
	add	w22, w22, #7
	add	w20, w20, #2
	cmp	w22, #228
	b.eq	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ands	w8, w21, #0x3
	b.eq	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ubfx	w9, w21, #2, #2
	ldr	w9, [x19, w9, uxtw #2]
	lsr	w10, w21, #3
	add	w10, w10, #3
	str	w9, [x19, w10, uxtw #2]
	cmp	w8, #1
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #3
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	w8, w9, [x19, #16]
	ldp	w11, w10, [x19, #8]
	add	w10, w8, w10, lsl #2
	add	w9, w10, w9
	add	w9, w9, w11
	str	w9, [x19, #8]
	and	w9, w20, #0x2
	ldr	w9, [x19, w9, uxtw #2]
	add	w9, w9, w9, lsl #3
	add	w8, w8, w9
	add	w8, w8, #9
	str	w8, [x19, #16]
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19]
	add	w8, w22, w8, lsl #3
	str	w8, [x19]
	ldr	w8, [x19, #12]
	add	w8, w8, w8, lsl #1
	ldr	w9, [x19, #24]
	add	w8, w9, w8
	str	w8, [x19, #24]
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	ldr	w9, [x19, #4]
	mul	w9, w9, w8
	mul	w9, w9, w8
	mul	w8, w9, w8
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_le64_to_cpup
	ldr	w8, [x19, #28]
	and	x8, x8, #0xf
	lsl	w8, w0, w8
	add	w0, w8, w0
	bl	_cpu_to_le64
	str	w0, [x19]
	mov	x0, x19
	bl	_le64_to_cpup
	ldr	w8, [x19, #28]
	and	x8, x8, #0xf
	lsl	w8, w0, w8
	add	w0, w8, w0
	bl	_cpu_to_le64
	str	w0, [x19]
	mov	x0, x19
	bl	_le64_to_cpup
	ldr	w8, [x19, #28]
	and	x8, x8, #0xf
	lsl	w8, w0, w8
	add	w0, w8, w0
	bl	_cpu_to_le64
	str	w0, [x19]
	b	LBB0_2
LBB0_9:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_challenge
.subsections_via_symbols
