	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cap_pcix
_cap_pcix:                              ## @cap_pcix
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	addq	$4, %rsi
	movq	_PCIXR_STATUS@GOTPCREL(%rip), %rax
	addq	(%rax), %rdx
	movl	$4, %ecx
	callq	_read_config
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_PCIXM_STATUS_64BIT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_2:
	movl	(%r14), %eax
	movq	_PCIM_HDRTYPE@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movl	%ecx, %edx
	andl	%eax, %edx
	cmpl	$1, %edx
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	(%r14), %eax
	movl	(%r15), %ecx
LBB0_4:
	andl	%eax, %ecx
	cmpl	$1, %ecx
	jne	LBB0_6
## %bb.5:
	movq	_PCIXM_STATUS_133CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_PCIXM_STATUS_266CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%ebx, %eax
	movq	_PCIXM_STATUS_533CAP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%r12d, %eax
	je	LBB0_7
LBB0_6:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_PCIXM_STATUS_133CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_7:
	testl	%r12d, %ebx
	je	LBB0_8
## %bb.9:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$1, %eax
	jmp	LBB0_10
LBB0_8:
	xorl	%eax, %eax
LBB0_10:
	movq	_PCIXM_STATUS_266CAP@GOTPCREL(%rip), %rcx
	testl	%r12d, (%rcx)
	je	LBB0_12
## %bb.11:
	testl	%r12d, %ebx
	leaq	L_.str.7(%rip), %rax
	leaq	L_.str.6(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$1, %eax
LBB0_12:
	movq	_PCIXM_STATUS_533CAP@GOTPCREL(%rip), %rcx
	testl	%r12d, (%rcx)
	je	LBB0_14
## %bb.13:
	testl	%eax, %eax
	leaq	L_.str.7(%rip), %rax
	leaq	L_.str.6(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$1, %eax
LBB0_14:
	movl	(%r15), %ecx
	andl	(%r14), %ecx
	cmpl	$1, %ecx
	jne	LBB0_15
## %bb.21:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_PCIXM_STATUS_MAX_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	%r12d, %esi
	addl	$-136, %esi
	xorl	%ecx, %ecx
	movl	$0, %edx
	cmpl	$3, %esi
	ja	LBB0_17
## %bb.16:
	movslq	%esi, %rdx
	leaq	L_switch.table.cap_pcix(%rip), %rsi
	movl	(%rsi,%rdx,4), %edx
LBB0_17:
	movq	_PCIXM_STATUS_MAX_SPLITS@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%r12d, %esi
	addl	$-128, %esi
	cmpl	$7, %esi
	ja	LBB0_18
## %bb.19:
	movslq	%esi, %rcx
	leaq	l_reltable.cap_pcix(%rip), %rsi
	movslq	(%rsi,%rcx,4), %r8
	addq	%rsi, %r8
	leaq	l_switch.table.cap_pcix.12(%rip), %rsi
	movl	(%rsi,%rcx,4), %ecx
	jmp	LBB0_20
LBB0_18:
	leaq	L_.str.10(%rip), %r8
LBB0_20:
	testl	%eax, %eax
	leaq	L_.str.7(%rip), %rax
	leaq	L_.str.6(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIXR_STATUS,8,3               ## @PCIXR_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCI-X "

	.comm	_PCIXM_STATUS_64BIT,4,2         ## @PCIXM_STATUS_64BIT
L_.str.1:                               ## @.str.1
	.asciz	"64-bit "

	.comm	_PCIM_HDRTYPE,4,2               ## @PCIM_HDRTYPE
L_.str.2:                               ## @.str.2
	.asciz	"bridge "

	.comm	_PCIXM_STATUS_133CAP,4,2        ## @PCIXM_STATUS_133CAP
	.comm	_PCIXM_STATUS_266CAP,4,2        ## @PCIXM_STATUS_266CAP
	.comm	_PCIXM_STATUS_533CAP,4,2        ## @PCIXM_STATUS_533CAP
L_.str.3:                               ## @.str.3
	.asciz	"supports"

L_.str.4:                               ## @.str.4
	.asciz	" 133MHz"

L_.str.5:                               ## @.str.5
	.asciz	"%s 266MHz"

L_.str.6:                               ## @.str.6
	.asciz	","

L_.str.7:                               ## @.str.7
	.space	1

L_.str.8:                               ## @.str.8
	.asciz	"%s 533MHz"

	.comm	_PCIXM_STATUS_MAX_READ,4,2      ## @PCIXM_STATUS_MAX_READ
	.comm	_PCIXM_STATUS_MAX_SPLITS,4,2    ## @PCIXM_STATUS_MAX_SPLITS
L_.str.9:                               ## @.str.9
	.asciz	"%s %d burst read, %d split transaction%s"

L_.str.10:                              ## @.str.10
	.asciz	"s"

	.no_dead_strip	_cap_pcix
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.cap_pcix
L_switch.table.cap_pcix:
	.long	512                             ## 0x200
	.long	4096                            ## 0x1000
	.long	2048                            ## 0x800
	.long	1024                            ## 0x400

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.cap_pcix
l_reltable.cap_pcix:
	.long	L_.str.10-l_reltable.cap_pcix
	.long	L_.str.10-l_reltable.cap_pcix
	.long	L_.str.10-l_reltable.cap_pcix
	.long	L_.str.10-l_reltable.cap_pcix
	.long	L_.str.10-l_reltable.cap_pcix
	.long	L_.str.10-l_reltable.cap_pcix
	.long	L_.str.10-l_reltable.cap_pcix
	.long	L_.str.7-l_reltable.cap_pcix

	.p2align	2                               ## @switch.table.cap_pcix.12
l_switch.table.cap_pcix.12:
	.long	8                               ## 0x8
	.long	4                               ## 0x4
	.long	32                              ## 0x20
	.long	3                               ## 0x3
	.long	2                               ## 0x2
	.long	16                              ## 0x10
	.long	12                              ## 0xc
	.long	1                               ## 0x1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cap_pcix
_cap_pcix:                              ; @cap_pcix
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	add	x1, x1, #4
Lloh0:
	adrp	x8, _PCIXR_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCIXR_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x2, x8, x2
	mov	w3, #4
	bl	_read_config
	mov	x19, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
Lloh5:
	adrp	x8, _PCIXM_STATUS_64BIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCIXM_STATUS_64BIT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
LBB0_2:
	ldr	w8, [x20]
Lloh10:
	adrp	x21, _PCIM_HDRTYPE@GOTPAGE
Lloh11:
	ldr	x21, [x21, _PCIM_HDRTYPE@GOTPAGEOFF]
	ldr	w9, [x21]
	and	w10, w9, w8
	cmp	w10, #1
	b.ne	LBB0_4
; %bb.3:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	ldr	w8, [x20]
	ldr	w9, [x21]
LBB0_4:
Lloh14:
	adrp	x23, _PCIXM_STATUS_133CAP@GOTPAGE
Lloh15:
	ldr	x23, [x23, _PCIXM_STATUS_133CAP@GOTPAGEOFF]
	and	w8, w9, w8
Lloh16:
	adrp	x22, _PCIXM_STATUS_266CAP@GOTPAGE
Lloh17:
	ldr	x22, [x22, _PCIXM_STATUS_266CAP@GOTPAGEOFF]
Lloh18:
	adrp	x24, _PCIXM_STATUS_533CAP@GOTPAGE
Lloh19:
	ldr	x24, [x24, _PCIXM_STATUS_533CAP@GOTPAGEOFF]
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.5:
	ldr	w8, [x23]
	ldr	w9, [x22]
	orr	w9, w9, w8
	ldr	w10, [x24]
	orr	w9, w9, w10
	tst	w9, w19
	b.eq	LBB0_7
LBB0_6:
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	ldr	w8, [x23]
LBB0_7:
	ands	w25, w8, w19
	b.eq	LBB0_9
; %bb.8:
Lloh22:
	adrp	x0, l_.str.4@PAGE
Lloh23:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	mov	w8, #1
	b	LBB0_10
LBB0_9:
	mov	w8, #0
LBB0_10:
	ldr	w9, [x22]
Lloh24:
	adrp	x22, l_.str.6@PAGE
Lloh25:
	add	x22, x22, l_.str.6@PAGEOFF
Lloh26:
	adrp	x23, l_.str.7@PAGE
Lloh27:
	add	x23, x23, l_.str.7@PAGEOFF
	tst	w9, w19
	b.eq	LBB0_12
; %bb.11:
	cmp	w25, #0
	csel	x8, x23, x22, eq
	str	x8, [sp]
Lloh28:
	adrp	x0, l_.str.5@PAGE
Lloh29:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
	mov	w8, #1
LBB0_12:
	ldr	w9, [x24]
	tst	w9, w19
	b.eq	LBB0_14
; %bb.13:
	cmp	w8, #0
	csel	x8, x23, x22, eq
	str	x8, [sp]
Lloh30:
	adrp	x0, l_.str.8@PAGE
Lloh31:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_printf
	mov	w8, #1
LBB0_14:
	ldr	w9, [x20]
	ldr	w10, [x21]
	and	w9, w10, w9
	cmp	w9, #1
	b.eq	LBB0_22
; %bb.15:
Lloh32:
	adrp	x9, _PCIXM_STATUS_MAX_READ@GOTPAGE
Lloh33:
	ldr	x9, [x9, _PCIXM_STATUS_MAX_READ@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	and	w9, w9, w19
	sub	w9, w9, #136
	cmp	w9, #3
	b.hi	LBB0_17
; %bb.16:
Lloh35:
	adrp	x10, l_switch.table.cap_pcix@PAGE
Lloh36:
	add	x10, x10, l_switch.table.cap_pcix@PAGEOFF
	ldr	w9, [x10, w9, sxtw #2]
	b	LBB0_18
LBB0_17:
	mov	w9, #0
LBB0_18:
Lloh37:
	adrp	x10, _PCIXM_STATUS_MAX_SPLITS@GOTPAGE
Lloh38:
	ldr	x10, [x10, _PCIXM_STATUS_MAX_SPLITS@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	and	w10, w10, w19
	sub	w10, w10, #128
	cmp	w10, #7
	b.hi	LBB0_20
; %bb.19:
Lloh40:
	adrp	x11, l_switch.table.cap_pcix.11@PAGE
Lloh41:
	add	x11, x11, l_switch.table.cap_pcix.11@PAGEOFF
	ldr	x11, [x11, w10, sxtw #3]
Lloh42:
	adrp	x12, l_switch.table.cap_pcix.12@PAGE
Lloh43:
	add	x12, x12, l_switch.table.cap_pcix.12@PAGEOFF
	ldr	w10, [x12, w10, sxtw #2]
	b	LBB0_21
LBB0_20:
	mov	w10, #0
Lloh44:
	adrp	x11, l_.str.10@PAGE
Lloh45:
	add	x11, x11, l_.str.10@PAGEOFF
LBB0_21:
	cmp	w8, #0
	csel	x8, x23, x22, eq
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh46:
	adrp	x0, l_.str.9@PAGE
Lloh47:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_printf
LBB0_22:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIXR_STATUS,8,3               ; @PCIXR_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCI-X "

	.comm	_PCIXM_STATUS_64BIT,4,2         ; @PCIXM_STATUS_64BIT
l_.str.1:                               ; @.str.1
	.asciz	"64-bit "

	.comm	_PCIM_HDRTYPE,4,2               ; @PCIM_HDRTYPE
l_.str.2:                               ; @.str.2
	.asciz	"bridge "

	.comm	_PCIXM_STATUS_133CAP,4,2        ; @PCIXM_STATUS_133CAP
	.comm	_PCIXM_STATUS_266CAP,4,2        ; @PCIXM_STATUS_266CAP
	.comm	_PCIXM_STATUS_533CAP,4,2        ; @PCIXM_STATUS_533CAP
l_.str.3:                               ; @.str.3
	.asciz	"supports"

l_.str.4:                               ; @.str.4
	.asciz	" 133MHz"

l_.str.5:                               ; @.str.5
	.asciz	"%s 266MHz"

l_.str.6:                               ; @.str.6
	.asciz	","

l_.str.7:                               ; @.str.7
	.space	1

l_.str.8:                               ; @.str.8
	.asciz	"%s 533MHz"

	.comm	_PCIXM_STATUS_MAX_READ,4,2      ; @PCIXM_STATUS_MAX_READ
	.comm	_PCIXM_STATUS_MAX_SPLITS,4,2    ; @PCIXM_STATUS_MAX_SPLITS
l_.str.9:                               ; @.str.9
	.asciz	"%s %d burst read, %d split transaction%s"

l_.str.10:                              ; @.str.10
	.asciz	"s"

	.no_dead_strip	_cap_pcix
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.cap_pcix
l_switch.table.cap_pcix:
	.long	512                             ; 0x200
	.long	4096                            ; 0x1000
	.long	2048                            ; 0x800
	.long	1024                            ; 0x400

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.cap_pcix.11
l_switch.table.cap_pcix.11:
	.quad	l_.str.10
	.quad	l_.str.10
	.quad	l_.str.10
	.quad	l_.str.10
	.quad	l_.str.10
	.quad	l_.str.10
	.quad	l_.str.10
	.quad	l_.str.7

	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.cap_pcix.12
l_switch.table.cap_pcix.12:
	.long	8                               ; 0x8
	.long	4                               ; 0x4
	.long	32                              ; 0x20
	.long	3                               ; 0x3
	.long	2                               ; 0x2
	.long	16                              ; 0x10
	.long	12                              ; 0xc
	.long	1                               ; 0x1

.subsections_via_symbols
