	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_spdif_bits
_decode_spdif_bits:                     ## @decode_spdif_bits
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	%ebx, %ecx
	andl	$3, %ecx
	movq	(%r14), %rax
	movl	%ecx, (%rax)
	testb	$1, %bl
	jne	LBB0_4
## %bb.1:
	movl	%ebx, %ecx
	andl	$7, %ecx
	movl	%ecx, (%rax)
	testb	$8, %bl
	je	LBB0_3
## %bb.2:
	movq	_IEC958_AES0_CON_EMPHASIS_5015@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, (%rax)
LBB0_3:
	movl	%ebx, %ecx
	shrl	$4, %ecx
	andl	$63, %ecx
	orl	%ecx, 4(%rax)
	shrl	$12, %ebx
	andl	$7, %ebx
	movl	12(%rax), %ecx
	addq	$12, %rax
	jmp	LBB0_11
LBB0_4:
	testb	$8, %bl
	je	LBB0_6
## %bb.5:
	movq	_IEC958_AES0_PRO_EMPHASIS_5015@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, (%rax)
LBB0_6:
	shrl	$12, %ebx
	andl	$7, %ebx
	je	LBB0_12
## %bb.7:
	cmpl	$2, %ebx
	jne	LBB0_9
## %bb.8:
	movq	_IEC958_AES0_PRO_FS_32000@GOTPCREL(%rip), %rdx
	jmp	LBB0_10
LBB0_9:
	movq	_IEC958_AES0_PRO_FS_48000@GOTPCREL(%rip), %rdx
LBB0_10:
	movl	(%rdx), %ebx
LBB0_11:
	orl	%ecx, %ebx
	movl	%ebx, (%rax)
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEC958_AES0_PRO_EMPHASIS_5015,4,2 ## @IEC958_AES0_PRO_EMPHASIS_5015
	.comm	_IEC958_AES0_PRO_FS_32000,4,2   ## @IEC958_AES0_PRO_FS_32000
	.comm	_IEC958_AES0_PRO_FS_48000,4,2   ## @IEC958_AES0_PRO_FS_48000
	.comm	_IEC958_AES0_CON_EMPHASIS_5015,4,2 ## @IEC958_AES0_CON_EMPHASIS_5015
	.no_dead_strip	_decode_spdif_bits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_spdif_bits
_decode_spdif_bits:                     ; @decode_spdif_bits
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x0]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	and	w9, w19, #0x3
	ldr	x8, [x20]
	str	w9, [x8]
	tbnz	w19, #0, LBB0_4
; %bb.1:
	and	w9, w19, #0x7
	str	w9, [x8]
	tbz	w19, #3, LBB0_3
; %bb.2:
Lloh0:
	adrp	x10, _IEC958_AES0_CON_EMPHASIS_5015@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IEC958_AES0_CON_EMPHASIS_5015@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x8]
LBB0_3:
	ubfx	w10, w19, #4, #6
	ldr	w9, [x8, #12]!
	ldur	w11, [x8, #-8]
	orr	w10, w11, w10
	stur	w10, [x8, #-8]
	ubfx	w10, w19, #12, #3
	b	LBB0_11
LBB0_4:
	tbz	w19, #3, LBB0_6
; %bb.5:
Lloh3:
	adrp	x10, _IEC958_AES0_PRO_EMPHASIS_5015@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IEC958_AES0_PRO_EMPHASIS_5015@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x8]
LBB0_6:
	ubfx	w10, w19, #12, #3
	cbz	w10, LBB0_12
; %bb.7:
	cmp	w10, #2
	b.ne	LBB0_9
; %bb.8:
Lloh6:
	adrp	x10, _IEC958_AES0_PRO_FS_32000@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IEC958_AES0_PRO_FS_32000@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh8:
	adrp	x10, _IEC958_AES0_PRO_FS_48000@GOTPAGE
Lloh9:
	ldr	x10, [x10, _IEC958_AES0_PRO_FS_48000@GOTPAGEOFF]
LBB0_10:
	ldr	w10, [x10]
LBB0_11:
	orr	w9, w9, w10
	str	w9, [x8]
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IEC958_AES0_PRO_EMPHASIS_5015,4,2 ; @IEC958_AES0_PRO_EMPHASIS_5015
	.comm	_IEC958_AES0_PRO_FS_32000,4,2   ; @IEC958_AES0_PRO_FS_32000
	.comm	_IEC958_AES0_PRO_FS_48000,4,2   ; @IEC958_AES0_PRO_FS_48000
	.comm	_IEC958_AES0_CON_EMPHASIS_5015,4,2 ; @IEC958_AES0_CON_EMPHASIS_5015
	.no_dead_strip	_decode_spdif_bits
.subsections_via_symbols
