	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sl82c105_bridge_revision
_sl82c105_bridge_revision:              ## @sl82c105_bridge_revision
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	32(%rdi), %rax
	movl	(%rax), %ebx
	movl	24(%rdi), %edi
	callq	_PCI_SLOT
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_PCI_DEVFN
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_pci_get_bus_and_slot
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_PCI_VENDOR_ID_WINBOND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	8(%rbx), %rax
	movq	_PCI_DEVICE_ID_WINBOND_83C553@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	16(%rbx), %eax
	sarl	$8, %eax
	movq	_PCI_CLASS_BRIDGE_ISA@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	callq	_pci_dev_put
	movl	20(%rbx), %r14d
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	_pci_dev_put
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_VENDOR_ID_WINBOND,8,3      ## @PCI_VENDOR_ID_WINBOND
	.comm	_PCI_DEVICE_ID_WINBOND_83C553,8,3 ## @PCI_DEVICE_ID_WINBOND_83C553
	.comm	_PCI_CLASS_BRIDGE_ISA,4,2       ## @PCI_CLASS_BRIDGE_ISA
	.no_dead_strip	_sl82c105_bridge_revision
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sl82c105_bridge_revision
_sl82c105_bridge_revision:              ; @sl82c105_bridge_revision
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #32]
	ldr	w19, [x8]
	ldr	w0, [x0, #24]
	bl	_PCI_SLOT
	mov	w1, #0
	bl	_PCI_DEVFN
	mov	x1, x0
	mov	x0, x19
	bl	_pci_get_bus_and_slot
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PCI_VENDOR_ID_WINBOND@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_VENDOR_ID_WINBOND@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _PCI_DEVICE_ID_WINBOND_83C553@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCI_DEVICE_ID_WINBOND_83C553@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	w8, [x19, #16]
Lloh6:
	adrp	x9, _PCI_CLASS_BRIDGE_ISA@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PCI_CLASS_BRIDGE_ISA@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w9, w8, asr #8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_pci_dev_put
	ldr	w0, [x19, #20]
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_pci_dev_put
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_VENDOR_ID_WINBOND,8,3      ; @PCI_VENDOR_ID_WINBOND
	.comm	_PCI_DEVICE_ID_WINBOND_83C553,8,3 ; @PCI_DEVICE_ID_WINBOND_83C553
	.comm	_PCI_CLASS_BRIDGE_ISA,4,2       ; @PCI_CLASS_BRIDGE_ISA
	.no_dead_strip	_sl82c105_bridge_revision
.subsections_via_symbols
