	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_emu10k1_wait               ## -- Begin function snd_emu10k1_wait
	.p2align	4, 0x90
_snd_emu10k1_wait:                      ## @snd_emu10k1_wait
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_WC@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_inl
	movl	%eax, %ebx
	sarl	$6, %ebx
	xorl	%eax, %eax
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-36(%rbp), %ecx
	movl	%eax, %ebx
	cmpl	$16385, %ecx                    ## imm = 0x4001
	jae	LBB0_7
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	subl	$1, %r14d
	jb	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$0, -36(%rbp)
	movl	-36(%rbp), %ecx
	leal	1(%rcx), %edx
	movl	%edx, -36(%rbp)
	cmpl	$16383, %ecx                    ## imm = 0x3FFF
	ja	LBB0_6
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_inl
	sarl	$6, %eax
	cmpl	%ebx, %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	-36(%rbp), %eax
	leal	1(%rax), %ecx
	movl	%ecx, -36(%rbp)
	cmpl	$16383, %eax                    ## imm = 0x3FFF
	jbe	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %eax
	jmp	LBB0_6
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WC,8,3                         ## @WC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_emu10k1_wait               ; -- Begin function snd_emu10k1_wait
	.p2align	2
_snd_emu10k1_wait:                      ; @snd_emu10k1_wait
	.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, x1
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _WC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _WC@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_inl
	mov	w8, #0
	asr	w22, w0, #6
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [sp, #12]
	mov	x22, x8
	cmp	w9, #4, lsl #12                 ; =16384
	b.hi	LBB0_7
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	cbz	w19, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w19, w19, #1
	str	wzr, [sp, #12]
	ldr	w9, [sp, #12]
	add	w10, w9, #1
	str	w10, [sp, #12]
	lsr	w9, w9, #14
	cbnz	w9, LBB0_1
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_inl
	asr	w8, w0, #6
	cmp	w8, w22
	b.ne	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	w8, [sp, #12]
	add	w9, w8, #1
	str	w9, [sp, #12]
	lsr	w8, w8, #14
	cbz	w8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x8, x22
	b	LBB0_1
LBB0_7:
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_WC,8,3                         ; @WC
.subsections_via_symbols
