	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_mca_info
_get_mca_info:                          ## @get_mca_info
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdi, %rbx
	movq	_MCA_bus@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_MCA_MAX_SLOT_NR@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_3
## %bb.4:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	callq	_mca_find_device_by_slot
	movq	%rax, %r15
	leaq	(%rbx,%r12), %rdi
	incl	%r13d
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_sprintf
	addl	%eax, %r12d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_get_mca_info_helper
	movslq	%eax, %r12
	cmpl	(%r14), %r13d
	jl	LBB0_5
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_3:
	xorl	%r12d, %r12d
LBB0_6:
	movq	_MCA_INTEGVIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mca_find_device_by_slot
	movq	%rax, %r14
	leaq	(%rbx,%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_sprintf
	addl	%eax, %r12d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_get_mca_info_helper
	movl	%eax, %r14d
	movq	_MCA_INTEGSCSI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mca_find_device_by_slot
	movq	%rax, %r15
	movslq	%r14d, %r14
	leaq	(%rbx,%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_sprintf
	addl	%eax, %r14d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_get_mca_info_helper
	movl	%eax, %r14d
	movq	_MCA_MOTHERBOARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mca_find_device_by_slot
	movq	%rax, %r15
	movslq	%r14d, %r14
	leaq	(%rbx,%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_sprintf
	addl	%eax, %r14d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_get_mca_info_helper
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_7:
	leal	(%rcx,%rdx), %edi
	cmpl	%edi, %eax
	jg	LBB0_9
## %bb.8:
	movl	$1, (%r8)
LBB0_9:
	movslq	%edx, %rdx
	addq	%rdx, %rbx
	movq	%rbx, (%rsi)
	subl	%edx, %eax
	cmpl	%ecx, %eax
	cmovgel	%ecx, %eax
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovgl	%eax, %ecx
	movl	%ecx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MCA_bus,8,3                    ## @MCA_bus
	.comm	_MCA_MAX_SLOT_NR,4,2            ## @MCA_MAX_SLOT_NR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Slot %d: "

	.comm	_MCA_INTEGVIDEO,4,2             ## @MCA_INTEGVIDEO
L_.str.1:                               ## @.str.1
	.asciz	"Video : "

	.comm	_MCA_INTEGSCSI,4,2              ## @MCA_INTEGSCSI
L_.str.2:                               ## @.str.2
	.asciz	"SCSI  : "

	.comm	_MCA_MOTHERBOARD,4,2            ## @MCA_MOTHERBOARD
L_.str.3:                               ## @.str.3
	.asciz	"Planar: "

	.no_dead_strip	_get_mca_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_mca_info
_get_mca_info:                          ; @get_mca_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x4
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _MCA_bus@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCA_bus@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
Lloh3:
	adrp	x28, _MCA_MAX_SLOT_NR@GOTPAGE
Lloh4:
	ldr	x28, [x28, _MCA_MAX_SLOT_NR@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x27, #0
	mov	w24, #0
Lloh5:
	adrp	x25, l_.str@PAGE
Lloh6:
	add	x25, x25, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_mca_find_device_by_slot
	mov	x26, x0
	add	x0, x23, x27
	add	w24, w24, #1
	str	x24, [sp]
	mov	x1, x25
	bl	_sprintf
	add	w2, w0, w27
	mov	x0, x26
	mov	x1, x23
	bl	_get_mca_info_helper
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x27, w0
	ldr	w8, [x28]
	cmp	w24, w8
	b.lt	LBB0_3
	b	LBB0_6
LBB0_4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
	mov	x27, #0
LBB0_6:
Lloh7:
	adrp	x8, _MCA_INTEGVIDEO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MCA_INTEGVIDEO@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_mca_find_device_by_slot
	mov	x24, x0
	add	x0, x23, x27
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_sprintf
	add	w2, w0, w27
	mov	x0, x24
	mov	x1, x23
	bl	_get_mca_info_helper
	mov	x24, x0
Lloh12:
	adrp	x8, _MCA_INTEGSCSI@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MCA_INTEGSCSI@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_mca_find_device_by_slot
	mov	x25, x0
	add	x0, x23, w24, sxtw
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_sprintf
	add	w2, w24, w0
	mov	x0, x25
	mov	x1, x23
	bl	_get_mca_info_helper
	mov	x24, x0
Lloh17:
	adrp	x8, _MCA_MOTHERBOARD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MCA_MOTHERBOARD@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_mca_find_device_by_slot
	mov	x25, x0
	add	x0, x23, w24, sxtw
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_sprintf
	add	w2, w24, w0
	mov	x0, x25
	mov	x1, x23
	bl	_get_mca_info_helper
LBB0_7:
	add	w8, w19, w20
	cmp	w0, w8
	b.gt	LBB0_9
; %bb.8:
	mov	w8, #1
	str	w8, [x22]
LBB0_9:
	add	x8, x23, w20, sxtw
	str	x8, [x21]
	sub	w8, w0, w20
	cmp	w8, w19
	csel	w8, w8, w19, lt
	cmp	w8, #0
	csel	w0, w8, wzr, gt
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MCA_bus,8,3                    ; @MCA_bus
	.comm	_MCA_MAX_SLOT_NR,4,2            ; @MCA_MAX_SLOT_NR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Slot %d: "

	.comm	_MCA_INTEGVIDEO,4,2             ; @MCA_INTEGVIDEO
l_.str.1:                               ; @.str.1
	.asciz	"Video : "

	.comm	_MCA_INTEGSCSI,4,2              ; @MCA_INTEGSCSI
l_.str.2:                               ; @.str.2
	.asciz	"SCSI  : "

	.comm	_MCA_MOTHERBOARD,4,2            ; @MCA_MOTHERBOARD
l_.str.3:                               ; @.str.3
	.asciz	"Planar: "

	.no_dead_strip	_get_mca_info
.subsections_via_symbols
