	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_to_spdif_status
_convert_to_spdif_status:               ## @convert_to_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	_AC_DIG1_NONAUDIO@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	movl	$0, %ecx
	testw	%di, (%rdx)
	je	LBB0_2
## %bb.1:
	movq	_IEC958_AES0_NONAUDIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	movq	_AC_DIG1_PROFESSIONAL@GOTPCREL(%rip), %rdx
	testw	%di, (%rdx)
	movq	_IEC958_AES0_PROFESSIONAL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmovnel	%edx, %eax
	orl	%ecx, %eax
	movq	_AC_DIG1_EMPHASIS@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %esi
	testl	%edx, %eax
	je	LBB0_5
## %bb.3:
	testw	%di, %si
	je	LBB0_10
## %bb.4:
	movq	_IEC958_AES0_PRO_EMPHASIS_5015@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_5:
	xorl	%r8d, %r8d
	movl	$0, %ecx
	testw	%di, %si
	je	LBB0_7
## %bb.6:
	movq	_IEC958_AES0_CON_EMPHASIS_5015@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_7:
	movq	_AC_DIG1_COPYRIGHT@GOTPCREL(%rip), %rdx
	movl	$0, %esi
	testw	%di, (%rdx)
	jne	LBB0_9
## %bb.8:
	movq	_IEC958_AES0_CON_NOT_COPYRIGHT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
LBB0_9:
	movq	_AC_DIG1_LEVEL@GOTPCREL(%rip), %r9
	movq	_IEC958_AES1_CON_ORIGINAL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	shll	$8, %edx
	testw	%di, (%r9)
	cmovel	%r8d, %edx
	andl	$32512, %edi                    ## imm = 0x7F00
	orl	%edi, %eax
	orl	%esi, %ecx
	orl	%edx, %ecx
	orl	%ecx, %eax
LBB0_10:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC_DIG1_NONAUDIO,2,1           ## @AC_DIG1_NONAUDIO
	.comm	_IEC958_AES0_NONAUDIO,4,2       ## @IEC958_AES0_NONAUDIO
	.comm	_AC_DIG1_PROFESSIONAL,2,1       ## @AC_DIG1_PROFESSIONAL
	.comm	_IEC958_AES0_PROFESSIONAL,4,2   ## @IEC958_AES0_PROFESSIONAL
	.comm	_AC_DIG1_EMPHASIS,2,1           ## @AC_DIG1_EMPHASIS
	.comm	_IEC958_AES0_PRO_EMPHASIS_5015,4,2 ## @IEC958_AES0_PRO_EMPHASIS_5015
	.comm	_IEC958_AES0_CON_EMPHASIS_5015,4,2 ## @IEC958_AES0_CON_EMPHASIS_5015
	.comm	_AC_DIG1_COPYRIGHT,2,1          ## @AC_DIG1_COPYRIGHT
	.comm	_IEC958_AES0_CON_NOT_COPYRIGHT,4,2 ## @IEC958_AES0_CON_NOT_COPYRIGHT
	.comm	_AC_DIG1_LEVEL,2,1              ## @AC_DIG1_LEVEL
	.comm	_IEC958_AES1_CON_ORIGINAL,4,2   ## @IEC958_AES1_CON_ORIGINAL
	.no_dead_strip	_convert_to_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_to_spdif_status
_convert_to_spdif_status:               ; @convert_to_spdif_status
	.cfi_startproc
; %bb.0:
	mov	x8, x0
Lloh0:
	adrp	x9, _AC_DIG1_NONAUDIO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AC_DIG1_NONAUDIO@GOTPAGEOFF]
Lloh2:
	adrp	x10, _IEC958_AES0_NONAUDIO@GOTPAGE
Lloh3:
	ldr	x10, [x10, _IEC958_AES0_NONAUDIO@GOTPAGEOFF]
	ldrh	w9, [x9]
Lloh4:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
Lloh5:
	adrp	x10, _AC_DIG1_PROFESSIONAL@GOTPAGE
Lloh6:
	ldr	x10, [x10, _AC_DIG1_PROFESSIONAL@GOTPAGEOFF]
	ldrh	w10, [x10]
Lloh7:
	adrp	x11, _IEC958_AES0_PROFESSIONAL@GOTPAGE
Lloh8:
	ldr	x11, [x11, _IEC958_AES0_PROFESSIONAL@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
	tst	w10, w0
	csel	w10, wzr, w11, eq
	orr	w0, w10, w9
Lloh10:
	adrp	x9, _AC_DIG1_EMPHASIS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AC_DIG1_EMPHASIS@GOTPAGEOFF]
	ldrh	w9, [x9]
	and	w9, w9, w8
	tst	w0, w11
	b.eq	LBB0_3
; %bb.1:
	cbz	w9, LBB0_4
; %bb.2:
Lloh12:
	adrp	x8, _IEC958_AES0_PRO_EMPHASIS_5015@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IEC958_AES0_PRO_EMPHASIS_5015@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ret
LBB0_3:
Lloh15:
	adrp	x10, _IEC958_AES0_CON_EMPHASIS_5015@GOTPAGE
Lloh16:
	ldr	x10, [x10, _IEC958_AES0_CON_EMPHASIS_5015@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	cmp	w9, #0
	csel	w9, wzr, w10, eq
Lloh18:
	adrp	x10, _AC_DIG1_COPYRIGHT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _AC_DIG1_COPYRIGHT@GOTPAGEOFF]
Lloh20:
	adrp	x11, _IEC958_AES0_CON_NOT_COPYRIGHT@GOTPAGE
Lloh21:
	ldr	x11, [x11, _IEC958_AES0_CON_NOT_COPYRIGHT@GOTPAGEOFF]
	ldrh	w10, [x10]
Lloh22:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w10, w11, wzr, eq
Lloh23:
	adrp	x11, _AC_DIG1_LEVEL@GOTPAGE
Lloh24:
	ldr	x11, [x11, _AC_DIG1_LEVEL@GOTPAGEOFF]
	ldrh	w11, [x11]
Lloh25:
	adrp	x12, _IEC958_AES1_CON_ORIGINAL@GOTPAGE
Lloh26:
	ldr	x12, [x12, _IEC958_AES1_CON_ORIGINAL@GOTPAGEOFF]
Lloh27:
	ldr	w12, [x12]
	lsl	w12, w12, #8
	tst	w11, w8
	csel	w11, wzr, w12, eq
	and	w8, w8, #0x7f00
	orr	w8, w0, w8
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w0, w8, w11
LBB0_4:
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_AC_DIG1_NONAUDIO,2,1           ; @AC_DIG1_NONAUDIO
	.comm	_IEC958_AES0_NONAUDIO,4,2       ; @IEC958_AES0_NONAUDIO
	.comm	_AC_DIG1_PROFESSIONAL,2,1       ; @AC_DIG1_PROFESSIONAL
	.comm	_IEC958_AES0_PROFESSIONAL,4,2   ; @IEC958_AES0_PROFESSIONAL
	.comm	_AC_DIG1_EMPHASIS,2,1           ; @AC_DIG1_EMPHASIS
	.comm	_IEC958_AES0_PRO_EMPHASIS_5015,4,2 ; @IEC958_AES0_PRO_EMPHASIS_5015
	.comm	_IEC958_AES0_CON_EMPHASIS_5015,4,2 ; @IEC958_AES0_CON_EMPHASIS_5015
	.comm	_AC_DIG1_COPYRIGHT,2,1          ; @AC_DIG1_COPYRIGHT
	.comm	_IEC958_AES0_CON_NOT_COPYRIGHT,4,2 ; @IEC958_AES0_CON_NOT_COPYRIGHT
	.comm	_AC_DIG1_LEVEL,2,1              ; @AC_DIG1_LEVEL
	.comm	_IEC958_AES1_CON_ORIGINAL,4,2   ; @IEC958_AES1_CON_ORIGINAL
	.no_dead_strip	_convert_to_spdif_status
.subsections_via_symbols
