	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qxl_update_area_ioctl
_qxl_update_area_ioctl:                 ## @qxl_update_area_ioctl
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	(%rdi), %r14
	movq	(%rsi), %rsi
	movq	%rsi, -80(%rbp)
	movq	8(%r13), %rax
	movq	%rax, -72(%rbp)
	movq	16(%r13), %rdi
	movq	%rdi, -64(%rbp)
	movq	24(%r13), %rcx
	movq	%rcx, -56(%rbp)
	movq	$1, -48(%rbp)
	cmpq	%rdi, %rsi
	jge	LBB0_2
## %bb.1:
	cmpq	%rcx, %rax
	jge	LBB0_2
## %bb.4:
	movl	32(%r13), %esi
	movq	%rdx, %rdi
	callq	_drm_gem_object_lookup
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_gem_to_qxl_bo
	movq	%rax, %r12
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_qxl_bo_reserve
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.7:
	cmpl	$0, 16(%r12)
	je	LBB0_8
LBB0_9:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_qxl_bo_check_id
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	cmpl	$0, (%r12)
	jne	LBB0_12
## %bb.11:
	movl	32(%r13), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
LBB0_12:
	leaq	-80(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_qxl_io_update_area
	movl	%eax, %ebx
LBB0_13:
	movq	%r12, %rdi
	callq	_qxl_bo_unreserve
	jmp	LBB0_14
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_8:
	movl	12(%r12), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_qxl_ttm_placement_from_domain
	leaq	8(%r12), %rdi
	movq	%r12, %rsi
	addq	$4, %rsi
	leaq	-48(%rbp), %rdx
	callq	_ttm_bo_validate
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
LBB0_14:
	movq	%r15, %rdi
	callq	_drm_gem_object_put_unlocked
LBB0_15:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOENT,4,2                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"got update area for surface with no id %d\n"

	.no_dead_strip	_qxl_update_area_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qxl_update_area_ioctl
_qxl_update_area_ioctl:                 ; @qxl_update_area_ioctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	x19, [x0]
	ldp	x8, x9, [x1]
	stp	x8, x9, [sp, #16]
	ldp	x10, x11, [x1, #16]
	stp	x10, x11, [sp, #32]
	mov	w12, #1
	str	x12, [sp, #8]
	cmp	x8, x10
	ccmp	x9, x11, #0, lt
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_2:
	mov	x21, x1
	ldr	w1, [x1, #32]
	mov	x0, x2
	bl	_drm_gem_object_lookup
	cbz	x0, LBB0_10
; %bb.3:
	mov	x20, x0
	bl	_gem_to_qxl_bo
	mov	x22, x0
	mov	w1, #0
	bl	_qxl_bo_reserve
	mov	x23, x0
	cbnz	w0, LBB0_13
; %bb.4:
	ldr	w8, [x22, #16]
	cbz	w8, LBB0_12
LBB0_5:
	mov	x0, x19
	mov	x1, x22
	bl	_qxl_bo_check_id
	mov	x23, x0
	cbnz	w0, LBB0_9
; %bb.6:
	ldr	w8, [x22]
	cbnz	w8, LBB0_8
; %bb.7:
	ldr	w1, [x21, #32]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_8:
	add	x2, sp, #16
	mov	x0, x19
	mov	x1, x22
	bl	_qxl_io_update_area
	mov	x23, x0
LBB0_9:
	mov	x0, x22
	bl	_qxl_bo_unreserve
	b	LBB0_13
LBB0_10:
Lloh4:
	adrp	x8, _ENOENT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_14
LBB0_12:
	ldr	w1, [x22, #12]
	mov	x0, x22
	mov	w2, #0
	bl	_qxl_ttm_placement_from_domain
	add	x0, x22, #8
	add	x1, x22, #4
	add	x2, sp, #8
	bl	_ttm_bo_validate
	mov	x23, x0
	bl	_unlikely
	cbz	x0, LBB0_5
LBB0_13:
	mov	x0, x20
	bl	_drm_gem_object_put_unlocked
LBB0_14:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOENT,4,2                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"got update area for surface with no id %d\n"

	.no_dead_strip	_qxl_update_area_ioctl
.subsections_via_symbols
