	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_hdsp_convert_from_aes
_snd_hdsp_convert_from_aes:             ## @snd_hdsp_convert_from_aes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movl	(%rax), %eax
	movq	_IEC958_AES0_PROFESSIONAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_HDSP_SPDIFProfessional@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cmovnel	%esi, %edx
	movq	_IEC958_AES0_NONAUDIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	je	LBB0_2
## %bb.1:
	movq	_HDSP_SPDIFNonAudio@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	orl	%edx, %ecx
	testl	%esi, %ecx
	jne	LBB0_3
## %bb.4:
	movq	_IEC958_AES0_CON_EMPHASIS_5015@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	jne	LBB0_6
	jmp	LBB0_7
LBB0_3:
	movq	_IEC958_AES0_PRO_EMPHASIS_5015@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	je	LBB0_7
LBB0_6:
	movq	_HDSP_SPDIFEmphasis@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	orl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEC958_AES0_PROFESSIONAL,4,2   ## @IEC958_AES0_PROFESSIONAL
	.comm	_HDSP_SPDIFProfessional,4,2     ## @HDSP_SPDIFProfessional
	.comm	_IEC958_AES0_NONAUDIO,4,2       ## @IEC958_AES0_NONAUDIO
	.comm	_HDSP_SPDIFNonAudio,4,2         ## @HDSP_SPDIFNonAudio
	.comm	_IEC958_AES0_PRO_EMPHASIS_5015,4,2 ## @IEC958_AES0_PRO_EMPHASIS_5015
	.comm	_HDSP_SPDIFEmphasis,4,2         ## @HDSP_SPDIFEmphasis
	.comm	_IEC958_AES0_CON_EMPHASIS_5015,4,2 ## @IEC958_AES0_CON_EMPHASIS_5015
	.no_dead_strip	_snd_hdsp_convert_from_aes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_hdsp_convert_from_aes
_snd_hdsp_convert_from_aes:             ; @snd_hdsp_convert_from_aes
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _IEC958_AES0_PROFESSIONAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEC958_AES0_PROFESSIONAL@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _HDSP_SPDIFProfessional@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HDSP_SPDIFProfessional@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w9, wzr, w10, eq
Lloh6:
	adrp	x11, _IEC958_AES0_NONAUDIO@GOTPAGE
Lloh7:
	ldr	x11, [x11, _IEC958_AES0_NONAUDIO@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
Lloh9:
	adrp	x12, _HDSP_SPDIFNonAudio@GOTPAGE
Lloh10:
	ldr	x12, [x12, _HDSP_SPDIFNonAudio@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
	tst	w11, w8
	csel	w11, wzr, w12, eq
	orr	w9, w11, w9
Lloh12:
	adrp	x11, _IEC958_AES0_CON_EMPHASIS_5015@GOTPAGE
Lloh13:
	ldr	x11, [x11, _IEC958_AES0_CON_EMPHASIS_5015@GOTPAGEOFF]
Lloh14:
	adrp	x12, _IEC958_AES0_PRO_EMPHASIS_5015@GOTPAGE
Lloh15:
	ldr	x12, [x12, _IEC958_AES0_PRO_EMPHASIS_5015@GOTPAGEOFF]
	tst	w9, w10
	csel	x10, x11, x12, eq
Lloh16:
	adrp	x11, _HDSP_SPDIFEmphasis@GOTPAGE
Lloh17:
	ldr	x11, [x11, _HDSP_SPDIFEmphasis@GOTPAGEOFF]
	ldr	w10, [x10]
Lloh18:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w8, wzr, w11, eq
	orr	w0, w8, w9
	ret
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IEC958_AES0_PROFESSIONAL,4,2   ; @IEC958_AES0_PROFESSIONAL
	.comm	_HDSP_SPDIFProfessional,4,2     ; @HDSP_SPDIFProfessional
	.comm	_IEC958_AES0_NONAUDIO,4,2       ; @IEC958_AES0_NONAUDIO
	.comm	_HDSP_SPDIFNonAudio,4,2         ; @HDSP_SPDIFNonAudio
	.comm	_IEC958_AES0_PRO_EMPHASIS_5015,4,2 ; @IEC958_AES0_PRO_EMPHASIS_5015
	.comm	_HDSP_SPDIFEmphasis,4,2         ; @HDSP_SPDIFEmphasis
	.comm	_IEC958_AES0_CON_EMPHASIS_5015,4,2 ; @IEC958_AES0_CON_EMPHASIS_5015
	.no_dead_strip	_snd_hdsp_convert_from_aes
.subsections_via_symbols
