	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_apply_perm_rev                 ## -- Begin function apply_perm_rev
	.p2align	4, 0x90
_apply_perm_rev:                        ## @apply_perm_rev
	.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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_dbg
	testl	%r14d, %r14d
	jle	LBB0_6
## %bb.1:
	movl	%r14d, %eax
	testb	$1, %al
	je	LBB0_3
## %bb.2:
	decq	%rax
	movl	%eax, %ecx
	movslq	(%r15,%rcx,4), %rdi
	movb	(%r12,%rcx), %sil
	movb	(%r12,%rdi), %dl
	movb	%dl, (%r12,%rcx)
	movb	%sil, (%r12,%rdi)
LBB0_3:
	cmpl	$1, %r14d
	je	LBB0_6
## %bb.4:
	addq	$-2, %rax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%rax), %rdi
	movl	%edi, %edx
	movslq	(%r15,%rdx,4), %rsi
	movzbl	(%r12,%rdx), %r8d
	movzbl	(%r12,%rsi), %ecx
	movb	%cl, (%r12,%rdx)
	movb	%r8b, (%r12,%rsi)
	movl	%eax, %ecx
	movslq	(%r15,%rcx,4), %rdx
	movzbl	(%r12,%rcx), %esi
	movzbl	(%r12,%rdx), %ebx
	movb	%bl, (%r12,%rcx)
	movb	%sil, (%r12,%rdx)
	addq	$-2, %rax
	cmpq	$1, %rdi
	ja	LBB0_5
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dbg                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"In apply_perm_rev s = %p, perm = %p, n = %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"After apply_perm_rev s = %p, perm = %p, n = %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_apply_perm_rev                 ; -- Begin function apply_perm_rev
	.p2align	2
_apply_perm_rev:                        ; @apply_perm_rev
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_dbg
	cmp	w19, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w8, w19
	add	x8, x8, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w9, w8, #2
	ldrsw	x10, [x20, w9, uxtw #2]
	ldrb	w11, [x21, x9]
	ldrb	w12, [x21, x10]
	strb	w12, [x21, x9]
	strb	w11, [x21, x10]
	sub	x8, x8, #1
	cmp	x8, #1
	b.hi	LBB0_2
LBB0_3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dbg
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"In apply_perm_rev s = %p, perm = %p, n = %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"After apply_perm_rev s = %p, perm = %p, n = %d\n"

.subsections_via_symbols
