	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_r5g6b5_x8r8g8b8
_convert_r5g6b5_x8r8g8b8:               ## @convert_r5g6b5_x8r8g8b8
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
	movl	%ecx, %eax
	movl	%edx, %ecx
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %esi
	movl	%r9d, %edx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%eax, %r8d
	callq	_TRACE
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.1:
	movl	%ebx, %r8d
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	xorl	%r9d, %r9d
	leaq	_convert_r5g6b5_x8r8g8b8.convert_5to8(%rip), %rsi
	leaq	_convert_r5g6b5_x8r8g8b8.convert_6to8(%rip), %r15
	xorl	%r10d, %r10d
	xorl	%r11d, %r11d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r11
	addl	-48(%rbp), %r10d                ## 4-byte Folded Reload
	addl	-52(%rbp), %r9d                 ## 4-byte Folded Reload
	cmpq	%r8, %r11
	je	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r10d, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rdx
	movl	%r9d, %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rbx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdx,%rax,4), %r14d
	movl	%r14d, %r13d
	shrl	$11, %r13d
	andl	$31, %r13d
	movzbl	(%r13,%rsi), %edi
	shll	$16, %edi
	movl	%r14d, %ecx
	shrl	$5, %ecx
	andl	$63, %ecx
	movzbl	(%rcx,%r15), %ecx
	shll	$8, %ecx
	orl	%edi, %ecx
	andl	$31, %r14d
	movzbl	(%r14,%rsi), %edi
	orl	%ecx, %edi
	orl	$-16777216, %edi                ## imm = 0xFF000000
	movl	%edi, (%rbx,%rax,4)
	incq	%rax
	cmpq	%rax, %r12
	jne	LBB0_4
	jmp	LBB0_5
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @convert_r5g6b5_x8r8g8b8.convert_5to8
_convert_r5g6b5_x8r8g8b8.convert_5to8:
	.ascii	"\000\b\020\031!)1:BJRZcks{\204\214\224\234\245\255\265\275\305\316\326\336\346\357\367\377"

	.p2align	4                               ## @convert_r5g6b5_x8r8g8b8.convert_6to8
_convert_r5g6b5_x8r8g8b8.convert_6to8:
	.ascii	"\000\004\b\f\020\024\030\034 $(-159=AEIMQUY]aeimquy}\202\206\212\216\222\226\232\236\242\246\252\256\262\266\272\276\302\306\312\316\322\327\333\337\343\347\353\357\363\367\373\377"

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Converting %ux%u pixels, pitches %u %u.\n"

	.no_dead_strip	_convert_r5g6b5_x8r8g8b8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_r5g6b5_x8r8g8b8
_convert_r5g6b5_x8r8g8b8:               ; @convert_r5g6b5_x8r8g8b8
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x24, x5
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x4
	mov	x2, x5
	mov	x3, x21
	mov	x4, x20
	bl	_TRACE
	cbz	w24, LBB0_6
; %bb.1:
	mov	w8, #0
	mov	w9, #0
	mov	x10, #0
	mov	w11, w24
	mov	w12, w19
Lloh2:
	adrp	x13, _convert_r5g6b5_x8r8g8b8.convert_5to8@PAGE
Lloh3:
	add	x13, x13, _convert_r5g6b5_x8r8g8b8.convert_5to8@PAGEOFF
Lloh4:
	adrp	x14, _convert_r5g6b5_x8r8g8b8.convert_6to8@PAGE
Lloh5:
	add	x14, x14, _convert_r5g6b5_x8r8g8b8.convert_6to8@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #1
	add	w9, w9, w21
	add	w8, w8, w20
	cmp	x10, x11
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cbz	w19, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x15, x23, w9, uxtw #2
	mov	x16, x12
	add	x17, x22, w8, uxtw #2
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x15], #4
	ubfx	x1, x0, #11, #5
	ldrb	w1, [x13, x1]
	ubfx	x2, x0, #5, #6
	ldrb	w2, [x14, x2]
	lsl	w2, w2, #8
	and	x0, x0, #0x1f
	ldrb	w0, [x13, x0]
	bfi	w2, w1, #16, #16
	orr	w0, w2, w0
	orr	w0, w0, #0xff000000
	str	w0, [x17], #4
	subs	x16, x16, #1
	b.ne	LBB0_5
	b	LBB0_2
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_convert_r5g6b5_x8r8g8b8.convert_5to8:  ; @convert_r5g6b5_x8r8g8b8.convert_5to8
	.ascii	"\000\b\020\031!)1:BJRZcks{\204\214\224\234\245\255\265\275\305\316\326\336\346\357\367\377"

_convert_r5g6b5_x8r8g8b8.convert_6to8:  ; @convert_r5g6b5_x8r8g8b8.convert_6to8
	.ascii	"\000\004\b\f\020\024\030\034 $(-159=AEIMQUY]aeimquy}\202\206\212\216\222\226\232\236\242\246\252\256\262\266\272\276\302\306\312\316\322\327\333\337\343\347\353\357\363\367\373\377"

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Converting %ux%u pixels, pitches %u %u.\n"

	.no_dead_strip	_convert_r5g6b5_x8r8g8b8
.subsections_via_symbols
