	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_cxl_bars
_setup_cxl_bars:                        ## @setup_cxl_bars
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_p1_base
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_p2_base
	testl	%eax, %eax
	js	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	_PCI_BASE_ADDRESS_4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_pci_write_config_dword
	movq	_PCI_BASE_ADDRESS_5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$131072, %edx                   ## imm = 0x20000
	callq	_pci_write_config_dword
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ABORTING: M32 BAR assignment incompatible with CXL\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_PCI_BASE_ADDRESS_4,4,2         ## @PCI_BASE_ADDRESS_4
	.comm	_PCI_BASE_ADDRESS_5,4,2         ## @PCI_BASE_ADDRESS_5
	.no_dead_strip	_setup_cxl_bars
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_cxl_bars
_setup_cxl_bars:                        ; @setup_cxl_bars
	.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	x19, x0
	bl	_p1_base
	tbz	w0, #31, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_p2_base
	tbnz	w0, #31, LBB0_4
LBB0_2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh5:
	adrp	x8, _PCI_BASE_ADDRESS_4@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCI_BASE_ADDRESS_4@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_pci_write_config_dword
Lloh8:
	adrp	x8, _PCI_BASE_ADDRESS_5@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCI_BASE_ADDRESS_5@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #131072
	bl	_pci_write_config_dword
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ABORTING: M32 BAR assignment incompatible with CXL\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_PCI_BASE_ADDRESS_4,4,2         ; @PCI_BASE_ADDRESS_4
	.comm	_PCI_BASE_ADDRESS_5,4,2         ; @PCI_BASE_ADDRESS_5
	.no_dead_strip	_setup_cxl_bars
.subsections_via_symbols
