	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function via_config_find
_via_config_find:                       ## @via_config_find
	.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	_via_isa_bridges@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %rsi
	movq	_PCI_DEVICE_ID_VIA_ANON@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rsi
	jne	LBB0_1
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %r14
	movq	_PCI_VENDOR_ID_VIA@GOTPCREL(%rip), %r12
	movq	_VIA_BAD_ID@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rdi
	callq	_pci_dev_put
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rbx), %rsi
	addq	$32, %rbx
	cmpq	(%r15), %rsi
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %eax
	andl	8(%rbx), %eax
	movq	(%r12), %rdi
	cmpl	$1, %eax
	sbbq	$-1, %rdi
	xorl	%edx, %edx
	callq	_pci_get_device
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rax), %rcx
	cmpq	16(%rbx), %rcx
	jl	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	24(%rbx), %rcx
	jg	LBB0_5
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_via_isa_bridges,8,3            ## @via_isa_bridges
	.comm	_PCI_DEVICE_ID_VIA_ANON,8,3     ## @PCI_DEVICE_ID_VIA_ANON
	.comm	_PCI_VENDOR_ID_VIA,8,3          ## @PCI_VENDOR_ID_VIA
	.comm	_VIA_BAD_ID,4,2                 ## @VIA_BAD_ID
	.no_dead_strip	_via_config_find
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function via_config_find
_via_config_find:                       ; @via_config_find
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, _via_isa_bridges@GOTPAGE
Lloh1:
	ldr	x8, [x8, _via_isa_bridges@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	ldr	x1, [x19]
Lloh3:
	adrp	x21, _PCI_DEVICE_ID_VIA_ANON@GOTPAGE
Lloh4:
	ldr	x21, [x21, _PCI_DEVICE_ID_VIA_ANON@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x1, x8
	b.ne	LBB0_2
LBB0_1:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x20, x0
Lloh5:
	adrp	x22, _PCI_VENDOR_ID_VIA@GOTPAGE
Lloh6:
	ldr	x22, [x22, _PCI_VENDOR_ID_VIA@GOTPAGEOFF]
Lloh7:
	adrp	x23, _VIA_BAD_ID@GOTPAGE
Lloh8:
	ldr	x23, [x23, _VIA_BAD_ID@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_pci_dev_put
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x19, #32]!
	ldr	x8, [x21]
	cmp	x1, x8
	b.eq	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w9, [x19, #8]
	ldr	w10, [x23]
	tst	w10, w9
	cinc	x0, x8, ne
	mov	x2, #0
	bl	_pci_get_device
	str	x0, [x20]
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x0]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.lt	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x19, #24]
	cmp	x8, x9
	b.gt	LBB0_3
	b	LBB0_1
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_via_isa_bridges,8,3            ; @via_isa_bridges
	.comm	_PCI_DEVICE_ID_VIA_ANON,8,3     ; @PCI_DEVICE_ID_VIA_ANON
	.comm	_PCI_VENDOR_ID_VIA,8,3          ; @PCI_VENDOR_ID_VIA
	.comm	_VIA_BAD_ID,4,2                 ; @VIA_BAD_ID
	.no_dead_strip	_via_config_find
.subsections_via_symbols
