	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ice1712_pro_internal_clock_put
_snd_ice1712_pro_internal_clock_put:    ## @snd_ice1712_pro_internal_clock_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	callq	_snd_kcontrol_chip
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_spin_lock_irq
	movq	_RATE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_ICEMT
	movl	%eax, %edi
	callq	_inb
	movl	%eax, %r14d
	movq	8(%r15), %rax
	cmpl	$13, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_ICE1712_SPDIF_MASTER@GOTPCREL(%rip), %rax
	movb	(%rax), %r15b
	orb	%r14b, %r15b
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_ICEMT
	movzbl	%r15b, %edi
	movl	%eax, %esi
	callq	_outb
	jmp	LBB0_3
LBB0_2:
	movq	(%r15), %rax
	movslq	(%rax), %rax
	imulq	$1321528399, %rax, %rcx         ## imm = 0x4EC4EC4F
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$34, %rcx
	addl	%edx, %ecx
	leal	(%rcx,%rcx,2), %edx
	leal	(%rcx,%rdx,4), %ecx
	subl	%ecx, %eax
	cltq
	leaq	_snd_ice1712_pro_internal_clock_put.xrate(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	movq	_PRO_RATE_DEFAULT@GOTPCREL(%rip), %r15
	movl	%eax, (%r15)
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_snd_ice1712_set_pro_rate
	movq	%rbx, %rdi
	callq	_spin_lock_irq
LBB0_3:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_ICEMT
	movl	%eax, %edi
	callq	_inb
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	movq	_ICE1712_SPDIF_MASTER@GOTPCREL(%rip), %r13
	movq	%r12, %rax
	movb	(%r13), %r12b
	andb	%r14b, %r12b
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ICEMT
	movl	%eax, %edi
	callq	_inb
	andb	(%r13), %al
	cmpb	%al, %r12b
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_is_spdif_master
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_snd_ice1712_set_input_clock_source
LBB0_5:
	xorl	%eax, %eax
	cmpb	%r14b, %r15b
	setne	%al
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @snd_ice1712_pro_internal_clock_put.xrate
_snd_ice1712_pro_internal_clock_put.xrate:
	.long	8000                            ## 0x1f40
	.long	9600                            ## 0x2580
	.long	11025                           ## 0x2b11
	.long	12000                           ## 0x2ee0
	.long	16000                           ## 0x3e80
	.long	22050                           ## 0x5622
	.long	24000                           ## 0x5dc0
	.long	32000                           ## 0x7d00
	.long	44100                           ## 0xac44
	.long	48000                           ## 0xbb80
	.long	64000                           ## 0xfa00
	.long	88200                           ## 0x15888
	.long	96000                           ## 0x17700

	.comm	_RATE,4,2                       ## @RATE
	.comm	_ICE1712_SPDIF_MASTER,1,0       ## @ICE1712_SPDIF_MASTER
	.comm	_PRO_RATE_DEFAULT,4,2           ## @PRO_RATE_DEFAULT
	.no_dead_strip	_snd_ice1712_pro_internal_clock_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ice1712_pro_internal_clock_put
_snd_ice1712_pro_internal_clock_put:    ; @snd_ice1712_pro_internal_clock_put
	.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	x21, x1
	bl	_snd_kcontrol_chip
	mov	x19, x0
	bl	_spin_lock_irq
Lloh0:
	adrp	x22, _RATE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _RATE@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ICEMT
	bl	_inb
	mov	x20, x0
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
Lloh2:
	adrp	x23, _ICE1712_SPDIF_MASTER@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ICE1712_SPDIF_MASTER@GOTPAGEOFF]
	cmp	w8, #13
	b.ne	LBB0_2
; %bb.1:
	ldrb	w8, [x23]
	orr	w21, w8, w20
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ICEMT
	mov	x1, x0
	mov	x0, x21
	bl	_outb
	b	LBB0_3
LBB0_2:
	ldr	x8, [x21]
	ldrsw	x8, [x8]
	mov	w9, #60495
	movk	w9, #20164, lsl #16
	mul	x9, x8, x9
	lsr	x10, x9, #63
	asr	x9, x9, #34
	add	w9, w9, w10
	mov	w10, #13
Lloh4:
	adrp	x11, _snd_ice1712_pro_internal_clock_put.xrate@PAGE
Lloh5:
	add	x11, x11, _snd_ice1712_pro_internal_clock_put.xrate@PAGEOFF
	msub	w8, w9, w10, w8
	ldr	w8, [x11, w8, sxtw #2]
Lloh6:
	adrp	x21, _PRO_RATE_DEFAULT@GOTPAGE
Lloh7:
	ldr	x21, [x21, _PRO_RATE_DEFAULT@GOTPAGEOFF]
	str	w8, [x21]
	mov	x0, x19
	bl	_spin_unlock_irq
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #1
	bl	_snd_ice1712_set_pro_rate
	mov	x0, x19
	bl	_spin_lock_irq
LBB0_3:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ICEMT
	bl	_inb
	mov	x21, x0
	mov	x0, x19
	bl	_spin_unlock_irq
	ldrb	w8, [x23]
	and	w24, w8, w20
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ICEMT
	bl	_inb
	ldrb	w8, [x23]
	and	w8, w8, w0
	cmp	w24, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_is_spdif_master
	mov	x1, x0
	mov	x0, x19
	bl	_snd_ice1712_set_input_clock_source
LBB0_5:
	cmp	w21, w20
	cset	w0, ne
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @snd_ice1712_pro_internal_clock_put.xrate
_snd_ice1712_pro_internal_clock_put.xrate:
	.long	8000                            ; 0x1f40
	.long	9600                            ; 0x2580
	.long	11025                           ; 0x2b11
	.long	12000                           ; 0x2ee0
	.long	16000                           ; 0x3e80
	.long	22050                           ; 0x5622
	.long	24000                           ; 0x5dc0
	.long	32000                           ; 0x7d00
	.long	44100                           ; 0xac44
	.long	48000                           ; 0xbb80
	.long	64000                           ; 0xfa00
	.long	88200                           ; 0x15888
	.long	96000                           ; 0x17700

	.comm	_RATE,4,2                       ; @RATE
	.comm	_ICE1712_SPDIF_MASTER,1,0       ; @ICE1712_SPDIF_MASTER
	.comm	_PRO_RATE_DEFAULT,4,2           ; @PRO_RATE_DEFAULT
	.no_dead_strip	_snd_ice1712_pro_internal_clock_put
.subsections_via_symbols
