	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_emu10k1_code_peek
_snd_emu10k1_code_peek:                 ## @snd_emu10k1_code_peek
	.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, %r15
	movq	%rdi, %r14
	movl	8(%rsi), %edi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %esi
	movl	%r12d, %edi
	callq	_set_bit
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_snd_emu10k1_efx_read
	movq	(%r15), %rsi
	addq	%r13, %rsi
	movl	%eax, %edi
	callq	_put_user
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %esi
	orl	$1, %esi
	movq	%r14, %rdi
	callq	_snd_emu10k1_efx_read
	movq	(%r15), %rcx
	leaq	(%rcx,%r13), %rsi
	addq	$4, %rsi
	movl	%eax, %edi
	callq	_put_user
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	$2, %rbx
	xorl	%eax, %eax
	cmpq	$0, (%r14)
	setne	%al
	shlq	$10, %rax
	addq	$1024, %rax                     ## imm = 0x400
	incl	%r12d
	addq	$8, %r13
	cmpq	%rax, %rbx
	jb	LBB0_1
## %bb.4:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_5:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_snd_emu10k1_code_peek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_emu10k1_code_peek
_snd_emu10k1_code_peek:                 ; @snd_emu10k1_code_peek
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #8]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x23, #0
	mov	w21, #0
	mov	x22, #0
	mov	w24, #2048
	mov	w25, #1024
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, #8]
	mov	x0, x21
	bl	_set_bit
	mov	x0, x20
	mov	x1, x22
	bl	_snd_emu10k1_efx_read
	ldr	x8, [x19]
	add	x1, x8, x23
	bl	_put_user
	cbnz	x0, LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	orr	w1, w22, #0x1
	mov	x0, x20
	bl	_snd_emu10k1_efx_read
	ldr	x8, [x19]
	add	x8, x8, x23
	add	x1, x8, #4
	bl	_put_user
	cbnz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x22, x22, #2
	ldr	x8, [x20]
	cmp	x8, #0
	csel	x8, x25, x24, eq
	add	w21, w21, #1
	add	x23, x23, #8
	cmp	x22, x8
	b.lo	LBB0_1
; %bb.4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _EFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_snd_emu10k1_code_peek
.subsections_via_symbols
