	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_hda_init
_pci_hda_init:                          ## @pci_hda_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	xorl	%eax, %eax
	testq	%rdi, %rdi
	setne	%al
	movl	%eax, %edi
	callq	_assert
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	movq	_PCIR_VENDOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INTEL_VENDORID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_pci_set_cfgdata16
	movq	_PCIR_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HDA_INTEL_82801G@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_pci_set_cfgdata16
	movq	_PCIR_SUBCLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PCIS_MULTIMEDIA_HDA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_pci_set_cfgdata8
	movq	_PCIR_CLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PCIC_MULTIMEDIA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_pci_set_cfgdata8
	movq	_PCIR_HDCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_pci_set_cfgdata8
	movq	_PCIBAR_MEM32@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HDA_LAST_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pci_emul_alloc_bar
	movq	%rbx, %rdi
	callq	_pci_lintr_request
	movq	%r14, %rdi
	callq	_hda_init
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, (%rax)
	movq	%rax, (%rbx)
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %r15d
LBB0_3:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIR_VENDOR,4,2                ## @PCIR_VENDOR
	.comm	_INTEL_VENDORID,4,2             ## @INTEL_VENDORID
	.comm	_PCIR_DEVICE,4,2                ## @PCIR_DEVICE
	.comm	_HDA_INTEL_82801G,4,2           ## @HDA_INTEL_82801G
	.comm	_PCIR_SUBCLASS,4,2              ## @PCIR_SUBCLASS
	.comm	_PCIS_MULTIMEDIA_HDA,4,2        ## @PCIS_MULTIMEDIA_HDA
	.comm	_PCIR_CLASS,4,2                 ## @PCIR_CLASS
	.comm	_PCIC_MULTIMEDIA,4,2            ## @PCIC_MULTIMEDIA
	.comm	_PCIR_HDCTL,4,2                 ## @PCIR_HDCTL
	.comm	_PCIBAR_MEM32,4,2               ## @PCIBAR_MEM32
	.comm	_HDA_LAST_OFFSET,4,2            ## @HDA_LAST_OFFSET
	.no_dead_strip	_pci_hda_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_hda_init
_pci_hda_init:                          ; @pci_hda_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	x20, x2
	mov	x19, x1
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	cmp	x19, #0
	cset	w0, ne
	bl	_assert
Lloh0:
	adrp	x8, _PCIR_VENDOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCIR_VENDOR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _INTEL_VENDORID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INTEL_VENDORID@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_pci_set_cfgdata16
Lloh6:
	adrp	x8, _PCIR_DEVICE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCIR_DEVICE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _HDA_INTEL_82801G@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HDA_INTEL_82801G@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_pci_set_cfgdata16
Lloh12:
	adrp	x8, _PCIR_SUBCLASS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCIR_SUBCLASS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _PCIS_MULTIMEDIA_HDA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PCIS_MULTIMEDIA_HDA@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_pci_set_cfgdata8
Lloh18:
	adrp	x8, _PCIR_CLASS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PCIR_CLASS@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _PCIC_MULTIMEDIA@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PCIC_MULTIMEDIA@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_pci_set_cfgdata8
Lloh24:
	adrp	x8, _PCIR_HDCTL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PCIR_HDCTL@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_pci_set_cfgdata8
Lloh27:
	adrp	x8, _PCIBAR_MEM32@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PCIBAR_MEM32@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
Lloh30:
	adrp	x8, _HDA_LAST_OFFSET@GOTPAGE
Lloh31:
	ldr	x8, [x8, _HDA_LAST_OFFSET@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_pci_emul_alloc_bar
	mov	x0, x19
	bl	_pci_lintr_request
	mov	x0, x20
	bl	_hda_init
	cbz	x0, LBB0_2
; %bb.1:
	mov	x8, x0
	mov	w0, #0
	str	x19, [x8]
	str	x8, [x19]
	b	LBB0_3
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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	_PCIR_VENDOR,4,2                ; @PCIR_VENDOR
	.comm	_INTEL_VENDORID,4,2             ; @INTEL_VENDORID
	.comm	_PCIR_DEVICE,4,2                ; @PCIR_DEVICE
	.comm	_HDA_INTEL_82801G,4,2           ; @HDA_INTEL_82801G
	.comm	_PCIR_SUBCLASS,4,2              ; @PCIR_SUBCLASS
	.comm	_PCIS_MULTIMEDIA_HDA,4,2        ; @PCIS_MULTIMEDIA_HDA
	.comm	_PCIR_CLASS,4,2                 ; @PCIR_CLASS
	.comm	_PCIC_MULTIMEDIA,4,2            ; @PCIC_MULTIMEDIA
	.comm	_PCIR_HDCTL,4,2                 ; @PCIR_HDCTL
	.comm	_PCIBAR_MEM32,4,2               ; @PCIBAR_MEM32
	.comm	_HDA_LAST_OFFSET,4,2            ; @HDA_LAST_OFFSET
	.no_dead_strip	_pci_hda_init
.subsections_via_symbols
