	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_vm_ioctl_unregister_coalesced_mmio ## -- Begin function kvm_vm_ioctl_unregister_coalesced_mmio
	.p2align	4, 0x90
_kvm_vm_ioctl_unregister_coalesced_mmio: ## @kvm_vm_ioctl_unregister_coalesced_mmio
	.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	8(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_mutex_lock
	movslq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %rcx
	shlq	$4, %rcx
	addq	$-16, %rcx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$-16, %rcx
	decl	%eax
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdx
	movq	(%r15), %rsi
	movq	(%rdx,%rcx), %rdi
	cmpq	%rdi, %rsi
	jg	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	8(%rdx,%rcx), %rdi
	addq	8(%r15), %rsi
	cmpq	%rsi, %rdi
	jg	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	(%rbx), %rsi
	decq	%rsi
	movl	%esi, (%rbx)
	shlq	$4, %rsi
	movups	(%rdx,%rsi), %xmm0
	movups	%xmm0, (%rdx,%rcx)
	jmp	LBB0_7
LBB0_8:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_vm_ioctl_unregister_coalesced_mmio ; -- Begin function kvm_vm_ioctl_unregister_coalesced_mmio
	.p2align	2
_kvm_vm_ioctl_unregister_coalesced_mmio: ; @kvm_vm_ioctl_unregister_coalesced_mmio
	.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
	ldr	x21, [x0, #8]
	cbz	x21, LBB0_8
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	bl	_mutex_lock
	ldr	w8, [x21]
	cbz	w8, LBB0_7
; %bb.2:
	sxtw	x9, w8
	lsl	x9, x9, #4
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	x9, x9, #16
	sub	w8, w8, #1
	cbz	w8, LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x21, #8]
	ldr	x11, [x20]
	add	x12, x10, x9
	ldur	x13, [x12, #-16]
	cmp	x11, x13
	b.gt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	x12, [x12, #-8]
	add	x12, x12, x13
	ldr	x13, [x20, #8]
	add	x11, x13, x11
	cmp	x12, x11
	b.gt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x11, [x21]
	sub	x11, x11, #1
	str	w11, [x21]
	add	x12, x10, x9
	ldr	q0, [x10, x11, lsl #4]
	stur	q0, [x12, #-16]
	b	LBB0_3
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
