	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_file_free                  ## -- Begin function drm_file_free
	.p2align	4, 0x90
_drm_file_free:                         ## @drm_file_free
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	8(%rax), %r14
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_task_pid_nr
	movl	%eax, %r15d
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_old_encode_dev
	movl	8(%r14), %ecx
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movq	%rax, %rdx
	callq	_DRM_DEBUG
	movq	_DRIVER_LEGACY@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_drm_core_check_feature
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	(%r14), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	*%rax
LBB0_4:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_drm_core_check_feature
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	12(%rbx), %esi
	movq	%r14, %rdi
	callq	_drm_legacy_lock_release
LBB0_6:
	movq	_DRIVER_HAVE_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_drm_core_check_feature
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_drm_legacy_reclaim_buffers
LBB0_8:
	movq	%rbx, %rdi
	callq	_drm_events_release
	movq	_DRIVER_MODESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_drm_core_check_feature
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_drm_fb_release
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_drm_property_destroy_user_blobs
LBB0_10:
	movq	_DRIVER_SYNCOBJ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_drm_core_check_feature
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_drm_syncobj_release
LBB0_12:
	movq	_DRIVER_GEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_drm_core_check_feature
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_drm_gem_release
LBB0_14:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_drm_legacy_ctxbitmap_flush
	movq	%rbx, %rdi
	callq	_drm_is_primary_client
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	callq	_drm_master_release
LBB0_16:
	movq	(%r14), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	*%rax
LBB0_18:
	leaq	8(%rbx), %rdi
	callq	_drm_prime_destroy_file_private
	leaq	4(%rbx), %rdi
	callq	_list_empty
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	movl	(%rbx), %edi
	callq	_put_pid
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_19:
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pid = %d, device = 0x%lx, open_count = %d\n"

	.comm	_current,4,2                    ## @current
	.comm	_DRIVER_LEGACY,4,2              ## @DRIVER_LEGACY
	.comm	_DRIVER_HAVE_DMA,4,2            ## @DRIVER_HAVE_DMA
	.comm	_DRIVER_MODESET,4,2             ## @DRIVER_MODESET
	.comm	_DRIVER_SYNCOBJ,4,2             ## @DRIVER_SYNCOBJ
	.comm	_DRIVER_GEM,4,2                 ## @DRIVER_GEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_file_free                  ; -- Begin function drm_file_free
	.p2align	2
_drm_file_free:                         ; @drm_file_free
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_19
; %bb.1:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x20, [x8, #8]
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_task_pid_nr
	mov	x21, x0
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_old_encode_dev
	mov	x2, x0
	ldr	w3, [x20, #8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_DRM_DEBUG
Lloh5:
	adrp	x21, _DRIVER_LEGACY@GOTPAGE
Lloh6:
	ldr	x21, [x21, _DRIVER_LEGACY@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_drm_core_check_feature
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	blr	x8
LBB0_4:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_drm_core_check_feature
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w1, [x19, #12]
	mov	x0, x20
	bl	_drm_legacy_lock_release
LBB0_6:
Lloh7:
	adrp	x8, _DRIVER_HAVE_DMA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DRIVER_HAVE_DMA@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_drm_core_check_feature
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	bl	_drm_legacy_reclaim_buffers
LBB0_8:
	mov	x0, x19
	bl	_drm_events_release
Lloh10:
	adrp	x8, _DRIVER_MODESET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DRIVER_MODESET@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_drm_core_check_feature
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_drm_fb_release
	mov	x0, x20
	mov	x1, x19
	bl	_drm_property_destroy_user_blobs
LBB0_10:
Lloh13:
	adrp	x8, _DRIVER_SYNCOBJ@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DRIVER_SYNCOBJ@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_drm_core_check_feature
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_drm_syncobj_release
LBB0_12:
Lloh16:
	adrp	x8, _DRIVER_GEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DRIVER_GEM@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_drm_core_check_feature
	cbz	x0, LBB0_14
; %bb.13:
	mov	x0, x20
	mov	x1, x19
	bl	_drm_gem_release
LBB0_14:
	mov	x0, x20
	mov	x1, x19
	bl	_drm_legacy_ctxbitmap_flush
	mov	x0, x19
	bl	_drm_is_primary_client
	cbz	x0, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_drm_master_release
LBB0_16:
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.17:
	mov	x0, x20
	mov	x1, x19
	blr	x8
LBB0_18:
	add	x0, x19, #8
	bl	_drm_prime_destroy_file_private
	add	x0, x19, #4
	bl	_list_empty
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	w0, [x19]
	bl	_put_pid
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_kfree
LBB0_19:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pid = %d, device = 0x%lx, open_count = %d\n"

	.comm	_current,4,2                    ; @current
	.comm	_DRIVER_LEGACY,4,2              ; @DRIVER_LEGACY
	.comm	_DRIVER_HAVE_DMA,4,2            ; @DRIVER_HAVE_DMA
	.comm	_DRIVER_MODESET,4,2             ; @DRIVER_MODESET
	.comm	_DRIVER_SYNCOBJ,4,2             ; @DRIVER_SYNCOBJ
	.comm	_DRIVER_GEM,4,2                 ; @DRIVER_GEM
.subsections_via_symbols
