	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mci_bind_devs
_mci_bind_devs:                         ## @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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %eax
	testl	%eax, %eax
	jle	LBB0_16
## %bb.1:
	movq	%rsi, %r15
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	48(%rcx), %rdx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	leaq	16(%rcx), %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%rcx), %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	leaq	24(%rcx), %rdx
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	leaq	56(%rcx), %rdx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	leaq	32(%rcx), %rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	addq	$40, %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_2
LBB0_28:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$6, %eax
	jne	LBB0_29
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, (%rcx)
	movl	4(%r15), %r12d
	movl	(%rbx), %edi
	callq	_PCI_SLOT
	movl	%eax, %r13d
	movl	(%rbx), %edi
	callq	_PCI_FUNC
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	movq	%rbx, %r8
	callq	_debugf0
	movl	(%r15), %eax
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_16
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	movq	(%rcx,%r14,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %edi
	callq	_PCI_SLOT
	movl	%eax, %r12d
	movl	(%rbx), %edi
	callq	_PCI_FUNC
                                        ## kill: def $eax killed $eax def $rax
	leal	-12(%r12), %ecx
	cmpl	$5, %ecx
	ja	LBB0_29
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$6, %eax
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$7, %eax
	je	LBB0_14
	jmp	LBB0_29
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_14
	jmp	LBB0_29
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	-2(%rax), %ecx
	cmpl	$4, %ecx
	jae	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	shlq	$3, %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rcx
	jmp	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_14
	jmp	LBB0_29
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$1, %eax
	je	LBB0_14
LBB0_29:
	movq	_KERN_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_sbridge_printk
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_30
LBB0_16:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, 40(%rcx)
	je	LBB0_27
## %bb.17:
	cmpq	$0, 32(%rcx)
	je	LBB0_27
## %bb.18:
	cmpq	$0, 24(%rcx)
	je	LBB0_27
## %bb.19:
	movq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_27
## %bb.20:
	cmpq	$0, 16(%rcx)
	je	LBB0_27
## %bb.21:
	cmpq	$0, 8(%rcx)
	je	LBB0_27
## %bb.22:
	movq	_NUM_CHANNELS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_23
## %bb.24:
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rax,%rdx,8)
	je	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_26 Depth=1
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_26
	jmp	LBB0_31
LBB0_27:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_sbridge_printk
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_30:
	subl	(%rax), %ebx
LBB0_31:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	xorl	%ebx, %ebx
	jmp	LBB0_31
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_28
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_29
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Associated PCI %02x.%02d.%d with dev = %p\n"

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

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"Device %d, function %d is out of the expected range\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_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 mci_bind_devs
_mci_bind_devs:                         ; @mci_bind_devs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	ldr	x24, [x0]
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.1:
	mov	x19, x1
	mov	x25, #0
	add	x10, x24, #48
	add	x11, x24, #16
	add	x9, x24, #8
	stp	x11, x9, [sp, #24]              ; 16-byte Folded Spill
	add	x9, x24, #24
	stp	x9, x10, [sp, #48]              ; 16-byte Folded Spill
	add	x28, x24, #56
	add	x9, x24, #32
	str	x9, [sp, #40]                   ; 8-byte Folded Spill
	add	x26, x24, #40
Lloh0:
	adrp	x27, lJTI0_0@PAGE
Lloh1:
	add	x27, x27, lJTI0_0@PAGEOFF
Lloh2:
	adrp	x20, l_.str@PAGE
Lloh3:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	cbnz	w0, LBB0_16
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	x21, [x8]
	ldr	w22, [x19, #4]
	ldr	w0, [x21]
	bl	_PCI_SLOT
	mov	x23, x0
	ldr	w0, [x21]
	bl	_PCI_FUNC
	mov	x3, x0
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	mov	x4, x21
	bl	_debugf0
	ldr	w8, [x19]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	cmp	x25, w8, sxtw
	b.ge	LBB0_17
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x21, [x9, x25, lsl #3]
	cbz	x21, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x21]
	bl	_PCI_SLOT
	mov	x22, x0
	ldr	w0, [x21]
	bl	_PCI_FUNC
                                        ; kill: def $w0 killed $w0 def $x0
	sub	w8, w22, #12
	cmp	w8, #5
	b.hi	LBB0_16
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	adr	x9, LBB0_2
	ldrb	w10, [x27, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, x26
	cmp	w0, #6
	b.eq	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	cmp	w0, #7
	b.eq	LBB0_3
	b	LBB0_16
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, x28
	cmp	w0, #6
	b.eq	LBB0_3
	b	LBB0_16
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	cbz	w0, LBB0_3
	b	LBB0_16
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w8, w0, #2
	cmp	w8, #4
	b.hs	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x24]
	add	x8, x9, w8, uxtw #3
	b	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	cbz	w0, LBB0_3
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	cmp	w0, #1
	b.eq	LBB0_3
LBB0_16:
Lloh4:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	stp	x22, x0, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x8
	bl	_sbridge_printk
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_28
LBB0_17:
	ldr	x8, [x24, #40]
	cbz	x8, LBB0_27
; %bb.18:
	ldr	x8, [x24, #32]
	cbz	x8, LBB0_27
; %bb.19:
	ldr	x8, [x24, #24]
	cbz	x8, LBB0_27
; %bb.20:
	ldr	x8, [x24]
	cbz	x8, LBB0_27
; %bb.21:
	ldr	x9, [x24, #16]
	cbz	x9, LBB0_27
; %bb.22:
	ldr	x9, [x24, #8]
	cbz	x9, LBB0_27
; %bb.23:
Lloh11:
	adrp	x9, _NUM_CHANNELS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NUM_CHANNELS@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_30
; %bb.24:
	mov	w0, #0
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8]
	cbz	x10, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	add	x8, x8, #8
	subs	x9, x9, #1
	b.ne	LBB0_25
	b	LBB0_29
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
	bl	_sbridge_printk
Lloh19:
	adrp	x8, _ENODEV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_28:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_29:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_30:
	mov	w0, #0
	b	LBB0_29
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Associated PCI %02x.%02d.%d with dev = %p\n"

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

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"Device %d, function %d is out of the expected range\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mci_bind_devs
.subsections_via_symbols
