	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cap_vendor
_cap_vendor:                            ## @cap_vendor
	.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
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movl	%edi, %r14d
	leaq	4(%rsi), %r15
	movq	_PCIR_VENDOR_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	%r13d, %edx
	movq	%r15, %rsi
	movl	$1, %ecx
	callq	_read_config
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	cmpl	$32902, (%rbx)                  ## imm = 0x8086
	jne	LBB0_14
## %bb.1:
	movq	_PCIR_VENDOR_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	%r13d, %edx
	movl	%r14d, %edi
	movq	%r15, %rsi
	movl	$1, %ecx
	callq	_read_config
	movl	%eax, %ebx
	sarl	$4, %ebx
	andl	$15, %eax
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_printf
	cmpl	$12, %r12d
	jne	LBB0_14
## %bb.2:
	cmpl	$1, %ebx
	jne	LBB0_14
## %bb.3:
	movq	_PCIR_VENDOR_DATA@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	leal	(%rax,%r13), %edx
	addl	$5, %edx
	movl	%r14d, %edi
	movq	%r15, %rsi
	movl	$4, %ecx
	callq	_read_config
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_printf
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	testb	$1, %bl
	je	LBB0_5
## %bb.4:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$1, %r12d
LBB0_5:
	movq	_PCIR_VENDOR_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%r13), %edx
	incl	%edx
	movl	%r14d, %edi
	movq	%r15, %rsi
	movl	$4, %ecx
	callq	_read_config
	movl	%eax, %ebx
	testl	$2097152, %eax                  ## imm = 0x200000
	jne	LBB0_6
## %bb.7:
	testl	$262144, %ebx                   ## imm = 0x40000
	jne	LBB0_8
LBB0_9:
	testl	$512, %ebx                      ## imm = 0x200
	je	LBB0_11
LBB0_10:
	testl	%r12d, %r12d
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.5(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$1, %r12d
LBB0_11:
	testl	%r12d, %r12d
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.5(%rip), %rsi
	cmoveq	%rax, %rsi
	testb	$-128, %bl
	leaq	L_.str.10(%rip), %rax
	leaq	L_.str.9(%rip), %rdi
	cmoveq	%rax, %rdi
	xorl	%eax, %eax
	callq	_printf
	testb	$32, %bl
	je	LBB0_13
## %bb.12:
	leaq	L_.str.11(%rip), %rdi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_13:
	testb	$8, %bl
	jne	LBB0_15
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	testb	$1, -44(%rbp)                   ## 1-byte Folded Reload
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.5(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$1, %r12d
	testl	$262144, %ebx                   ## imm = 0x40000
	je	LBB0_9
LBB0_8:
	testl	%r12d, %r12d
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.5(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$1, %r12d
	testl	$512, %ebx                      ## imm = 0x200
	jne	LBB0_10
	jmp	LBB0_11
LBB0_15:
	leaq	L_.str.12(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIR_VENDOR_LENGTH,4,2         ## @PCIR_VENDOR_LENGTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vendor (length %d)"

	.comm	_PCIR_VENDOR_DATA,4,2           ## @PCIR_VENDOR_DATA
L_.str.1:                               ## @.str.1
	.asciz	" Intel cap %d version %d"

L_.str.2:                               ## @.str.2
	.asciz	"\n\t\t features:"

L_.str.3:                               ## @.str.3
	.asciz	" AMT"

L_.str.4:                               ## @.str.4
	.asciz	"%s Quick Resume"

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

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

L_.str.7:                               ## @.str.7
	.asciz	"%s SATA RAID-5"

L_.str.8:                               ## @.str.8
	.asciz	"%s Mobile"

L_.str.9:                               ## @.str.9
	.asciz	"%s 6 PCI-e x1 slots"

L_.str.10:                              ## @.str.10
	.asciz	"%s 4 PCI-e x1 slots"

L_.str.11:                              ## @.str.11
	.asciz	"%s SATA RAID-0/1/10"

L_.str.12:                              ## @.str.12
	.asciz	", SATA AHCI"

	.no_dead_strip	_cap_vendor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cap_vendor
_cap_vendor:                            ; @cap_vendor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x2
	mov	x23, x1
	mov	x20, x0
	add	x19, x1, #4
Lloh0:
	adrp	x8, _PCIR_VENDOR_LENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCIR_VENDOR_LENGTH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w2, w8, w2
	mov	x1, x19
	mov	w3, #1
	bl	_read_config
	mov	x22, x0
	str	x22, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldr	w8, [x23]
	mov	w9, #32902
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.1:
Lloh5:
	adrp	x23, _PCIR_VENDOR_DATA@GOTPAGE
Lloh6:
	ldr	x23, [x23, _PCIR_VENDOR_DATA@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w2, w8, w21
	mov	x0, x20
	mov	x1, x19
	mov	w3, #1
	bl	_read_config
	asr	w24, w0, #4
	and	w8, w0, #0xf
	stp	x24, x8, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	cmp	w22, #12
	ccmp	w24, #1, #0, eq
	b.ne	LBB0_12
; %bb.2:
	ldr	w8, [x23]
	add	w8, w21, w8
	add	w2, w8, #5
	mov	x0, x20
	mov	x1, x19
	mov	w3, #4
	bl	_read_config
	mov	x22, x0
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	tbnz	w22, #0, LBB0_4
; %bb.3:
	mov	w24, #0
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	mov	w24, #1
LBB0_5:
	ldr	w8, [x23]
	add	w8, w21, w8
	add	w2, w8, #1
	mov	x0, x20
	mov	x1, x19
	mov	w3, #4
	bl	_read_config
	mov	x19, x0
Lloh13:
	adrp	x20, l_.str.5@PAGE
Lloh14:
	add	x20, x20, l_.str.5@PAGEOFF
Lloh15:
	adrp	x21, l_.str.6@PAGE
Lloh16:
	add	x21, x21, l_.str.6@PAGEOFF
	tbnz	w0, #21, LBB0_13
; %bb.6:
	tbnz	w19, #18, LBB0_14
LBB0_7:
	tbz	w19, #9, LBB0_9
LBB0_8:
	cmp	w24, #0
	csel	x8, x21, x20, eq
	str	x8, [sp]
Lloh17:
	adrp	x0, l_.str.8@PAGE
Lloh18:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_printf
	mov	w24, #1
LBB0_9:
	cmp	w24, #0
	csel	x8, x21, x20, eq
Lloh19:
	adrp	x9, l_.str.9@PAGE
Lloh20:
	add	x9, x9, l_.str.9@PAGEOFF
Lloh21:
	adrp	x10, l_.str.10@PAGE
Lloh22:
	add	x10, x10, l_.str.10@PAGEOFF
	tst	w19, #0x80
	csel	x0, x10, x9, eq
	str	x8, [sp]
	bl	_printf
	tbz	w19, #5, LBB0_11
; %bb.10:
	str	x20, [sp]
Lloh23:
	adrp	x0, l_.str.11@PAGE
Lloh24:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_printf
LBB0_11:
	tbnz	w19, #3, LBB0_15
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
	tst	w22, #0x1
	csel	x8, x21, x20, eq
	str	x8, [sp]
Lloh25:
	adrp	x0, l_.str.4@PAGE
Lloh26:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	mov	w24, #1
	tbz	w19, #18, LBB0_7
LBB0_14:
	cmp	w24, #0
	csel	x8, x21, x20, eq
	str	x8, [sp]
Lloh27:
	adrp	x0, l_.str.7@PAGE
Lloh28:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_printf
	mov	w24, #1
	tbnz	w19, #9, LBB0_8
	b	LBB0_9
LBB0_15:
Lloh29:
	adrp	x0, l_.str.12@PAGE
Lloh30:
	add	x0, x0, l_.str.12@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_printf
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIR_VENDOR_LENGTH,4,2         ; @PCIR_VENDOR_LENGTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vendor (length %d)"

	.comm	_PCIR_VENDOR_DATA,4,2           ; @PCIR_VENDOR_DATA
l_.str.1:                               ; @.str.1
	.asciz	" Intel cap %d version %d"

l_.str.2:                               ; @.str.2
	.asciz	"\n\t\t features:"

l_.str.3:                               ; @.str.3
	.asciz	" AMT"

l_.str.4:                               ; @.str.4
	.asciz	"%s Quick Resume"

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

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

l_.str.7:                               ; @.str.7
	.asciz	"%s SATA RAID-5"

l_.str.8:                               ; @.str.8
	.asciz	"%s Mobile"

l_.str.9:                               ; @.str.9
	.asciz	"%s 6 PCI-e x1 slots"

l_.str.10:                              ; @.str.10
	.asciz	"%s 4 PCI-e x1 slots"

l_.str.11:                              ; @.str.11
	.asciz	"%s SATA RAID-0/1/10"

l_.str.12:                              ; @.str.12
	.asciz	", SATA AHCI"

	.no_dead_strip	_cap_vendor
.subsections_via_symbols
