	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_emu10k1_audio_enable
_snd_emu10k1_audio_enable:              ## @snd_emu10k1_audio_enable
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_HCFG@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	callq	_inl
	movq	_HCFG_AUDIOENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	movl	%eax, %edi
	callq	_outl
	movq	16(%rbx), %rax
	cmpq	$0, 24(%rax)
	jne	LBB0_9
## %bb.1:
	cmpq	$0, 16(%rax)
	jne	LBB0_9
## %bb.2:
	cmpq	$0, 24(%rbx)
	je	LBB0_9
## %bb.3:
	movq	_A_IOCFG@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	callq	_inl
	andl	$-69, %eax
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	movl	%eax, %edi
	callq	_outl
	movq	16(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_5
## %bb.4:
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	callq	_inl
	orl	$64, %eax
	jmp	LBB0_8
LBB0_5:
	movq	(%rax), %r15
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	callq	_inl
	testq	%r15, %r15
	je	LBB0_7
## %bb.6:
	orl	$96, %eax
	jmp	LBB0_8
LBB0_7:
	orl	$128, %eax
LBB0_8:
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	movl	%eax, %edi
	callq	_outl
LBB0_9:
	movq	_INTE_PCIERRORENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_emu10k1_intr_enable        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HCFG,8,3                       ## @HCFG
	.comm	_HCFG_AUDIOENABLE,4,2           ## @HCFG_AUDIOENABLE
	.comm	_A_IOCFG,8,3                    ## @A_IOCFG
	.comm	_INTE_PCIERRORENABLE,4,2        ## @INTE_PCIERRORENABLE
	.comm	_HCFG_GPINPUT0,4,2              ## @HCFG_GPINPUT0
	.comm	_HCFG_GPINPUT1,4,2              ## @HCFG_GPINPUT1
	.no_dead_strip	_snd_emu10k1_audio_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_emu10k1_audio_enable
_snd_emu10k1_audio_enable:              ; @snd_emu10k1_audio_enable
	.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	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x20, _HCFG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _HCFG@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_inl
Lloh2:
	adrp	x8, _HCFG_AUDIOENABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HCFG_AUDIOENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_outl
	ldr	x8, [x19, #16]
	ldr	x9, [x8, #24]
	cbnz	x9, LBB0_7
; %bb.1:
	ldr	x8, [x8, #16]
	cbnz	x8, LBB0_7
; %bb.2:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_7
; %bb.3:
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x20, _A_IOCFG@GOTPAGE
Lloh6:
	ldr	x20, [x20, _A_IOCFG@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_inl
	mov	w8, #-69
	and	w0, w0, w8
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_outl
	ldr	x8, [x19, #16]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_5
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_inl
	orr	w0, w0, #0x40
	b	LBB0_6
LBB0_5:
	ldr	x21, [x8]
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_inl
	orr	w8, w0, #0x80
	orr	w9, w0, #0x60
	cmp	x21, #0
	csel	w0, w8, w9, eq
LBB0_6:
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_outl
LBB0_7:
Lloh7:
	adrp	x8, _INTE_PCIERRORENABLE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _INTE_PCIERRORENABLE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_snd_emu10k1_intr_enable
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_HCFG,8,3                       ; @HCFG
	.comm	_HCFG_AUDIOENABLE,4,2           ; @HCFG_AUDIOENABLE
	.comm	_A_IOCFG,8,3                    ; @A_IOCFG
	.comm	_INTE_PCIERRORENABLE,4,2        ; @INTE_PCIERRORENABLE
	.comm	_HCFG_GPINPUT0,4,2              ; @HCFG_GPINPUT0
	.comm	_HCFG_GPINPUT1,4,2              ; @HCFG_GPINPUT1
	.no_dead_strip	_snd_emu10k1_audio_enable
.subsections_via_symbols
