	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFSwabArrayOfShort           ## -- Begin function TIFFSwabArrayOfShort
	.p2align	4, 0x90
_TIFFSwabArrayOfShort:                  ## @TIFFSwabArrayOfShort
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%edi, %edi
	callq	_assert
	testl	%r14d, %r14d
	jle	LBB0_8
## %bb.1:
	leal	-1(%r14), %eax
	testb	$3, %r14b
	je	LBB0_5
## %bb.2:
	movl	%r14d, %edx
	andl	$3, %edx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	rolw	$8, (%rbx)
	addq	$4, %rbx
	incq	%rcx
	cmpl	%ecx, %edx
	jne	LBB0_3
## %bb.4:
	subl	%ecx, %r14d
LBB0_5:
	cmpl	$3, %eax
	jb	LBB0_8
## %bb.6:
	addq	$13, %rbx
	decl	%r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	rolw	$8, -13(%rbx)
	rolw	$8, -9(%rbx)
	rolw	$8, -5(%rbx)
	rolw	$8, -1(%rbx)
	addq	$16, %rbx
	addl	$-4, %r14d
	cmpl	$-2, %r14d
	jb	LBB0_7
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFSwabArrayOfShort           ; -- Begin function TIFFSwabArrayOfShort
	.p2align	2
_TIFFSwabArrayOfShort:                  ; @TIFFSwabArrayOfShort
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	mov	w0, #0
	bl	_assert
	subs	w8, w19, #1
	b.lt	LBB0_8
; %bb.1:
	b.eq	LBB0_5
; %bb.2:
	add	x9, x8, #1
	and	x10, x9, #0x1fffffffe
	add	x8, x20, x10, lsl #2
	sub	w19, w19, w10
	add	x11, x20, #4
	mov	x12, x10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldurb	w13, [x11, #-3]
	ldrb	w14, [x11, #1]
	ldurb	w15, [x11, #-4]
	ldrb	w16, [x11]
	sturb	w15, [x11, #-3]
	strb	w16, [x11, #1]
	sturb	w13, [x11, #-4]
	strb	w14, [x11], #8
	subs	x12, x12, #2
	b.ne	LBB0_3
; %bb.4:
	cmp	x9, x10
	b.ne	LBB0_6
	b	LBB0_8
LBB0_5:
	mov	x8, x20
LBB0_6:
	add	x8, x8, #1
	add	w9, w19, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x8]
	ldurb	w11, [x8, #-1]
	strb	w11, [x8]
	sturb	w10, [x8, #-1]
	add	x8, x8, #4
	sub	w9, w9, #1
	cmp	w9, #1
	b.hi	LBB0_7
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
