	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function haswell_mci_bind_devs
_haswell_mci_bind_devs:                 ## @haswell_mci_bind_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rdi), %r12
	cmpq	$0, (%r12)
	jne	LBB0_2
## %bb.1:
	movq	_PCI_VENDOR_ID_INTEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PCI_DEVICE_ID_INTEL_HASWELL_IMC_VTD_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_pci_get_device
	movq	%rax, (%r12)
LBB0_2:
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_3
## %bb.4:
	xorl	%r14d, %r14d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_TAD_DEV_TO_CHAN
	movq	56(%r12), %rcx
	cltq
	movq	%rbx, (%rcx,%rax,8)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	btsl	%eax, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%r15), %r12d
	movl	4(%rbx), %edi
	callq	_PCI_SLOT
	movl	%eax, %r13d
	movl	4(%rbx), %edi
	callq	_PCI_FUNC
	xorl	%edi, %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	movq	%rbx, %r9
	callq	_edac_dbg
	movl	(%r15), %eax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_18
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	movq	(%rcx,%r14,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rbx), %edi
	leal	-128(%rdi), %eax
	cmpl	$19, %eax
	ja	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 48(%r12)
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, 48(%r12)
	jmp	LBB0_16
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, 16(%r12)
	jmp	LBB0_16
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, 8(%r12)
	jmp	LBB0_16
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, 32(%r12)
	jmp	LBB0_16
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, 24(%r12)
	jmp	LBB0_16
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, 40(%r12)
	jmp	LBB0_16
LBB0_3:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_18:
	cmpq	$0, 40(%r12)
	je	LBB0_26
## %bb.19:
	cmpq	$0, 32(%r12)
	je	LBB0_26
## %bb.20:
	cmpq	$0, 24(%r12)
	je	LBB0_26
## %bb.21:
	cmpq	$0, 16(%r12)
	je	LBB0_26
## %bb.22:
	cmpq	$0, 8(%r12)
	je	LBB0_26
## %bb.23:
	cmpq	$0, (%r12)
	je	LBB0_26
## %bb.24:
	xorl	%eax, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	$3, %ecx
	je	LBB0_27
## %bb.25:
	cmpl	$15, %ecx
	je	LBB0_27
LBB0_26:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_sbridge_printk
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_27:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_9
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_PCI_VENDOR_ID_INTEL,4,2        ## @PCI_VENDOR_ID_INTEL
	.comm	_PCI_DEVICE_ID_INTEL_HASWELL_IMC_VTD_MISC,4,2 ## @PCI_DEVICE_ID_INTEL_HASWELL_IMC_VTD_MISC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Associated PCI %02x.%02d.%d with dev = %p\n"

	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
L_.str.1:                               ## @.str.1
	.asciz	"Some needed devices are missing\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function haswell_mci_bind_devs
_haswell_mci_bind_devs:                 ; @haswell_mci_bind_devs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	ldr	x24, [x0]
	ldr	x8, [x24]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _PCI_VENDOR_ID_INTEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_VENDOR_ID_INTEL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _PCI_DEVICE_ID_INTEL_HASWELL_IMC_VTD_MISC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_DEVICE_ID_INTEL_HASWELL_IMC_VTD_MISC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_pci_get_device
	str	x0, [x24]
LBB0_2:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.3:
	mov	x26, #0
	mov	w25, #0
Lloh6:
	adrp	x20, l_.str@PAGE
Lloh7:
	add	x20, x20, l_.str@PAGEOFF
	mov	w27, #1
Lloh8:
	adrp	x28, lJTI0_0@PAGE
Lloh9:
	add	x28, x28, lJTI0_0@PAGEOFF
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	bl	_TAD_DEV_TO_CHAN
	ldr	x8, [x24, #56]
	str	x21, [x8, w0, sxtw #3]
	lsl	w8, w27, w0
	orr	w25, w8, w25
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w22, [x19, #4]
	ldr	w0, [x21, #4]
	bl	_PCI_SLOT
	mov	x23, x0
	ldr	w0, [x21, #4]
	bl	_PCI_FUNC
	mov	x4, x0
	mov	w0, #0
	mov	x1, x20
	mov	x2, x22
	mov	x3, x23
	mov	x5, x21
	bl	_edac_dbg
	ldr	w8, [x19]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x26, x26, #1
	cmp	x26, w8, sxtw
	b.ge	LBB0_18
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x21, [x9, x26, lsl #3]
	cbz	x21, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x21]
	sub	w8, w0, #128
	cmp	w8, #19
	b.hi	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	adr	x9, LBB0_4
	ldrb	w10, [x28, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x24, #48]
	cbnz	x8, LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	str	x21, [x24, #48]
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	str	x21, [x24, #16]
	b	LBB0_5
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	str	x21, [x24, #8]
	b	LBB0_5
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	str	x21, [x24, #32]
	b	LBB0_5
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	str	x21, [x24, #24]
	b	LBB0_5
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	str	x21, [x24, #40]
	b	LBB0_5
LBB0_17:
	mov	w25, #0
LBB0_18:
	ldr	x8, [x24, #40]
	cbz	x8, LBB0_26
; %bb.19:
	ldr	x8, [x24, #32]
	cbz	x8, LBB0_26
; %bb.20:
	ldr	x8, [x24, #24]
	cbz	x8, LBB0_26
; %bb.21:
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_26
; %bb.22:
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_26
; %bb.23:
	ldr	x8, [x24]
	cbz	x8, LBB0_26
; %bb.24:
	mov	w0, #0
	cmp	w25, #3
	b.eq	LBB0_27
; %bb.25:
	cmp	w25, #15
	b.eq	LBB0_27
LBB0_26:
Lloh10:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_sbridge_printk
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_27:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_12-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_14-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_14-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_15-LBB0_4)>>2
	.byte	(LBB0_16-LBB0_4)>>2
                                        ; -- End function
	.comm	_PCI_VENDOR_ID_INTEL,4,2        ; @PCI_VENDOR_ID_INTEL
	.comm	_PCI_DEVICE_ID_INTEL_HASWELL_IMC_VTD_MISC,4,2 ; @PCI_DEVICE_ID_INTEL_HASWELL_IMC_VTD_MISC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Associated PCI %02x.%02d.%d with dev = %p\n"

	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
l_.str.1:                               ; @.str.1
	.asciz	"Some needed devices are missing\n"

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