	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_emu10k1_icode_poke
_snd_emu10k1_icode_poke:                ## @snd_emu10k1_icode_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, %r15
	movq	%rdi, %r12
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_snd_emu10k1_verify_controls
	testl	%eax, %eax
	js	LBB0_13
## %bb.1:
	movl	8(%r12), %edi
	movl	(%r15), %esi
	movl	$4, %edx
	callq	_strlcpy
	cmpq	$0, 16(%r12)
	movq	_A_DBG@GOTPCREL(%rip), %r13
	movq	_DBG@GOTPCREL(%rip), %rax
	cmovneq	%r13, %rax
	movq	_A_DBG_SINGLE_STEP@GOTPCREL(%rip), %rcx
	cmoveq	_EMU10K1_DBG_SINGLE_STEP@GOTPCREL(%rip), %rcx
	movl	(%rax), %esi
	movl	(%rcx), %ecx
	orl	(%r12), %ecx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_snd_emu10k1_ptr_write
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_snd_emu10k1_del_controls
	testl	%eax, %eax
	js	LBB0_13
## %bb.2:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_snd_emu10k1_gpr_poke
	testl	%eax, %eax
	js	LBB0_13
## %bb.3:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_snd_emu10k1_tram_poke
	testl	%eax, %eax
	js	LBB0_13
## %bb.4:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_snd_emu10k1_code_poke
	testl	%eax, %eax
	js	LBB0_13
## %bb.5:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_snd_emu10k1_add_controls
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_14
## %bb.6:
	cmpq	$0, 16(%r12)
	jne	LBB0_8
## %bb.7:
	movq	_DBG@GOTPCREL(%rip), %r13
LBB0_8:
	movl	(%r13), %esi
	movl	(%r12), %ecx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_snd_emu10k1_ptr_write
	jmp	LBB0_14
LBB0_13:
	movl	%eax, %ebx
LBB0_14:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_A_DBG,4,2                      ## @A_DBG
	.comm	_A_DBG_SINGLE_STEP,4,2          ## @A_DBG_SINGLE_STEP
	.comm	_DBG,4,2                        ## @DBG
	.comm	_EMU10K1_DBG_SINGLE_STEP,4,2    ## @EMU10K1_DBG_SINGLE_STEP
	.no_dead_strip	_snd_emu10k1_icode_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_icode_poke
_snd_emu10k1_icode_poke:                ; @snd_emu10k1_icode_poke
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x20
	mov	x1, x21
	bl	_snd_emu10k1_verify_controls
	tbnz	w0, #31, LBB0_7
; %bb.1:
	ldr	w0, [x20, #8]
	ldr	w1, [x21]
	mov	w2, #4
	bl	_strlcpy
Lloh0:
	adrp	x23, _DBG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DBG@GOTPAGEOFF]
Lloh2:
	adrp	x24, _A_DBG@GOTPAGE
Lloh3:
	ldr	x24, [x24, _A_DBG@GOTPAGEOFF]
	ldr	x8, [x20, #16]
	cmp	x8, #0
	csel	x8, x23, x24, eq
	ldr	w1, [x8]
Lloh4:
	adrp	x8, _EMU10K1_DBG_SINGLE_STEP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EMU10K1_DBG_SINGLE_STEP@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh6:
	adrp	x10, _A_DBG_SINGLE_STEP@GOTPAGE
Lloh7:
	ldr	x10, [x10, _A_DBG_SINGLE_STEP@GOTPAGEOFF]
	csel	x8, x8, x10, eq
	ldr	w8, [x8]
	orr	w3, w8, w9
	mov	x0, x20
	mov	w2, #0
	bl	_snd_emu10k1_ptr_write
	mov	x0, x20
	mov	x1, x21
	bl	_snd_emu10k1_del_controls
	tbnz	w0, #31, LBB0_7
; %bb.2:
	mov	x0, x20
	mov	x1, x21
	bl	_snd_emu10k1_gpr_poke
	tbnz	w0, #31, LBB0_7
; %bb.3:
	mov	x0, x20
	mov	x1, x21
	bl	_snd_emu10k1_tram_poke
	tbnz	w0, #31, LBB0_7
; %bb.4:
	mov	x0, x20
	mov	x1, x21
	bl	_snd_emu10k1_code_poke
	tbnz	w0, #31, LBB0_7
; %bb.5:
	mov	x0, x20
	mov	x1, x21
	bl	_snd_emu10k1_add_controls
	mov	x22, x0
	tbnz	w0, #31, LBB0_8
; %bb.6:
	ldr	x8, [x20, #16]
	cmp	x8, #0
	csel	x8, x23, x24, eq
	ldr	w1, [x8]
	ldr	w3, [x20]
	mov	x0, x20
	mov	w2, #0
	bl	_snd_emu10k1_ptr_write
	b	LBB0_8
LBB0_7:
	mov	x22, x0
LBB0_8:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_A_DBG,4,2                      ; @A_DBG
	.comm	_A_DBG_SINGLE_STEP,4,2          ; @A_DBG_SINGLE_STEP
	.comm	_DBG,4,2                        ; @DBG
	.comm	_EMU10K1_DBG_SINGLE_STEP,4,2    ; @EMU10K1_DBG_SINGLE_STEP
	.no_dead_strip	_snd_emu10k1_icode_poke
.subsections_via_symbols
