	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xen_drm_drv_free_object_unlocked
_xen_drm_drv_free_object_unlocked:      ## @xen_drm_drv_free_object_unlocked
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rdi
	movq	(%rdi), %rbx
	leaq	-28(%rbp), %rsi
	callq	_drm_dev_enter
	movq	(%rbx), %r14
	movq	%r15, %rdi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	callq	_xen_drm_front_dbuf_to_cookie
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_xen_drm_front_dbuf_destroy
	movl	-28(%rbp), %edi
	callq	_drm_dev_exit
	jmp	LBB0_3
LBB0_2:
	callq	_xen_drm_front_dbuf_to_cookie
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_dbuf_free
LBB0_3:
	movq	%r15, %rdi
	callq	_xen_drm_front_gem_free_object_unlocked
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_xen_drm_drv_free_object_unlocked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xen_drm_drv_free_object_unlocked
_xen_drm_drv_free_object_unlocked:      ; @xen_drm_drv_free_object_unlocked
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x0, [x0]
	ldr	x20, [x0]
	add	x1, sp, #12
	bl	_drm_dev_enter
	ldr	x20, [x20]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_xen_drm_front_dbuf_to_cookie
	mov	x1, x0
	mov	x0, x20
	bl	_xen_drm_front_dbuf_destroy
	ldr	w0, [sp, #12]
	bl	_drm_dev_exit
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_xen_drm_front_dbuf_to_cookie
	mov	x1, x0
	mov	x0, x20
	bl	_dbuf_free
LBB0_3:
	mov	x0, x19
	bl	_xen_drm_front_gem_free_object_unlocked
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_xen_drm_drv_free_object_unlocked
.subsections_via_symbols
