	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function flag_lossless
LCPI0_0:
	.quad	2                               ## 0x2
	.quad	3                               ## 0x3
LCPI0_1:
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	1                               ## 0x1
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_2:
	.quad	2147483648                      ## 0x80000000
	.quad	2147483648                      ## 0x80000000
LCPI0_3:
	.long	0x7fffffff                      ## float NaN
	.long	0x7fffffff                      ## float NaN
	.long	0x7fffffff                      ## float NaN
	.long	0x7fffffff                      ## float NaN
LCPI0_4:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
LCPI0_5:
	.quad	4                               ## 0x4
	.quad	4                               ## 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_flag_lossless:                         ## @flag_lossless
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%r9d, %r9d
	jle	LBB0_12
## %bb.1:
	movaps	%xmm0, %xmm14
	subl	%r8d, %edi
	movslq	%edi, %r8
	movl	%r9d, %r10d
	cmpl	$4, %r9d
	jae	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	jmp	LBB0_8
LBB0_3:
	movq	%rcx, %rax
	subq	%rsi, %rax
	xorl	%edi, %edi
	cmpq	$16, %rax
	jb	LBB0_8
## %bb.4:
	movq	%rcx, %rax
	subq	%rdx, %rax
	cmpq	$16, %rax
	jb	LBB0_8
## %bb.5:
	movl	%r10d, %edi
	andl	$-4, %edi
	movq	%r8, %xmm0
	pshufd	$68, %xmm0, %xmm15              ## xmm15 = xmm0[0,1,0,1]
	movaps	%xmm14, %xmm8
	shufps	$0, %xmm14, %xmm8               ## xmm8 = xmm8[0,0],xmm14[0,0]
	movaps	%xmm1, %xmm11
	shufps	$0, %xmm1, %xmm11               ## xmm11 = xmm11[0,0],xmm1[0,0]
	leaq	(,%r10,4), %r9
	andq	$-16, %r9
	movdqa	LCPI0_0(%rip), %xmm5            ## xmm5 = [2,3]
	movdqa	LCPI0_1(%rip), %xmm4            ## xmm4 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
	xorl	%eax, %eax
	movdqa	LCPI0_2(%rip), %xmm12           ## xmm12 = [2147483648,2147483648]
	pxor	%xmm12, %xmm15
	movaps	LCPI0_3(%rip), %xmm9            ## xmm9 = [NaN,NaN,NaN,NaN]
	movaps	LCPI0_4(%rip), %xmm10           ## xmm10 = [1,1,1,1]
	movdqa	LCPI0_5(%rip), %xmm13           ## xmm13 = [4,4]
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm4, %xmm7
	pxor	%xmm12, %xmm7
	movdqa	%xmm15, %xmm0
	pcmpgtd	%xmm7, %xmm0
	movdqa	%xmm5, %xmm6
	pxor	%xmm12, %xmm6
	movdqa	%xmm15, %xmm3
	pcmpgtd	%xmm6, %xmm3
	movdqa	%xmm0, %xmm2
	shufps	$136, %xmm3, %xmm2              ## xmm2 = xmm2[0,2],xmm3[0,2]
	pcmpeqd	%xmm15, %xmm7
	pcmpeqd	%xmm15, %xmm6
	shufps	$221, %xmm6, %xmm7              ## xmm7 = xmm7[1,3],xmm6[1,3]
	andps	%xmm2, %xmm7
	shufps	$221, %xmm3, %xmm0              ## xmm0 = xmm0[1,3],xmm3[1,3]
	orps	%xmm7, %xmm0
	movaps	%xmm11, %xmm2
	blendvps	%xmm0, %xmm8, %xmm2
	movups	(%rsi,%rax), %xmm0
	andps	%xmm9, %xmm0
	movups	(%rdx,%rax), %xmm3
	divps	%xmm3, %xmm0
	cmpnltps	%xmm2, %xmm0
	andps	%xmm10, %xmm0
	movups	%xmm0, (%rcx,%rax)
	paddq	%xmm13, %xmm4
	paddq	%xmm13, %xmm5
	addq	$16, %rax
	cmpq	%rax, %r9
	jne	LBB0_6
## %bb.7:
	cmpq	%r10, %rdi
	jne	LBB0_8
LBB0_12:
	popq	%rbp
	retq
LBB0_8:
	movaps	LCPI0_3(%rip), %xmm0            ## xmm0 = [NaN,NaN,NaN,NaN]
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movss	(%rsi,%rdi,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	andps	%xmm0, %xmm2
	divss	(%rdx,%rdi,4), %xmm2
	xorl	%eax, %eax
	ucomiss	%xmm2, %xmm3
	setbe	%al
	movl	%eax, (%rcx,%rdi,4)
	incq	%rdi
	cmpq	%rdi, %r10
	je	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movaps	%xmm14, %xmm3
	cmpq	%r8, %rdi
	jl	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movaps	%xmm1, %xmm3
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_flag_lossless
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function flag_lossless
lCPI0_0:
	.quad	2                               ; 0x2
	.quad	3                               ; 0x3
lCPI0_1:
	.quad	0                               ; 0x0
	.quad	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_flag_lossless:                         ; @flag_lossless
	.cfi_startproc
; %bb.0:
                                        ; kill: def $s1 killed $s1 def $q1
                                        ; kill: def $s0 killed $s0 def $q0
	cmp	w5, #1
	b.lt	LBB0_9
; %bb.1:
	sub	w8, w0, w4
	sxtw	x8, w8
	mov	w9, w5
	cmp	w5, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x10, #0
	b	LBB0_8
LBB0_3:
	mov	x10, #0
	sub	x11, x3, x1
	cmp	x11, #64
	b.lo	LBB0_8
; %bb.4:
	sub	x11, x3, x2
	cmp	x11, #64
	b.lo	LBB0_8
; %bb.5:
	dup.2d	v2, x8
	dup.4s	v3, v0[0]
	and	x10, x9, #0xfffffff0
	dup.4s	v4, v1[0]
	add	x11, x3, #32
	add	x12, x1, #32
Lloh0:
	adrp	x13, lCPI0_0@PAGE
Lloh1:
	ldr	q5, [x13, lCPI0_0@PAGEOFF]
	add	x13, x2, #32
	mov	w14, #4
	dup.2d	v6, x14
	mov	w14, #8
	dup.2d	v7, x14
	mov	w14, #12
	dup.2d	v16, x14
Lloh2:
	adrp	x14, lCPI0_1@PAGE
Lloh3:
	ldr	q17, [x14, lCPI0_1@PAGEOFF]
	movi.4s	v18, #1
	mov	w14, #16
	dup.2d	v19, x14
	mov	x14, x10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add.2d	v20, v17, v6
	add.2d	v21, v5, v6
	add.2d	v22, v17, v7
	add.2d	v23, v5, v7
	add.2d	v24, v17, v16
	add.2d	v25, v5, v16
	cmgt.2d	v26, v2, v17
	cmgt.2d	v27, v2, v5
	uzp1.4s	v26, v26, v27
	cmgt.2d	v21, v2, v21
	cmgt.2d	v20, v2, v20
	uzp1.4s	v20, v20, v21
	cmgt.2d	v21, v2, v23
	cmgt.2d	v22, v2, v22
	uzp1.4s	v21, v22, v21
	cmgt.2d	v22, v2, v25
	cmgt.2d	v23, v2, v24
	uzp1.4s	v22, v23, v22
	mov.16b	v23, v26
	bsl.16b	v23, v3, v4
	bsl.16b	v20, v3, v4
	bsl.16b	v21, v3, v4
	bsl.16b	v22, v3, v4
	ldp	q24, q25, [x12, #-32]
	ldp	q26, q27, [x12], #64
	fabs.4s	v24, v24
	fabs.4s	v25, v25
	fabs.4s	v26, v26
	fabs.4s	v27, v27
	ldp	q28, q29, [x13, #-32]
	ldp	q30, q31, [x13], #64
	fdiv.4s	v24, v24, v28
	fdiv.4s	v25, v25, v29
	fdiv.4s	v26, v26, v30
	fdiv.4s	v27, v27, v31
	fcmgt.4s	v23, v23, v24
	bic.16b	v23, v18, v23
	fcmgt.4s	v20, v20, v25
	bic.16b	v20, v18, v20
	fcmgt.4s	v21, v21, v26
	bic.16b	v21, v18, v21
	fcmgt.4s	v22, v22, v27
	bic.16b	v22, v18, v22
	stp	q23, q20, [x11, #-32]
	stp	q21, q22, [x11], #64
	add.2d	v5, v5, v19
	add.2d	v17, v17, v19
	subs	x14, x14, #16
	b.ne	LBB0_6
; %bb.7:
	cmp	x10, x9
	b.eq	LBB0_9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x10, x8
	fcsel	s2, s0, s1, lt
	lsl	x11, x10, #2
	ldr	s3, [x1, x11]
	fabs	s3, s3
	ldr	s4, [x2, x11]
	fdiv	s3, s3, s4
	fcmp	s3, s2
	cset	w12, pl
	str	w12, [x3, x11]
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_8
LBB0_9:
	ret
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_flag_lossless
.subsections_via_symbols
