	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sfix_encode_psb
_sfix_encode_psb:                       ## @sfix_encode_psb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_pt_opc_psb@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	movq	_pt_ext_psb@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rdi)
	movq	_pt_psb_repeat_count@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.1:
	movq	_pt_psb_hi@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r11d
	movq	_pt_psb_lo@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leal	-1(%rax), %r8d
	xorl	%r9d, %r9d
	cmpl	$3, %r8d
	jb	LBB0_10
## %bb.2:
	incq	%r8
	movq	%r8, %r9
	andq	$-4, %r9
	movd	%r11d, %xmm0
	pshufd	$80, %xmm0, %xmm0               ## xmm0 = xmm0[0,0,1,1]
	movd	%edx, %xmm1
	pshufd	$80, %xmm1, %xmm1               ## xmm1 = xmm1[0,0,1,1]
	punpckldq	%xmm1, %xmm0            ## xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
	leaq	-4(%r9), %rcx
	movq	%rcx, %r10
	shrq	$2, %r10
	incq	%r10
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:
	movq	%r10, %rcx
	andq	$-2, %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, 8(%rdi,%rsi,4)
	movdqu	%xmm0, 24(%rdi,%rsi,4)
	movdqu	%xmm0, 40(%rdi,%rsi,4)
	movdqu	%xmm0, 56(%rdi,%rsi,4)
	addq	$16, %rsi
	addq	$-2, %rcx
	jne	LBB0_5
## %bb.6:
	testb	$1, %r10b
	je	LBB0_8
LBB0_7:
	leaq	(,%rsi,4), %rcx
	orq	$16, %rcx
	movdqu	%xmm0, 8(%rdi,%rsi,4)
	movdqu	%xmm0, 8(%rdi,%rcx)
LBB0_8:
	cmpq	%r9, %r8
	je	LBB0_12
## %bb.9:
	leaq	(%rdi,%r9,8), %rdi
LBB0_10:
	subl	%r9d, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%r11d, 8(%rdi,%rcx,8)
	movl	%edx, 12(%rdi,%rcx,8)
	incq	%rcx
	cmpl	%ecx, %eax
	jne	LBB0_11
LBB0_12:
	popq	%rbp
	retq
LBB0_3:
	xorl	%esi, %esi
	testb	$1, %r10b
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_pt_opc_psb,4,2                 ## @pt_opc_psb
	.comm	_pt_ext_psb,4,2                 ## @pt_ext_psb
	.comm	_pt_psb_repeat_count,4,2        ## @pt_psb_repeat_count
	.comm	_pt_psb_hi,4,2                  ## @pt_psb_hi
	.comm	_pt_psb_lo,4,2                  ## @pt_psb_lo
	.no_dead_strip	_sfix_encode_psb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sfix_encode_psb
_sfix_encode_psb:                       ; @sfix_encode_psb
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _pt_opc_psb@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pt_opc_psb@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0]
Lloh3:
	adrp	x8, _pt_ext_psb@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pt_ext_psb@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #4]
Lloh6:
	adrp	x8, _pt_psb_repeat_count@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pt_psb_repeat_count@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x8]
	subs	w11, w10, #1
	b.lt	LBB0_8
; %bb.1:
Lloh9:
	adrp	x8, _pt_psb_hi@GOTPAGE
Lloh10:
	ldr	x8, [x8, _pt_psb_hi@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _pt_psb_lo@GOTPAGE
Lloh13:
	ldr	x9, [x9, _pt_psb_lo@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w11, #15
	b.hs	LBB0_3
; %bb.2:
	mov	w11, #0
	mov	x12, x0
	b	LBB0_6
LBB0_3:
	add	x13, x11, #1
	and	x11, x13, #0x1fffffff0
	add	x12, x0, x11, lsl #3
	dup.4s	v0, w8
	dup.4s	v1, w9
	add	x15, x0, #72
	mov	x14, x11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	x16, x15, #64
	st2.4s	{ v0, v1 }, [x16]
	sub	x16, x15, #32
	st2.4s	{ v0, v1 }, [x16]
	add	x16, x15, #128
	st2.4s	{ v0, v1 }, [x15], #32
	st2.4s	{ v0, v1 }, [x15]
	mov	x15, x16
	subs	x14, x14, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x13, x11
	b.eq	LBB0_8
LBB0_6:
	sub	w10, w10, w11
	add	x11, x12, #12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	stp	w8, w9, [x11, #-4]
	add	x11, x11, #8
	subs	w10, w10, #1
	b.ne	LBB0_7
LBB0_8:
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_pt_opc_psb,4,2                 ; @pt_opc_psb
	.comm	_pt_ext_psb,4,2                 ; @pt_ext_psb
	.comm	_pt_psb_repeat_count,4,2        ; @pt_psb_repeat_count
	.comm	_pt_psb_hi,4,2                  ; @pt_psb_hi
	.comm	_pt_psb_lo,4,2                  ; @pt_psb_lo
	.no_dead_strip	_sfix_encode_psb
.subsections_via_symbols
