	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aer_disable_rootport
_aer_disable_rootport:                  ## @aer_disable_rootport
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_set_downstream_devices_error_reporting
	movslq	(%r14), %rbx
	movq	_PCI_ERR_ROOT_COMMAND@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	leaq	-36(%rbp), %r15
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_pci_read_config_dword
	movq	_ROOT_PORT_INTR_ON_MESG_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-36(%rbp), %edx
	movl	%edx, -36(%rbp)
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	callq	_pci_write_config_dword
	movq	_PCI_ERR_ROOT_STATUS@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_pci_read_config_dword
	addq	(%r12), %rbx
	movl	-36(%rbp), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_pci_write_config_dword
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_ERR_ROOT_COMMAND,8,3       ## @PCI_ERR_ROOT_COMMAND
	.comm	_ROOT_PORT_INTR_ON_MESG_MASK,4,2 ## @ROOT_PORT_INTR_ON_MESG_MASK
	.comm	_PCI_ERR_ROOT_STATUS,8,3        ## @PCI_ERR_ROOT_STATUS
	.no_dead_strip	_aer_disable_rootport
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aer_disable_rootport
_aer_disable_rootport:                  ; @aer_disable_rootport
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x19, [x0]
	mov	x0, x19
	mov	w1, #0
	bl	_set_downstream_devices_error_reporting
	ldrsw	x20, [x19]
Lloh0:
	adrp	x21, _PCI_ERR_ROOT_COMMAND@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PCI_ERR_ROOT_COMMAND@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x1, x8, x20
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_dword
Lloh2:
	adrp	x8, _ROOT_PORT_INTR_ON_MESG_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ROOT_PORT_INTR_ON_MESG_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	x8, [x21]
	add	x1, x8, x20
	mov	x0, x19
	bl	_pci_write_config_dword
Lloh5:
	adrp	x21, _PCI_ERR_ROOT_STATUS@GOTPAGE
Lloh6:
	ldr	x21, [x21, _PCI_ERR_ROOT_STATUS@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x1, x8, x20
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_dword
	ldr	x8, [x21]
	add	x1, x8, x20
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_pci_write_config_dword
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_ERR_ROOT_COMMAND,8,3       ; @PCI_ERR_ROOT_COMMAND
	.comm	_ROOT_PORT_INTR_ON_MESG_MASK,4,2 ; @ROOT_PORT_INTR_ON_MESG_MASK
	.comm	_PCI_ERR_ROOT_STATUS,8,3        ; @PCI_ERR_ROOT_STATUS
	.no_dead_strip	_aer_disable_rootport
.subsections_via_symbols
