	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mca_find_adapter               ## -- Begin function mca_find_adapter
	.p2align	4, 0x90
_mca_find_adapter:                      ## @mca_find_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
	movq	_MCA_NOTFOUND@GOTPCREL(%rip), %r15
	cmpl	$65535, %edi                    ## imm = 0xFFFF
	je	LBB0_6
## %bb.1:
	movl	%esi, -56(%rbp)
	movl	%edi, -52(%rbp)
	movq	$0, -48(%rbp)
	movq	_mca_find_adapter_callback@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	_mca_bus_type@GOTPCREL(%rip), %rdi
	leaq	-56(%rbp), %rdx
	xorl	%esi, %esi
	callq	_bus_for_each_dev
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	_MCA_ADAPTER_DISABLED@GOTPCREL(%rip), %r13
	movq	_mca_bus_type@GOTPCREL(%rip), %r14
	leaq	-56(%rbp), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rcx
	addq	$8, %rax
	cmpq	(%r13), %rcx
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rax), %eax
	incl	%eax
	movl	%eax, -56(%rbp)
	movq	$0, -48(%rbp)
	movl	(%r12), %ecx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_bus_for_each_dev
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_6
LBB0_4:
	movq	%rax, %r15
LBB0_6:
	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_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_adapter               ; -- Begin function mca_find_adapter
	.p2align	2
_mca_find_adapter:                      ; @mca_find_adapter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	w8, #65535
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.1:
	stp	w1, w0, [sp]
	str	xzr, [sp, #8]
Lloh0:
	adrp	x20, _mca_find_adapter_callback@GOTPAGE
Lloh1:
	ldr	x20, [x20, _mca_find_adapter_callback@GOTPAGEOFF]
	ldr	w3, [x20]
Lloh2:
	adrp	x0, _mca_bus_type@GOTPAGE
Lloh3:
	ldr	x0, [x0, _mca_bus_type@GOTPAGEOFF]
	mov	x2, sp
	mov	x1, #0
	bl	_bus_for_each_dev
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_6
; %bb.2:
Lloh4:
	adrp	x21, _MCA_ADAPTER_DISABLED@GOTPAGE
Lloh5:
	ldr	x21, [x21, _MCA_ADAPTER_DISABLED@GOTPAGEOFF]
Lloh6:
	adrp	x19, _mca_bus_type@GOTPAGE
Lloh7:
	ldr	x19, [x19, _mca_bus_type@GOTPAGEOFF]
Lloh8:
	adrp	x22, _MCA_NOTFOUND@GOTPAGE
Lloh9:
	ldr	x22, [x22, _MCA_NOTFOUND@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8], #8
	ldr	x10, [x21]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x8]
	add	w8, w8, #1
	str	w8, [sp]
	str	xzr, [sp, #8]
	ldr	w3, [x20]
	mov	x2, sp
	mov	x0, x19
	mov	x1, #0
	bl	_bus_for_each_dev
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_3
; %bb.5:
	mov	x8, x22
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _MCA_NOTFOUND@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MCA_NOTFOUND@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.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
