	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ebus_pci_probe
_ebus_pci_probe:                        ## @ebus_pci_probe
	.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
	movl	%edi, %ebx
	callq	_pci_get_class
	movq	_PCIC_BRIDGE@GOTPCREL(%rip), %rcx
	movq	_ENXIO@GOTPCREL(%rip), %r14
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.1:
	movl	%ebx, %edi
	callq	_pci_get_vendor
	cmpl	$4238, %eax                     ## imm = 0x108E
	jne	LBB0_8
## %bb.2:
	movl	%ebx, %edi
	callq	_ofw_bus_get_name
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.3:
	movl	%ebx, %edi
	callq	_pci_get_device
	cmpl	$4096, %eax                     ## imm = 0x1000
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
LBB0_5:
	movl	%ebx, %edi
	callq	_pci_get_device
	cmpl	$4352, %eax                     ## imm = 0x1100
	jne	LBB0_8
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
LBB0_7:
	movl	%ebx, %edi
	callq	_device_set_desc
	movq	_BUS_PROBE_GENERIC@GOTPCREL(%rip), %r14
LBB0_8:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIC_BRIDGE,8,3                ## @PCIC_BRIDGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ebus"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.1:                               ## @.str.1
	.asciz	"PCI-EBus2 bridge"

L_.str.2:                               ## @.str.2
	.asciz	"PCI-EBus3 bridge"

	.comm	_BUS_PROBE_GENERIC,4,2          ## @BUS_PROBE_GENERIC
	.no_dead_strip	_ebus_pci_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ebus_pci_probe
_ebus_pci_probe:                        ; @ebus_pci_probe
	.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
	mov	x19, x0
	bl	_pci_get_class
Lloh0:
	adrp	x8, _PCIC_BRIDGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCIC_BRIDGE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_pci_get_vendor
	mov	w8, #4238
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_ofw_bus_get_name
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_5
LBB0_3:
Lloh5:
	adrp	x8, _ENXIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x19
	bl	_pci_get_device
	cmp	w0, #1, lsl #12                 ; =4096
	b.ne	LBB0_7
; %bb.6:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_pci_get_device
	mov	w8, #4352
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.8:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_device_set_desc
Lloh11:
	adrp	x8, _BUS_PROBE_GENERIC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BUS_PROBE_GENERIC@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIC_BRIDGE,8,3                ; @PCIC_BRIDGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ebus"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.1:                               ; @.str.1
	.asciz	"PCI-EBus2 bridge"

l_.str.2:                               ; @.str.2
	.asciz	"PCI-EBus3 bridge"

	.comm	_BUS_PROBE_GENERIC,4,2          ; @BUS_PROBE_GENERIC
	.no_dead_strip	_ebus_pci_probe
.subsections_via_symbols
