	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function truehd_layout
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_truehd_layout:                         ## @truehd_layout
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_thd_layout@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movl	%edi, %r9d
	shrl	%r9d
	movl	%edi, %r10d
	shrl	$2, %r10d
	movl	%edi, %r11d
	shrl	$3, %r11d
	movl	%edi, %ecx
	shrl	$4, %ecx
	movl	%edi, %eax
	shrl	$5, %eax
	movl	%edi, %edx
	shrl	$6, %edx
	movl	%edi, %esi
	shrl	$7, %esi
	movdqu	(%r8), %xmm0
	movd	%edi, %xmm1
	pinsrd	$1, %r9d, %xmm1
	pinsrd	$2, %r10d, %xmm1
	pinsrd	$3, %r11d, %xmm1
	movdqu	16(%r8), %xmm2
	movd	%ecx, %xmm3
	pinsrd	$1, %eax, %xmm3
	pinsrd	$2, %edx, %xmm3
	pinsrd	$3, %esi, %xmm3
	movdqa	LCPI0_0(%rip), %xmm4            ## xmm4 = [1,1,1,1]
	pand	%xmm4, %xmm3
	pmulld	%xmm2, %xmm3
	pand	%xmm4, %xmm1
	pmulld	%xmm0, %xmm1
	por	%xmm3, %xmm1
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	por	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	por	%xmm0, %xmm1
	movd	%xmm1, %edx
	movl	%edi, %eax
	shrl	$8, %eax
	andl	$1, %eax
	imull	32(%r8), %eax
	movl	%edi, %ecx
	shrl	$9, %ecx
	andl	$1, %ecx
	imull	36(%r8), %ecx
	orl	%eax, %ecx
	movl	%edi, %esi
	shrl	$10, %esi
	andl	$1, %esi
	imull	40(%r8), %esi
	movl	%edi, %eax
	shrl	$11, %eax
	andl	$1, %eax
	imull	44(%r8), %eax
	orl	%ecx, %esi
	orl	%esi, %eax
	shrl	$12, %edi
	andl	$1, %edi
	imull	48(%r8), %edi
	orl	%edi, %eax
	orl	%edx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_thd_layout,8,3                 ## @thd_layout
	.no_dead_strip	_truehd_layout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function truehd_layout
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	4294967294                      ; 0xfffffffe
	.long	4294967293                      ; 0xfffffffd
	.long	4294967292                      ; 0xfffffffc
lCPI0_1:
	.long	4294967287                      ; 0xfffffff7
	.long	4294967286                      ; 0xfffffff6
	.long	4294967285                      ; 0xfffffff5
	.long	4294967284                      ; 0xfffffff4
lCPI0_2:
	.long	4294967291                      ; 0xfffffffb
	.long	4294967290                      ; 0xfffffffa
	.long	4294967289                      ; 0xfffffff9
	.long	4294967288                      ; 0xfffffff8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_truehd_layout:                         ; @truehd_layout
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _thd_layout@GOTPAGE
Lloh1:
	ldr	x8, [x8, _thd_layout@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w9, [x8]
	and	w10, w0, #0x1
	dup.4s	v0, w0
	mul	w9, w9, w10
Lloh3:
	adrp	x10, lCPI0_0@PAGE
Lloh4:
	ldr	q1, [x10, lCPI0_0@PAGEOFF]
	ushl.4s	v1, v0, v1
	ldur	q2, [x8, #4]
	movi.4s	v3, #1
	and.16b	v1, v1, v3
Lloh5:
	adrp	x10, lCPI0_1@PAGE
Lloh6:
	ldr	q4, [x10, lCPI0_1@PAGEOFF]
	ushl.4s	v4, v0, v4
Lloh7:
	adrp	x10, lCPI0_2@PAGE
Lloh8:
	ldr	q5, [x10, lCPI0_2@PAGEOFF]
	ushl.4s	v0, v0, v5
	ldur	q5, [x8, #20]
	and.16b	v0, v0, v3
	and.16b	v3, v4, v3
	ldur	q4, [x8, #36]
	mul.4s	v3, v4, v3
	mul.4s	v0, v5, v0
	orr.16b	v0, v0, v3
	ext.16b	v3, v0, v0, #8
	orr.8b	v0, v0, v3
	mov.s	w8, v0[1]
	mul.4s	v1, v2, v1
	fmov	w10, s0
	ext.16b	v0, v1, v1, #8
	orr.8b	v0, v1, v0
	mov.s	w11, v0[1]
	orr	w8, w10, w8
	fmov	w10, s0
	orr	w10, w10, w11
	orr	w8, w8, w10
	orr	w0, w8, w9
	ret
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpAdrp	Lloh5, Lloh7
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpAdrp	Lloh3, Lloh5
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_thd_layout,8,3                 ; @thd_layout
	.no_dead_strip	_truehd_layout
.subsections_via_symbols
