	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_conv_argb8888_bgr24            ## -- Begin function conv_argb8888_bgr24
	.p2align	4, 0x90
_conv_argb8888_bgr24:                   ## @conv_argb8888_bgr24
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	leal	-15(%rdx), %r10d
	movslq	%r8d, %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	sarl	$2, %r9d
	movslq	%r9d, %rax
	movl	%edx, %ecx
	negl	%ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	shlq	$2, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movl	%r10d, -56(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	incl	%ecx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax,8), %rbx
	addq	-88(%rbp), %rsi                 ## 8-byte Folded Reload
	cmpl	-48(%rbp), %ecx                 ## 4-byte Folded Reload
	je	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_9 Depth 2
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movl	$0, %r12d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	cmpl	$16, %edx
	jl	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	callq	__mm_loadu_si128
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	leaq	16(%r13), %rdi
	callq	__mm_loadu_si128
	movl	%eax, %r15d
	leaq	32(%r13), %rdi
	callq	__mm_loadu_si128
	movl	%eax, %r14d
	leaq	48(%r13), %rdi
	callq	__mm_loadu_si128
	movq	%rbx, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_store_bgr24_sse2
	movl	-56(%rbp), %r10d                ## 4-byte Reload
	addq	$384, %rbx                      ## imm = 0x180
	addq	$64, %r13
	addl	$16, %r12d
	cmpl	%r12d, %r10d
	jg	LBB0_4
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	cmpl	%edx, %r12d
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	jge	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %eax
	movl	%edx, %ecx
	subl	%r12d, %ecx
	testb	$1, %cl
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%rsi,%rax,4), %rcx
	movq	%rcx, (%rbx)
	movl	%ecx, %edi
	sarl	$8, %edi
	movslq	%edi, %rdi
	movq	%rdi, 8(%rbx)
	sarl	$16, %ecx
	movslq	%ecx, %rcx
	movq	%rcx, 16(%rbx)
	addq	$24, %rbx
	incq	%rax
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	notl	%r12d
	cmpl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	je	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	(%rsi,%rax,4), %rcx
	movq	%rcx, (%rbx)
	movl	%ecx, %edi
	sarl	$8, %edi
	movslq	%edi, %rdi
	movq	%rdi, 8(%rbx)
	sarl	$16, %ecx
	movslq	%ecx, %rcx
	movq	%rcx, 16(%rbx)
	movslq	4(%rsi,%rax,4), %rcx
	movq	%rcx, 24(%rbx)
	movl	%ecx, %edi
	sarl	$8, %edi
	movslq	%edi, %rdi
	movq	%rdi, 32(%rbx)
	sarl	$16, %ecx
	movslq	%ecx, %rcx
	movq	%rcx, 40(%rbx)
	addq	$2, %rax
	addq	$48, %rbx
	cmpl	%edx, %eax
	jl	LBB0_9
	jmp	LBB0_10
LBB0_11:
	addq	$72, %rsp
	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_argb8888_bgr24            ; -- Begin function conv_argb8888_bgr24
	.p2align	2
_conv_argb8888_bgr24:                   ; @conv_argb8888_bgr24
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w4 killed $w4 def $x4
	cmp	w3, #1
	b.lt	LBB0_10
; %bb.1:
	mov	w8, #0
	sxtw	x9, w4
	asr	w15, w5, #2
	mov	w10, w2
	and	x11, x10, #0xfffffff8
	lsl	x12, x10, #2
	and	x12, x12, #0x3ffffffe0
	add	x13, x0, #96
	sbfiz	x14, x4, #3, #32
	sbfiz	x15, x15, #2, #32
	add	x16, x11, x11, lsl #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w8, #1
	add	x0, x0, x9, lsl #3
	add	x13, x13, x14
	add	x1, x1, x15
	cmp	w8, w3
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_9 Depth 2
	cmp	w2, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w2, #8
	b.hs	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x4, #0
	mov	x17, x0
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x4, #0
	add	x17, x0, x16, lsl #3
	mov	x5, x13
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x6, x1, x4
	ldp	d0, d1, [x6]
	sshll.2d	v2, v0, #0
	sshr.2s	v5, v0, #8
	sshll.2d	v3, v5, #0
	sshr.2s	v0, v0, #16
	sshll.2d	v4, v0, #0
	ldp	d0, d5, [x6, #16]
	sshll.2d	v16, v1, #0
	sshr.2s	v6, v1, #8
	sshll.2d	v17, v6, #0
	sshr.2s	v1, v1, #16
	sshll.2d	v18, v1, #0
	sshll.2d	v19, v0, #0
	sshr.2s	v1, v0, #8
	sshll.2d	v20, v1, #0
	sshr.2s	v0, v0, #16
	sshll.2d	v21, v0, #0
	sshll.2d	v22, v5, #0
	sub	x6, x5, #96
	sub	x7, x5, #48
	st3.2d	{ v2, v3, v4 }, [x6]
	st3.2d	{ v16, v17, v18 }, [x7]
	sshr.2s	v0, v5, #8
	sshll.2d	v23, v0, #0
	sshr.2s	v0, v5, #16
	sshll.2d	v24, v0, #0
	add	x6, x5, #192
	st3.2d	{ v19, v20, v21 }, [x5], #48
	st3.2d	{ v22, v23, v24 }, [x5]
	add	x4, x4, #32
	mov	x5, x6
	cmp	x12, x4
	b.ne	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x4, x11
	cmp	x11, x10
	b.eq	LBB0_2
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsw	x5, [x1, x4, lsl #2]
	str	x5, [x17]
                                        ; kill: def $w5 killed $w5 killed $x5 def $x5
	sbfx	x6, x5, #8, #24
	sbfx	x5, x5, #16, #16
	stp	x6, x5, [x17, #8]
	add	x4, x4, #1
	add	x17, x17, #24
	cmp	x10, x4
	b.ne	LBB0_9
	b	LBB0_2
LBB0_10:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
