	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_from_spdif_status
_convert_from_spdif_status:             ## @convert_from_spdif_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_IEC958_AES0_PROFESSIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	movl	$0, %edx
	testl	%edi, %ecx
	je	LBB0_2
## %bb.1:
	movq	_AC_DIG1_PROFESSIONAL@GOTPCREL(%rip), %rdx
	movzwl	(%rdx), %edx
LBB0_2:
	movq	_IEC958_AES0_NONAUDIO@GOTPCREL(%rip), %rsi
	testl	%edi, (%rsi)
	je	LBB0_4
## %bb.3:
	movq	_AC_DIG1_NONAUDIO@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
LBB0_4:
	orl	%edx, %eax
	testl	%edi, %ecx
	je	LBB0_7
## %bb.5:
	movq	_IEC958_AES0_PRO_EMPHASIS@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edi
	movq	_IEC958_AES0_PRO_EMPHASIS_5015@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edi
	jne	LBB0_14
## %bb.6:
	movq	_AC_DIG1_EMPHASIS@GOTPCREL(%rip), %rcx
	orw	(%rcx), %ax
	jmp	LBB0_14
LBB0_7:
	movq	_IEC958_AES0_CON_EMPHASIS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	%edi, %esi
	movq	_IEC958_AES0_CON_EMPHASIS_5015@GOTPCREL(%rip), %r8
	xorl	%r9d, %r9d
	movl	$0, %edx
	cmpl	(%r8), %esi
	jne	LBB0_9
## %bb.8:
	movq	_AC_DIG1_EMPHASIS@GOTPCREL(%rip), %rdx
	movzwl	(%rdx), %edx
LBB0_9:
	movq	_IEC958_AES0_CON_NOT_COPYRIGHT@GOTPCREL(%rip), %rcx
	movl	$0, %esi
	testl	%edi, (%rcx)
	jne	LBB0_11
## %bb.10:
	movq	_AC_DIG1_COPYRIGHT@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %esi
LBB0_11:
	orl	%esi, %edx
	orl	%edx, %eax
	movq	_IEC958_AES1_CON_ORIGINAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$8, %ecx
	testl	%edi, %ecx
	je	LBB0_13
## %bb.12:
	movq	_AC_DIG1_LEVEL@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %r9d
LBB0_13:
	movq	_IEC958_AES1_CON_CATEGORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$8, %ecx
	andl	%edi, %ecx
	orl	%r9d, %ecx
	orl	%ecx, %eax
LBB0_14:
	movzwl	%ax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEC958_AES0_PROFESSIONAL,4,2   ## @IEC958_AES0_PROFESSIONAL
	.comm	_AC_DIG1_PROFESSIONAL,2,1       ## @AC_DIG1_PROFESSIONAL
	.comm	_IEC958_AES0_NONAUDIO,4,2       ## @IEC958_AES0_NONAUDIO
	.comm	_AC_DIG1_NONAUDIO,2,1           ## @AC_DIG1_NONAUDIO
	.comm	_IEC958_AES0_PRO_EMPHASIS,4,2   ## @IEC958_AES0_PRO_EMPHASIS
	.comm	_IEC958_AES0_PRO_EMPHASIS_5015,4,2 ## @IEC958_AES0_PRO_EMPHASIS_5015
	.comm	_AC_DIG1_EMPHASIS,2,1           ## @AC_DIG1_EMPHASIS
	.comm	_IEC958_AES0_CON_EMPHASIS,4,2   ## @IEC958_AES0_CON_EMPHASIS
	.comm	_IEC958_AES0_CON_EMPHASIS_5015,4,2 ## @IEC958_AES0_CON_EMPHASIS_5015
	.comm	_IEC958_AES0_CON_NOT_COPYRIGHT,4,2 ## @IEC958_AES0_CON_NOT_COPYRIGHT
	.comm	_AC_DIG1_COPYRIGHT,2,1          ## @AC_DIG1_COPYRIGHT
	.comm	_IEC958_AES1_CON_ORIGINAL,4,2   ## @IEC958_AES1_CON_ORIGINAL
	.comm	_AC_DIG1_LEVEL,2,1              ## @AC_DIG1_LEVEL
	.comm	_IEC958_AES1_CON_CATEGORY,4,2   ## @IEC958_AES1_CON_CATEGORY
	.no_dead_strip	_convert_from_spdif_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_from_spdif_status
_convert_from_spdif_status:             ; @convert_from_spdif_status
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _IEC958_AES0_PROFESSIONAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEC958_AES0_PROFESSIONAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AC_DIG1_PROFESSIONAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AC_DIG1_PROFESSIONAL@GOTPAGEOFF]
	ldrh	w9, [x9]
	ands	w10, w8, w0
	csel	w8, wzr, w9, eq
Lloh5:
	adrp	x9, _IEC958_AES0_NONAUDIO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IEC958_AES0_NONAUDIO@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x11, _AC_DIG1_NONAUDIO@GOTPAGE
Lloh9:
	ldr	x11, [x11, _AC_DIG1_NONAUDIO@GOTPAGEOFF]
	ldrh	w11, [x11]
	tst	w9, w0
	csel	w9, wzr, w11, eq
	orr	w8, w9, w8
	cbz	w10, LBB0_3
; %bb.1:
Lloh10:
	adrp	x9, _IEC958_AES0_PRO_EMPHASIS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IEC958_AES0_PRO_EMPHASIS@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	and	w9, w9, w0
Lloh13:
	adrp	x10, _IEC958_AES0_PRO_EMPHASIS_5015@GOTPAGE
Lloh14:
	ldr	x10, [x10, _IEC958_AES0_PRO_EMPHASIS_5015@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_4
; %bb.2:
Lloh16:
	adrp	x9, _AC_DIG1_EMPHASIS@GOTPAGE
Lloh17:
	ldr	x9, [x9, _AC_DIG1_EMPHASIS@GOTPAGEOFF]
	ldrh	w9, [x9]
	orr	w8, w9, w8
	and	w0, w8, #0xffff
	ret
LBB0_3:
Lloh18:
	adrp	x9, _IEC958_AES0_CON_EMPHASIS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IEC958_AES0_CON_EMPHASIS@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	and	w9, w9, w0
Lloh21:
	adrp	x10, _IEC958_AES0_CON_EMPHASIS_5015@GOTPAGE
Lloh22:
	ldr	x10, [x10, _IEC958_AES0_CON_EMPHASIS_5015@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
Lloh24:
	adrp	x11, _AC_DIG1_EMPHASIS@GOTPAGE
Lloh25:
	ldr	x11, [x11, _AC_DIG1_EMPHASIS@GOTPAGEOFF]
	ldrh	w11, [x11]
	cmp	w9, w10
	csel	w9, w11, wzr, eq
	orr	w8, w9, w8
Lloh26:
	adrp	x9, _IEC958_AES0_CON_NOT_COPYRIGHT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IEC958_AES0_CON_NOT_COPYRIGHT@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
Lloh29:
	adrp	x10, _AC_DIG1_COPYRIGHT@GOTPAGE
Lloh30:
	ldr	x10, [x10, _AC_DIG1_COPYRIGHT@GOTPAGEOFF]
	ldrh	w10, [x10]
	tst	w9, w0
	csel	w9, w10, wzr, eq
	orr	w8, w8, w9
Lloh31:
	adrp	x9, _IEC958_AES1_CON_ORIGINAL@GOTPAGE
Lloh32:
	ldr	x9, [x9, _IEC958_AES1_CON_ORIGINAL@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
Lloh34:
	adrp	x10, _AC_DIG1_LEVEL@GOTPAGE
Lloh35:
	ldr	x10, [x10, _AC_DIG1_LEVEL@GOTPAGEOFF]
	ldrh	w10, [x10]
	tst	w0, w9, lsl #8
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh36:
	adrp	x9, _IEC958_AES1_CON_CATEGORY@GOTPAGE
Lloh37:
	ldr	x9, [x9, _IEC958_AES1_CON_CATEGORY@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	and	w9, w0, w9, lsl #8
	orr	w8, w8, w9
LBB0_4:
	and	w0, w8, #0xffff
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IEC958_AES0_PROFESSIONAL,4,2   ; @IEC958_AES0_PROFESSIONAL
	.comm	_AC_DIG1_PROFESSIONAL,2,1       ; @AC_DIG1_PROFESSIONAL
	.comm	_IEC958_AES0_NONAUDIO,4,2       ; @IEC958_AES0_NONAUDIO
	.comm	_AC_DIG1_NONAUDIO,2,1           ; @AC_DIG1_NONAUDIO
	.comm	_IEC958_AES0_PRO_EMPHASIS,4,2   ; @IEC958_AES0_PRO_EMPHASIS
	.comm	_IEC958_AES0_PRO_EMPHASIS_5015,4,2 ; @IEC958_AES0_PRO_EMPHASIS_5015
	.comm	_AC_DIG1_EMPHASIS,2,1           ; @AC_DIG1_EMPHASIS
	.comm	_IEC958_AES0_CON_EMPHASIS,4,2   ; @IEC958_AES0_CON_EMPHASIS
	.comm	_IEC958_AES0_CON_EMPHASIS_5015,4,2 ; @IEC958_AES0_CON_EMPHASIS_5015
	.comm	_IEC958_AES0_CON_NOT_COPYRIGHT,4,2 ; @IEC958_AES0_CON_NOT_COPYRIGHT
	.comm	_AC_DIG1_COPYRIGHT,2,1          ; @AC_DIG1_COPYRIGHT
	.comm	_IEC958_AES1_CON_ORIGINAL,4,2   ; @IEC958_AES1_CON_ORIGINAL
	.comm	_AC_DIG1_LEVEL,2,1              ; @AC_DIG1_LEVEL
	.comm	_IEC958_AES1_CON_CATEGORY,4,2   ; @IEC958_AES1_CON_CATEGORY
	.no_dead_strip	_convert_from_spdif_status
.subsections_via_symbols
