	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function have_wrcomb
_have_wrcomb:                           ## @have_wrcomb
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_PCI_CLASS_BRIDGE_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$8, %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_pci_get_class
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_PCI_VENDOR_ID_SERVERWORKS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	movq	8(%rbx), %rcx
	movq	_PCI_DEVICE_ID_SERVERWORKS_LE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.3:
	movq	_PCI_CLASS_REVISION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pci_read_config_byte
	cmpl	$6, -20(%rbp)
	jge	LBB0_4
## %bb.8:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_9
LBB0_4:
	movq	(%rbx), %rax
LBB0_5:
	movq	_PCI_VENDOR_ID_INTEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.6:
	movq	8(%rbx), %rax
	movq	_PCI_DEVICE_ID_INTEL_82451NX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
LBB0_9:
	callq	_pr_info
	movq	%rbx, %rdi
	callq	_pci_dev_put
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_10:
	movq	%rbx, %rdi
	callq	_pci_dev_put
LBB0_11:
	movq	_mtrr_if@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.12:
	xorl	%eax, %eax
	callq	*%rcx
	movl	%eax, %r14d
LBB0_13:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_CLASS_BRIDGE_HOST,4,2      ## @PCI_CLASS_BRIDGE_HOST
	.comm	_PCI_VENDOR_ID_SERVERWORKS,8,3  ## @PCI_VENDOR_ID_SERVERWORKS
	.comm	_PCI_DEVICE_ID_SERVERWORKS_LE,8,3 ## @PCI_DEVICE_ID_SERVERWORKS_LE
	.comm	_PCI_CLASS_REVISION,4,2         ## @PCI_CLASS_REVISION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mtrr: Serverworks LE rev < 6 detected. Write-combining disabled.\n"

	.comm	_PCI_VENDOR_ID_INTEL,8,3        ## @PCI_VENDOR_ID_INTEL
	.comm	_PCI_DEVICE_ID_INTEL_82451NX,8,3 ## @PCI_DEVICE_ID_INTEL_82451NX
L_.str.1:                               ## @.str.1
	.asciz	"mtrr: Intel 450NX MMC detected. Write-combining disabled.\n"

	.comm	_mtrr_if,8,3                    ## @mtrr_if
	.no_dead_strip	_have_wrcomb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function have_wrcomb
_have_wrcomb:                           ; @have_wrcomb
	.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
Lloh0:
	adrp	x8, _PCI_CLASS_BRIDGE_HOST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_CLASS_BRIDGE_HOST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w0, w8, #8
	mov	x1, #0
	bl	_pci_get_class
	cbz	x0, LBB0_11
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _PCI_VENDOR_ID_SERVERWORKS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCI_VENDOR_ID_SERVERWORKS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	ldr	x9, [x19, #8]
Lloh6:
	adrp	x10, _PCI_DEVICE_ID_SERVERWORKS_LE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PCI_DEVICE_ID_SERVERWORKS_LE@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.3:
Lloh9:
	adrp	x8, _PCI_CLASS_REVISION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCI_CLASS_REVISION@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_byte
	ldr	w8, [sp, #12]
	cmp	w8, #6
	b.ge	LBB0_5
; %bb.4:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_5:
	ldr	x8, [x19]
LBB0_6:
Lloh14:
	adrp	x9, _PCI_VENDOR_ID_INTEL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PCI_VENDOR_ID_INTEL@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.7:
	ldr	x8, [x19, #8]
Lloh17:
	adrp	x9, _PCI_DEVICE_ID_INTEL_82451NX@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PCI_DEVICE_ID_INTEL_82451NX@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.8:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_9:
	bl	_pr_info
	mov	x0, x19
	bl	_pci_dev_put
	b	LBB0_13
LBB0_10:
	mov	x0, x19
	bl	_pci_dev_put
LBB0_11:
Lloh22:
	adrp	x8, _mtrr_if@GOTPAGE
Lloh23:
	ldr	x8, [x8, _mtrr_if@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.12:
	blr	x8
	b	LBB0_14
LBB0_13:
	mov	w0, #0
LBB0_14:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_CLASS_BRIDGE_HOST,4,2      ; @PCI_CLASS_BRIDGE_HOST
	.comm	_PCI_VENDOR_ID_SERVERWORKS,8,3  ; @PCI_VENDOR_ID_SERVERWORKS
	.comm	_PCI_DEVICE_ID_SERVERWORKS_LE,8,3 ; @PCI_DEVICE_ID_SERVERWORKS_LE
	.comm	_PCI_CLASS_REVISION,4,2         ; @PCI_CLASS_REVISION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mtrr: Serverworks LE rev < 6 detected. Write-combining disabled.\n"

	.comm	_PCI_VENDOR_ID_INTEL,8,3        ; @PCI_VENDOR_ID_INTEL
	.comm	_PCI_DEVICE_ID_INTEL_82451NX,8,3 ; @PCI_DEVICE_ID_INTEL_82451NX
l_.str.1:                               ; @.str.1
	.asciz	"mtrr: Intel 450NX MMC detected. Write-combining disabled.\n"

	.comm	_mtrr_if,8,3                    ; @mtrr_if
	.no_dead_strip	_have_wrcomb
.subsections_via_symbols
