	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_es1938_chip_init
_snd_es1938_chip_init:                  ## @snd_es1938_chip_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_snd_es1938_reset
	movl	4(%rbx), %edi
	callq	_pci_set_master
	movl	4(%rbx), %edi
	movq	_SL_PCI_LEGACYCONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32863, %edx                    ## imm = 0x805F
	callq	_pci_write_config_word
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	movq	_SL_PCI_DDMACONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	$1, %edx
	callq	_pci_write_config_word
	movl	4(%rbx), %edi
	movq	_SL_PCI_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_pci_write_config_dword
	movq	_IRQCONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_SLIO_REG
	movl	$240, %edi
	movl	%eax, %esi
	callq	_outb
	movq	_DMACLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_SLDM_REG
	xorl	%edi, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_outb                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SL_PCI_LEGACYCONTROL,4,2       ## @SL_PCI_LEGACYCONTROL
	.comm	_SL_PCI_DDMACONTROL,4,2         ## @SL_PCI_DDMACONTROL
	.comm	_SL_PCI_CONFIG,4,2              ## @SL_PCI_CONFIG
	.comm	_IRQCONTROL,4,2                 ## @IRQCONTROL
	.comm	_DMACLEAR,4,2                   ## @DMACLEAR
	.no_dead_strip	_snd_es1938_chip_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_es1938_chip_init
_snd_es1938_chip_init:                  ; @snd_es1938_chip_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_snd_es1938_reset
	ldr	w0, [x19, #4]
	bl	_pci_set_master
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x8, _SL_PCI_LEGACYCONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SL_PCI_LEGACYCONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #32863
	bl	_pci_write_config_word
Lloh3:
	adrp	x8, _SL_PCI_DDMACONTROL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SL_PCI_DDMACONTROL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldp	w8, w0, [x19]
	orr	w2, w8, #0x1
	bl	_pci_write_config_word
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x8, _SL_PCI_CONFIG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SL_PCI_CONFIG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_pci_write_config_dword
Lloh9:
	adrp	x8, _IRQCONTROL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQCONTROL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_SLIO_REG
	mov	x1, x0
	mov	w0, #240
	bl	_outb
Lloh12:
	adrp	x8, _DMACLEAR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DMACLEAR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_SLDM_REG
	mov	x1, x0
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_outb
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SL_PCI_LEGACYCONTROL,4,2       ; @SL_PCI_LEGACYCONTROL
	.comm	_SL_PCI_DDMACONTROL,4,2         ; @SL_PCI_DDMACONTROL
	.comm	_SL_PCI_CONFIG,4,2              ; @SL_PCI_CONFIG
	.comm	_IRQCONTROL,4,2                 ; @IRQCONTROL
	.comm	_DMACLEAR,4,2                   ; @DMACLEAR
	.no_dead_strip	_snd_es1938_chip_init
.subsections_via_symbols
