	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_hdmi_reformat_s24
_dw_hdmi_reformat_s24:                  ## @dw_hdmi_reformat_s24
	.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
	movq	%rsi, %r12
	shlq	$2, %r12
	movq	(%rdi), %r13
	addq	%r12, %r13
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	addq	8(%rdi), %r12
	leaq	(,%rdx,4), %rax
	addq	%r13, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$16777215, %edx                 ## imm = 0xFFFFFF
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	24(%rdi), %rax
	movslq	16(%rdi), %rbx
	leal	1(%rbx), %r8d
	cmpq	$191, %rbx
	movq	(%rax,%rbx,8), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$0, %eax
	cmovgel	%eax, %r8d
	movl	%r8d, 16(%rdi)
	movl	20(%rdi), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13,%r15,4), %eax
	andl	%edx, %eax
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx,%r15,4), %ebx
	shll	$24, %ebx
	orl	%eax, %ebx
	movl	%ebx, %edi
	andl	$134217727, %edi                ## imm = 0x7FFFFFF
	callq	_parity
	movl	$16777215, %edx                 ## imm = 0xFFFFFF
	orl	%ebx, %eax
	movl	%eax, (%r12,%r15,4)
	incq	%r15
	addq	$-4, %r14
	cmpl	%r15d, -64(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	subq	%r14, %r13
	subq	%r14, %r12
	cmpq	-48(%rbp), %r13                 ## 8-byte Folded Reload
	jb	LBB0_1
## %bb.4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dw_hdmi_reformat_s24
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_hdmi_reformat_s24
_dw_hdmi_reformat_s24:                  ; @dw_hdmi_reformat_s24
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	lsl	x8, x1, #2
	ldp	x9, x10, [x0]
	add	x20, x9, x8
	add	x21, x10, x8
	add	x22, x20, x2, lsl #2
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	ldr	x8, [x19, #24]
	ldp	w9, w23, [x19, #16]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	ldr	x24, [x8, x9, lsl #3]
	cmp	w9, #190
	csinc	w8, wzr, w9, gt
	str	w8, [x19, #16]
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w25, [x20], #4
	ldr	w8, [x24], #4
	bfi	w25, w8, #24, #8
	and	w0, w25, #0x7ffffff
	bl	_parity
	orr	w8, w25, w0
	str	w8, [x21], #4
	subs	w23, w23, #1
	b.ne	LBB0_2
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	x20, x22
	b.lo	LBB0_1
; %bb.4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dw_hdmi_reformat_s24
.subsections_via_symbols
