	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_hdsp_convert_to_aes
_snd_hdsp_convert_to_aes:               ## @snd_hdsp_convert_to_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	_HDSP_SPDIFProfessional@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ecx
	andl	%esi, %ecx
	je	LBB0_2
## %bb.1:
	movq	_IEC958_AES0_PROFESSIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_2:
	movq	_HDSP_SPDIFNonAudio@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%esi, %eax
	je	LBB0_4
## %bb.3:
	movq	_IEC958_AES0_NONAUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	orl	%ecx, %eax
	movq	(%rdi), %rcx
	movl	%eax, (%rcx)
	movl	(%rdx), %edx
	andl	%esi, %edx
	movq	_HDSP_SPDIFEmphasis@GOTPCREL(%rip), %rdi
	andl	(%rdi), %esi
	testl	%edx, %edx
	jne	LBB0_5
## %bb.6:
	movq	_IEC958_AES0_CON_EMPHASIS_5015@GOTPCREL(%rip), %rdx
	testl	%esi, %esi
	jne	LBB0_8
	jmp	LBB0_9
LBB0_5:
	movq	_IEC958_AES0_PRO_EMPHASIS_5015@GOTPCREL(%rip), %rdx
	testl	%esi, %esi
	je	LBB0_9
LBB0_8:
	movl	(%rdx), %esi
LBB0_9:
	orl	%eax, %esi
	movl	%esi, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDSP_SPDIFProfessional,4,2     ## @HDSP_SPDIFProfessional
	.comm	_IEC958_AES0_PROFESSIONAL,4,2   ## @IEC958_AES0_PROFESSIONAL
	.comm	_HDSP_SPDIFNonAudio,4,2         ## @HDSP_SPDIFNonAudio
	.comm	_IEC958_AES0_NONAUDIO,4,2       ## @IEC958_AES0_NONAUDIO
	.comm	_HDSP_SPDIFEmphasis,4,2         ## @HDSP_SPDIFEmphasis
	.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
	.no_dead_strip	_snd_hdsp_convert_to_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_to_aes
_snd_hdsp_convert_to_aes:               ; @snd_hdsp_convert_to_aes
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _HDSP_SPDIFProfessional@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDSP_SPDIFProfessional@GOTPAGEOFF]
Lloh2:
	adrp	x9, _IEC958_AES0_PROFESSIONAL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IEC958_AES0_PROFESSIONAL@GOTPAGEOFF]
	ldr	w10, [x8]
Lloh4:
	ldr	w9, [x9]
	tst	w10, w1
	csel	w9, wzr, w9, eq
Lloh5:
	adrp	x10, _HDSP_SPDIFNonAudio@GOTPAGE
Lloh6:
	ldr	x10, [x10, _HDSP_SPDIFNonAudio@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
Lloh8:
	adrp	x11, _IEC958_AES0_NONAUDIO@GOTPAGE
Lloh9:
	ldr	x11, [x11, _IEC958_AES0_NONAUDIO@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	tst	w10, w1
	csel	w10, wzr, w11, eq
	orr	w9, w10, w9
	ldr	x10, [x0]
	str	w9, [x10]
	ldr	w8, [x8]
Lloh11:
	adrp	x11, _HDSP_SPDIFEmphasis@GOTPAGE
Lloh12:
	ldr	x11, [x11, _HDSP_SPDIFEmphasis@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
Lloh14:
	adrp	x12, _IEC958_AES0_CON_EMPHASIS_5015@GOTPAGE
Lloh15:
	ldr	x12, [x12, _IEC958_AES0_CON_EMPHASIS_5015@GOTPAGEOFF]
Lloh16:
	adrp	x13, _IEC958_AES0_PRO_EMPHASIS_5015@GOTPAGE
Lloh17:
	ldr	x13, [x13, _IEC958_AES0_PRO_EMPHASIS_5015@GOTPAGEOFF]
	tst	w8, w1
	csel	x8, x12, x13, eq
	ldr	w8, [x8]
	tst	w11, w1
	csel	w8, wzr, w8, eq
	orr	w8, w8, w9
	str	w8, [x10]
	ret
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HDSP_SPDIFProfessional,4,2     ; @HDSP_SPDIFProfessional
	.comm	_IEC958_AES0_PROFESSIONAL,4,2   ; @IEC958_AES0_PROFESSIONAL
	.comm	_HDSP_SPDIFNonAudio,4,2         ; @HDSP_SPDIFNonAudio
	.comm	_IEC958_AES0_NONAUDIO,4,2       ; @IEC958_AES0_NONAUDIO
	.comm	_HDSP_SPDIFEmphasis,4,2         ; @HDSP_SPDIFEmphasis
	.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
	.no_dead_strip	_snd_hdsp_convert_to_aes
.subsections_via_symbols
