	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msm_atomic_async_commit
_msm_atomic_async_commit:               ## @msm_atomic_async_commit
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_BIT
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_trace_msm_atomic_async_commit_start
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	(%rbx), %eax
	testl	%r14d, %eax
	je	LBB0_1
## %bb.2:
	movl	%r14d, %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rbx)
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	callq	*32(%rax)
	movl	%r14d, %edi
	callq	_trace_msm_atomic_flush_commit
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*24(%rax)
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%r14d, %edi
	callq	_trace_msm_atomic_wait_flush_start
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*16(%rax)
	movl	%r14d, %edi
	callq	_trace_msm_atomic_wait_flush_finish
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*8(%rax)
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	jmp	LBB0_3
LBB0_1:
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_3:
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_trace_msm_atomic_async_commit_finish ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_msm_atomic_async_commit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msm_atomic_async_commit
_msm_atomic_async_commit:               ; @msm_atomic_async_commit
	.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	x20, x0
	mov	x0, x1
	bl	_BIT
	mov	x19, x0
	bl	_trace_msm_atomic_async_commit_start
	add	x21, x20, #16
	mov	x0, x21
	bl	_mutex_lock
	ldr	w8, [x20]
	tst	w8, w19
	b.eq	LBB0_2
; %bb.1:
	bic	w8, w8, w19
	str	w8, [x20]
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #32]
	mov	x0, x20
	blr	x8
	mov	x0, x19
	bl	_trace_msm_atomic_flush_commit
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #24]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
	bl	_trace_msm_atomic_wait_flush_start
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #16]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	mov	x0, x19
	bl	_trace_msm_atomic_wait_flush_finish
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	mov	x0, x21
	bl	_mutex_unlock
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	b	LBB0_3
LBB0_2:
	mov	x0, x21
	bl	_mutex_unlock
LBB0_3:
	mov	x0, x19
	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	_trace_msm_atomic_async_commit_finish
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_msm_atomic_async_commit
.subsections_via_symbols
