	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_via_isa_bridges@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	24(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	movq	%rdi, %r14
	movq	_PCI_VENDOR_ID_VIA@GOTPCREL(%rip), %r15
	movq	_VIA_BAD_ID@GOTPCREL(%rip), %r12
	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	56(%rbx), %rsi
	addq	$32, %rbx
	testq	%rsi, %rsi
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %eax
	andl	(%rbx), %eax
	movq	(%r15), %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	8(%rbx), %rcx
	jl	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	16(%rbx), %rcx
	jg	LBB0_5
LBB0_7:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_via_isa_bridges,8,3            ## @via_isa_bridges
	.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _via_isa_bridges@GOTPAGE
Lloh1:
	ldr	x8, [x8, _via_isa_bridges@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	ldr	x1, [x19, #24]
	cbz	x1, LBB0_8
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x21, _PCI_VENDOR_ID_VIA@GOTPAGE
Lloh4:
	ldr	x21, [x21, _PCI_VENDOR_ID_VIA@GOTPAGEOFF]
Lloh5:
	adrp	x22, _VIA_BAD_ID@GOTPAGE
Lloh6:
	ldr	x22, [x22, _VIA_BAD_ID@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_pci_dev_put
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x19, #32
	ldr	x1, [x19, #56]
	mov	x19, x8
	cbz	x1, LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w9, [x19]
	ldr	w10, [x22]
	tst	w10, w9
	cinc	x0, x8, ne
	mov	x2, #0
	bl	_pci_get_device
	str	x0, [x20]
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x0]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.gt	LBB0_2
	b	LBB0_8
LBB0_7:
	mov	x19, x8
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_via_isa_bridges,8,3            ; @via_isa_bridges
	.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
