	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emu8k_pcm_open
_emu8k_pcm_open:                        ## @emu8k_pcm_open
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	movq	(%r12), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, 32(%rax)
	movq	%r12, 24(%rax)
	movq	%rax, 8(%r15)
	movq	%rax, %rdi
	addq	$16, %rdi
	callq	_spin_lock_init
	movq	%rbx, %rdi
	callq	_init_timer
	movq	_emu8k_pcm_timer_func@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, (%rbx)
	movq	_emu8k_pcm_hw@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movl	(%r14), %eax
	movq	_LOOP_BLANK_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	(%rcx,%rcx,2), %ecx
	subl	%ecx, %eax
	movl	%eax, (%r15)
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, 4(%r15)
	movq	_SNDRV_PCM_HW_PARAM_PERIOD_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	999999(%rcx), %eax
	cltd
	idivl	%ecx
	movq	_UINT_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_snd_pcm_hw_constraint_minmax
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_emu8k_pcm_timer_func,4,2       ## @emu8k_pcm_timer_func
	.comm	_emu8k_pcm_hw,8,2               ## @emu8k_pcm_hw
	.comm	_LOOP_BLANK_SIZE,4,2            ## @LOOP_BLANK_SIZE
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_TIME,4,2 ## @SNDRV_PCM_HW_PARAM_PERIOD_TIME
	.comm	_HZ,4,2                         ## @HZ
	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.no_dead_strip	_emu8k_pcm_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emu8k_pcm_open
_emu8k_pcm_open:                        ; @emu8k_pcm_open
	.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
	mov	x21, x0
	bl	_snd_pcm_substream_chip
	mov	x20, x0
	ldr	x19, [x21]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x22, x0
	stp	x21, x20, [x0, #24]
	add	x0, x0, #16
	str	x22, [x19, #8]
	bl	_spin_lock_init
	mov	x0, x22
	bl	_init_timer
Lloh3:
	adrp	x8, _emu8k_pcm_timer_func@GOTPAGE
Lloh4:
	ldr	x8, [x8, _emu8k_pcm_timer_func@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x22, #8]
	str	x22, [x22]
Lloh6:
	adrp	x8, _emu8k_pcm_hw@GOTPAGE
Lloh7:
	ldr	x8, [x8, _emu8k_pcm_hw@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19]
	ldr	w8, [x20]
Lloh9:
	adrp	x9, _LOOP_BLANK_SIZE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LOOP_BLANK_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	sub	w9, w9, w9, lsl #2
	add	w8, w9, w8
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w9, w9, #1
	stp	w8, w9, [x19]
Lloh12:
	adrp	x8, _SNDRV_PCM_HW_PARAM_PERIOD_TIME@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_PERIOD_TIME@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _HZ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	add	w9, w8, #244, lsl #12           ; =999424
	add	w9, w9, #575
	sdiv	w2, w9, w8
Lloh18:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_snd_pcm_hw_constraint_minmax
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_emu8k_pcm_timer_func,4,2       ; @emu8k_pcm_timer_func
	.comm	_emu8k_pcm_hw,8,2               ; @emu8k_pcm_hw
	.comm	_LOOP_BLANK_SIZE,4,2            ; @LOOP_BLANK_SIZE
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_TIME,4,2 ; @SNDRV_PCM_HW_PARAM_PERIOD_TIME
	.comm	_HZ,4,2                         ; @HZ
	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.no_dead_strip	_emu8k_pcm_open
.subsections_via_symbols
