	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dss_sp_byte_swap
_dss_sp_byte_swap:                      ## @dss_sp_byte_swap
	.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	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	cmpl	$0, (%rdi)
	movq	_DSS_FRAME_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	je	LBB0_9
## %bb.1:
	cmpl	$4, %edx
	jl	LBB0_4
## %bb.2:
	movl	$3, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rax,4), %ecx
	movl	%ecx, (%r15,%rax,4)
	addq	$2, %rax
	movslq	(%r12), %rdx
	cmpq	%rdx, %rax
	jl	LBB0_3
LBB0_4:
	cmpl	$3, %edx
	jl	LBB0_7
## %bb.5:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%rbx,%rcx,4), %eax
	movl	%eax, (%r15,%rcx,4)
	addq	$2, %rcx
	movslq	(%r12), %rax
	addq	$-2, %rax
	cmpq	%rax, %rcx
	jl	LBB0_6
	jmp	LBB0_8
LBB0_9:
	movq	%r15, %rdi
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movslq	(%r12), %rax
	movl	-8(%rbx,%rax,4), %ecx
	addq	$-2, %rax
	movl	%ecx, 4(%r14)
	jmp	LBB0_10
LBB0_7:
	addl	$-2, %edx
	movslq	%edx, %rax
LBB0_8:
	movl	4(%r14), %ecx
	movl	%ecx, 4(%r15)
LBB0_10:
	movl	$0, (%r15,%rax,4)
	xorb	$1, (%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSS_FRAME_SIZE,4,2             ## @DSS_FRAME_SIZE
	.no_dead_strip	_dss_sp_byte_swap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dss_sp_byte_swap
_dss_sp_byte_swap:                      ; @dss_sp_byte_swap
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x22, _DSS_FRAME_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DSS_FRAME_SIZE@GOTPAGEOFF]
	ldr	w2, [x22]
	cbz	w8, LBB0_7
; %bb.1:
	cmp	w2, #3
	b.le	LBB0_4
; %bb.2:
	mov	w8, #3
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x9, x8, #2
	ldr	w10, [x21, x9]
	str	w10, [x20, x9]
	add	x8, x8, #2
	ldrsw	x2, [x22]
	cmp	x8, x2
	b.lt	LBB0_3
LBB0_4:
	cmp	w2, #3
	b.lt	LBB0_8
; %bb.5:
	mov	x9, #0
	add	x10, x21, #16
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x8, x9, #2
	ldr	w11, [x10, x8]
	str	w11, [x20, x8]
	add	x9, x9, #2
	ldrsw	x8, [x22]
	sub	x8, x8, #2
	cmp	x9, x8
	b.lt	LBB0_6
	b	LBB0_9
LBB0_7:
	mov	x0, x20
	mov	x1, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	ldrsw	x8, [x22]
	sub	x8, x8, #2
	ldr	w9, [x21, x8, lsl #2]
	str	w9, [x19, #4]
	b	LBB0_10
LBB0_8:
	sub	w8, w2, #2
	sxtw	x8, w8
LBB0_9:
	ldr	w9, [x19, #4]
	str	w9, [x20, #4]
LBB0_10:
	str	wzr, [x20, x8, lsl #2]
	ldr	w8, [x19]
	eor	w8, w8, #0x1
	str	w8, [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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DSS_FRAME_SIZE,4,2             ; @DSS_FRAME_SIZE
	.no_dead_strip	_dss_sp_byte_swap
.subsections_via_symbols
