	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_vt1724_set_pro_rate
_snd_vt1724_set_pro_rate:               ## @snd_vt1724_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
	movq	80(%rdi), %rax
	movq	(%rax), %rcx
	movslq	8(%rax), %rax
	cmpl	%esi, -4(%rcx,%rax,4)
	jae	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_25
LBB0_2:
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %r13
	leaq	64(%rdi), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_DMA_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_ICEMT1724
	movl	%eax, %edi
	callq	_inb
	movq	_DMA_STARTS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	_DMA_PAUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_ICEMT1724
	movl	%eax, %edi
	callq	_inb
	movq	_DMA_PAUSES@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
LBB0_4:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	xorl	(%r13), %r14d
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	xorl	%eax, %eax
	orl	%r14d, %r12d
	cmovel	%eax, %ebx
LBB0_25:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	testl	%r12d, %r12d
	je	LBB0_6
LBB0_8:
	movq	%r13, %rdi
	callq	*8(%r13)
	testl	%r12d, %r12d
	jne	LBB0_10
## %bb.9:
	cmpl	%r14d, %eax
	jne	LBB0_10
## %bb.23:
	cmpl	%r14d, (%r13)
	jne	LBB0_11
## %bb.24:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%ebx, %ebx
	jmp	LBB0_25
LBB0_10:
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	*72(%r13)
LBB0_11:
	movl	%r14d, (%r13)
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	*16(%r13)
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	testb	%bl, %bl
	je	LBB0_14
## %bb.12:
	movq	56(%r13), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%r13, %rdi
	callq	*%rax
LBB0_14:
	movq	48(%r13), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	*%rax
LBB0_16:
	movl	24(%r13), %eax
	testl	%eax, %eax
	je	LBB0_21
## %bb.17:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%r15
	movl	%eax, %ecx
	addq	$8, %rbx
	cmpq	%rcx, %r15
	jae	LBB0_21
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%r13), %rdi
	movq	(%rdi,%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	addq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*%rcx
	movl	24(%r13), %eax
	jmp	LBB0_20
LBB0_21:
	movq	32(%r13), %rcx
	xorl	%ebx, %ebx
	testq	%rcx, %rcx
	je	LBB0_25
## %bb.22:
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	*%rcx
	jmp	LBB0_25
LBB0_6:
	movq	%r13, %rdi
	callq	_is_pro_rate_locked
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	cmpl	%r14d, (%r13)
	cmovel	%ecx, %ebx
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DMA_CONTROL,4,2                ## @DMA_CONTROL
	.comm	_DMA_STARTS,4,2                 ## @DMA_STARTS
	.comm	_DMA_PAUSE,4,2                  ## @DMA_PAUSE
	.comm	_DMA_PAUSES,4,2                 ## @DMA_PAUSES
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_snd_vt1724_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_vt1724_set_pro_rate
_snd_vt1724_set_pro_rate:               ; @snd_vt1724_set_pro_rate
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0, #80]
	ldr	x9, [x8]
	ldrsw	x8, [x8, #8]
	add	x8, x9, x8, lsl #2
	ldur	w8, [x8, #-4]
	cmp	w8, w1
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_2:
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	add	x21, x0, #64
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x8, _DMA_CONTROL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_CONTROL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ICEMT1724
	bl	_inb
Lloh6:
	adrp	x8, _DMA_STARTS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMA_STARTS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _DMA_PAUSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DMA_PAUSE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ICEMT1724
	bl	_inb
Lloh12:
	adrp	x8, _DMA_PAUSES@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DMA_PAUSES@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
LBB0_4:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	w8, [x20]
	cmp	w8, w19
	ccmp	w22, #0, #0, eq
Lloh15:
	adrp	x8, _EBUSY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	csneg	w0, wzr, w8, eq
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	cbz	w22, LBB0_25
LBB0_7:
	ldr	x8, [x20, #8]
	mov	x0, x20
	blr	x8
	cbnz	w22, LBB0_11
; %bb.8:
	cmp	w0, w19
	b.ne	LBB0_11
; %bb.9:
	ldr	w8, [x20]
	cmp	w8, w19
	b.ne	LBB0_12
; %bb.10:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	b	LBB0_24
LBB0_11:
	ldr	x8, [x20, #72]
	mov	x0, x20
	mov	x1, x19
	blr	x8
LBB0_12:
	str	w19, [x20]
	ldr	x8, [x20, #16]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	mov	x22, x0
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	cbz	w22, LBB0_15
; %bb.13:
	ldr	x8, [x20, #56]
	cbz	x8, LBB0_15
; %bb.14:
	mov	x0, x20
	blr	x8
LBB0_15:
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_17
; %bb.16:
	mov	x0, x20
	mov	x1, x19
	blr	x8
LBB0_17:
	ldr	w8, [x20, #24]
	cbz	w8, LBB0_22
; %bb.18:
	mov	x21, #0
	mov	x22, #0
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x22, x22, #1
	add	x21, x21, #8
	cmp	x22, w8, uxtw
	b.hs	LBB0_22
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #40]
	add	x0, x9, x21
	ldr	x9, [x0]
	cbz	x9, LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x1, x19
	blr	x9
	ldr	w8, [x20, #24]
	b	LBB0_19
LBB0_22:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_24
; %bb.23:
	mov	x0, x20
	mov	x1, x19
	blr	x8
LBB0_24:
	mov	w0, #0
	b	LBB0_5
LBB0_25:
	mov	x0, x20
	bl	_is_pro_rate_locked
	cbz	x0, LBB0_7
; %bb.26:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	w8, [x20]
Lloh18:
	adrp	x9, _EBUSY@GOTPAGE
Lloh19:
	ldr	x9, [x9, _EBUSY@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w8, w19
	csneg	w0, wzr, w9, eq
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DMA_CONTROL,4,2                ; @DMA_CONTROL
	.comm	_DMA_STARTS,4,2                 ; @DMA_STARTS
	.comm	_DMA_PAUSE,4,2                  ; @DMA_PAUSE
	.comm	_DMA_PAUSES,4,2                 ; @DMA_PAUSES
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_snd_vt1724_set_pro_rate
.subsections_via_symbols
