	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function dw_hdmi_reformat_iec958
LCPI0_0:
	.long	268435456                       ## 0x10000000
	.long	268435456                       ## 0x10000000
	.long	268435456                       ## 0x10000000
	.long	268435456                       ## 0x10000000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_dw_hdmi_reformat_iec958:               ## @dw_hdmi_reformat_iec958
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	movq	8(%rdi), %r14
	leaq	(%rbx,%rsi,4), %r10
	leaq	(%r14,%rsi,4), %rax
	leaq	(%rbx,%rdx,4), %rcx
	leaq	(,%rsi,4), %r8
	leaq	(%rcx,%rsi,4), %rcx
	leaq	(%rbx,%rsi,4), %rdi
	addq	$4, %rdi
	cmpq	%rdi, %rcx
	cmovaq	%rcx, %rdi
	movq	%rbx, %r11
	notq	%r11
	addq	%rdi, %r11
	subq	%r8, %r11
	cmpq	$28, %r11
	jb	LBB0_1
## %bb.2:
	leaq	(%r14,%rsi,4), %rcx
	leaq	(%rbx,%rsi,4), %rdi
	subq	%rdi, %rcx
	cmpq	$32, %rcx
	jae	LBB0_4
LBB0_1:
	movq	%r10, %rcx
LBB0_11:
	leaq	(%r10,%rdx,4), %rdx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %esi
	addq	$4, %rcx
	movl	%esi, %edi
	andl	$8, %edi
	shll	$25, %edi
	sarl	$4, %esi
	orl	%edi, %esi
	movl	%esi, (%rax)
	addq	$4, %rax
	cmpq	%rdx, %rcx
	jb	LBB0_12
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	shrq	$2, %r11
	incq	%r11
	movq	%r11, %r8
	andq	$-8, %r8
	leaq	-8(%r8), %rcx
	movq	%rcx, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.5:
	movq	%r9, %rcx
	andq	$-2, %rcx
	leaq	(%r14,%rsi,4), %rdi
	addq	$48, %rdi
	leaq	(%rbx,%rsi,4), %rbx
	addq	$48, %rbx
	xorl	%esi, %esi
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [268435456,268435456,268435456,268435456]
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-48(%rbx,%rsi,4), %xmm1
	movdqu	-32(%rbx,%rsi,4), %xmm2
	movdqa	%xmm1, %xmm3
	pslld	$25, %xmm3
	movdqa	%xmm2, %xmm4
	pslld	$25, %xmm4
	pand	%xmm0, %xmm3
	pand	%xmm0, %xmm4
	psrad	$4, %xmm1
	por	%xmm3, %xmm1
	psrad	$4, %xmm2
	por	%xmm4, %xmm2
	movdqu	%xmm1, -48(%rdi,%rsi,4)
	movdqu	%xmm2, -32(%rdi,%rsi,4)
	movdqu	-16(%rbx,%rsi,4), %xmm1
	movdqu	(%rbx,%rsi,4), %xmm2
	movdqa	%xmm1, %xmm3
	pslld	$25, %xmm3
	movdqa	%xmm2, %xmm4
	pslld	$25, %xmm4
	pand	%xmm0, %xmm3
	pand	%xmm0, %xmm4
	psrad	$4, %xmm1
	por	%xmm3, %xmm1
	psrad	$4, %xmm2
	por	%xmm4, %xmm2
	movdqu	%xmm1, -16(%rdi,%rsi,4)
	movdqu	%xmm2, (%rdi,%rsi,4)
	addq	$16, %rsi
	addq	$-2, %rcx
	jne	LBB0_6
## %bb.7:
	testb	$1, %r9b
	je	LBB0_9
LBB0_8:
	movdqu	(%r10,%rsi,4), %xmm0
	movdqu	16(%r10,%rsi,4), %xmm1
	movdqa	%xmm0, %xmm2
	pslld	$25, %xmm2
	movdqa	%xmm1, %xmm3
	pslld	$25, %xmm3
	movdqa	LCPI0_0(%rip), %xmm4            ## xmm4 = [268435456,268435456,268435456,268435456]
	pand	%xmm4, %xmm2
	pand	%xmm4, %xmm3
	psrad	$4, %xmm0
	por	%xmm2, %xmm0
	psrad	$4, %xmm1
	por	%xmm3, %xmm1
	movdqu	%xmm0, (%rax,%rsi,4)
	movdqu	%xmm1, 16(%rax,%rsi,4)
LBB0_9:
	cmpq	%r8, %r11
	je	LBB0_13
## %bb.10:
	leaq	(%rax,%r8,4), %rax
	leaq	(%r10,%r8,4), %rcx
	jmp	LBB0_11
LBB0_14:
	xorl	%esi, %esi
	testb	$1, %r9b
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dw_hdmi_reformat_iec958
.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_iec958
_dw_hdmi_reformat_iec958:               ; @dw_hdmi_reformat_iec958
	.cfi_startproc
; %bb.0:
	lsl	x14, x1, #2
	ldp	x15, x16, [x0]
	add	x10, x15, x14
	mov	x9, x10
	add	x8, x16, x14
	lsl	x11, x2, #2
	add	x12, x11, x15
	add	x12, x12, x14
	add	x13, x10, #4
	cmp	x12, x13
	csel	x12, x12, x13, hi
	mvn	x13, x15
	add	x12, x12, x13
	sub	x12, x12, x14
	cmp	x12, #60
	b.lo	LBB0_5
; %bb.1:
	add	x13, x14, x16
	add	x17, x14, x15
	sub	x13, x13, x17
	cmp	x13, #64
	b.lo	LBB0_5
; %bb.2:
	lsr	x9, x12, #2
	add	x12, x9, #1
	and	x13, x12, #0x7ffffffffffffff0
	lsl	x9, x13, #2
	add	x8, x8, x9
	add	x9, x10, x9
	add	x17, x14, #32
	add	x14, x16, x17
	add	x15, x15, x17
	movi.4s	v0, #16, lsl #24
	mov	x16, x13
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x15, #-32]
	ldp	q3, q4, [x15], #64
	shl.4s	v5, v1, #25
	shl.4s	v6, v2, #25
	shl.4s	v7, v3, #25
	shl.4s	v16, v4, #25
	and.16b	v5, v5, v0
	and.16b	v6, v6, v0
	and.16b	v7, v7, v0
	and.16b	v16, v16, v0
	sshr.4s	v1, v1, #4
	sshr.4s	v2, v2, #4
	sshr.4s	v3, v3, #4
	sshr.4s	v4, v4, #4
	orr.16b	v1, v5, v1
	orr.16b	v2, v6, v2
	orr.16b	v3, v7, v3
	stp	q1, q2, [x14, #-32]
	orr.16b	v1, v16, v4
	stp	q3, q1, [x14], #64
	subs	x16, x16, #16
	b.ne	LBB0_3
; %bb.4:
	cmp	x12, x13
	b.eq	LBB0_7
LBB0_5:
	add	x10, x10, x11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9], #4
	lsl	w12, w11, #25
	and	w12, w12, #0x10000000
	orr	w11, w12, w11, asr #4
	str	w11, [x8], #4
	cmp	x9, x10
	b.lo	LBB0_6
LBB0_7:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dw_hdmi_reformat_iec958
.subsections_via_symbols
