	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_emu10k1_tram_poke
_snd_emu10k1_tram_poke:                 ## @snd_emu10k1_tram_poke
	.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, %r15
	xorl	%r12d, %r12d
	movl	$160, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_snd_emu10k1_ptr_write
	movq	_A_TANKMEMCTLREGBASE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	callq	_snd_emu10k1_ptr_write
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	cmpq	$0, (%r15)
	movl	$256, %eax                      ## imm = 0x100
	cmoveq	%r13, %rax
	addq	$4, %r12
	cmpq	%rax, %rbx
	jae	LBB0_10
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%r14), %esi
	movl	%ebx, %edi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r14), %rsi
	addq	%r12, %rsi
	callq	_get_user
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r14), %rsi
	addq	%r12, %rsi
	callq	_get_user
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_TANKMEMDATAREGBASE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_snd_emu10k1_ptr_write
	movq	_TANKMEMADDRREGBASE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	cmpq	$0, (%r15)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	xorl	%edx, %edx
                                        ## implicit-def: $ecx
	jmp	LBB0_8
LBB0_4:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	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
	.comm	_TANKMEMDATAREGBASE,8,3         ## @TANKMEMDATAREGBASE
	.comm	_TANKMEMADDRREGBASE,8,3         ## @TANKMEMADDRREGBASE
	.comm	_A_TANKMEMCTLREGBASE,8,3        ## @A_TANKMEMCTLREGBASE
	.no_dead_strip	_snd_emu10k1_tram_poke
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_emu10k1_tram_poke
_snd_emu10k1_tram_poke:                 ; @snd_emu10k1_tram_poke
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	mov	x22, #0
	mov	x21, #0
	mov	w23, #256
	mov	w24, #160
Lloh0:
	adrp	x25, _TANKMEMDATAREGBASE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _TANKMEMDATAREGBASE@GOTPAGEOFF]
Lloh2:
	adrp	x26, _TANKMEMADDRREGBASE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _TANKMEMADDRREGBASE@GOTPAGEOFF]
Lloh4:
	adrp	x27, _A_TANKMEMCTLREGBASE@GOTPAGE
Lloh5:
	ldr	x27, [x27, _A_TANKMEMCTLREGBASE@GOTPAGEOFF]
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w3, #0
	bl	_snd_emu10k1_ptr_write
	ldr	x8, [x27]
	add	x1, x21, x8
	mov	x0, x20
	mov	w2, #0
	mov	w3, #0
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_snd_emu10k1_ptr_write
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	ldr	x8, [x20]
	cmp	x8, #0
	csel	x8, x24, x23, eq
	add	x22, x22, #4
	cmp	x21, x8
	b.hs	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, #16]
	mov	x0, x21
	bl	_test_bit
	cbz	w0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	add	x1, x8, x22
	bl	_get_user
	cbnz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	add	x1, x8, x22
	bl	_get_user
	cbnz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	add	x1, x21, x8
	mov	x0, x20
	mov	w2, #0
	bl	_snd_emu10k1_ptr_write
	ldr	x8, [x20]
	ldr	x9, [x26]
	add	x1, x21, x9
	mov	x0, x20
	mov	w2, #0
	cbnz	x8, LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
                                        ; implicit-def: $w3
	b	LBB0_2
LBB0_9:
Lloh6:
	adrp	x8, _EFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_TANKMEMDATAREGBASE,8,3         ; @TANKMEMDATAREGBASE
	.comm	_TANKMEMADDRREGBASE,8,3         ; @TANKMEMADDRREGBASE
	.comm	_A_TANKMEMCTLREGBASE,8,3        ; @A_TANKMEMCTLREGBASE
	.no_dead_strip	_snd_emu10k1_tram_poke
.subsections_via_symbols
