	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e752x_get_devs
_e752x_get_devs:                        ## @e752x_get_devs
	.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	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_PCI_VENDOR_ID_INTEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	16(%rdx), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_pci_get_device
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	testq	%rax, %rax
	je	LBB0_3
LBB0_4:
	movl	(%r13), %edi
	movq	_e752x_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rcx
	movl	(%rax,%rcx,8), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_pci_get_device
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	(%r12), %rdi
	callq	_pci_dev_put
	jmp	LBB0_6
LBB0_1:
	movl	(%r15), %ebx
	xorl	%edi, %edi
	movl	$1, %esi
	callq	_PCI_DEVFN
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_pci_scan_single_device
	movq	%rax, (%r12)
	movq	%rax, %rdi
	callq	_pci_dev_get
	movq	(%r12), %rax
	testq	%rax, %rax
	jne	LBB0_4
LBB0_3:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %edx
	movq	_e752x_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rcx
	movl	4(%rax,%rcx,8), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_e752x_printk
LBB0_6:
	movl	$1, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_VENDOR_ID_INTEL,4,2        ## @PCI_VENDOR_ID_INTEL
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error reporting device not found:vendor %x device 0x%x (broken BIOS?)\n"

	.comm	_e752x_devs,8,3                 ## @e752x_devs
	.no_dead_strip	_e752x_get_devs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e752x_get_devs
_e752x_get_devs:                        ; @e752x_get_devs
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _PCI_VENDOR_ID_INTEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PCI_VENDOR_ID_INTEL@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	x8, [x2, #16]
	ldr	w1, [x8]
	mov	x2, #0
	bl	_pci_get_device
	str	x0, [x19]
	cbz	x0, LBB0_4
; %bb.1:
	cbz	x0, LBB0_5
LBB0_2:
	ldr	w0, [x22]
Lloh2:
	adrp	x8, _e752x_devs@GOTPAGE
Lloh3:
	ldr	x8, [x8, _e752x_devs@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	sbfiz	x9, x20, #3, #32
	ldr	w1, [x8, x9]
	mov	x2, #0
	bl	_pci_get_device
	str	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.3:
	mov	w0, #0
	b	LBB0_8
LBB0_4:
	ldr	w21, [x21]
	mov	w1, #1
	bl	_PCI_DEVFN
	mov	x1, x0
	mov	x0, x21
	bl	_pci_scan_single_device
	str	x0, [x19]
	bl	_pci_dev_get
	ldr	x0, [x19]
	cbnz	x0, LBB0_2
LBB0_5:
Lloh5:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w2, [x22]
Lloh8:
	adrp	x8, _e752x_devs@GOTPAGE
Lloh9:
	ldr	x8, [x8, _e752x_devs@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x8, x8, w20, sxtw #3
	ldr	w3, [x8, #4]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_e752x_printk
	b	LBB0_7
LBB0_6:
	ldr	x0, [x19]
	bl	_pci_dev_put
LBB0_7:
	mov	w0, #1
LBB0_8:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_VENDOR_ID_INTEL,4,2        ; @PCI_VENDOR_ID_INTEL
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error reporting device not found:vendor %x device 0x%x (broken BIOS?)\n"

	.comm	_e752x_devs,8,3                 ; @e752x_devs
	.no_dead_strip	_e752x_get_devs
.subsections_via_symbols
