	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_all_munits
_get_all_munits:                        ## @get_all_munits
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_PCI_VENDOR_ID_INTEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	20(%r14), %esi
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	callq	_pci_get_device
	testq	%rax, %rax
	je	LBB0_26
## %bb.1:
	movq	%rax, %r13
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movl	(%r14), %eax
	movq	_SKX_NUM_IMC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	jle	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rcx
	movq	(%r13), %rdx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rdx, (%rcx,%r15,8)
	je	LBB0_5
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	incq	%r15
	cmpq	%r15, %rax
	jne	LBB0_10
	jmp	LBB0_12
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%eax, %r15d
	je	LBB0_12
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r13), %edi
	movl	24(%r14), %esi
	callq	_get_skx_dev
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_pci_enable_device
	shrq	$63, %rax
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_8
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	incl	%r12d
	movl	16(%r14), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_24
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_pci_dev_get
	movq	24(%rbx), %rax
	movslq	%r15d, %rcx
	movq	(%rax,%rcx,8), %rax
	movslq	16(%r14), %rcx
	movq	%r13, (%rax,%rcx,8)
	jmp	LBB0_24
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_pci_dev_get
	movq	%r13, 8(%rbx)
	jmp	LBB0_24
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_pci_dev_get
	movq	%r13, 16(%rbx)
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
                                        ## kill: def $r12d killed $r12d def $r12
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_PCI_VENDOR_ID_INTEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	20(%r14), %esi
	movq	%r13, %rdx
	callq	_pci_get_device
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_2
	jmp	LBB0_26
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movl	$180, %esi
	leaq	-52(%rbp), %rdx
	callq	_pci_read_config_dword
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%eax, %ecx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_25
	jmp	LBB0_22
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_25
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, (%rbx)
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_25
LBB0_8:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PCI_VENDOR_ID_INTEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	20(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_skx_printk
LBB0_12:
	movq	%r13, %rdi
	callq	_pci_dev_put
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_26:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_skx_printk
	jmp	LBB0_12
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_15
	.long	L0_0_set_17
	.long	L0_0_set_23
	.long	L0_0_set_23
	.long	L0_0_set_23
	.end_data_region
                                        ## -- End function
	.comm	_PCI_VENDOR_ID_INTEL,4,2        ## @PCI_VENDOR_ID_INTEL
	.comm	_SKX_NUM_IMC,4,2                ## @SKX_NUM_IMC
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't enable device %04x:%04x\n"

L_.str.1:                               ## @.str.1
	.asciz	"mcroute mismatch\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_get_all_munits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_all_munits
_get_all_munits:                        ; @get_all_munits
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
Lloh0:
	adrp	x23, _PCI_VENDOR_ID_INTEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PCI_VENDOR_ID_INTEL@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	w1, [x20, #20]
	mov	x2, #0
	bl	_pci_get_device
	cbz	x0, LBB0_22
; %bb.1:
	mov	x19, x0
	mov	w21, #0
	mov	w26, #0
Lloh2:
	adrp	x24, _SKX_NUM_IMC@GOTPAGE
Lloh3:
	ldr	x24, [x24, _SKX_NUM_IMC@GOTPAGEOFF]
Lloh4:
	adrp	x25, lJTI0_0@PAGE
Lloh5:
	add	x25, x25, lJTI0_0@PAGEOFF
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w8, [x20]
	ldr	w9, [x24]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x26, #0
	ldr	x9, [x20, #8]
	ldr	x10, [x19]
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x9, x26, lsl #3]
	cmp	x11, x10
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x26, x26, #1
	cmp	x8, x26
	b.ne	LBB0_5
	b	LBB0_25
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w26, #0
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w26, w8
	b.eq	LBB0_25
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x19, #8]
	ldr	w1, [x20, #24]
	bl	_get_skx_dev
	cbz	x0, LBB0_25
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x0
	mov	x0, x19
	bl	_pci_enable_device
	lsr	x0, x0, #63
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_unlikely
	cbnz	x0, LBB0_23
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	add	w27, w21, #1
	ldr	w8, [x20, #16]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	adr	x9, LBB0_13
	ldrb	w10, [x25, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_pci_dev_get
	ldr	x8, [x22, #24]
	ldr	x8, [x8, w26, sxtw #3]
	ldrsw	x9, [x20, #16]
	str	x19, [x8, x9, lsl #3]
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_pci_dev_get
	str	x19, [x22, #8]
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_pci_dev_get
	str	x19, [x22, #16]
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, x27
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x23]
	ldr	w1, [x20, #20]
	mov	x2, x19
	bl	_pci_get_device
	mov	x19, x0
	cbnz	x0, LBB0_2
	b	LBB0_26
LBB0_18:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x2, sp, #28
	mov	x0, x19
	mov	w1, #180
	bl	_pci_read_config_dword
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x22]
	cbz	w9, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w9, w8
	b.eq	LBB0_17
	b	LBB0_27
LBB0_21:                                ;   in Loop: Header=BB0_2 Depth=1
	str	w8, [x22]
	b	LBB0_17
LBB0_22:
	mov	w21, #0
	b	LBB0_26
LBB0_23:
Lloh6:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w8, [x23]
	ldr	w9, [x20, #20]
	stp	x8, x9, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
LBB0_24:
	bl	_skx_printk
LBB0_25:
	mov	x0, x19
	bl	_pci_dev_put
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_26:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_27:
Lloh14:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_24
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_14-LBB0_13)>>2
	.byte	(LBB0_15-LBB0_13)>>2
	.byte	(LBB0_18-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
                                        ; -- End function
	.comm	_PCI_VENDOR_ID_INTEL,4,2        ; @PCI_VENDOR_ID_INTEL
	.comm	_SKX_NUM_IMC,4,2                ; @SKX_NUM_IMC
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't enable device %04x:%04x\n"

l_.str.1:                               ; @.str.1
	.asciz	"mcroute mismatch\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_get_all_munits
.subsections_via_symbols
