	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function biospci_enumerate
_biospci_enumerate:                     ## @biospci_enumerate
	.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	_pci_classes@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	cmpl	$0, (%r12)
	js	LBB0_13
## %bb.1:
	leaq	-48(%rbp), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 16(%r12)
	leaq	16(%r12), %r12
	js	LBB0_13
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##       Child Loop BB0_5 Depth 3
                                        ##         Child Loop BB0_7 Depth 4
	movq	8(%r12), %r13
	movl	(%r13), %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	16(%r13), %eax
	addq	$16, %r13
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_5 Depth 3
                                        ##         Child Loop BB0_7 Depth 4
	testl	%eax, %eax
	js	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	8(%r13), %rbx
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	js	LBB0_11
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_7 Depth 4
	movl	(%r12), %edx
	shll	$16, %edx
	shll	$8, %eax
	addl	%edx, %eax
	movslq	%eax, %rdi
	addq	%rcx, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_biospci_find_devclass
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=3
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ##       Parent Loop BB0_5 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movl	-48(%rbp), %edi
	movq	_BIOSPCI_32BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	leaq	-44(%rbp), %rcx
	callq	_biospci_read_config
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=4
	movl	-44(%rbp), %edi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	callq	_biospci_addinfo
	movl	(%r12), %eax
	shll	$16, %eax
	movl	(%r13), %ecx
	shll	$8, %ecx
	addl	%eax, %ecx
	movslq	%ecx, %rdi
	addq	(%rbx), %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_biospci_find_devclass
	incl	%r15d
	testl	%eax, %eax
	je	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=3
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	js	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=3
	addq	$8, %rbx
	movl	(%r13), %eax
	jmp	LBB0_5
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pci_classes,8,3                ## @pci_classes
	.comm	_BIOSPCI_32BITS,4,2             ## @BIOSPCI_32BITS
	.no_dead_strip	_biospci_enumerate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function biospci_enumerate
_biospci_enumerate:                     ; @biospci_enumerate
	.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
Lloh0:
	adrp	x8, _pci_classes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pci_classes@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	ldr	w8, [x19]
	tbnz	w8, #31, LBB0_12
; %bb.1:
Lloh3:
	adrp	x23, _BIOSPCI_32BITS@GOTPAGE
Lloh4:
	ldr	x23, [x23, _BIOSPCI_32BITS@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #16]!
	tbnz	w8, #31, LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_6 Depth 3
                                        ;         Child Loop BB0_8 Depth 4
	ldr	x20, [x19, #8]
	ldr	w8, [x20]
	tbz	w8, #31, LBB0_5
	b	LBB0_2
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldr	w8, [x20, #16]!
	tbnz	w8, #31, LBB0_2
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_6 Depth 3
                                        ;         Child Loop BB0_8 Depth 4
	ldr	x21, [x20, #8]
	ldr	x9, [x21]
	tbnz	x9, #63, LBB0_4
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_8 Depth 4
	ldr	w10, [x19]
	lsl	w8, w8, #8
	add	w8, w8, w10, lsl #16
	add	x0, x9, w8, sxtw
	add	x2, sp, #12
	mov	w1, #0
	bl	_biospci_find_devclass
	cbnz	w0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=3
	mov	w22, #1
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ;       Parent Loop BB0_6 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	ldr	w0, [sp, #12]
	ldr	w2, [x23]
	add	x3, sp, #8
	mov	w1, #0
	bl	_biospci_read_config
	cbnz	w0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=4
	ldr	w0, [sp, #8]
	mov	x1, x19
	mov	x2, x20
	mov	x3, x21
	bl	_biospci_addinfo
	ldr	w8, [x19]
	ldr	w9, [x20]
	lsl	w9, w9, #8
	add	w8, w9, w8, lsl #16
	ldr	x9, [x21]
	add	x0, x9, w8, sxtw
	add	x2, sp, #12
	mov	x1, x22
	bl	_biospci_find_devclass
	add	w22, w22, #1
	cbz	w0, LBB0_8
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=3
	ldr	x9, [x21, #8]!
	tbnz	x9, #63, LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=3
	ldr	w8, [x20]
	b	LBB0_6
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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_pci_classes,8,3                ; @pci_classes
	.comm	_BIOSPCI_32BITS,4,2             ; @BIOSPCI_32BITS
	.no_dead_strip	_biospci_enumerate
.subsections_via_symbols
