	.file	"extr_vm_object.c_vm_object_memory_object_associate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	vm_object_memory_object_associate
	.type	vm_object_memory_object_associate, @function
vm_object_memory_object_associate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	cmp	QWORD PTR MEMORY_OBJECT_NULL[rip], rdi
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	setne	dil
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movzx	edi, dil
	call	assert@PLT
	cmp	QWORD PTR VM_OBJECT_NULL[rip], r12
	je	.L2
	mov	edi, DWORD PTR [r12]
	call	assert@PLT
	mov	edi, DWORD PTR 4[r12]
	call	assert@PLT
	xor	edi, edi
	cmp	QWORD PTR 8[r12], 0
	sete	dil
	call	assert@PLT
	xor	edi, edi
	cmp	QWORD PTR 16[r12], 0
	sete	dil
	call	assert@PLT
.L3:
	mov	rdi, r12
	call	memory_object_control_allocate@PLT
	xor	edi, edi
	cmp	QWORD PTR MEMORY_OBJECT_CONTROL_NULL[rip], rax
	setne	dil
	mov	rbx, rax
	call	assert@PLT
	mov	rdi, r12
	call	vm_object_lock@PLT
	xor	edi, edi
	cmp	QWORD PTR 16[r12], 0
	sete	dil
	call	assert@PLT
	xor	edi, edi
	cmp	QWORD PTR 8[r12], 0
	sete	dil
	call	assert@PLT
	xor	edi, edi
	cmp	QWORD PTR 40[r12], 0
	sete	dil
	call	assert@PLT
	xor	edi, edi
	cmp	QWORD PTR 32[r12], 0
	sete	dil
	call	assert@PLT
	mov	rdi, rbp
	call	memory_object_reference@PLT
	mov	rax, QWORD PTR TRUE[rip]
	mov	QWORD PTR 40[r12], rbp
	mov	rdi, r12
	mov	QWORD PTR 32[r12], rbx
	mov	DWORD PTR 4[r12], eax
	mov	rax, QWORD PTR FALSE[rip]
	mov	QWORD PTR 16[r12], rax
	call	vm_object_unlock@PLT
	mov	rsi, QWORD PTR 32[r12]
	mov	edx, DWORD PTR PAGE_SIZE[rip]
	mov	rdi, rbp
	call	memory_object_init@PLT
	mov	rdi, r12
	call	vm_object_lock@PLT
	mov	rax, QWORD PTR TRUE[rip]
	test	r13, r13
	je	.L5
	mov	QWORD PTR 24[r12], rax
.L5:
	mov	edx, DWORD PTR [r12]
	test	edx, edx
	jne	.L9
.L6:
	mov	QWORD PTR 8[r12], rax
	mov	esi, DWORD PTR VM_OBJECT_EVENT_INITIALIZED[rip]
	mov	rdi, r12
	call	vm_object_wakeup@PLT
	mov	rdi, r12
	call	vm_object_unlock@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	QWORD PTR 16[r12], rax
	mov	esi, DWORD PTR VM_OBJECT_EVENT_PAGER_READY[rip]
	mov	rdi, r12
	call	vm_object_wakeup@PLT
	mov	rax, QWORD PTR TRUE[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, r14d
	call	vm_object_allocate@PLT
	xor	edi, edi
	cmp	QWORD PTR VM_OBJECT_NULL[rip], rax
	setne	dil
	mov	r12, rax
	call	assert@PLT
	mov	rax, QWORD PTR FALSE[rip]
	mov	DWORD PTR [r12], eax
	mov	QWORD PTR 56[r12], rax
	mov	eax, DWORD PTR MEMORY_OBJECT_COPY_INVALID[rip]
	mov	DWORD PTR 48[r12], eax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	vm_object_memory_object_associate, .-vm_object_memory_object_associate
	.comm	VM_OBJECT_NULL,8,8
	.comm	VM_OBJECT_EVENT_PAGER_READY,4,4
	.comm	VM_OBJECT_EVENT_INITIALIZED,4,4
	.comm	TRUE,8,8
	.comm	PAGE_SIZE,4,4
	.comm	MEMORY_OBJECT_NULL,8,8
	.comm	MEMORY_OBJECT_COPY_INVALID,4,4
	.comm	MEMORY_OBJECT_CONTROL_NULL,8,8
	.comm	FALSE,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_vm_object.c_vm_object_memory_object_associate.c"
	.text
	.align	2
	.global	vm_object_memory_object_associate
	.syntax unified
	.arm
	.fpu softvfp
	.type	vm_object_memory_object_associate, %function
vm_object_memory_object_associate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	mov	r5, r1
	ldr	r1, .L13
	ldr	r8, .L13+4
	ldr	r0, [r1]
	mov	r7, r3
	subs	r0, r0, r6
	movne	r0, #1
	mov	r4, r2
	bl	assert
	ldr	r3, [r8]
	cmp	r3, r5
	beq	.L2
	ldr	r0, [r5]
	bl	assert
	ldr	r0, [r5, #4]
	bl	assert
	ldr	r0, [r5, #8]
	mov	r4, r5
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r0, [r5, #12]
	ldr	r9, .L13+8
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
.L3:
	mov	r0, r4
	bl	memory_object_control_allocate
	mov	r5, r0
	ldr	r3, .L13+12
	ldr	r8, .L13+16
	ldr	r0, [r3]
	subs	r0, r0, r5
	movne	r0, #1
	bl	assert
	mov	r0, r4
	bl	vm_object_lock
	ldr	r0, [r4, #12]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r0, [r4, #8]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r0, [r4, #24]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r0, [r4, #20]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	mov	r0, r6
	bl	memory_object_reference
	ldr	r2, [r9]
	ldr	r3, [r8]
	str	r2, [r4, #12]
	str	r3, [r4, #4]
	mov	r0, r4
	str	r5, [r4, #20]
	str	r6, [r4, #24]
	bl	vm_object_unlock
	ldr	r3, .L13+20
	ldr	r1, [r4, #20]
	ldr	r2, [r3]
	mov	r0, r6
	bl	memory_object_init
	mov	r0, r4
	bl	vm_object_lock
	ldr	r3, [r8]
	ldr	r2, [r4]
	cmp	r7, #0
	strne	r3, [r4, #16]
	cmp	r2, #0
	bne	.L12
.L6:
	ldr	r2, .L13+24
	str	r3, [r4, #8]
	ldr	r1, [r2]
	mov	r0, r4
	bl	vm_object_wakeup
	mov	r0, r4
	bl	vm_object_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	ldr	r2, .L13+28
	str	r3, [r4, #12]
	mov	r0, r4
	ldr	r1, [r2]
	bl	vm_object_wakeup
	ldr	r3, [r8]
	b	.L6
.L2:
	mov	r0, r4
	bl	vm_object_allocate
	mov	r4, r0
	ldr	r0, [r8]
	ldr	r9, .L13+8
	subs	r0, r0, r4
	movne	r0, #1
	bl	assert
	ldr	r2, .L13+32
	ldr	r3, [r9]
	ldr	r2, [r2]
	str	r3, [r4, #32]
	str	r3, [r4]
	str	r2, [r4, #28]
	b	.L3
.L14:
	.align	2
.L13:
	.word	MEMORY_OBJECT_NULL
	.word	VM_OBJECT_NULL
	.word	FALSE
	.word	MEMORY_OBJECT_CONTROL_NULL
	.word	TRUE
	.word	PAGE_SIZE
	.word	VM_OBJECT_EVENT_INITIALIZED
	.word	VM_OBJECT_EVENT_PAGER_READY
	.word	MEMORY_OBJECT_COPY_INVALID
	.size	vm_object_memory_object_associate, .-vm_object_memory_object_associate
	.comm	VM_OBJECT_NULL,4,4
	.comm	VM_OBJECT_EVENT_PAGER_READY,4,4
	.comm	VM_OBJECT_EVENT_INITIALIZED,4,4
	.comm	TRUE,4,4
	.comm	PAGE_SIZE,4,4
	.comm	MEMORY_OBJECT_NULL,4,4
	.comm	MEMORY_OBJECT_COPY_INVALID,4,4
	.comm	MEMORY_OBJECT_CONTROL_NULL,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
