	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function permutate_in_line
_permutate_in_line:                     ## @permutate_in_line
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movl	(%r8), %r12d
	testl	%r12d, %r12d
	jle	LBB0_17
## %bb.1:
	movl	%edx, %r9d
	movl	%esi, %r11d
	movl	%esi, %esi
	imull	%edx, %ecx
	movslq	%ecx, %r14
	movslq	%r11d, %r15
	leaq	(,%r15,4), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r8d, %r8d
	xorl	%r10d, %r10d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r12d
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r10
	movslq	%r12d, %rax
	addq	-56(%rbp), %rdi                 ## 8-byte Folded Reload
	addq	%r15, %r8
	cmpq	%rax, %r10
	jge	LBB0_17
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	cmpl	$1, %r9d
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_TWINVQ_FT_LONG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	16(%rbp), %ecx
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r11d, %eax
	cltd
	idivl	%r9d
	testl	%edx, %edx
	jne	LBB0_5
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	testb	$1, %r11b
	jne	LBB0_5
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	cmpq	%rax, %r10
	jne	LBB0_13
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r13d, %r13d
	testl	%r11d, %r11d
	jle	LBB0_3
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r10, %rcx
	imulq	%r15, %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	(%r8,%rbx), %rax
	cmpq	%r14, %rax
	jge	LBB0_2
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	leal	(%rbx,%r13), %eax
	cltd
	idivl	%esi
	addl	%ecx, %edx
	movl	%edx, (%rdi,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %rsi
	jne	LBB0_15
	jmp	LBB0_2
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	16(%rbp), %ecx
	movq	%r10, %r13
	movl	$1, %eax
	cmoveq	%rax, %r13
	imulq	%r10, %r13
	testl	%r11d, %r11d
	jg	LBB0_14
	jmp	LBB0_3
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TWINVQ_FT_LONG,4,2             ## @TWINVQ_FT_LONG
	.no_dead_strip	_permutate_in_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function permutate_in_line
lCPI0_0:
	.quad	0                               ; 0x0
	.quad	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_permutate_in_line:                     ; @permutate_in_line
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	.cfi_offset w21, -24
	.cfi_offset w22, -32
	.cfi_offset w23, -40
	.cfi_offset w24, -48
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	w19, [x4]
	cmp	w19, #1
	b.lt	LBB0_18
; %bb.1:
	mov	x8, #0
	mov	x9, #0
	mov	x10, #0
	mov	w11, w1
	mul	w12, w3, w2
	sxtw	x12, w12
	sxtw	x13, w1
	sub	x14, x11, #1
	dup.2s	v0, w1
	sbfiz	x15, x1, #2, #32
	mov	w16, #8
Lloh0:
	adrp	x17, lCPI0_0@PAGE
Lloh1:
	ldr	q1, [x17, lCPI0_0@PAGEOFF]
Lloh2:
	adrp	x17, _TWINVQ_FT_LONG@GOTPAGE
Lloh3:
	ldr	x17, [x17, _TWINVQ_FT_LONG@GOTPAGEOFF]
	mov	x3, x0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w19, [x4]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #1
	add	x9, x9, x13
	sub	x8, x8, x13
	add	x3, x3, x15
	cmp	x10, w19, sxtw
	b.ge	LBB0_18
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
                                        ;     Child Loop BB0_15 Depth 2
	cmp	x9, x12
	csel	x5, x9, x12, gt
	add	x5, x5, x8
	cmp	x5, x14
	csel	x20, x5, x14, lo
	mul	x5, x10, x13
	cmp	x5, x12
	csel	x7, x5, x12, gt
	sub	x7, x7, x5
	cmp	x7, x14
	csel	x21, x7, x14, lo
	cmp	w2, #1
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w7, [x17]
	cmp	w7, w6
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sdiv	w22, w1, w2
	msub	w22, w22, w2, w1
	cbnz	w22, LBB0_9
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w1, #0, LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w22, [x4, #4]
	cmp	x10, x22
	b.ne	LBB0_17
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x7, #0
	cmp	w1, #1
	b.lt	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x19, x21, #1
	cmp	x19, #9
	b.hs	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x19, #0
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ands	x21, x19, #0x7
	csel	x21, x16, x21, eq
	sub	x19, x19, x21
	dup.2d	v2, x7
	dup.2s	v3, w5
	add	x22, x7, #2
	dup.2d	v4, x22
	add	x22, x7, #4
	dup.2d	v5, x22
	add	x22, x7, #6
	dup.2d	v6, x22
	mvn	x20, x20
	add	x20, x20, x21
	mov.16b	v7, v1
LBB0_13:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add.2d	v16, v7, v2
	add.2d	v17, v4, v7
	add.2d	v18, v5, v7
	add.2d	v19, v6, v7
	xtn.2s	v16, v16
	mov.s	w21, v0[1]
	mov.s	w22, v16[1]
	xtn.2s	v17, v17
	sdiv	w23, w22, w21
	msub	w21, w23, w21, w22
	fmov	w22, s0
	fmov	w23, s16
	sdiv	w24, w23, w22
	msub	w22, w24, w22, w23
	fmov	s16, w22
	mov.s	v16[1], w21
	mov.s	w21, v0[1]
	xtn.2s	v18, v18
	mov.s	w22, v17[1]
	sdiv	w23, w22, w21
	msub	w21, w23, w21, w22
	fmov	w22, s0
	fmov	w23, s17
	sdiv	w24, w23, w22
	msub	w22, w24, w22, w23
	fmov	s17, w22
	mov.s	v17[1], w21
	xtn.2s	v19, v19
	mov.s	w21, v0[1]
	mov.s	w22, v18[1]
	sdiv	w23, w22, w21
	msub	w21, w23, w21, w22
	fmov	w22, s0
	fmov	w23, s18
	sdiv	w24, w23, w22
	msub	w22, w24, w22, w23
	fmov	s18, w22
	mov.s	v18[1], w21
	mov.s	w21, v0[1]
	mov.s	w22, v19[1]
	sdiv	w23, w22, w21
	msub	w21, w23, w21, w22
	fmov	w22, s0
	fmov	w23, s19
	sdiv	w24, w23, w22
	msub	w22, w24, w22, w23
	fmov	s19, w22
	mov.s	v19[1], w21
	add.2s	v16, v16, v3
	add.2s	v17, v17, v3
	add.2s	v18, v18, v3
	add.2s	v19, v19, v3
	fmov	x21, d7
	add	x21, x21, x5
	add	x21, x0, x21, lsl #2
	stp	d16, d17, [x21]
	stp	d18, d19, [x21, #16]
	dup.2d	v16, x16
	add.2d	v7, v7, v16
	adds	x20, x20, #8
	b.ne	LBB0_13
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w7, w7, w19
LBB0_15:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x20, x9, x19
	cmp	x20, x12
	b.ge	LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	sdiv	w20, w7, w11
	msub	w20, w20, w11, w7
	add	w20, w20, w5
	str	w20, [x3, x19, lsl #2]
	add	x19, x19, #1
	add	w7, w7, #1
	cmp	x11, x19
	b.ne	LBB0_15
	b	LBB0_2
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w7, w6
	csinc	x7, x10, xzr, ne
	mul	x7, x7, x10
	cmp	w1, #1
	b.ge	LBB0_10
	b	LBB0_3
LBB0_18:
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TWINVQ_FT_LONG,4,2             ; @TWINVQ_FT_LONG
	.no_dead_strip	_permutate_in_line
.subsections_via_symbols
