	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_sb8dsp_pcm                 ## -- Begin function snd_sb8dsp_pcm
	.p2align	4, 0x90
_snd_sb8dsp_pcm:                        ## @snd_sb8dsp_pcm
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %edx
	movq	%rdi, %r15
	movq	8(%rdi), %rdi
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	movq	$0, (%r14)
LBB0_2:
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %r9
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_snd_pcm_new
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	-40(%rbp), %rax
	movl	12(%rax), %edi
	movl	(%r15), %edx
	movzbl	%dl, %ecx
	sarl	$8, %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_sprintf
	movq	_SNDRV_PCM_INFO_HALF_DUPLEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-40(%rbp), %rcx
	movl	%eax, 8(%rcx)
	movq	%r15, (%rcx)
	movq	-40(%rbp), %rdi
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_snd_sb8_playback_ops@GOTPCREL(%rip), %rdx
	callq	_snd_pcm_set_ops
	movq	-40(%rbp), %rdi
	movq	_SNDRV_PCM_STREAM_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_snd_sb8_capture_ops@GOTPCREL(%rip), %rdx
	callq	_snd_pcm_set_ops
	movq	-40(%rbp), %r15
	movq	_SNDRV_DMA_TYPE_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_snd_dma_isa_data
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	movl	$65536, %ecx                    ## imm = 0x10000
	movl	$65536, %r8d                    ## imm = 0x10000
	callq	_snd_pcm_lib_preallocate_pages_for_all
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movq	-40(%rbp), %rax
	movq	%rax, (%r14)
	jmp	LBB0_6
LBB0_3:
	movl	%eax, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SB8 DSP"

L_.str.1:                               ## @.str.1
	.asciz	"DSP v%i.%i"

	.comm	_SNDRV_PCM_INFO_HALF_DUPLEX,4,2 ## @SNDRV_PCM_INFO_HALF_DUPLEX
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,4,2  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_snd_sb8_playback_ops,4,2       ## @snd_sb8_playback_ops
	.comm	_SNDRV_PCM_STREAM_CAPTURE,4,2   ## @SNDRV_PCM_STREAM_CAPTURE
	.comm	_snd_sb8_capture_ops,4,2        ## @snd_sb8_capture_ops
	.comm	_SNDRV_DMA_TYPE_DEV,4,2         ## @SNDRV_DMA_TYPE_DEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_sb8dsp_pcm                 ; -- Begin function snd_sb8dsp_pcm
	.p2align	2
_snd_sb8dsp_pcm:                        ; @snd_sb8dsp_pcm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x2, x1
	mov	x20, x0
	ldr	x0, [x0, #8]
	cbz	x19, LBB0_2
; %bb.1:
	str	xzr, [x19]
LBB0_2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x5, sp, #8
	mov	w3, #1
	mov	w4, #1
	bl	_snd_pcm_new
	tbnz	w0, #31, LBB0_5
; %bb.3:
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #12]
	ldr	w8, [x20]
	asr	w2, w8, #8
	and	w3, w8, #0xff
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_sprintf
Lloh4:
	adrp	x8, _SNDRV_PCM_INFO_HALF_DUPLEX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SNDRV_PCM_INFO_HALF_DUPLEX@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	str	w8, [x9, #8]
	str	x20, [x9]
	ldr	x0, [sp, #8]
Lloh7:
	adrp	x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, _snd_sb8_playback_ops@GOTPAGE
Lloh11:
	ldr	x2, [x2, _snd_sb8_playback_ops@GOTPAGEOFF]
	bl	_snd_pcm_set_ops
	ldr	x0, [sp, #8]
Lloh12:
	adrp	x8, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, _snd_sb8_capture_ops@GOTPAGE
Lloh16:
	ldr	x2, [x2, _snd_sb8_capture_ops@GOTPAGEOFF]
	bl	_snd_pcm_set_ops
	ldr	x20, [sp, #8]
Lloh17:
	adrp	x8, _SNDRV_DMA_TYPE_DEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SNDRV_DMA_TYPE_DEV@GOTPAGEOFF]
Lloh19:
	ldr	w21, [x8]
	bl	_snd_dma_isa_data
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	mov	w3, #65536
	mov	w4, #65536
	bl	_snd_pcm_lib_preallocate_pages_for_all
	mov	w0, #0
	cbz	x19, LBB0_5
; %bb.4:
	ldr	x8, [sp, #8]
	str	x8, [x19]
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SB8 DSP"

l_.str.1:                               ; @.str.1
	.asciz	"DSP v%i.%i"

	.comm	_SNDRV_PCM_INFO_HALF_DUPLEX,4,2 ; @SNDRV_PCM_INFO_HALF_DUPLEX
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,4,2  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_snd_sb8_playback_ops,4,2       ; @snd_sb8_playback_ops
	.comm	_SNDRV_PCM_STREAM_CAPTURE,4,2   ; @SNDRV_PCM_STREAM_CAPTURE
	.comm	_snd_sb8_capture_ops,4,2        ; @snd_sb8_capture_ops
	.comm	_SNDRV_DMA_TYPE_DEV,4,2         ; @SNDRV_DMA_TYPE_DEV
.subsections_via_symbols
