	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_cs8427_spdif_put
_snd_cs8427_spdif_put:                  ## @snd_cs8427_spdif_put
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	callq	_snd_kcontrol_chip
	movq	%rax, %r15
	movq	8(%rax), %rax
	xorl	%ecx, %ecx
	cmpq	$0, (%r14)
	sete	%cl
	movq	(%rax,%rcx,8), %rbx
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rax), %rax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r15), %edi
	callq	_snd_i2c_lock
	movl	(%r13), %edi
	movq	%rbx, %rsi
	movl	$24, %edx
	callq	_memcmp
	movq	%rax, %r12
	movl	(%r13), %esi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	$24, %edx
	callq	_memcpy
	xorl	%r13d, %r13d
	testq	%r12, %r12
	setne	%al
	movl	$0, %ebx
	je	LBB0_9
## %bb.4:
	cmpq	$0, (%r14)
	je	LBB0_7
## %bb.5:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_8
## %bb.6:
	movl	$1, %ebx
	jmp	LBB0_9
LBB0_7:
	movl	$1, %ebx
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_9
LBB0_8:
	movb	%al, %r13b
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	$24, %ecx
	callq	_snd_cs8427_send_corudata
	testl	%eax, %eax
	cmovsl	%eax, %r13d
	movl	%r13d, %ebx
LBB0_9:
	movl	(%r15), %edi
	callq	_snd_i2c_unlock
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_cs8427_spdif_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_cs8427_spdif_put
_snd_cs8427_spdif_put:                  ; @snd_cs8427_spdif_put
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	mov	x21, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x9, [x21]
	cmp	x9, #0
	cset	w9, eq
	ldr	x20, [x8, w9, uxtw #3]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x24, [x8]
	b	LBB0_3
LBB0_2:
	mov	x24, #0
LBB0_3:
	ldr	w0, [x19]
	bl	_snd_i2c_lock
	ldr	w0, [x22]
	mov	x1, x20
	mov	w2, #24
	bl	_memcmp
	mov	x23, x0
	cmp	x0, #0
	cset	w25, ne
	ldr	w1, [x22]
	mov	x0, x20
	mov	w2, #24
	bl	_memcpy
	cbz	x23, LBB0_7
; %bb.4:
	ldr	x8, [x21]
	cbz	x8, LBB0_8
; %bb.5:
	cbz	x24, LBB0_9
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	mov	w3, #24
	bl	_snd_cs8427_send_corudata
	cmp	w0, #0
	csel	w20, w0, w25, lt
	b	LBB0_10
LBB0_7:
	mov	w20, #0
	b	LBB0_10
LBB0_8:
	cbz	x24, LBB0_6
LBB0_9:
	mov	w20, #1
LBB0_10:
	ldr	w0, [x19]
	bl	_snd_i2c_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_snd_cs8427_spdif_put
.subsections_via_symbols
