	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_next_online_cpu
_find_next_online_cpu:                  ## @find_next_online_cpu
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_in_interrupt
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON_ONCE
	movq	_ehca_debug_level@GOTPCREL(%rip), %rax
	cmpl	$3, (%rax)
	jl	LBB0_2
## %bb.1:
	movq	_cpu_online_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_cpumask_size
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ehca_dmp
LBB0_2:
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	(%r14), %edi
	movq	_cpu_online_mask@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_cpumask_next
	movl	%eax, %ebx
	movq	_nr_cpu_ids@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_4
## %bb.3:
	movl	(%r12), %edi
	callq	_cpumask_first
	movl	%eax, %ebx
LBB0_4:
	movl	%ebx, (%r14)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ehca_debug_level,4,2           ## @ehca_debug_level
	.comm	_cpu_online_mask,4,2            ## @cpu_online_mask
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_nr_cpu_ids,4,2                 ## @nr_cpu_ids
	.no_dead_strip	_find_next_online_cpu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_next_online_cpu
_find_next_online_cpu:                  ; @find_next_online_cpu
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	bl	_in_interrupt
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
Lloh0:
	adrp	x8, _ehca_debug_level@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ehca_debug_level@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x22, _cpu_online_mask@GOTPAGE
Lloh4:
	ldr	x22, [x22, _cpu_online_mask@GOTPAGEOFF]
	cmp	w8, #3
	b.lt	LBB0_2
; %bb.1:
	ldr	w20, [x22]
	bl	_cpumask_size
	mov	x1, x0
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ehca_dmp
LBB0_2:
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w0, [x19]
	ldr	w1, [x22]
	bl	_cpumask_next
	mov	x21, x0
Lloh7:
	adrp	x8, _nr_cpu_ids@GOTPAGE
Lloh8:
	ldr	x8, [x8, _nr_cpu_ids@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w0, w8
	b.lt	LBB0_4
; %bb.3:
	ldr	w0, [x22]
	bl	_cpumask_first
	mov	x21, x0
LBB0_4:
	str	w21, [x19]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ehca_debug_level,4,2           ; @ehca_debug_level
	.comm	_cpu_online_mask,4,2            ; @cpu_online_mask
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_nr_cpu_ids,4,2                 ; @nr_cpu_ids
	.no_dead_strip	_find_next_online_cpu
.subsections_via_symbols
