	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_gem_put_pages              ## -- Begin function drm_gem_put_pages
	.p2align	4, 0x90
_drm_gem_put_pages:                     ## @drm_gem_put_pages
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	4(%rdi), %edi
	callq	_file_inode
	movq	(%rax), %rdi
	callq	_mapping_clear_unevictable
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	xorl	%edi, %edi
	andl	(%r12), %eax
	setne	%dil
	callq	_WARN_ON
	movl	(%r12), %r14d
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r14d
	leaq	-48(%rbp), %rdi
	callq	_pagevec_init
	testl	%r14d, %r14d
	jle	LBB0_10
## %bb.1:
	movl	%r14d, %r13d
	xorl	%r14d, %r14d
	leaq	-48(%rbp), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	cmpq	%r14, %r13
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%r14,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_set_page_dirty
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx,%r14,8), %rdi
	callq	_mark_page_accessed
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx,%r14,8), %rsi
	movq	%r12, %rdi
	callq	_pagevec_add
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_drm_gem_check_release_pagevec
	jmp	LBB0_9
LBB0_10:
	leaq	-48(%rbp), %rdi
	callq	_pagevec_count
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	-48(%rbp), %rdi
	callq	_drm_gem_check_release_pagevec
LBB0_12:
	movq	%rbx, %rdi
	callq	_kvfree
	addq	$24, %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	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_gem_put_pages              ; -- Begin function drm_gem_put_pages
	.p2align	2
_drm_gem_put_pages:                     ; @drm_gem_put_pages
	.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	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w0, [x0, #4]
	bl	_file_inode
	ldr	x0, [x0]
	bl	_mapping_clear_unevictable
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sub	w9, w9, #1
	tst	w9, w8
	cset	w0, ne
	bl	_WARN_ON
	ldr	w8, [x22]
Lloh3:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	asr	w22, w8, w9
	add	x0, sp, #8
	bl	_pagevec_init
	cmp	w22, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x23, x19
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #8
	subs	x22, x22, #1
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w21, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_set_page_dirty
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	w20, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x23]
	bl	_mark_page_accessed
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x23]
	add	x0, sp, #8
	bl	_pagevec_add
	cbnz	w0, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #8
	bl	_drm_gem_check_release_pagevec
	b	LBB0_2
LBB0_10:
	add	x0, sp, #8
	bl	_pagevec_count
	cbz	x0, LBB0_12
; %bb.11:
	add	x0, sp, #8
	bl	_drm_gem_check_release_pagevec
LBB0_12:
	mov	x0, x19
	bl	_kvfree
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
.subsections_via_symbols
