	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kfd_cpumask_to_apic_id
_kfd_cpumask_to_apic_id:                ## @kfd_cpumask_to_apic_id
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$-1, %eax
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	_cpu_none_mask@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	je	LBB0_3
## %bb.2:
	callq	_cpumask_first
	movl	%eax, %ecx
	movq	_nr_cpu_ids@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	movl	$-1, %eax
	cmovll	%ecx, %eax
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cpu_none_mask,8,3              ## @cpu_none_mask
	.comm	_nr_cpu_ids,4,2                 ## @nr_cpu_ids
	.no_dead_strip	_kfd_cpumask_to_apic_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kfd_cpumask_to_apic_id
_kfd_cpumask_to_apic_id:                ; @kfd_cpumask_to_apic_id
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x0
	mov	w0, #-1
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, _cpu_none_mask@GOTPAGE
Lloh1:
	ldr	x9, [x9, _cpu_none_mask@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x9, x8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x8
	bl	_cpumask_first
Lloh3:
	adrp	x8, _nr_cpu_ids@GOTPAGE
Lloh4:
	ldr	x8, [x8, _nr_cpu_ids@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	csinv	w0, w0, wzr, lt
LBB0_3:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_cpu_none_mask,8,3              ; @cpu_none_mask
	.comm	_nr_cpu_ids,4,2                 ; @nr_cpu_ids
	.no_dead_strip	_kfd_cpumask_to_apic_id
.subsections_via_symbols
