	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_gf1_pcm_playback_hw_params
_snd_gf1_pcm_playback_hw_params:        ## @snd_gf1_pcm_playback_hw_params
	.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, %r14
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r15
	movq	(%rbx), %r13
	movq	8(%r13), %r12
	movq	%r14, %rdi
	callq	_params_buffer_bytes
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_snd_pcm_lib_malloc_pages
	testl	%eax, %eax
	js	LBB0_13
## %bb.1:
	je	LBB0_6
## %bb.2:
	movl	20(%r12), %esi
	testl	%esi, %esi
	jle	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_snd_gf1_mem_free
	movl	$0, 20(%r12)
LBB0_4:
	movq	_SNDRV_GF1_MEM_OWNER_DRIVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %ecx
	movq	$0, (%rsp)
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	$1, %r8d
	movl	$32, %r9d
	callq	_snd_gf1_mem_alloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.5:
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
LBB0_6:
	movq	%r14, %rdi
	callq	_params_channels
	movl	%eax, (%r12)
	movq	8(%r12), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_9
## %bb.7:
	movl	16(%r12), %edi
	movq	_SNDRV_GF1_VOICE_TYPE_PCM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_snd_gf1_alloc_voice
	movq	8(%r12), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_18
## %bb.8:
	movq	_snd_gf1_pcm_interrupt_wave@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r12), %rcx
	movq	(%rcx), %rdx
	movq	%rax, 24(%rdx)
	movq	_snd_gf1_pcm_interrupt_volume@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rcx), %rdx
	movq	%rax, 16(%rdx)
	movq	_snd_gf1_pcm_volume_change@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rcx), %rdx
	movq	%rax, 8(%rdx)
	movq	(%rcx), %rax
	movq	%r12, (%rax)
	movl	(%r12), %eax
LBB0_9:
	xorl	%ebx, %ebx
	cmpl	$2, %eax
	jl	LBB0_14
## %bb.10:
	cmpq	$0, 8(%rcx)
	jne	LBB0_20
## %bb.11:
	movl	16(%r12), %edi
	movq	_SNDRV_GF1_VOICE_TYPE_PCM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_snd_gf1_alloc_voice
	movq	8(%r12), %rcx
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:
	movq	_snd_gf1_pcm_interrupt_wave@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r12), %rcx
	movq	8(%rcx), %rdx
	movq	%rax, 24(%rdx)
	movq	_snd_gf1_pcm_interrupt_volume@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rcx), %rdx
	movq	%rax, 16(%rdx)
	movq	_snd_gf1_pcm_volume_change@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rcx), %rdx
	movq	%rax, 8(%rdx)
	movq	8(%rcx), %rax
	movq	%r12, (%rax)
	jmp	LBB0_20
LBB0_13:
	movl	%eax, %ebx
	jmp	LBB0_20
LBB0_14:
	cmpl	$1, %eax
	jne	LBB0_20
## %bb.15:
	movq	8(%rcx), %rsi
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.16:
	movl	16(%r12), %edi
	callq	_snd_gf1_free_voice
	movq	8(%r12), %rax
	movq	$0, 8(%rax)
	jmp	LBB0_20
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_18:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_19:
	subl	(%rax), %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_GF1_MEM_OWNER_DRIVER,4,2 ## @SNDRV_GF1_MEM_OWNER_DRIVER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GF1 PCM"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SNDRV_GF1_VOICE_TYPE_PCM,4,2   ## @SNDRV_GF1_VOICE_TYPE_PCM
	.comm	_snd_gf1_pcm_interrupt_wave,8,3 ## @snd_gf1_pcm_interrupt_wave
	.comm	_snd_gf1_pcm_interrupt_volume,8,3 ## @snd_gf1_pcm_interrupt_volume
	.comm	_snd_gf1_pcm_volume_change,8,3  ## @snd_gf1_pcm_volume_change
	.no_dead_strip	_snd_gf1_pcm_playback_hw_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_gf1_pcm_playback_hw_params
_snd_gf1_pcm_playback_hw_params:        ; @snd_gf1_pcm_playback_hw_params
	.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	x19, x1
	mov	x21, x0
	bl	_snd_pcm_substream_chip
	mov	x20, x0
	ldr	x23, [x21]
	ldr	x22, [x23, #8]
	mov	x0, x19
	bl	_params_buffer_bytes
	mov	x1, x0
	mov	x0, x21
	bl	_snd_pcm_lib_malloc_pages
	tbnz	w0, #31, LBB0_18
; %bb.1:
	cbz	w0, LBB0_6
; %bb.2:
	ldr	w1, [x22, #20]
	cmp	w1, #1
	b.lt	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_snd_gf1_mem_free
	str	wzr, [x22, #20]
LBB0_4:
Lloh0:
	adrp	x8, _SNDRV_GF1_MEM_OWNER_DRIVER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_GF1_MEM_OWNER_DRIVER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w3, [x23]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	w4, #1
	mov	w5, #32
	mov	x6, #0
	bl	_snd_gf1_mem_alloc
	cbz	x0, LBB0_17
; %bb.5:
	ldr	w8, [x0]
	str	w8, [x22, #20]
LBB0_6:
	mov	x0, x19
	bl	_params_channels
	str	w0, [x22]
	ldr	x8, [x22, #8]
	ldr	x9, [x8]
	cbz	x9, LBB0_11
; %bb.7:
	cmp	w0, #2
	b.lt	LBB0_13
LBB0_8:
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_16
; %bb.9:
	ldr	w0, [x22, #16]
Lloh5:
	adrp	x8, _SNDRV_GF1_VOICE_TYPE_PCM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SNDRV_GF1_VOICE_TYPE_PCM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	bl	_snd_gf1_alloc_voice
	ldr	x8, [x22, #8]
	str	x0, [x8, #8]
	cbz	x0, LBB0_17
; %bb.10:
	mov	w0, #0
Lloh8:
	adrp	x8, _snd_gf1_pcm_interrupt_wave@GOTPAGE
Lloh9:
	ldr	x8, [x8, _snd_gf1_pcm_interrupt_wave@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x9, [x22, #8]
	ldr	x10, [x9, #8]
	str	x8, [x10, #24]
Lloh11:
	adrp	x8, _snd_gf1_pcm_interrupt_volume@GOTPAGE
Lloh12:
	ldr	x8, [x8, _snd_gf1_pcm_interrupt_volume@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x10, [x9, #8]
Lloh14:
	adrp	x11, _snd_gf1_pcm_volume_change@GOTPAGE
Lloh15:
	ldr	x11, [x11, _snd_gf1_pcm_volume_change@GOTPAGEOFF]
	str	x8, [x10, #16]
Lloh16:
	ldr	x8, [x11]
	ldr	x10, [x9, #8]
	str	x8, [x10, #8]
	ldr	x8, [x9, #8]
	str	x22, [x8]
	b	LBB0_18
LBB0_11:
	ldr	w0, [x22, #16]
Lloh17:
	adrp	x8, _SNDRV_GF1_VOICE_TYPE_PCM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SNDRV_GF1_VOICE_TYPE_PCM@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	bl	_snd_gf1_alloc_voice
	ldr	x8, [x22, #8]
	str	x0, [x8]
	cbz	x0, LBB0_17
; %bb.12:
Lloh20:
	adrp	x8, _snd_gf1_pcm_interrupt_wave@GOTPAGE
Lloh21:
	ldr	x8, [x8, _snd_gf1_pcm_interrupt_wave@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x8]
	ldr	x8, [x22, #8]
	ldr	x10, [x8]
Lloh23:
	adrp	x11, _snd_gf1_pcm_interrupt_volume@GOTPAGE
Lloh24:
	ldr	x11, [x11, _snd_gf1_pcm_interrupt_volume@GOTPAGEOFF]
	str	x9, [x10, #24]
Lloh25:
	ldr	x9, [x11]
	ldr	x10, [x8]
	str	x9, [x10, #16]
Lloh26:
	adrp	x9, _snd_gf1_pcm_volume_change@GOTPAGE
Lloh27:
	ldr	x9, [x9, _snd_gf1_pcm_volume_change@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	ldr	x10, [x8]
	str	x9, [x10, #8]
	ldr	x9, [x8]
	str	x22, [x9]
	ldr	w0, [x22]
	cmp	w0, #2
	b.ge	LBB0_8
LBB0_13:
	cmp	w0, #1
	b.ne	LBB0_16
; %bb.14:
	ldr	x1, [x8, #8]
	cbz	x1, LBB0_16
; %bb.15:
	ldr	w0, [x22, #16]
	bl	_snd_gf1_free_voice
	mov	w0, #0
	ldr	x8, [x22, #8]
	str	xzr, [x8, #8]
	b	LBB0_18
LBB0_16:
	mov	w0, #0
	b	LBB0_18
LBB0_17:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_GF1_MEM_OWNER_DRIVER,4,2 ; @SNDRV_GF1_MEM_OWNER_DRIVER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GF1 PCM"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SNDRV_GF1_VOICE_TYPE_PCM,4,2   ; @SNDRV_GF1_VOICE_TYPE_PCM
	.comm	_snd_gf1_pcm_interrupt_wave,8,3 ; @snd_gf1_pcm_interrupt_wave
	.comm	_snd_gf1_pcm_interrupt_volume,8,3 ; @snd_gf1_pcm_interrupt_volume
	.comm	_snd_gf1_pcm_volume_change,8,3  ; @snd_gf1_pcm_volume_change
	.no_dead_strip	_snd_gf1_pcm_playback_hw_params
.subsections_via_symbols
