	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iflib_device_probe             ## -- Begin function iflib_device_probe
	.p2align	4, 0x90
_iflib_device_probe:                    ## @iflib_device_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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	callq	_DEVICE_REGISTER
	movq	%rax, %r15
	movq	_ENOTSUP@GOTPCREL(%rip), %rax
	testq	%r15, %r15
	je	LBB0_16
## %bb.1:
	movq	(%r15), %rcx
	movq	_IFLIB_MAGIC@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_16
## %bb.2:
	movl	%r14d, %edi
	callq	_pci_get_vendor
	movq	%rax, %rbx
	movl	%r14d, %edi
	callq	_pci_get_device
	movq	%rax, -56(%rbp)
	movl	%r14d, %edi
	callq	_pci_get_subvendor
	movq	%rax, -32(%rbp)
	movl	%r14d, %edi
	callq	_pci_get_subdevice
	movq	%rax, -40(%rbp)
	movl	%r14d, %edi
	callq	_pci_get_revid
	movq	%rax, -48(%rbp)
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	-56(%rbp), %rdi
	leaq	-32(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	callq	*%rax
LBB0_4:
	movq	8(%r15), %rcx
	movq	(%rcx), %rdi
	movq	_ENXIO@GOTPCREL(%rip), %rax
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.5:
	movq	-56(%rbp), %rdx
	movq	-32(%rbp), %rsi
	movq	-40(%rbp), %r9
	movq	-48(%rbp), %r8
	addq	$48, %rcx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rcx), %rdi
	addq	$48, %rcx
	testq	%rdi, %rdi
	je	LBB0_16
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdi, %rbx
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	-40(%rcx), %rdx
	jne	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-32(%rcx), %rdi
	cmpq	%rdi, %rsi
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	testq	%rdi, %rdi
	jne	LBB0_7
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-24(%rcx), %rdi
	cmpq	%rdi, %r9
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	testq	%rdi, %rdi
	jne	LBB0_7
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-16(%rcx), %rdi
	cmpq	%rdi, %r8
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	testq	%rdi, %rdi
	jne	LBB0_7
LBB0_15:
	movl	-8(%rcx), %esi
	movl	%r14d, %edi
	callq	_device_set_desc_copy
	movq	_BUS_PROBE_DEFAULT@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFLIB_MAGIC,8,3                ## @IFLIB_MAGIC
	.comm	_ENOTSUP,4,2                    ## @ENOTSUP
	.comm	_BUS_PROBE_DEFAULT,4,2          ## @BUS_PROBE_DEFAULT
	.comm	_ENXIO,4,2                      ## @ENXIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iflib_device_probe             ; -- Begin function iflib_device_probe
	.p2align	2
_iflib_device_probe:                    ; @iflib_device_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	bl	_DEVICE_REGISTER
	cbz	x0, LBB0_14
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _IFLIB_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFLIB_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.2:
	mov	x0, x19
	bl	_pci_get_vendor
	mov	x20, x0
	mov	x0, x19
	bl	_pci_get_device
	str	x0, [sp, #24]
	mov	x0, x19
	bl	_pci_get_subvendor
	str	x0, [sp]
	mov	x0, x19
	bl	_pci_get_subdevice
	str	x0, [sp, #8]
	mov	x0, x19
	bl	_pci_get_revid
	str	x0, [sp, #16]
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_4
; %bb.3:
	add	x0, sp, #24
	mov	x1, sp
	add	x2, sp, #8
	add	x3, sp, #16
	blr	x8
LBB0_4:
	ldr	x8, [x21, #8]
	ldr	x14, [x8]
	cbz	x14, LBB0_16
; %bb.5:
	ldp	x13, x9, [sp, #16]
	ldp	x10, x11, [sp]
	add	x12, x8, #24
Lloh3:
	adrp	x8, _ENXIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x14, [x12, #24]
	add	x12, x12, #48
	cbz	x14, LBB0_15
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x20, x14
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldur	x14, [x12, #-16]
	cmp	x9, x14
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldur	x14, [x12, #-8]
	cmp	x10, x14
	ccmp	x14, #0, #4, ne
	b.ne	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x14, [x12]
	cmp	x11, x14
	ccmp	x14, #0, #4, ne
	b.ne	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x14, [x12, #8]
	cmp	x13, x14
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	cbnz	x14, LBB0_6
LBB0_13:
	ldr	w1, [x12, #16]
	mov	x0, x19
	bl	_device_set_desc_copy
Lloh5:
	adrp	x8, _BUS_PROBE_DEFAULT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BUS_PROBE_DEFAULT@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh7:
	adrp	x8, _ENOTSUP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOTSUP@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	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
	add	sp, sp, #80
	ret
LBB0_16:
Lloh9:
	adrp	x8, _ENXIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IFLIB_MAGIC,8,3                ; @IFLIB_MAGIC
	.comm	_ENOTSUP,4,2                    ; @ENOTSUP
	.comm	_BUS_PROBE_DEFAULT,4,2          ; @BUS_PROBE_DEFAULT
	.comm	_ENXIO,4,2                      ; @ENXIO
.subsections_via_symbols
