	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_submitqueue_init           ## -- Begin function msm_submitqueue_init
	.p2align	4, 0x90
_msm_submitqueue_init:                  ## @msm_submitqueue_init
	.cfi_startproc
## %bb.0:
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_uint32_t@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	(%rax), %rcx
	decq	%rcx
	movl	$2, %esi
	xorl	%edx, %edx
	callq	_clamp_t
	movl	%eax, %r15d
	jmp	LBB0_4
LBB0_5:
	xorl	%eax, %eax
	retq
LBB0_2:
	xorl	%r15d, %r15d
LBB0_4:
	leaq	4(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, %rdi
	callq	_rwlock_init
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msm_submitqueue_create         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_uint32_t,4,2                   ## @uint32_t
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_submitqueue_init           ; -- Begin function msm_submitqueue_init
	.p2align	2
_msm_submitqueue_init:                  ; @msm_submitqueue_init
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_3
; %bb.1:
	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
	.cfi_remember_state
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x9, _uint32_t@GOTPAGE
Lloh1:
	ldr	x9, [x9, _uint32_t@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
	ldr	x8, [x8]
	sub	x3, x8, #1
	mov	w1, #2
	mov	w2, #0
	bl	_clamp_t
	mov	x21, x0
	b	LBB0_5
LBB0_3:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	mov	w0, #0
	ret
LBB0_4:
	.cfi_restore_state
	mov	w21, #0
LBB0_5:
	add	x0, x19, #4
	bl	_INIT_LIST_HEAD
	mov	x0, x19
	bl	_rwlock_init
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	w3, #0
	mov	x4, #0
	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
	b	_msm_submitqueue_create
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_uint32_t,4,2                   ; @uint32_t
.subsections_via_symbols
