	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ice1712_delta_cs8403_spdif_write
_snd_ice1712_delta_cs8403_spdif_write:  ## @snd_ice1712_delta_cs8403_spdif_write
	.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
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	_ICE1712_DELTA_SPDIF_OUT_STAT_CLOCK@GOTPCREL(%rip), %rax
	movb	(%rax), %r12b
	movq	_ICE1712_DELTA_SPDIF_OUT_STAT_DATA@GOTPCREL(%rip), %rax
	movb	(%rax), %r14b
	callq	_mutex_lock
	movq	_ICE1712_IREG_GPIO_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_snd_ice1712_read
	movl	%eax, %ebx
	movzbl	%r14b, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movb	%r12b, -41(%rbp)                ## 1-byte Spill
	orb	%r12b, %r14b
	notb	%r14b
	movb	%r14b, -42(%rbp)                ## 1-byte Spill
	movl	$7, %r12d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	andb	-42(%rbp), %bl                  ## 1-byte Folded Reload
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	btl	%r12d, %eax
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	$0, %eax
	cmovael	%eax, %r13d
	orb	%bl, %r13b
	movq	_ICE1712_IREG_GPIO_DATA@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movzbl	%r13b, %ebx
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_snd_ice1712_write
	movl	$100, %edi
	callq	_udelay
	orb	-41(%rbp), %bl                  ## 1-byte Folded Reload
	movl	(%r14), %esi
	movzbl	%bl, %edx
	movq	%r15, %rdi
	callq	_snd_ice1712_write
	movl	$100, %edi
	callq	_udelay
	addl	$-1, %r12d
	jb	LBB0_1
## %bb.2:
	movb	-41(%rbp), %r14b                ## 1-byte Reload
	notb	%r14b
	andb	%r14b, %r13b
	movq	_ICE1712_IREG_GPIO_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%r13b, %edx
	movq	%r15, %rdi
	callq	_snd_ice1712_write
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE1712_DELTA_SPDIF_OUT_STAT_CLOCK,1,0 ## @ICE1712_DELTA_SPDIF_OUT_STAT_CLOCK
	.comm	_ICE1712_DELTA_SPDIF_OUT_STAT_DATA,1,0 ## @ICE1712_DELTA_SPDIF_OUT_STAT_DATA
	.comm	_ICE1712_IREG_GPIO_DATA,4,2     ## @ICE1712_IREG_GPIO_DATA
	.no_dead_strip	_snd_ice1712_delta_cs8403_spdif_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ice1712_delta_cs8403_spdif_write
_snd_ice1712_delta_cs8403_spdif_write:  ; @snd_ice1712_delta_cs8403_spdif_write
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ICE1712_DELTA_SPDIF_OUT_STAT_CLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICE1712_DELTA_SPDIF_OUT_STAT_CLOCK@GOTPAGEOFF]
	ldrb	w22, [x8]
Lloh2:
	adrp	x8, _ICE1712_DELTA_SPDIF_OUT_STAT_DATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ICE1712_DELTA_SPDIF_OUT_STAT_DATA@GOTPAGEOFF]
	ldrb	w23, [x8]
	bl	_mutex_lock
Lloh4:
	adrp	x24, _ICE1712_IREG_GPIO_DATA@GOTPAGE
Lloh5:
	ldr	x24, [x24, _ICE1712_IREG_GPIO_DATA@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_snd_ice1712_read
	mov	x21, x0
	orr	w8, w23, w22
	mvn	w25, w8
	mov	w26, #7
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	and	w8, w21, w25
	lsr	w9, w20, w26
	sbfx	w9, w9, #0, #1
	and	w9, w9, w23
	orr	w27, w9, w8
	ldr	w1, [x24]
	and	w2, w27, #0xff
	mov	x0, x19
	bl	_snd_ice1712_write
	mov	w0, #100
	bl	_udelay
	orr	w21, w27, w22
	ldr	w1, [x24]
	and	w2, w21, #0xff
	mov	x0, x19
	bl	_snd_ice1712_write
	mov	w0, #100
	bl	_udelay
	sub	w26, w26, #1
	cmn	w26, #1
	b.ne	LBB0_1
; %bb.2:
	bic	w8, w27, w22
	ldr	w1, [x24]
	and	w2, w8, #0xff
	mov	x0, x19
	bl	_snd_ice1712_write
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE1712_DELTA_SPDIF_OUT_STAT_CLOCK,1,0 ; @ICE1712_DELTA_SPDIF_OUT_STAT_CLOCK
	.comm	_ICE1712_DELTA_SPDIF_OUT_STAT_DATA,1,0 ; @ICE1712_DELTA_SPDIF_OUT_STAT_DATA
	.comm	_ICE1712_IREG_GPIO_DATA,4,2     ; @ICE1712_IREG_GPIO_DATA
	.no_dead_strip	_snd_ice1712_delta_cs8403_spdif_write
.subsections_via_symbols
