	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_emul_dinit
_pci_emul_dinit:                        ## @pci_emul_dinit
	.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	%rsi, %rbx
	movl	$1, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, (%rbx)
	movq	_PCIR_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_pci_set_cfgdata16
	movq	_PCIR_VENDOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$4317, %edx                     ## imm = 0x10DD
	callq	_pci_set_cfgdata16
	movq	_PCIR_CLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_pci_set_cfgdata8
	movq	_PCI_EMUL_MSI_MSGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pci_emul_add_msicap
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movq	_PCIBAR_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DIOSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pci_emul_alloc_bar
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movq	_PCIBAR_MEM32@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	_DMEMSZ@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_pci_emul_alloc_bar
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movl	(%r14), %edx
	movl	(%r15), %ecx
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_pci_emul_alloc_bar
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIR_DEVICE,4,2                ## @PCIR_DEVICE
	.comm	_PCIR_VENDOR,4,2                ## @PCIR_VENDOR
	.comm	_PCIR_CLASS,4,2                 ## @PCIR_CLASS
	.comm	_PCI_EMUL_MSI_MSGS,4,2          ## @PCI_EMUL_MSI_MSGS
	.comm	_PCIBAR_IO,4,2                  ## @PCIBAR_IO
	.comm	_DIOSZ,4,2                      ## @DIOSZ
	.comm	_PCIBAR_MEM32,4,2               ## @PCIBAR_MEM32
	.comm	_DMEMSZ,4,2                     ## @DMEMSZ
	.no_dead_strip	_pci_emul_dinit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_emul_dinit
_pci_emul_dinit:                        ; @pci_emul_dinit
	.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, x1
	mov	w0, #1
	mov	w1, #4
	bl	_calloc
	str	x0, [x19]
Lloh0:
	adrp	x8, _PCIR_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCIR_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_pci_set_cfgdata16
Lloh3:
	adrp	x8, _PCIR_VENDOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCIR_VENDOR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #4317
	bl	_pci_set_cfgdata16
Lloh6:
	adrp	x8, _PCIR_CLASS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCIR_CLASS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #2
	bl	_pci_set_cfgdata8
Lloh9:
	adrp	x8, _PCI_EMUL_MSI_MSGS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCI_EMUL_MSI_MSGS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pci_emul_add_msicap
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
Lloh12:
	adrp	x8, _PCIBAR_IO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCIBAR_IO@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _DIOSZ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DIOSZ@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_pci_emul_alloc_bar
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
Lloh18:
	adrp	x20, _PCIBAR_MEM32@GOTPAGE
Lloh19:
	ldr	x20, [x20, _PCIBAR_MEM32@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh20:
	adrp	x21, _DMEMSZ@GOTPAGE
Lloh21:
	ldr	x21, [x21, _DMEMSZ@GOTPAGEOFF]
	ldr	w3, [x21]
	mov	x0, x19
	mov	w1, #1
	bl	_pci_emul_alloc_bar
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	ldr	w2, [x20]
	ldr	w3, [x21]
	mov	x0, x19
	mov	w1, #2
	bl	_pci_emul_alloc_bar
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.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_DEVICE,4,2                ; @PCIR_DEVICE
	.comm	_PCIR_VENDOR,4,2                ; @PCIR_VENDOR
	.comm	_PCIR_CLASS,4,2                 ; @PCIR_CLASS
	.comm	_PCI_EMUL_MSI_MSGS,4,2          ; @PCI_EMUL_MSI_MSGS
	.comm	_PCIBAR_IO,4,2                  ; @PCIBAR_IO
	.comm	_DIOSZ,4,2                      ; @DIOSZ
	.comm	_PCIBAR_MEM32,4,2               ; @PCIBAR_MEM32
	.comm	_DMEMSZ,4,2                     ; @DMEMSZ
	.no_dead_strip	_pci_emul_dinit
.subsections_via_symbols
