	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ata_ident_fixstring
_ata_ident_fixstring:                   ## @ata_ident_fixstring
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	testl	%esi, %esi
	jle	LBB0_12
## %bb.1:
	leal	-1(%rsi), %r9d
	cmpl	$7, %r9d
	jb	LBB0_10
## %bb.2:
	incq	%r9
	movq	%r9, %r8
	andq	$-8, %r8
	leaq	-8(%r8), %rcx
	movq	%rcx, %rax
	shrq	$3, %rax
	incq	%rax
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:
	movq	%rax, %rcx
	andq	$-2, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rdx,4), %xmm0
	movdqu	16(%rdi,%rdx,4), %xmm1
	movdqu	32(%rdi,%rdx,4), %xmm2
	movdqu	48(%rdi,%rdx,4), %xmm3
	movdqa	%xmm0, %xmm4
	psrad	$8, %xmm4
	movdqa	%xmm1, %xmm5
	psrad	$8, %xmm5
	pslld	$8, %xmm0
	por	%xmm4, %xmm0
	pslld	$8, %xmm1
	por	%xmm5, %xmm1
	movdqu	%xmm0, (%rdi,%rdx,4)
	movdqu	%xmm1, 16(%rdi,%rdx,4)
	movdqa	%xmm2, %xmm0
	psrad	$8, %xmm0
	movdqa	%xmm3, %xmm1
	psrad	$8, %xmm1
	pslld	$8, %xmm2
	por	%xmm0, %xmm2
	pslld	$8, %xmm3
	por	%xmm1, %xmm3
	movdqu	%xmm2, 32(%rdi,%rdx,4)
	movdqu	%xmm3, 48(%rdi,%rdx,4)
	addq	$16, %rdx
	addq	$-2, %rcx
	jne	LBB0_5
## %bb.6:
	testb	$1, %al
	je	LBB0_8
LBB0_7:
	movdqu	(%rdi,%rdx,4), %xmm0
	movdqu	16(%rdi,%rdx,4), %xmm1
	movdqa	%xmm0, %xmm2
	psrad	$8, %xmm2
	movdqa	%xmm1, %xmm3
	psrad	$8, %xmm3
	pslld	$8, %xmm0
	por	%xmm2, %xmm0
	pslld	$8, %xmm1
	por	%xmm3, %xmm1
	movdqu	%xmm0, (%rdi,%rdx,4)
	movdqu	%xmm1, 16(%rdi,%rdx,4)
LBB0_8:
	cmpq	%r8, %r9
	je	LBB0_12
## %bb.9:
	leaq	(%rdi,%r8,4), %rdi
	subl	%r8d, %esi
LBB0_10:
	incl	%esi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdi), %eax
	movl	%eax, %ecx
	sarl	$8, %ecx
	shll	$8, %eax
	orl	%ecx, %eax
	movl	%eax, (%rdi)
	addq	$4, %rdi
	decl	%esi
	cmpl	$1, %esi
	ja	LBB0_11
LBB0_12:
	popq	%rbp
	retq
LBB0_3:
	xorl	%edx, %edx
	testb	$1, %al
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ata_ident_fixstring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ata_ident_fixstring
_ata_ident_fixstring:                   ; @ata_ident_fixstring
	.cfi_startproc
; %bb.0:
	subs	w8, w1, #1
	b.lt	LBB0_8
; %bb.1:
	cmp	w8, #15
	b.hs	LBB0_3
; %bb.2:
	mov	x8, x0
	b	LBB0_6
LBB0_3:
	add	x9, x8, #1
	and	x10, x9, #0x1fffffff0
	add	x8, x0, x10, lsl #2
	sub	w1, w1, w10
	add	x11, x0, #32
	mov	x12, x10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x11, #-32]
	ldp	q2, q3, [x11]
	sshr.4s	v4, v0, #8
	sshr.4s	v5, v1, #8
	sshr.4s	v6, v2, #8
	sshr.4s	v7, v3, #8
	shl.4s	v0, v0, #8
	shl.4s	v1, v1, #8
	shl.4s	v2, v2, #8
	shl.4s	v3, v3, #8
	orr.16b	v0, v4, v0
	orr.16b	v1, v5, v1
	orr.16b	v2, v6, v2
	stp	q0, q1, [x11, #-32]
	orr.16b	v0, v7, v3
	stp	q2, q0, [x11], #64
	subs	x12, x12, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x9, x10
	b.eq	LBB0_8
LBB0_6:
	add	w9, w1, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8]
	asr	w11, w10, #8
	orr	w10, w11, w10, lsl #8
	str	w10, [x8], #4
	sub	w9, w9, #1
	cmp	w9, #1
	b.hi	LBB0_7
LBB0_8:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ata_ident_fixstring
.subsections_via_symbols
