	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ucma_init_all
_ucma_init_all:                         ## @ucma_init_all
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_cma_dev_cnt@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	je	LBB0_7
LBB0_1:
	movq	_cma_init_cnt@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpl	%eax, (%rcx)
	je	LBB0_12
## %bb.2:
	movq	_mut@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_lock
	cmpl	$0, (%r14)
	jle	LBB0_9
## %bb.3:
	xorl	%r13d, %r13d
	movq	_cma_dev_array@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	%r13, %rdi
	callq	_ucma_init_device
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_9:
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_7:
	xorl	%eax, %eax
	callq	_ucma_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:
	movl	(%r14), %eax
	jmp	LBB0_1
LBB0_10:
	movl	%eax, %r15d
LBB0_11:
	movq	_mut@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_unlock
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cma_dev_cnt,4,2                ## @cma_dev_cnt
	.comm	_cma_init_cnt,4,2               ## @cma_init_cnt
	.comm	_mut,4,2                        ## @mut
	.comm	_cma_dev_array,8,3              ## @cma_dev_array
	.no_dead_strip	_ucma_init_all
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ucma_init_all
_ucma_init_all:                         ; @ucma_init_all
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x20, _cma_dev_cnt@GOTPAGE
Lloh1:
	ldr	x20, [x20, _cma_dev_cnt@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_8
LBB0_1:
Lloh2:
	adrp	x9, _cma_init_cnt@GOTPAGE
Lloh3:
	ldr	x9, [x9, _cma_init_cnt@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w9, w8
	b.ne	LBB0_3
; %bb.2:
	mov	w19, #0
	b	LBB0_12
LBB0_3:
Lloh5:
	adrp	x0, _mut@GOTPAGE
Lloh6:
	ldr	x0, [x0, _mut@GOTPAGEOFF]
	bl	_pthread_mutex_lock
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x21, #0
	mov	x22, #0
Lloh7:
	adrp	x23, _cma_dev_array@GOTPAGE
Lloh8:
	ldr	x23, [x23, _cma_dev_array@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x0, x8, x21
	bl	_ucma_init_device
	cbnz	w0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x21, x21, #4
	cmp	x22, x8
	b.lt	LBB0_5
LBB0_7:
	mov	w19, #0
	b	LBB0_11
LBB0_8:
	bl	_ucma_init
	mov	x19, x0
	cbnz	w0, LBB0_12
; %bb.9:
	ldr	w8, [x20]
	b	LBB0_1
LBB0_10:
	mov	x19, x0
LBB0_11:
Lloh9:
	adrp	x0, _mut@GOTPAGE
Lloh10:
	ldr	x0, [x0, _mut@GOTPAGEOFF]
	bl	_pthread_mutex_unlock
LBB0_12:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_cma_dev_cnt,4,2                ; @cma_dev_cnt
	.comm	_cma_init_cnt,4,2               ; @cma_init_cnt
	.comm	_mut,4,2                        ; @mut
	.comm	_cma_dev_array,8,3              ; @cma_dev_array
	.no_dead_strip	_ucma_init_all
.subsections_via_symbols
