	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_vendors
_load_vendors:                          ## @load_vendors
	.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
	subq	$2072, %rsp                     ## imm = 0x818
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_pci_vendors@GOTPCREL(%rip), %rdi
	callq	_TAILQ_INIT
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	__PATH_LPCIVDB@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_fopen
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	__PATH_PCIVDB@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_35
LBB0_4:
	leaq	-1072(%rbp), %r13
	movq	%r13, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r14, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_31
## %bb.5:
	leaq	-1071(%rbp), %r12
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_9 Depth=1
	leaq	L_.str.5(%rip), %rdi
	callq	_warnx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	movq	%r13, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r14, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_31
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	%r13, %rdi
	movl	$35, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movb	$0, (%rax)
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r13, %rdi
	callq	_strlen
	leaq	(%rax,%rbp), %rbx
	addq	$-1073, %rbx                    ## imm = 0xFBCF
	cmpq	%r13, %rbx
	jbe	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%rbx), %edi
	callq	_isspace
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movb	$0, (%rbx)
	decq	%rbx
	cmpq	%r13, %rbx
	ja	LBB0_12
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	movb	-1072(%rbp), %al
	cmpb	$9, %al
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpb	$9, -1071(%rbp)
	je	LBB0_8
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpb	$9, %al
	jne	LBB0_24
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	-2100(%rbp), %rdx
	leaq	-2096(%rbp), %rcx
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_8
## %bb.18:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$0, -2100(%rbp)
	je	LBB0_8
## %bb.19:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	-2096(%rbp), %rdi
	callq	_strlen
	testl	%eax, %eax
	jle	LBB0_8
## %bb.20:                              ##   in Loop: Header=BB0_9 Depth=1
	testq	%r15, %r15
	je	LBB0_7
## %bb.21:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rbx
	movl	$16, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_36
## %bb.22:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, %r12
	leaq	-2096(%rbp), %rdi
	callq	_strdup
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_37
## %bb.23:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-2100(%rbp), %eax
	movl	%eax, (%r12)
	leaq	4(%r15), %rdi
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_TAILQ_INSERT_TAIL
	movq	%rbx, %r12
	jmp	LBB0_8
LBB0_24:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	-2100(%rbp), %rdx
	leaq	-2096(%rbp), %rcx
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_30
## %bb.25:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$0, -2100(%rbp)
	je	LBB0_8
## %bb.26:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	-2096(%rbp), %rdi
	callq	_strlen
	testl	%eax, %eax
	jle	LBB0_8
## %bb.27:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$16, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_38
## %bb.28:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, %r15
	leaq	-2096(%rbp), %rdi
	callq	_strdup
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_39
## %bb.29:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-2100(%rbp), %eax
	movl	%eax, (%r15)
	movq	%r15, %rdi
	addq	$4, %rdi
	callq	_TAILQ_INIT
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_pci_vendors@GOTPCREL(%rip), %rdi
	movq	%r15, %rsi
	callq	_TAILQ_INSERT_TAIL
	jmp	LBB0_8
LBB0_30:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpb	$9, -1072(%rbp)
	jne	LBB0_8
	jmp	LBB0_17
LBB0_31:
	xorl	%r15d, %r15d
LBB0_32:
	movq	%r14, %rdi
	callq	_ferror
	testq	%rax, %rax
	movl	$1, %ebx
	cmovel	%r15d, %ebx
	movq	%r14, %rdi
	callq	_fclose
LBB0_33:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_42
## %bb.34:
	movl	%ebx, %eax
	addq	$2072, %rsp                     ## imm = 0x818
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	movl	$1, %ebx
	jmp	LBB0_33
LBB0_36:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_41
LBB0_37:
	movq	%r12, %r15
	leaq	L_.str.7(%rip), %rbx
	jmp	LBB0_40
LBB0_38:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_41
LBB0_39:
	leaq	L_.str.4(%rip), %rbx
LBB0_40:
	movq	%r15, %rdi
	callq	_free
	movq	%rbx, %rdi
LBB0_41:
	callq	_warn
	movl	$1, %r15d
	jmp	LBB0_32
LBB0_42:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_pci_vendors,4,2                ## @pci_vendors
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCICONF_VENDOR_DATABASE"

	.comm	__PATH_LPCIVDB,8,3              ## @_PATH_LPCIVDB
L_.str.1:                               ## @.str.1
	.asciz	"r"

	.comm	__PATH_PCIVDB,8,3               ## @_PATH_PCIVDB
L_.str.2:                               ## @.str.2
	.asciz	"%04x %[^\n]"

L_.str.3:                               ## @.str.3
	.asciz	"allocating vendor entry"

L_.str.4:                               ## @.str.4
	.asciz	"allocating vendor description"

	.comm	_link,4,2                       ## @link
L_.str.5:                               ## @.str.5
	.asciz	"device entry with no vendor!"

L_.str.6:                               ## @.str.6
	.asciz	"allocating device entry"

L_.str.7:                               ## @.str.7
	.asciz	"allocating device description"

	.no_dead_strip	_load_vendors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_vendors
_load_vendors:                          ; @load_vendors
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #2080
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x0, _pci_vendors@GOTPAGE
Lloh4:
	ldr	x0, [x0, _pci_vendors@GOTPAGEOFF]
	bl	_TAILQ_INIT
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
Lloh7:
	adrp	x8, __PATH_LPCIVDB@GOTPAGE
Lloh8:
	ldr	x8, [x8, __PATH_LPCIVDB@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x0, x8, x0, eq
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, __PATH_PCIVDB@GOTPAGE
Lloh13:
	ldr	x8, [x8, __PATH_PCIVDB@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x8]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	mov	x19, x0
	cbz	x0, LBB0_31
LBB0_2:
	add	x27, sp, #1040
	add	x0, sp, #1040
	mov	w1, #1024
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_27
; %bb.3:
	mov	x21, #0
	add	x22, x27, #1
Lloh17:
	adrp	x23, l_.str.2@PAGE
Lloh18:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh19:
	adrp	x24, l_.str.5@PAGE
Lloh20:
	add	x24, x24, l_.str.5@PAGEOFF
Lloh21:
	adrp	x28, _link@GOTPAGE
Lloh22:
	ldr	x28, [x28, _link@GOTPAGEOFF]
Lloh23:
	adrp	x20, l_.str.3@PAGE
Lloh24:
	add	x20, x20, l_.str.3@PAGEOFF
Lloh25:
	adrp	x25, _pci_vendors@GOTPAGE
Lloh26:
	ldr	x25, [x25, _pci_vendors@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x24
	bl	_warnx
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #1040
	mov	w1, #1024
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_27
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	add	x0, sp, #1040
	mov	w1, #35
	bl	_strchr
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	strb	wzr, [x0]
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #1040
	bl	_strlen
	add	x8, x27, x0
	sub	x26, x8, #1
	cmp	x26, x27
	b.ls	LBB0_5
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x26]
	bl	_isspace
	cbz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	strb	wzr, [x26], #-1
	cmp	x26, x27
	b.hi	LBB0_9
	b	LBB0_5
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [sp, #1040]
	ldrb	w9, [sp, #1041]
	cmp	w8, #9
	ccmp	w9, #9, #0, eq
	b.eq	LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #9
	b.ne	LBB0_20
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x2, sp, #12
	add	x3, sp, #16
	mov	x0, x22
	mov	x1, x23
	bl	_sscanf
	cmp	w0, #2
	b.ne	LBB0_5
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_5
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #16
	bl	_strlen
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	cbz	x21, LBB0_4
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #16
	bl	_malloc
	cbz	x0, LBB0_32
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x26, x0
	add	x0, sp, #16
	bl	_strdup
	str	x0, [x26, #8]
	cbz	x0, LBB0_33
; %bb.19:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #12]
	str	w8, [x26]
	add	x0, x21, #4
	ldr	w2, [x28]
	mov	x1, x26
	bl	_TAILQ_INSERT_TAIL
	b	LBB0_5
LBB0_20:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #1040
	add	x2, sp, #12
	add	x3, sp, #16
	mov	x1, x23
	bl	_sscanf
	cmp	w0, #2
	b.ne	LBB0_26
; %bb.21:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_5
; %bb.22:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #16
	bl	_strlen
	cmp	w0, #0
	b.le	LBB0_5
; %bb.23:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #16
	bl	_malloc
	cbz	x0, LBB0_36
; %bb.24:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x21, x0
	add	x0, sp, #16
	bl	_strdup
	str	x0, [x21, #8]
	cbz	x0, LBB0_34
; %bb.25:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #12]
	mov	x0, x21
	str	w8, [x0], #4
	bl	_TAILQ_INIT
	ldr	w2, [x28]
	mov	x0, x25
	mov	x1, x21
	bl	_TAILQ_INSERT_TAIL
	b	LBB0_5
LBB0_26:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [sp, #1040]
	cmp	w8, #9
	b.ne	LBB0_5
	b	LBB0_13
LBB0_27:
	mov	w20, #0
LBB0_28:
	mov	x0, x19
	bl	_ferror
	cmp	x0, #0
	csinc	w20, w20, wzr, eq
	mov	x0, x19
	bl	_fclose
LBB0_29:
	ldur	x8, [x29, #-96]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_37
; %bb.30:
	mov	x0, x20
	add	sp, sp, #2080
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_31:
	mov	w20, #1
	b	LBB0_29
LBB0_32:
Lloh30:
	adrp	x20, l_.str.6@PAGE
Lloh31:
	add	x20, x20, l_.str.6@PAGEOFF
	b	LBB0_36
LBB0_33:
	mov	x21, x26
Lloh32:
	adrp	x20, l_.str.7@PAGE
Lloh33:
	add	x20, x20, l_.str.7@PAGEOFF
	b	LBB0_35
LBB0_34:
Lloh34:
	adrp	x20, l_.str.4@PAGE
Lloh35:
	add	x20, x20, l_.str.4@PAGEOFF
LBB0_35:
	mov	x0, x21
	bl	_free
LBB0_36:
	mov	x0, x20
	bl	_warn
	mov	w20, #1
	b	LBB0_28
LBB0_37:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_pci_vendors,4,2                ; @pci_vendors
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCICONF_VENDOR_DATABASE"

	.comm	__PATH_LPCIVDB,8,3              ; @_PATH_LPCIVDB
l_.str.1:                               ; @.str.1
	.asciz	"r"

	.comm	__PATH_PCIVDB,8,3               ; @_PATH_PCIVDB
l_.str.2:                               ; @.str.2
	.asciz	"%04x %[^\n]"

l_.str.3:                               ; @.str.3
	.asciz	"allocating vendor entry"

l_.str.4:                               ; @.str.4
	.asciz	"allocating vendor description"

	.comm	_link,4,2                       ; @link
l_.str.5:                               ; @.str.5
	.asciz	"device entry with no vendor!"

l_.str.6:                               ; @.str.6
	.asciz	"allocating device entry"

l_.str.7:                               ; @.str.7
	.asciz	"allocating device description"

	.no_dead_strip	_load_vendors
.subsections_via_symbols
