	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_emul_init
_pci_emul_init:                         ## @pci_emul_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r14d
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movl	$1, %edi
	movl	$72, %esi
	callq	_calloc
	movq	%rax, %rbx
	movq	%r13, 64(%rax)
	movl	%r12d, (%rax)
	movl	%r15d, %r12d
	movl	%r15d, 4(%rax)
	movl	%r14d, 8(%rax)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	leaq	56(%rax), %rdi
	xorl	%esi, %esi
	callq	_pthread_mutex_init
	movq	$0, 48(%rbx)
	movq	_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, 16(%rbx)
	movl	12(%rbx), %edi
	movq	_PI_NAMESZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %rcx
	leaq	L_.str(%rip), %rdx
	movl	%r12d, %r8d
	callq	_snprintf
	movq	_PCIR_INTLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$255, %edx
	callq	_pci_set_cfgdata8
	movq	_PCIR_INTPIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_pci_set_cfgdata8
	movq	_PCIR_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PCIM_CMD_BUSMASTEREN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_pci_set_cfgdata8
	movl	8(%r14), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	*8(%r15)
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_3
LBB0_1:
	movq	%rbx, (%r14)
LBB0_3:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDLE,4,2                       ## @IDLE
	.comm	_PI_NAMESZ,4,2                  ## @PI_NAMESZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s-pci-%d"

	.comm	_PCIR_INTLINE,4,2               ## @PCIR_INTLINE
	.comm	_PCIR_INTPIN,4,2                ## @PCIR_INTPIN
	.comm	_PCIR_COMMAND,4,2               ## @PCIR_COMMAND
	.comm	_PCIM_CMD_BUSMASTEREN,4,2       ## @PCIM_CMD_BUSMASTEREN
	.no_dead_strip	_pci_emul_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_emul_init
_pci_emul_init:                         ; @pci_emul_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x5
	mov	x23, x4
	mov	x24, x3
	mov	x25, x2
	mov	x22, x1
	mov	x21, x0
	mov	w0, #1
	mov	w1, #72
	bl	_calloc
	mov	x20, x0
	str	x21, [x0, #64]
	stp	w25, w24, [x0]
	str	w23, [x0, #8]
	add	x0, x0, #56
	mov	x1, #0
	bl	_pthread_mutex_init
	str	xzr, [x20, #48]
Lloh0:
	adrp	x8, _IDLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #40]
	stp	xzr, xzr, [x20, #24]
	str	x22, [x20, #16]
	ldr	w0, [x20, #12]
Lloh3:
	adrp	x8, _PI_NAMESZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PI_NAMESZ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	x3, [x22]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x4, x24
	bl	_snprintf
Lloh8:
	adrp	x8, _PCIR_INTLINE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCIR_INTLINE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #255
	bl	_pci_set_cfgdata8
Lloh11:
	adrp	x8, _PCIR_INTPIN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PCIR_INTPIN@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_pci_set_cfgdata8
Lloh14:
	adrp	x8, _PCIR_COMMAND@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PCIR_COMMAND@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _PCIM_CMD_BUSMASTEREN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PCIM_CMD_BUSMASTEREN@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_pci_set_cfgdata8
	ldr	x8, [x22, #8]
	ldr	w2, [x19, #8]
	mov	x0, x21
	mov	x1, x20
	blr	x8
	mov	x21, x0
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_free
	b	LBB0_3
LBB0_2:
	str	x20, [x19]
LBB0_3:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IDLE,4,2                       ; @IDLE
	.comm	_PI_NAMESZ,4,2                  ; @PI_NAMESZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s-pci-%d"

	.comm	_PCIR_INTLINE,4,2               ; @PCIR_INTLINE
	.comm	_PCIR_INTPIN,4,2                ; @PCIR_INTPIN
	.comm	_PCIR_COMMAND,4,2               ; @PCIR_COMMAND
	.comm	_PCIM_CMD_BUSMASTEREN,4,2       ; @PCIM_CMD_BUSMASTEREN
	.no_dead_strip	_pci_emul_init
.subsections_via_symbols
