	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_detach_phys_object    ## -- Begin function i915_gem_detach_phys_object
	.p2align	4, 0x90
_i915_gem_detach_phys_object:           ## @i915_gem_detach_phys_object
	.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, %rbx
	movq	%rdi, %r14
	movl	12(%rsi), %edi
	callq	_file_inode
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	movq	%rax, %rcx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %eax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rdi
	cltd
	idivl	(%rdi)
	testl	%eax, %eax
	jle	LBB0_6
## %bb.2:
	movl	%eax, %r13d
	movq	(%rcx), %r12
	movq	8(%rsi), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	cmpl	%ebx, %r13d
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_shmem_read_mapping_page
	movq	%rax, -48(%rbp)
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi
	movq	_KM_USER0@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_kmap_atomic
	movq	%rax, %r14
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %eax
	imull	%ebx, %eax
	movslq	%eax, %rsi
	addq	-72(%rbp), %rsi                 ## 8-byte Folded Reload
	movq	%r14, %rdi
	callq	_memcpy
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_kunmap_atomic
	leaq	-48(%rbp), %rdi
	movl	$1, %esi
	callq	_drm_clflush_pages
	movq	-48(%rbp), %rdi
	callq	_set_page_dirty
	movq	-48(%rbp), %rdi
	callq	_mark_page_accessed
	movq	-48(%rbp), %rdi
	callq	_page_cache_release
	jmp	LBB0_5
LBB0_6:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_i915_gem_chipset_flush
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	$0, (%rax)
	movq	$0, (%rcx)
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_KM_USER0,4,2                   ## @KM_USER0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_detach_phys_object    ; -- Begin function i915_gem_detach_phys_object
	.p2align	2
_i915_gem_detach_phys_object:           ; @i915_gem_detach_phys_object
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #12]
	bl	_file_inode
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.1:
	ldr	w9, [x19, #8]
Lloh0:
	adrp	x24, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w10, [x24]
	sdiv	w25, w9, w10
	cmp	w25, #1
	b.lt	LBB0_6
; %bb.2:
	mov	w21, #0
	ldr	x22, [x0]
	ldr	x8, [x8, #8]
	ldr	x26, [x8]
Lloh2:
	adrp	x27, _KM_USER0@GOTPAGE
Lloh3:
	ldr	x27, [x27, _KM_USER0@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #1
	cmp	w25, w21
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_shmem_read_mapping_page
	str	x0, [sp, #8]
	bl	_IS_ERR
	cbnz	w0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #8]
	ldr	w1, [x27]
	bl	_kmap_atomic
	mov	x23, x0
	ldr	w2, [x24]
	mul	w8, w2, w21
	add	x1, x26, w8, sxtw
	bl	_memcpy
	ldr	w1, [x27]
	mov	x0, x23
	bl	_kunmap_atomic
	add	x0, sp, #8
	mov	w1, #1
	bl	_drm_clflush_pages
	ldr	x0, [sp, #8]
	bl	_set_page_dirty
	ldr	x0, [sp, #8]
	bl	_mark_page_accessed
	ldr	x0, [sp, #8]
	bl	_page_cache_release
	b	LBB0_3
LBB0_6:
	mov	x0, x20
	bl	_i915_gem_chipset_flush
	ldr	x8, [x19]
	str	xzr, [x8]
	str	xzr, [x19]
LBB0_7:
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_KM_USER0,4,2                   ; @KM_USER0
.subsections_via_symbols
