	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_cs8427_iec958_pcm          ## -- Begin function snd_cs8427_iec958_pcm
	.p2align	4, 0x90
_snd_cs8427_iec958_pcm:                 ## @snd_cs8427_iec958_pcm
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	xorl	%edi, %edi
	testq	%r12, %r12
	sete	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_22
LBB0_2:
	movq	(%r12), %rdi
	movq	8(%r12), %r13
	movq	8(%r13), %r15
	callq	_snd_i2c_lock
	movb	(%r15), %al
	movq	_IEC958_AES0_PROFESSIONAL@GOTPCREL(%rip), %rcx
	testb	%al, (%rcx)
	je	LBB0_10
## %bb.3:
	movq	_IEC958_AES0_PRO_FS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	notb	%cl
	andb	%cl, %al
	movb	%al, (%r15)
	cmpl	$32000, %r14d                   ## imm = 0x7D00
	je	LBB0_4
## %bb.5:
	cmpl	$48000, %r14d                   ## imm = 0xBB80
	je	LBB0_8
## %bb.6:
	cmpl	$44100, %r14d                   ## imm = 0xAC44
	jne	LBB0_9
## %bb.7:
	movq	_IEC958_AES0_PRO_FS_44100@GOTPCREL(%rip), %rdx
	movq	%r15, %rcx
	jmp	LBB0_16
LBB0_10:
	movq	_IEC958_AES3_CON_FS@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	notb	%al
	leaq	3(%r15), %rcx
	andb	3(%r15), %al
	movb	%al, 3(%r15)
	cmpl	$32000, %r14d                   ## imm = 0x7D00
	je	LBB0_11
## %bb.12:
	cmpl	$48000, %r14d                   ## imm = 0xBB80
	je	LBB0_15
## %bb.13:
	cmpl	$44100, %r14d                   ## imm = 0xAC44
	jne	LBB0_17
## %bb.14:
	movq	_IEC958_AES3_CON_FS_44100@GOTPCREL(%rip), %rdx
	jmp	LBB0_16
LBB0_4:
	movq	_IEC958_AES0_PRO_FS_32000@GOTPCREL(%rip), %rdx
	movq	%r15, %rcx
	jmp	LBB0_16
LBB0_8:
	movq	_IEC958_AES0_PRO_FS_48000@GOTPCREL(%rip), %rdx
	movq	%r15, %rcx
	jmp	LBB0_16
LBB0_9:
	movq	_IEC958_AES0_PRO_FS_NOTID@GOTPCREL(%rip), %rdx
	movq	%r15, %rcx
	jmp	LBB0_16
LBB0_11:
	movq	_IEC958_AES3_CON_FS_32000@GOTPCREL(%rip), %rdx
	jmp	LBB0_16
LBB0_15:
	movq	_IEC958_AES3_CON_FS_48000@GOTPCREL(%rip), %rdx
LBB0_16:
	orb	(%rdx), %al
	movb	%al, (%rcx)
LBB0_17:
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	movl	$24, %ecx
	callq	_snd_cs8427_send_corudata
	movl	%eax, %ebx
	testl	%eax, %eax
	jle	LBB0_19
## %bb.18:
	movq	(%r12), %rax
	movl	(%rax), %edi
	movq	_SNDRV_CTL_EVENT_MASK_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%r13), %rdx
	callq	_snd_ctl_notify
LBB0_19:
	movl	(%r13), %r15d
	movl	%r14d, (%r13)
	movq	(%r12), %rdi
	callq	_snd_i2c_unlock
	cmpl	%r14d, %r15d
	je	LBB0_21
## %bb.20:
	movq	%r12, %rdi
	callq	_snd_cs8427_reset
LBB0_21:
	movl	%ebx, %eax
	sarl	$31, %eax
	andl	%ebx, %eax
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_IEC958_AES0_PROFESSIONAL,1,0   ## @IEC958_AES0_PROFESSIONAL
	.comm	_IEC958_AES0_PRO_FS,1,0         ## @IEC958_AES0_PRO_FS
	.comm	_IEC958_AES0_PRO_FS_32000,1,0   ## @IEC958_AES0_PRO_FS_32000
	.comm	_IEC958_AES0_PRO_FS_44100,1,0   ## @IEC958_AES0_PRO_FS_44100
	.comm	_IEC958_AES0_PRO_FS_48000,1,0   ## @IEC958_AES0_PRO_FS_48000
	.comm	_IEC958_AES0_PRO_FS_NOTID,1,0   ## @IEC958_AES0_PRO_FS_NOTID
	.comm	_IEC958_AES3_CON_FS,1,0         ## @IEC958_AES3_CON_FS
	.comm	_IEC958_AES3_CON_FS_32000,1,0   ## @IEC958_AES3_CON_FS_32000
	.comm	_IEC958_AES3_CON_FS_44100,1,0   ## @IEC958_AES3_CON_FS_44100
	.comm	_IEC958_AES3_CON_FS_48000,1,0   ## @IEC958_AES3_CON_FS_48000
	.comm	_SNDRV_CTL_EVENT_MASK_VALUE,4,2 ## @SNDRV_CTL_EVENT_MASK_VALUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_cs8427_iec958_pcm          ; -- Begin function snd_cs8427_iec958_pcm
	.p2align	2
_snd_cs8427_iec958_pcm:                 ; @snd_cs8427_iec958_pcm
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENXIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_2:
	ldp	x0, x22, [x19]
	ldr	x21, [x22, #8]
	bl	_snd_i2c_lock
	ldrb	w8, [x21]
Lloh3:
	adrp	x9, _IEC958_AES0_PROFESSIONAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEC958_AES0_PROFESSIONAL@GOTPAGEOFF]
	ldrb	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.3:
Lloh5:
	adrp	x9, _IEC958_AES0_PRO_FS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IEC958_AES0_PRO_FS@GOTPAGEOFF]
	ldrb	w9, [x9]
	eor	w9, w9, #0xff
	and	w8, w8, w9
	strb	w8, [x21]
Lloh7:
	adrp	x9, _IEC958_AES0_PRO_FS_32000@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IEC958_AES0_PRO_FS_32000@GOTPAGEOFF]
	mov	w10, #32000
	mov	w11, #48000
Lloh9:
	adrp	x12, _IEC958_AES0_PRO_FS_48000@GOTPAGE
Lloh10:
	ldr	x12, [x12, _IEC958_AES0_PRO_FS_48000@GOTPAGEOFF]
	mov	w13, #44100
	cmp	w20, w13
Lloh11:
	adrp	x13, _IEC958_AES0_PRO_FS_NOTID@GOTPAGE
Lloh12:
	ldr	x13, [x13, _IEC958_AES0_PRO_FS_NOTID@GOTPAGEOFF]
Lloh13:
	adrp	x14, _IEC958_AES0_PRO_FS_44100@GOTPAGE
Lloh14:
	ldr	x14, [x14, _IEC958_AES0_PRO_FS_44100@GOTPAGEOFF]
	csel	x13, x13, x14, ne
	cmp	w20, w11
	csel	x11, x12, x13, eq
	cmp	w20, w10
	csel	x10, x9, x11, eq
	mov	x9, x21
LBB0_4:
	ldrb	w10, [x10]
	orr	w8, w10, w8
	strb	w8, [x9]
LBB0_5:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x21
	mov	w3, #24
	bl	_snd_cs8427_send_corudata
	mov	x21, x0
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.6:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _SNDRV_CTL_EVENT_MASK_VALUE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SNDRV_CTL_EVENT_MASK_VALUE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	x2, [x22, #16]
	bl	_snd_ctl_notify
LBB0_7:
	ldr	w23, [x22]
	str	w20, [x22]
	ldr	x0, [x19]
	bl	_snd_i2c_unlock
	cmp	w23, w20
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_snd_cs8427_reset
LBB0_9:
	cmp	w21, #0
	csel	w0, w21, wzr, lt
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh18:
	adrp	x8, _IEC958_AES3_CON_FS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IEC958_AES3_CON_FS@GOTPAGEOFF]
	ldrb	w8, [x8]
	eor	w8, w8, #0xff
	mov	x9, x21
	ldrb	w10, [x9, #3]!
	and	w8, w10, w8
	strb	w8, [x9]
	mov	w10, #32000
	cmp	w20, w10
	b.eq	LBB0_15
; %bb.12:
	mov	w10, #48000
	cmp	w20, w10
	b.eq	LBB0_16
; %bb.13:
	mov	w10, #44100
	cmp	w20, w10
	b.ne	LBB0_5
; %bb.14:
Lloh20:
	adrp	x10, _IEC958_AES3_CON_FS_44100@GOTPAGE
Lloh21:
	ldr	x10, [x10, _IEC958_AES3_CON_FS_44100@GOTPAGEOFF]
	b	LBB0_4
LBB0_15:
Lloh22:
	adrp	x10, _IEC958_AES3_CON_FS_32000@GOTPAGE
Lloh23:
	ldr	x10, [x10, _IEC958_AES3_CON_FS_32000@GOTPAGEOFF]
	b	LBB0_4
LBB0_16:
Lloh24:
	adrp	x10, _IEC958_AES3_CON_FS_48000@GOTPAGE
Lloh25:
	ldr	x10, [x10, _IEC958_AES3_CON_FS_48000@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_IEC958_AES0_PROFESSIONAL,1,0   ; @IEC958_AES0_PROFESSIONAL
	.comm	_IEC958_AES0_PRO_FS,1,0         ; @IEC958_AES0_PRO_FS
	.comm	_IEC958_AES0_PRO_FS_32000,1,0   ; @IEC958_AES0_PRO_FS_32000
	.comm	_IEC958_AES0_PRO_FS_44100,1,0   ; @IEC958_AES0_PRO_FS_44100
	.comm	_IEC958_AES0_PRO_FS_48000,1,0   ; @IEC958_AES0_PRO_FS_48000
	.comm	_IEC958_AES0_PRO_FS_NOTID,1,0   ; @IEC958_AES0_PRO_FS_NOTID
	.comm	_IEC958_AES3_CON_FS,1,0         ; @IEC958_AES3_CON_FS
	.comm	_IEC958_AES3_CON_FS_32000,1,0   ; @IEC958_AES3_CON_FS_32000
	.comm	_IEC958_AES3_CON_FS_44100,1,0   ; @IEC958_AES3_CON_FS_44100
	.comm	_IEC958_AES3_CON_FS_48000,1,0   ; @IEC958_AES3_CON_FS_48000
	.comm	_SNDRV_CTL_EVENT_MASK_VALUE,4,2 ; @SNDRV_CTL_EVENT_MASK_VALUE
.subsections_via_symbols
