	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpu_set
_cpu_set:                               ## @cpu_set
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %r14
	leaq	-44(%rbp), %rsi
	callq	_i915_gem_object_prepare_write
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	%r13, %rsi
	shrq	%cl, %rsi
	movq	%r14, %rdi
	callq	_i915_gem_object_get_page
	movq	%rax, %rdi
	callq	_kmap_atomic
	movq	%r13, %rdi
	movq	%rax, %r13
	callq	_offset_in_page
	movslq	%eax, %rbx
	addq	%r13, %rbx
	movq	_CLFLUSH_BEFORE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_drm_clflush_virt_range
LBB0_3:
	movl	%r15d, (%rbx)
	movq	_CLFLUSH_AFTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_drm_clflush_virt_range
LBB0_5:
	movq	%r13, %rdi
	callq	_kunmap_atomic
	movq	%r14, %rdi
	callq	_i915_gem_object_finish_access
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_CLFLUSH_BEFORE,4,2             ## @CLFLUSH_BEFORE
	.comm	_CLFLUSH_AFTER,4,2              ## @CLFLUSH_AFTER
	.no_dead_strip	_cpu_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpu_set
_cpu_set:                               ; @cpu_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
	add	x1, sp, #12
	bl	_i915_gem_object_prepare_write
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsr	x1, x23, x8
	mov	x0, x19
	bl	_i915_gem_object_get_page
	bl	_kmap_atomic
	mov	x22, x0
	mov	x0, x23
	bl	_offset_in_page
	add	x23, x22, w0, sxtw
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _CLFLUSH_BEFORE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CLFLUSH_BEFORE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x23
	mov	w1, #4
	bl	_drm_clflush_virt_range
LBB0_3:
	str	w21, [x23]
	ldr	w8, [sp, #12]
Lloh6:
	adrp	x9, _CLFLUSH_AFTER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CLFLUSH_AFTER@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x23
	mov	w1, #4
	bl	_drm_clflush_virt_range
LBB0_5:
	mov	x0, x22
	bl	_kunmap_atomic
	mov	x0, x19
	bl	_i915_gem_object_finish_access
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_CLFLUSH_BEFORE,4,2             ; @CLFLUSH_BEFORE
	.comm	_CLFLUSH_AFTER,4,2              ; @CLFLUSH_AFTER
	.no_dead_strip	_cpu_set
.subsections_via_symbols
