	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ice1712_set_pro_rate
_snd_ice1712_set_pro_rate:              ## @snd_ice1712_set_pro_rate
	.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	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r12
	cmpl	$23999, %esi                    ## imm = 0x5DBF
	jle	LBB0_1
## %bb.11:
	cmpl	$47999, %r14d                   ## imm = 0xBB7F
	jle	LBB0_12
## %bb.16:
	cmpl	$88199, %r14d                   ## imm = 0x15887
	jg	LBB0_20
## %bb.17:
	cmpl	$48000, %r14d                   ## imm = 0xBB80
	je	LBB0_28
## %bb.18:
	cmpl	$64000, %r14d                   ## imm = 0xFA00
	jne	LBB0_30
## %bb.19:
	movb	$15, %r13b
	jmp	LBB0_31
LBB0_1:
	cmpl	$11999, %r14d                   ## imm = 0x2EDF
	jg	LBB0_7
## %bb.2:
	cmpl	$8000, %r14d                    ## imm = 0x1F40
	je	LBB0_3
## %bb.4:
	cmpl	$9600, %r14d                    ## imm = 0x2580
	je	LBB0_23
## %bb.5:
	cmpl	$11025, %r14d                   ## imm = 0x2B11
	jne	LBB0_30
## %bb.6:
	movb	$10, %r13b
	jmp	LBB0_31
LBB0_12:
	cmpl	$24000, %r14d                   ## imm = 0x5DC0
	je	LBB0_26
## %bb.13:
	cmpl	$32000, %r14d                   ## imm = 0x7D00
	je	LBB0_27
## %bb.14:
	cmpl	$44100, %r14d                   ## imm = 0xAC44
	jne	LBB0_30
## %bb.15:
	movb	$8, %r13b
	jmp	LBB0_31
LBB0_7:
	cmpl	$12000, %r14d                   ## imm = 0x2EE0
	je	LBB0_24
## %bb.8:
	cmpl	$16000, %r14d                   ## imm = 0x3E80
	je	LBB0_25
## %bb.9:
	cmpl	$22050, %r14d                   ## imm = 0x5622
	jne	LBB0_30
## %bb.10:
	movb	$9, %r13b
	jmp	LBB0_31
LBB0_20:
	cmpl	$88200, %r14d                   ## imm = 0x15888
	je	LBB0_29
## %bb.21:
	cmpl	$96000, %r14d                   ## imm = 0x17700
	jne	LBB0_30
## %bb.22:
	movb	$7, %r13b
	jmp	LBB0_31
LBB0_28:
	xorl	%r13d, %r13d
	jmp	LBB0_31
LBB0_3:
	movb	$6, %r13b
	jmp	LBB0_31
LBB0_23:
	movb	$3, %r13b
	jmp	LBB0_31
LBB0_26:
	movb	$1, %r13b
	jmp	LBB0_31
LBB0_27:
	movb	$4, %r13b
	jmp	LBB0_31
LBB0_24:
	movb	$2, %r13b
	jmp	LBB0_31
LBB0_25:
	movb	$5, %r13b
	jmp	LBB0_31
LBB0_29:
	movb	$11, %r13b
	jmp	LBB0_31
LBB0_30:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_snd_BUG
	movl	$48000, %r14d                   ## imm = 0xBB80
LBB0_31:
	leaq	32(%r12), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	_PLAYBACK_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ICEMT
	movl	%eax, %edi
	callq	_inb
	movq	_ICE1712_CAPTURE_START_SHADOW@GOTPCREL(%rip), %rcx
	movq	_ICE1712_PLAYBACK_PAUSE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_ICE1712_PLAYBACK_START@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_32
LBB0_45:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_32:
	testl	%r15d, %r15d
	je	LBB0_33
LBB0_34:
	movq	_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ICEMT
	movl	%eax, %edi
	callq	_inb
	testl	%r15d, %r15d
	jne	LBB0_36
## %bb.35:
	cmpb	%al, %r13b
	je	LBB0_45
LBB0_36:
	movq	_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ICEMT
	movzbl	%r13b, %edi
	movl	%eax, %esi
	callq	_outb
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	24(%r12), %rax
	testq	%rax, %rax
	je	LBB0_38
## %bb.37:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	*%rax
LBB0_38:
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_43
## %bb.39:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_40
	.p2align	4, 0x90
LBB0_42:                                ##   in Loop: Header=BB0_40 Depth=1
	incq	%r15
	movl	%eax, %ecx
	addq	$8, %rbx
	cmpq	%rcx, %r15
	jae	LBB0_43
LBB0_40:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rdi
	movq	(%rdi,%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_40 Depth=1
	addq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*%rcx
	movl	(%r12), %eax
	jmp	LBB0_42
LBB0_43:
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_44
## %bb.46:
	movq	%r12, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_33:
	movq	%r12, %rdi
	callq	_is_pro_rate_locked
	testq	%rax, %rax
	jne	LBB0_45
	jmp	LBB0_34
LBB0_44:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PLAYBACK_CONTROL,4,2           ## @PLAYBACK_CONTROL
	.comm	_ICE1712_CAPTURE_START_SHADOW,4,2 ## @ICE1712_CAPTURE_START_SHADOW
	.comm	_ICE1712_PLAYBACK_PAUSE,4,2     ## @ICE1712_PLAYBACK_PAUSE
	.comm	_ICE1712_PLAYBACK_START,4,2     ## @ICE1712_PLAYBACK_START
	.comm	_RATE,4,2                       ## @RATE
	.no_dead_strip	_snd_ice1712_set_pro_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ice1712_set_pro_rate
_snd_ice1712_set_pro_rate:              ; @snd_ice1712_set_pro_rate
	.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, x2
	mov	x20, x1
	mov	x19, x0
	mov	w8, #23999
	cmp	w1, w8
	b.le	LBB0_6
; %bb.1:
	mov	w8, #47999
	cmp	w20, w8
	b.le	LBB0_11
; %bb.2:
	mov	w8, #22663
	movk	w8, #1, lsl #16
	cmp	w20, w8
	b.gt	LBB0_19
; %bb.3:
	mov	w8, #48000
	cmp	w20, w8
	b.eq	LBB0_22
; %bb.4:
	mov	w8, #64000
	cmp	w20, w8
	b.ne	LBB0_30
; %bb.5:
	mov	w22, #15
	b	LBB0_31
LBB0_6:
	mov	w8, #11999
	cmp	w20, w8
	b.gt	LBB0_15
; %bb.7:
	mov	w8, #8000
	cmp	w20, w8
	b.eq	LBB0_23
; %bb.8:
	mov	w8, #9600
	cmp	w20, w8
	b.eq	LBB0_24
; %bb.9:
	mov	w8, #11025
	cmp	w20, w8
	b.ne	LBB0_30
; %bb.10:
	mov	w22, #10
	b	LBB0_31
LBB0_11:
	mov	w8, #24000
	cmp	w20, w8
	b.eq	LBB0_25
; %bb.12:
	mov	w8, #32000
	cmp	w20, w8
	b.eq	LBB0_26
; %bb.13:
	mov	w8, #44100
	cmp	w20, w8
	b.ne	LBB0_30
; %bb.14:
	mov	w22, #8
	b	LBB0_31
LBB0_15:
	mov	w8, #12000
	cmp	w20, w8
	b.eq	LBB0_27
; %bb.16:
	mov	w8, #16000
	cmp	w20, w8
	b.eq	LBB0_28
; %bb.17:
	mov	w8, #22050
	cmp	w20, w8
	b.ne	LBB0_30
; %bb.18:
	mov	w22, #9
	b	LBB0_31
LBB0_19:
	mov	w8, #22664
	movk	w8, #1, lsl #16
	cmp	w20, w8
	b.eq	LBB0_29
; %bb.20:
	mov	w8, #30464
	movk	w8, #1, lsl #16
	cmp	w20, w8
	b.ne	LBB0_30
; %bb.21:
	mov	w22, #7
	b	LBB0_31
LBB0_22:
	mov	w22, #0
	b	LBB0_31
LBB0_23:
	mov	w22, #6
	b	LBB0_31
LBB0_24:
	mov	w22, #3
	b	LBB0_31
LBB0_25:
	mov	w22, #1
	b	LBB0_31
LBB0_26:
	mov	w22, #4
	b	LBB0_31
LBB0_27:
	mov	w22, #2
	b	LBB0_31
LBB0_28:
	mov	w22, #5
	b	LBB0_31
LBB0_29:
	mov	w22, #11
	b	LBB0_31
LBB0_30:
	bl	_snd_BUG
	mov	w22, #0
	mov	w20, #48000
LBB0_31:
	add	x23, x19, #32
	mov	x0, x23
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _PLAYBACK_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PLAYBACK_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ICEMT
	bl	_inb
Lloh3:
	adrp	x8, _ICE1712_CAPTURE_START_SHADOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ICE1712_CAPTURE_START_SHADOW@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ICE1712_PLAYBACK_PAUSE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ICE1712_PLAYBACK_PAUSE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _ICE1712_PLAYBACK_START@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ICE1712_PLAYBACK_START@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w0
	b.eq	LBB0_33
LBB0_32:
	mov	x0, x23
	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
	b	_spin_unlock_irqrestore
LBB0_33:
	cbz	w21, LBB0_45
LBB0_34:
Lloh12:
	adrp	x24, _RATE@GOTPAGE
Lloh13:
	ldr	x24, [x24, _RATE@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_ICEMT
	bl	_inb
	cbnz	w21, LBB0_36
; %bb.35:
	cmp	w22, w0, uxtb
	b.eq	LBB0_32
LBB0_36:
	ldr	w1, [x24]
	mov	x0, x19
	bl	_ICEMT
	mov	x1, x0
	mov	x0, x22
	bl	_outb
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_38
; %bb.37:
	mov	x0, x19
	mov	x1, x20
	blr	x8
LBB0_38:
	ldr	w8, [x19]
	cbz	w8, LBB0_43
; %bb.39:
	mov	x21, #0
	mov	x22, #0
	b	LBB0_41
LBB0_40:                                ;   in Loop: Header=BB0_41 Depth=1
	add	x22, x22, #1
	add	x21, x21, #8
	cmp	x22, w8, uxtw
	b.hs	LBB0_43
LBB0_41:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	add	x0, x9, x21
	ldr	x9, [x0]
	cbz	x9, LBB0_40
; %bb.42:                               ;   in Loop: Header=BB0_41 Depth=1
	mov	x1, x20
	blr	x9
	ldr	w8, [x19]
	b	LBB0_40
LBB0_43:
	ldr	x2, [x19, #8]
	cbz	x2, LBB0_46
; %bb.44:
	mov	x0, x19
	mov	x1, x20
	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
	br	x2
LBB0_45:
	mov	x0, x19
	bl	_is_pro_rate_locked
	cbnz	x0, LBB0_32
	b	LBB0_34
LBB0_46:
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PLAYBACK_CONTROL,4,2           ; @PLAYBACK_CONTROL
	.comm	_ICE1712_CAPTURE_START_SHADOW,4,2 ; @ICE1712_CAPTURE_START_SHADOW
	.comm	_ICE1712_PLAYBACK_PAUSE,4,2     ; @ICE1712_PLAYBACK_PAUSE
	.comm	_ICE1712_PLAYBACK_START,4,2     ; @ICE1712_PLAYBACK_START
	.comm	_RATE,4,2                       ; @RATE
	.no_dead_strip	_snd_ice1712_set_pro_rate
.subsections_via_symbols
