	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mca_find_unused_adapter        ## -- Begin function mca_find_unused_adapter
	.p2align	4, 0x90
_mca_find_unused_adapter:               ## @mca_find_unused_adapter
	.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
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	movq	_MCA_NOTFOUND@GOTPCREL(%rip), %r15
	cmpl	$65535, %edi                    ## imm = 0xFFFF
	je	LBB0_8
## %bb.1:
	movq	_MCA_bus@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.2:
	movl	%esi, -64(%rbp)
	movl	%edi, -60(%rbp)
	movq	_mca_find_adapter_callback@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	_mca_bus_type@GOTPCREL(%rip), %rdi
	leaq	-64(%rbp), %rdx
	xorl	%esi, %esi
	callq	_bus_for_each_dev
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	_MCA_ADAPTER_DISABLED@GOTPCREL(%rip), %r13
	movq	_mca_bus_type@GOTPCREL(%rip), %r14
	leaq	-64(%rbp), %rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%rax), %eax
	incl	%eax
	movl	%eax, -64(%rbp)
	movq	$0, -56(%rbp)
	movl	(%r12), %ecx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_bus_for_each_dev
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rcx
	cmpq	(%r13), %rcx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, 12(%rax)
	jne	LBB0_6
## %bb.7:
	addq	$8, %rax
	movq	%rax, %r15
LBB0_8:
	movl	(%r15), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MCA_bus,4,2                    ## @MCA_bus
	.comm	_MCA_NOTFOUND,4,2               ## @MCA_NOTFOUND
	.comm	_mca_bus_type,4,2               ## @mca_bus_type
	.comm	_mca_find_adapter_callback,4,2  ## @mca_find_adapter_callback
	.comm	_MCA_ADAPTER_DISABLED,8,3       ## @MCA_ADAPTER_DISABLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mca_find_unused_adapter        ; -- Begin function mca_find_unused_adapter
	.p2align	2
_mca_find_unused_adapter:               ; @mca_find_unused_adapter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
Lloh0:
	adrp	x20, _MCA_NOTFOUND@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MCA_NOTFOUND@GOTPAGEOFF]
	mov	w8, #65535
	cmp	w0, w8
	b.eq	LBB0_9
; %bb.1:
Lloh2:
	adrp	x8, _MCA_bus@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MCA_bus@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cbz	w8, LBB0_9
; %bb.2:
	stp	w1, w0, [sp, #8]
Lloh5:
	adrp	x21, _mca_find_adapter_callback@GOTPAGE
Lloh6:
	ldr	x21, [x21, _mca_find_adapter_callback@GOTPAGEOFF]
	ldr	w3, [x21]
Lloh7:
	adrp	x0, _mca_bus_type@GOTPAGE
Lloh8:
	ldr	x0, [x0, _mca_bus_type@GOTPAGEOFF]
	add	x2, sp, #8
	mov	x1, #0
	bl	_bus_for_each_dev
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_8
; %bb.3:
Lloh9:
	adrp	x22, _MCA_ADAPTER_DISABLED@GOTPAGE
Lloh10:
	ldr	x22, [x22, _MCA_ADAPTER_DISABLED@GOTPAGEOFF]
Lloh11:
	adrp	x19, _mca_bus_type@GOTPAGE
Lloh12:
	ldr	x19, [x19, _mca_bus_type@GOTPAGEOFF]
Lloh13:
	adrp	x20, _MCA_NOTFOUND@GOTPAGE
Lloh14:
	ldr	x20, [x20, _MCA_NOTFOUND@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x8, #8]
	add	w8, w8, #1
	str	w8, [sp, #8]
	str	xzr, [sp, #16]
	ldr	w3, [x21]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, #0
	bl	_bus_for_each_dev
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8]
	ldr	x10, [x22]
	cmp	x9, x10
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x8, #12]
	cbnz	w9, LBB0_4
; %bb.7:
	add	x20, x8, #8
	b	LBB0_9
LBB0_8:
Lloh15:
	adrp	x20, _MCA_NOTFOUND@GOTPAGE
Lloh16:
	ldr	x20, [x20, _MCA_NOTFOUND@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MCA_bus,4,2                    ; @MCA_bus
	.comm	_MCA_NOTFOUND,4,2               ; @MCA_NOTFOUND
	.comm	_mca_bus_type,4,2               ; @mca_bus_type
	.comm	_mca_find_adapter_callback,4,2  ; @mca_find_adapter_callback
	.comm	_MCA_ADAPTER_DISABLED,8,3       ; @MCA_ADAPTER_DISABLED
.subsections_via_symbols
