	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cas_check_pci_invariants
_cas_check_pci_invariants:              ## @cas_check_pci_invariants
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rax
	movl	$0, (%rdi)
	movq	(%rax), %rdx
	movq	_PCI_VENDOR_ID_SUN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_8
## %bb.1:
	movq	8(%rax), %rcx
	movq	_PCI_DEVICE_ID_SUN_CASSINI@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_8
## %bb.2:
	movq	16(%rax), %rcx
	movq	_CAS_ID_REVPLUS@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jl	LBB0_4
## %bb.3:
	movq	_CAS_FLAG_REG_PLUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
LBB0_4:
	movq	_CAS_ID_REVPLUS02u@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_6
## %bb.5:
	movq	_CAS_FLAG_TARGET_ABORT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, (%rdi)
LBB0_6:
	movq	_CAS_ID_REV2@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_12
## %bb.7:
	movq	_CAS_FLAG_NO_HW_CSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	jmp	LBB0_11
LBB0_8:
	movq	_CAS_FLAG_REG_PLUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rdi)
	movq	_PCI_VENDOR_ID_NS@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_12
## %bb.9:
	movq	8(%rax), %rax
	movq	_PCI_DEVICE_ID_NS_SATURN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_12
## %bb.10:
	movq	_CAS_FLAG_SATURN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	orl	%eax, %ecx
	movl	%ecx, (%rdi)
LBB0_12:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_VENDOR_ID_SUN,8,3          ## @PCI_VENDOR_ID_SUN
	.comm	_PCI_DEVICE_ID_SUN_CASSINI,8,3  ## @PCI_DEVICE_ID_SUN_CASSINI
	.comm	_CAS_ID_REVPLUS,8,3             ## @CAS_ID_REVPLUS
	.comm	_CAS_FLAG_REG_PLUS,4,2          ## @CAS_FLAG_REG_PLUS
	.comm	_CAS_ID_REVPLUS02u,8,3          ## @CAS_ID_REVPLUS02u
	.comm	_CAS_FLAG_TARGET_ABORT,4,2      ## @CAS_FLAG_TARGET_ABORT
	.comm	_CAS_ID_REV2,8,3                ## @CAS_ID_REV2
	.comm	_CAS_FLAG_NO_HW_CSUM,4,2        ## @CAS_FLAG_NO_HW_CSUM
	.comm	_PCI_VENDOR_ID_NS,8,3           ## @PCI_VENDOR_ID_NS
	.comm	_PCI_DEVICE_ID_NS_SATURN,8,3    ## @PCI_DEVICE_ID_NS_SATURN
	.comm	_CAS_FLAG_SATURN,4,2            ## @CAS_FLAG_SATURN
	.no_dead_strip	_cas_check_pci_invariants
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cas_check_pci_invariants
_cas_check_pci_invariants:              ; @cas_check_pci_invariants
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	str	wzr, [x0]
	ldr	x10, [x8]
Lloh0:
	adrp	x9, _PCI_VENDOR_ID_SUN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_VENDOR_ID_SUN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x10, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	x9, [x8, #8]
Lloh3:
	adrp	x11, _PCI_DEVICE_ID_SUN_CASSINI@GOTPAGE
Lloh4:
	ldr	x11, [x11, _PCI_DEVICE_ID_SUN_CASSINI@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	cmp	x9, x11
	b.ne	LBB0_4
; %bb.2:
	ldr	x9, [x8, #16]
Lloh6:
	adrp	x8, _CAS_ID_REVPLUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CAS_ID_REVPLUS@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ge	LBB0_7
; %bb.3:
	mov	w8, #0
	b	LBB0_8
LBB0_4:
Lloh9:
	adrp	x9, _CAS_FLAG_REG_PLUS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CAS_FLAG_REG_PLUS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	str	w9, [x0]
Lloh12:
	adrp	x11, _PCI_VENDOR_ID_NS@GOTPAGE
Lloh13:
	ldr	x11, [x11, _PCI_VENDOR_ID_NS@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_13
; %bb.5:
	ldr	x8, [x8, #8]
Lloh15:
	adrp	x10, _PCI_DEVICE_ID_NS_SATURN@GOTPAGE
Lloh16:
	ldr	x10, [x10, _PCI_DEVICE_ID_NS_SATURN@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_13
; %bb.6:
Lloh18:
	adrp	x8, _CAS_FLAG_SATURN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CAS_FLAG_SATURN@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	b	LBB0_12
LBB0_7:
Lloh21:
	adrp	x8, _CAS_FLAG_REG_PLUS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CAS_FLAG_REG_PLUS@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x0]
LBB0_8:
Lloh24:
	adrp	x10, _CAS_ID_REVPLUS02u@GOTPAGE
Lloh25:
	ldr	x10, [x10, _CAS_ID_REVPLUS02u@GOTPAGEOFF]
Lloh26:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_10
; %bb.9:
Lloh27:
	adrp	x10, _CAS_FLAG_TARGET_ABORT@GOTPAGE
Lloh28:
	ldr	x10, [x10, _CAS_FLAG_TARGET_ABORT@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	orr	w8, w8, w10
	str	w8, [x0]
LBB0_10:
Lloh30:
	adrp	x10, _CAS_ID_REV2@GOTPAGE
Lloh31:
	ldr	x10, [x10, _CAS_ID_REV2@GOTPAGEOFF]
Lloh32:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_13
; %bb.11:
Lloh33:
	adrp	x9, _CAS_FLAG_NO_HW_CSUM@GOTPAGE
Lloh34:
	ldr	x9, [x9, _CAS_FLAG_NO_HW_CSUM@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
LBB0_12:
	orr	w8, w8, w9
	str	w8, [x0]
LBB0_13:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_VENDOR_ID_SUN,8,3          ; @PCI_VENDOR_ID_SUN
	.comm	_PCI_DEVICE_ID_SUN_CASSINI,8,3  ; @PCI_DEVICE_ID_SUN_CASSINI
	.comm	_CAS_ID_REVPLUS,8,3             ; @CAS_ID_REVPLUS
	.comm	_CAS_FLAG_REG_PLUS,4,2          ; @CAS_FLAG_REG_PLUS
	.comm	_CAS_ID_REVPLUS02u,8,3          ; @CAS_ID_REVPLUS02u
	.comm	_CAS_FLAG_TARGET_ABORT,4,2      ; @CAS_FLAG_TARGET_ABORT
	.comm	_CAS_ID_REV2,8,3                ; @CAS_ID_REV2
	.comm	_CAS_FLAG_NO_HW_CSUM,4,2        ; @CAS_FLAG_NO_HW_CSUM
	.comm	_PCI_VENDOR_ID_NS,8,3           ; @PCI_VENDOR_ID_NS
	.comm	_PCI_DEVICE_ID_NS_SATURN,8,3    ; @PCI_DEVICE_ID_NS_SATURN
	.comm	_CAS_FLAG_SATURN,4,2            ; @CAS_FLAG_SATURN
	.no_dead_strip	_cas_check_pci_invariants
.subsections_via_symbols
