	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s2io_init_pci
_s2io_init_pci:                         ## @s2io_init_pci
	.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
	movl	$0, -32(%rbp)
	movl	$0, -28(%rbp)
	movl	(%rdi), %edi
	movq	_PCIX_COMMAND_REGISTER@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %r14
	movq	%r14, %rdx
	callq	_pci_read_config_word
	movl	(%rbx), %edi
	movl	(%r15), %esi
	movl	-28(%rbp), %edx
	orl	$1, %edx
	callq	_pci_write_config_word
	movl	(%rbx), %edi
	movl	(%r15), %esi
	movq	%r14, %rdx
	callq	_pci_read_config_word
	movl	(%rbx), %edi
	movq	_PCI_COMMAND@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-32(%rbp), %r14
	movq	%r14, %rdx
	callq	_pci_read_config_word
	movl	(%rbx), %edi
	movl	(%r15), %esi
	movq	_PCI_COMMAND_PARITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	-32(%rbp), %edx
	callq	_pci_write_config_word
	movl	(%rbx), %edi
	movl	(%r15), %esi
	movq	%r14, %rdx
	callq	_pci_read_config_word
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIX_COMMAND_REGISTER,4,2      ## @PCIX_COMMAND_REGISTER
	.comm	_PCI_COMMAND,4,2                ## @PCI_COMMAND
	.comm	_PCI_COMMAND_PARITY,4,2         ## @PCI_COMMAND_PARITY
	.no_dead_strip	_s2io_init_pci
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s2io_init_pci
_s2io_init_pci:                         ; @s2io_init_pci
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	str	xzr, [sp, #8]
	ldr	w0, [x0]
Lloh0:
	adrp	x20, _PCIX_COMMAND_REGISTER@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PCIX_COMMAND_REGISTER@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #8
	bl	_pci_read_config_word
	ldr	w0, [x19]
	ldr	w1, [x20]
	ldr	w8, [sp, #8]
	orr	w2, w8, #0x1
	bl	_pci_write_config_word
	ldr	w0, [x19]
	ldr	w1, [x20]
	add	x2, sp, #8
	bl	_pci_read_config_word
	ldr	w0, [x19]
Lloh2:
	adrp	x20, _PCI_COMMAND@GOTPAGE
Lloh3:
	ldr	x20, [x20, _PCI_COMMAND@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_pci_read_config_word
	ldr	w0, [x19]
	ldr	w1, [x20]
	ldr	w8, [sp, #12]
Lloh4:
	adrp	x9, _PCI_COMMAND_PARITY@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PCI_COMMAND_PARITY@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_pci_write_config_word
	ldr	w0, [x19]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_pci_read_config_word
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIX_COMMAND_REGISTER,4,2      ; @PCIX_COMMAND_REGISTER
	.comm	_PCI_COMMAND,4,2                ; @PCI_COMMAND
	.comm	_PCI_COMMAND_PARITY,4,2         ; @PCI_COMMAND_PARITY
	.no_dead_strip	_s2io_init_pci
.subsections_via_symbols
