	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_list_caps                      ## -- Begin function list_caps
	.p2align	4, 0x90
_list_caps:                             ## @list_caps
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r12d
	leaq	4(%rsi), %r15
	movq	_PCIR_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	movl	$2, %ecx
	callq	_read_config
	movq	_PCIM_STATUS_CAPPRESENT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_25
## %bb.1:
	movq	_PCIM_HDRTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r14), %eax
	addl	$-142, %eax
	cmpl	$3, %eax
	jae	LBB0_2
## %bb.3:
	cltq
	leaq	l_switch.table.list_caps(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %ebx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_4
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$10, %edi
	callq	_putchar
	movq	_PCICAP_NEXTPTR@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	$1, %ecx
	callq	_read_config
	movq	%rax, %rbx
	testl	%ebx, %ebx
	je	LBB0_24
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$255, %ebx
	je	LBB0_24
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_PCICAP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	%ebx, %edx
	movl	%r12d, %edi
	movq	%r15, %rsi
	movl	$1, %ecx
	callq	_read_config
	movq	%rax, %r13
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_printf
	addl	$-128, %r13d
	cmpl	$13, %r13d
	ja	LBB0_22
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%r13,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_cap_vpd
	jmp	LBB0_23
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_cap_vendor
	jmp	LBB0_23
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_cap_subvendor
	jmp	LBB0_23
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_cap_sata
	jmp	LBB0_23
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_cap_power
	jmp	LBB0_23
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_cap_pcix
	jmp	LBB0_23
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_cap_pciaf
	jmp	LBB0_23
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_cap_msix
	jmp	LBB0_23
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_cap_msi
	jmp	LBB0_23
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_cap_ht
	jmp	LBB0_23
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_cap_express
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_23
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_cap_ea
	jmp	LBB0_23
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_cap_debug
	jmp	LBB0_23
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_cap_agp
	jmp	LBB0_23
LBB0_24:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_25
## %bb.26:
	movl	%r12d, %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_list_ecaps                     ## TAILCALL
LBB0_2:
	callq	_list_caps.cold.1
LBB0_25:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_14
	.long	L0_0_set_16
	.long	L0_0_set_19
	.long	L0_0_set_8
	.long	L0_0_set_12
	.long	L0_0_set_20
	.long	L0_0_set_18
	.long	L0_0_set_11
	.long	L0_0_set_13
	.long	L0_0_set_17
	.long	L0_0_set_21
	.long	L0_0_set_15
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function list_caps.cold.1
_list_caps.cold.1:                      ## @list_caps.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str(%rip), %rsi
	pushq	$1
	popq	%rdi
	callq	_errx
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIR_STATUS,4,2                ## @PCIR_STATUS
	.comm	_PCIM_STATUS_CAPPRESENT,4,2     ## @PCIM_STATUS_CAPPRESENT
	.comm	_PCIM_HDRTYPE,4,2               ## @PCIM_HDRTYPE
	.comm	_PCIR_CAP_PTR,4,2               ## @PCIR_CAP_PTR
	.comm	_PCIR_CAP_PTR_2,4,2             ## @PCIR_CAP_PTR_2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"list_caps: bad header type"

	.comm	_PCICAP_ID,4,2                  ## @PCICAP_ID
L_.str.1:                               ## @.str.1
	.asciz	"    cap %02x[%02x] = "

L_.str.2:                               ## @.str.2
	.asciz	"unknown"

	.comm	_PCICAP_NEXTPTR,4,2             ## @PCICAP_NEXTPTR
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.list_caps
l_switch.table.list_caps:
	.quad	_PCIR_CAP_PTR
	.quad	_PCIR_CAP_PTR_2
	.quad	_PCIR_CAP_PTR

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_list_caps                      ; -- Begin function list_caps
	.p2align	2
_list_caps:                             ; @list_caps
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	add	x21, x1, #4
Lloh0:
	adrp	x8, _PCIR_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCIR_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x21
	mov	w3, #2
	bl	_read_config
Lloh3:
	adrp	x8, _PCIM_STATUS_CAPPRESENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCIM_STATUS_CAPPRESENT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_25
; %bb.1:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _PCIM_HDRTYPE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PCIM_HDRTYPE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w8, w9, w8
	sub	w8, w8, #142
	cmp	w8, #3
	b.hs	LBB0_26
; %bb.2:
	mov	w26, #0
Lloh9:
	adrp	x9, l_switch.table.list_caps@PAGE
Lloh10:
	add	x9, x9, l_switch.table.list_caps@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w2, [x8]
Lloh11:
	adrp	x27, _PCICAP_ID@GOTPAGE
Lloh12:
	ldr	x27, [x27, _PCICAP_ID@GOTPAGEOFF]
Lloh13:
	adrp	x22, l_.str.1@PAGE
Lloh14:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh15:
	adrp	x28, _PCICAP_NEXTPTR@GOTPAGE
Lloh16:
	ldr	x28, [x28, _PCICAP_NEXTPTR@GOTPAGEOFF]
Lloh17:
	adrp	x23, lJTI0_0@PAGE
Lloh18:
	add	x23, x23, lJTI0_0@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	bl	_cap_ea
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #10
	bl	_putchar
	ldr	w8, [x28]
	add	w2, w8, w24
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	w3, #1
	bl	_read_config
	mov	x24, x0
	cbz	w24, LBB0_23
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w24, #255
	b.eq	LBB0_23
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x27]
	add	w2, w8, w24
	mov	x0, x20
	mov	x1, x21
	mov	w3, #1
	bl	_read_config
	mov	x25, x0
	mov	x8, x24
	stp	x0, x8, [sp]
	mov	x0, x22
	bl	_printf
	sub	w8, w25, #128
	cmp	w8, #13
	b.hi	LBB0_22
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	adr	x9, LBB0_3
	ldrb	w10, [x23, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	bl	_cap_vpd
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	bl	_cap_vendor
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	bl	_cap_subvendor
	b	LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	bl	_cap_sata
	b	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	bl	_cap_power
	b	LBB0_4
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	bl	_cap_pcix
	b	LBB0_4
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	bl	_cap_pciaf
	b	LBB0_4
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	bl	_cap_msix
	b	LBB0_4
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	bl	_cap_msi
	b	LBB0_4
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	bl	_cap_ht
	b	LBB0_4
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	bl	_cap_express
	mov	w26, #1
	b	LBB0_4
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	bl	_cap_debug
	b	LBB0_4
LBB0_21:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	bl	_cap_agp
	b	LBB0_4
LBB0_22:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	b	LBB0_4
LBB0_23:
	cbz	w26, LBB0_25
; %bb.24:
	mov	x0, x20
	mov	x1, x19
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_list_ecaps
LBB0_25:
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_26:
	bl	_list_caps.cold.1
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_15-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_17-LBB0_3)>>2
	.byte	(LBB0_18-LBB0_3)>>2
	.byte	(LBB0_19-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_20-LBB0_3)>>2
	.byte	(LBB0_21-LBB0_3)>>2
                                        ; -- End function
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2                               ; -- Begin function list_caps.cold.1
_list_caps.cold.1:                      ; @list_caps.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
	brk	#0x1
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIR_STATUS,4,2                ; @PCIR_STATUS
	.comm	_PCIM_STATUS_CAPPRESENT,4,2     ; @PCIM_STATUS_CAPPRESENT
	.comm	_PCIM_HDRTYPE,4,2               ; @PCIM_HDRTYPE
	.comm	_PCIR_CAP_PTR,4,2               ; @PCIR_CAP_PTR
	.comm	_PCIR_CAP_PTR_2,4,2             ; @PCIR_CAP_PTR_2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"list_caps: bad header type"

	.comm	_PCICAP_ID,4,2                  ; @PCICAP_ID
l_.str.1:                               ; @.str.1
	.asciz	"    cap %02x[%02x] = "

l_.str.2:                               ; @.str.2
	.asciz	"unknown"

	.comm	_PCICAP_NEXTPTR,4,2             ; @PCICAP_NEXTPTR
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.list_caps
l_switch.table.list_caps:
	.quad	_PCIR_CAP_PTR
	.quad	_PCIR_CAP_PTR_2
	.quad	_PCIR_CAP_PTR

.subsections_via_symbols
