	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function conv_bgr24_argb8888
LCPI0_0:
	.long	4278190080                      ## 0xff000000
	.long	4278190080                      ## 0xff000000
	.long	4278190080                      ## 0xff000000
	.long	4278190080                      ## 0xff000000
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_conv_bgr24_argb8888
	.p2align	4, 0x90
_conv_bgr24_argb8888:                   ## @conv_bgr24_argb8888
	.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	%r13
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%ecx, %ecx
	jle	LBB0_21
## %bb.1:
	movq	%rsi, %r15
	sarl	$2, %r8d
	movslq	%r8d, %r8
	movslq	%r9d, %r9
	movl	%edx, %r12d
	shlq	$2, %r8
	leaq	(,%r12,4), %rax
	shlq	$2, %r9
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rax,2), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	%r12d, %eax
	andl	$-4, %eax
	leaq	-4(%rax), %rsi
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	shrq	$2, %rsi
	incq	%rsi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rax,2), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rax
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	andq	$-2, %rsi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rax
	negq	%rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [4278190080,4278190080,4278190080,4278190080]
	movq	%rdi, %r14
	movq	%r15, %r10
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	addq	%r8, %r14
	addq	%r9, %r10
	cmpl	%ecx, %r13d
	je	LBB0_21
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_19 Depth 2
	testl	%edx, %edx
	jle	LBB0_20
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$4, %edx
	jb	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r8, %rax
	imulq	%r13, %rax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rsi,%rax), %r11
	movq	%r9, %rsi
	imulq	%r13, %rsi
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	leaq	(%rdi,%rsi), %rbx
	addq	%r15, %rbx
	cmpq	%rbx, %r11
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jae	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	-96(%rbp), %rax                 ## 8-byte Folded Reload
	addq	%rdi, %rax
	addq	%r15, %rsi
	cmpq	%rax, %rsi
	jae	LBB0_7
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	movq	%r10, %rsi
	testb	$1, %r12b
	jne	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	jmp	LBB0_18
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r10, %rsi
	xorl	%r11d, %r11d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	(%rsi), %xmm1
	movdqu	16(%rsi), %xmm2
	movups	32(%rsi), %xmm3
	movdqa	%xmm2, %xmm4
	pblendw	$12, %xmm1, %xmm4               ## xmm4 = xmm4[0,1],xmm1[2,3],xmm4[4,5,6,7]
	pshufd	$238, %xmm1, %xmm5              ## xmm5 = xmm1[2,3,2,3]
	shufps	$236, %xmm2, %xmm1              ## xmm1 = xmm1[0,3],xmm2[2,3]
	insertps	$112, %xmm3, %xmm1              ## xmm1 = xmm1[0,1,2],xmm3[1]
	pshufd	$170, %xmm3, %xmm6              ## xmm6 = xmm3[2,2,2,2]
	pshufd	$241, %xmm4, %xmm4              ## xmm4 = xmm4[1,0,3,3]
	pblendw	$192, %xmm6, %xmm4              ## xmm4 = xmm4[0,1,2,3,4,5],xmm6[6,7]
	pblendw	$12, %xmm2, %xmm5               ## xmm5 = xmm5[0,1],xmm2[2,3],xmm5[4,5,6,7]
	shufps	$196, %xmm3, %xmm5              ## xmm5 = xmm5[0,1],xmm3[0,3]
	pslld	$16, %xmm5
	pslld	$8, %xmm4
	por	%xmm1, %xmm4
	por	%xmm0, %xmm5
	por	%xmm4, %xmm5
	movdqu	%xmm5, (%r14,%r11,4)
	movdqu	48(%rsi), %xmm1
	movdqu	64(%rsi), %xmm2
	movups	80(%rsi), %xmm3
	movdqa	%xmm2, %xmm4
	pblendw	$12, %xmm1, %xmm4               ## xmm4 = xmm4[0,1],xmm1[2,3],xmm4[4,5,6,7]
	pshufd	$238, %xmm1, %xmm5              ## xmm5 = xmm1[2,3,2,3]
	shufps	$236, %xmm2, %xmm1              ## xmm1 = xmm1[0,3],xmm2[2,3]
	insertps	$112, %xmm3, %xmm1              ## xmm1 = xmm1[0,1,2],xmm3[1]
	pshufd	$170, %xmm3, %xmm6              ## xmm6 = xmm3[2,2,2,2]
	pshufd	$241, %xmm4, %xmm4              ## xmm4 = xmm4[1,0,3,3]
	pblendw	$192, %xmm6, %xmm4              ## xmm4 = xmm4[0,1,2,3,4,5],xmm6[6,7]
	pblendw	$12, %xmm2, %xmm5               ## xmm5 = xmm5[0,1],xmm2[2,3],xmm5[4,5,6,7]
	shufps	$196, %xmm3, %xmm5              ## xmm5 = xmm5[0,1],xmm3[0,3]
	pslld	$16, %xmm5
	pslld	$8, %xmm4
	por	%xmm1, %xmm4
	por	%xmm0, %xmm5
	por	%xmm4, %xmm5
	movdqu	%xmm5, 16(%r14,%r11,4)
	addq	$8, %r11
	addq	$96, %rsi
	addq	$-2, %r15
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, -80(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r11,%r11,2), %rax
	movdqu	(%r10,%rax,4), %xmm1
	movdqu	16(%r10,%rax,4), %xmm2
	movups	32(%r10,%rax,4), %xmm3
	movdqa	%xmm2, %xmm4
	pblendw	$12, %xmm1, %xmm4               ## xmm4 = xmm4[0,1],xmm1[2,3],xmm4[4,5,6,7]
	pshufd	$238, %xmm1, %xmm5              ## xmm5 = xmm1[2,3,2,3]
	shufps	$236, %xmm2, %xmm1              ## xmm1 = xmm1[0,3],xmm2[2,3]
	insertps	$112, %xmm3, %xmm1              ## xmm1 = xmm1[0,1,2],xmm3[1]
	pshufd	$170, %xmm3, %xmm6              ## xmm6 = xmm3[2,2,2,2]
	pshufd	$241, %xmm4, %xmm4              ## xmm4 = xmm4[1,0,3,3]
	pblendw	$192, %xmm6, %xmm4              ## xmm4 = xmm4[0,1,2,3,4,5],xmm6[6,7]
	pblendw	$12, %xmm2, %xmm5               ## xmm5 = xmm5[0,1],xmm2[2,3],xmm5[4,5,6,7]
	shufps	$196, %xmm3, %xmm5              ## xmm5 = xmm5[0,1],xmm3[0,3]
	pslld	$16, %xmm5
	pslld	$8, %xmm4
	por	%xmm1, %xmm4
	por	%xmm5, %xmm4
	por	%xmm0, %xmm4
	movdqu	%xmm4, (%r14,%r11,4)
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r12, -48(%rbp)                 ## 8-byte Folded Reload
	movq	%rdi, %r15
	je	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r10,%rax,4), %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testb	$1, %r12b
	je	LBB0_16
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rsi), %ebx
	movl	8(%rsi), %r11d
	shll	$8, %ebx
	orl	(%rsi), %ebx
	addq	$12, %rsi
	shll	$16, %r11d
	orl	%r11d, %ebx
	orl	$-16777216, %ebx                ## imm = 0xFF000000
	movl	%ebx, (%r14,%rax,4)
	movq	%rax, %rbx
	orq	$1, %rbx
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	notq	%rax
	cmpq	-112(%rbp), %rax                ## 8-byte Folded Reload
	je	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	4(%rsi), %eax
	movl	8(%rsi), %edi
	shll	$8, %eax
	orl	(%rsi), %eax
	shll	$16, %edi
	orl	%edi, %eax
	orl	$-16777216, %eax                ## imm = 0xFF000000
	movl	%eax, (%r14,%rbx,4)
	movl	16(%rsi), %eax
	movl	20(%rsi), %edi
	shll	$16, %edi
	shll	$8, %eax
	orl	12(%rsi), %eax
	orl	%edi, %eax
	orl	$-16777216, %eax                ## imm = 0xFF000000
	movl	%eax, 4(%r14,%rbx,4)
	addq	$2, %rbx
	addq	$24, %rsi
	cmpq	%rbx, %r12
	jne	LBB0_19
	jmp	LBB0_20
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r11d, %r11d
	testb	$1, -80(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_12
	jmp	LBB0_13
LBB0_21:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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	_conv_bgr24_argb8888            ; -- Begin function conv_bgr24_argb8888
	.p2align	2
_conv_bgr24_argb8888:                   ; @conv_bgr24_argb8888
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	.cfi_offset w21, -24
	.cfi_offset w22, -32
                                        ; kill: def $w5 killed $w5 def $x5
	cmp	w3, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x8, #0
	asr	w11, w4, #2
	sxtw	x9, w5
	mov	w10, w2
	sbfiz	x11, x11, #2, #32
	lsl	x12, x10, #2
	sbfiz	x13, x5, #2, #32
	add	x14, x10, w2, uxtw #1
	lsl	x14, x14, #2
	and	x15, x10, #0xfffffff0
	and	x16, x12, #0x3ffffffc0
	add	x17, x1, #96
	mov	x4, x0
	mov	x5, x1
	add	x6, x15, x15, lsl #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	add	x5, x5, x9, lsl #2
	add	x17, x17, x13
	add	x4, x4, x11
	cmp	w8, w3
	b.eq	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	cmp	w2, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w2, #16
	b.lo	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mul	x7, x11, x8
	add	x19, x12, x7
	add	x19, x0, x19
	mul	x20, x13, x8
	add	x21, x1, x20
	add	x20, x14, x20
	add	x20, x1, x20
	add	x7, x0, x7
	cmp	x7, x20
	ccmp	x21, x19, #2, lo
	b.lo	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x19, #0
	add	x7, x5, x6, lsl #2
	mov	x20, x17
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	x21, x20, #96
	sub	x22, x20, #48
	ld3.4s	{ v0, v1, v2 }, [x21]
	ld3.4s	{ v3, v4, v5 }, [x22]
	mov	x21, x20
	ld3.4s	{ v16, v17, v18 }, [x21], #48
	ld3.4s	{ v19, v20, v21 }, [x21]
	shl.4s	v6, v2, #16
	shl.4s	v7, v5, #16
	shl.4s	v22, v18, #16
	shl.4s	v23, v21, #16
	shl.4s	v24, v1, #8
	shl.4s	v25, v4, #8
	shl.4s	v26, v17, #8
	shl.4s	v27, v20, #8
	orr.16b	v0, v0, v24
	orr.16b	v1, v3, v25
	orr.16b	v2, v16, v26
	orr.16b	v3, v19, v27
	orr.16b	v0, v0, v6
	orr.16b	v1, v1, v7
	orr.16b	v2, v2, v22
	orr.16b	v3, v3, v23
	orr.4s	v0, #255, lsl #24
	orr.4s	v1, #255, lsl #24
	orr.4s	v2, #255, lsl #24
	orr.4s	v3, #255, lsl #24
	add	x21, x4, x19
	stp	q0, q1, [x21]
	stp	q2, q3, [x21, #32]
	add	x19, x19, #64
	add	x20, x20, #192
	cmp	x16, x19
	b.ne	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x19, x15
	cmp	x15, x10
	b.ne	LBB0_10
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x19, #0
	mov	x7, x5
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w20, w21, [x7]
	ldr	w22, [x7, #8]
	orr	w20, w20, w21, lsl #8
	orr	w20, w20, w22, lsl #16
	orr	w20, w20, #0xff000000
	str	w20, [x4, x19, lsl #2]
	add	x19, x19, #1
	add	x7, x7, #12
	cmp	x10, x19
	b.ne	LBB0_10
	b	LBB0_2
LBB0_11:
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
