	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ymfpci_pcm_init_voice
_snd_ymfpci_pcm_init_voice:             ## @snd_ymfpci_pcm_init_voice
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	48(%rdi), %rax
	movl	%esi, %ecx
	movq	(%rax,%rcx,8), %r12
	movl	(%rdx), %edi
	callq	_snd_ymfpci_calc_delta
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movl	(%r15), %edi
	callq	_snd_ymfpci_calc_lpfQ
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	(%r15), %edi
	callq	_snd_ymfpci_calc_lpfK
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	testq	%r12, %r12
	sete	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_1
LBB0_35:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %r15d
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	movq	32(%rbx), %rax
	movq	40(%rbx), %rcx
	movq	16(%rax), %rax
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,8), %edi
	shll	$15, %edi
	callq	_cpu_to_le32
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	32(%rbx), %rax
	movq	40(%rbx), %rcx
	movq	16(%rax), %rax
	movq	(%rcx), %rcx
	movl	4(%rax,%rcx,8), %r14d
	shll	$15, %r14d
	jmp	LBB0_4
LBB0_3:
	movl	$1073741824, %r14d              ## imm = 0x40000000
	movl	$1073741824, %edi               ## imm = 0x40000000
	callq	_cpu_to_le32
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_4:
	movl	%r14d, %edi
	callq	_cpu_to_le32
	movq	%rax, %r14
	movq	32(%rbx), %rdi
	addq	$12, %rdi
	callq	_spin_lock_irqsave
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %edi
	xorl	%r12d, %r12d
	cmpl	$2, 4(%rax)
	sete	%r12b
	shll	$16, %r12d
	callq	_snd_pcm_format_width
	cmpl	$8, %eax
	jne	LBB0_6
## %bb.5:
	orl	$-2147483648, %r12d             ## imm = 0x80000000
	movq	32(%rbx), %rdi
	jmp	LBB0_14
LBB0_6:
	movq	32(%rbx), %rdi
	movq	(%rdi), %rax
	movq	_PCI_DEVICE_ID_YAMAHA_754@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$44100, (%rax)                  ## imm = 0xAC44
	jne	LBB0_14
## %bb.8:
	testl	%r13d, %r13d
	jne	LBB0_14
## %bb.9:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$2, 4(%rax)
	jne	LBB0_14
## %bb.10:
	movslq	8(%rdi), %rax
	cmpq	$-1, %rax
	je	LBB0_11
## %bb.12:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rax, (%rcx)
	je	LBB0_13
	jmp	LBB0_14
LBB0_11:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
LBB0_13:
	movl	%eax, 8(%rdi)
	movl	$1, (%rbx)
	orl	$268435456, %r12d               ## imm = 0x10000000
LBB0_14:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movslq	8(%rdi), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rax, (%rcx)
	jne	LBB0_17
## %bb.15:
	movl	%r12d, %eax
	andl	$268435456, %eax                ## imm = 0x10000000
	jne	LBB0_17
## %bb.16:
	movl	$-1, 8(%rdi)
	movl	$0, (%rbx)
LBB0_17:
	cmpl	$1, %r15d
	sete	%r14b
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$2, 4(%rax)
	sete	%al
	andb	%r13b, %al
	movzbl	%al, %eax
	orl	%eax, %r12d
	movl	%r12d, -84(%rbp)                ## 4-byte Spill
	addq	$12, %rdi
	callq	_spin_unlock_irqrestore
	testb	$1, %r13b
	sete	%al
	orb	%r14b, %al
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	orb	%r13b, %r14b
	movb	%r14b, -42(%rbp)                ## 1-byte Spill
	movb	$1, %r13b
	xorl	%eax, %eax
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	%ecx, (%rax)
LBB0_34:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	$1, %eax
	testb	$1, %r13b
	movl	$0, %r13d
	je	LBB0_35
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %r15
	imulq	$112, %rax, %r12
	leaq	(%r15,%r12), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$112, %edx
	callq	_memset
	movl	-84(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le32
	movq	%rax, 104(%r15,%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 96(%r15,%r12)
	movl	4(%rbx), %edi
	callq	_cpu_to_le32
	movq	%rax, 88(%r15,%r12)
	movl	-92(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le32
	movq	%rax, 80(%r15,%r12)
	movl	-96(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le32
	movq	%rax, 64(%r15,%r12)
	movq	%rax, 72(%r15,%r12)
	movl	-88(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le32
	movq	%rax, 48(%r15,%r12)
	movq	%rax, 56(%r15,%r12)
	movl	$1073741824, %edi               ## imm = 0x40000000
	callq	_cpu_to_le32
	movq	%rax, 32(%r15,%r12)
	movq	%rax, 40(%r15,%r12)
	cmpq	$0, 24(%rbx)
	je	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 4(%r15,%r12)
	movl	%eax, (%r14)
LBB0_21:                                ##   in Loop: Header=BB0_18 Depth=1
	testb	$1, -42(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 12(%r15,%r12)
	movl	%eax, 8(%r15,%r12)
LBB0_23:                                ##   in Loop: Header=BB0_18 Depth=1
	cmpq	$0, 16(%rbx)
	je	LBB0_34
## %bb.24:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpl	$0, 8(%rbx)
	je	LBB0_25
## %bb.29:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 28(%r15,%r12)
	movl	%eax, 24(%r15,%r12)
LBB0_31:                                ##   in Loop: Header=BB0_18 Depth=1
	testb	$1, -42(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_34
## %bb.32:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, 20(%r15,%r12)
	leaq	(%r15,%r12), %rax
	addq	$16, %rax
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_18 Depth=1
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 20(%r15,%r12)
	movl	%eax, 16(%r15,%r12)
LBB0_27:                                ##   in Loop: Header=BB0_18 Depth=1
	testb	$1, -42(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_34
## %bb.28:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, 28(%r15,%r12)
	leaq	(%r15,%r12), %rax
	addq	$24, %rax
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DEVICE_ID_YAMAHA_754,8,3   ## @PCI_DEVICE_ID_YAMAHA_754
	.no_dead_strip	_snd_ymfpci_pcm_init_voice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ymfpci_pcm_init_voice
_snd_ymfpci_pcm_init_voice:             ; @snd_ymfpci_pcm_init_voice
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x24, x3
	mov	x19, x2
	mov	x26, x1
	mov	x20, x0
	ldr	x8, [x0, #48]
	ldr	x21, [x8, w1, uxtw #3]
	ldr	w0, [x2]
	bl	_snd_ymfpci_calc_delta
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
	ldr	w0, [x19]
	bl	_snd_ymfpci_calc_lpfQ
	str	w0, [sp, #24]                   ; 4-byte Folded Spill
	str	x19, [sp, #40]                  ; 8-byte Folded Spill
	ldr	w0, [x19]
	bl	_snd_ymfpci_calc_lpfK
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
	str	x21, [sp, #32]                  ; 8-byte Folded Spill
	cmp	x21, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	cbz	x0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_2:
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	w27, [x8, #4]
	cbz	w24, LBB0_4
; %bb.3:
	ldp	x8, x9, [x20, #32]
	ldr	x8, [x8, #16]
	ldr	x9, [x9]
	lsl	x9, x9, #3
	ldr	w8, [x8, x9]
	lsl	w0, w8, #15
	bl	_cpu_to_le32
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldp	x8, x9, [x20, #32]
	ldr	x8, [x8, #16]
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #3
	ldr	w8, [x8, #4]
	lsl	w25, w8, #15
	b	LBB0_5
LBB0_4:
	mov	w25, #1073741824
	mov	w0, #1073741824
	bl	_cpu_to_le32
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
LBB0_5:
	mov	x0, x25
	bl	_cpu_to_le32
	mov	x25, x0
	ldr	x8, [x20, #32]
	add	x0, x8, #12
	bl	_spin_lock_irqsave
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	ldr	w8, [x9, #4]
	cmp	w8, #2
	cset	w8, eq
	lsl	w19, w8, #16
	ldr	w0, [x9, #12]
	bl	_snd_pcm_format_width
	cmp	w0, #8
	b.ne	LBB0_7
; %bb.6:
	orr	w19, w19, #0x80000000
	ldr	x8, [x20, #32]
	b	LBB0_15
LBB0_7:
	ldr	x8, [x20, #32]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _PCI_DEVICE_ID_YAMAHA_754@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PCI_DEVICE_ID_YAMAHA_754@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_15
; %bb.8:
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	ldr	w9, [x9]
	mov	w10, #44100
	cmp	w9, w10
	b.ne	LBB0_15
; %bb.9:
	cbnz	w26, LBB0_15
; %bb.10:
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	ldr	w9, [x9, #4]
	cmp	w9, #2
	b.ne	LBB0_15
; %bb.11:
	ldrsw	x9, [x8, #8]
	cmn	w9, #1
	b.eq	LBB0_13
; %bb.12:
	ldr	x10, [sp, #32]                  ; 8-byte Folded Reload
	ldr	x10, [x10]
	cmp	x10, x9
	b.eq	LBB0_14
	b	LBB0_15
LBB0_13:
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	ldr	x9, [x9]
LBB0_14:
	str	w9, [x8, #8]
	mov	w9, #1
	str	w9, [x20]
	orr	w19, w19, #0x10000000
LBB0_15:
	ldrsw	x9, [x8, #8]
	ldr	x10, [sp, #32]                  ; 8-byte Folded Reload
	ldr	x10, [x10]
	and	w11, w19, #0x10000000
	cmp	x10, x9
	ccmp	w11, #0, #0, eq
	b.ne	LBB0_17
; %bb.16:
	mov	w9, #-1
	str	w9, [x8, #8]
	str	wzr, [x20]
LBB0_17:
	cmp	w27, #1
	cset	w22, eq
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	ldr	w9, [x9, #4]
	cmp	w9, #2
	cset	w9, eq
	and	w9, w26, w9
	orr	w27, w19, w9
	add	x0, x8, #12
	bl	_spin_unlock_irqrestore
	mov	x19, #0
	tst	w26, #0x1
	cset	w8, eq
	orr	w21, w22, w8
	orr	w22, w22, w26
	mov	w8, #1
	mov	w23, #112
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=1
	str	w25, [x8]
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	w8, #0
	mov	w19, #1
	tbz	w28, #0, LBB0_1
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	mov	x28, x8
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	x24, [x8, #8]
	madd	x26, x19, x23, x24
	mov	x0, x26
	mov	w1, #0
	mov	w2, #112
	bl	_memset
	mov	x0, x27
	bl	_cpu_to_le32
	str	x0, [x26, #104]
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	w0, [x8, #8]
	bl	_cpu_to_le32
	str	x0, [x26, #96]
	ldr	w0, [x20, #4]
	bl	_cpu_to_le32
	str	x0, [x26, #88]
	ldr	w0, [sp, #24]                   ; 4-byte Folded Reload
	bl	_cpu_to_le32
	str	x0, [x26, #80]
	ldr	w0, [sp, #28]                   ; 4-byte Folded Reload
	bl	_cpu_to_le32
	stp	x0, x0, [x26, #64]
	ldr	w0, [sp, #20]                   ; 4-byte Folded Reload
	bl	_cpu_to_le32
	stp	x0, x0, [x26, #48]
	mov	w0, #1073741824
	bl	_cpu_to_le32
	stp	x0, x0, [x26, #32]
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_25
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	cbz	w21, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	madd	x8, x19, x23, x24
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	w9, [x8, #4]
	str	w9, [x26]
LBB0_23:                                ;   in Loop: Header=BB0_20 Depth=1
	tbz	w22, #0, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_20 Depth=1
	madd	x8, x19, x23, x24
	stp	w25, w25, [x8, #8]
LBB0_25:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_19
; %bb.26:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_31
; %bb.27:                               ;   in Loop: Header=BB0_20 Depth=1
	cbz	w21, LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_20 Depth=1
	madd	x8, x19, x23, x24
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	stp	w9, w9, [x8, #24]
LBB0_29:                                ;   in Loop: Header=BB0_20 Depth=1
	tbz	w22, #0, LBB0_19
; %bb.30:                               ;   in Loop: Header=BB0_20 Depth=1
	madd	x8, x19, x23, x24
	str	w25, [x8, #20]
	add	x8, x8, #16
	b	LBB0_18
LBB0_31:                                ;   in Loop: Header=BB0_20 Depth=1
	cbz	w21, LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_20 Depth=1
	madd	x8, x19, x23, x24
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	stp	w9, w9, [x8, #16]
LBB0_33:                                ;   in Loop: Header=BB0_20 Depth=1
	tbz	w22, #0, LBB0_19
; %bb.34:                               ;   in Loop: Header=BB0_20 Depth=1
	madd	x8, x19, x23, x24
	str	w25, [x8, #28]
	add	x8, x8, #24
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DEVICE_ID_YAMAHA_754,8,3   ; @PCI_DEVICE_ID_YAMAHA_754
	.no_dead_strip	_snd_ymfpci_pcm_init_voice
.subsections_via_symbols
