	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function free_object
_free_object:                           ## @free_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	32(%rdi), %r14
	movq	40(%rdi), %rdi
	callq	_mutex_is_locked
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	movq	%rbx, %rdi
	callq	_is_active
	movl	%eax, %edi
	callq	_WARN_ON
	leaq	24(%rbx), %rdi
	callq	_list_del
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	callq	_put_iova
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movl	(%rax), %edi
	callq	_dma_buf_vunmap
LBB0_3:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_kvfree
LBB0_5:
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	callq	_drm_prime_gem_destroy
	jmp	LBB0_7
LBB0_6:
	movq	%r14, %rdi
	callq	_msm_gem_vunmap_locked
	movq	%r14, %rdi
	callq	_put_pages
LBB0_7:
	movq	%r14, %rdi
	callq	_drm_gem_object_release
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_free_object
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function free_object
_free_object:                           ; @free_object
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x20, x0, #32
	ldr	x0, [x0, #40]
	bl	_mutex_is_locked
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	mov	x0, x19
	bl	_is_active
	bl	_WARN_ON
	add	x0, x19, #24
	bl	_list_del
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x20
	bl	_put_iova
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	x1, [x19, #16]
	cbz	x1, LBB0_3
; %bb.2:
	ldr	w0, [x8]
	bl	_dma_buf_vunmap
LBB0_3:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_kvfree
LBB0_5:
	ldr	w1, [x19, #4]
	mov	x0, x20
	bl	_drm_prime_gem_destroy
	b	LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_msm_gem_vunmap_locked
	mov	x0, x20
	bl	_put_pages
LBB0_7:
	mov	x0, x20
	bl	_drm_gem_object_release
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_free_object
.subsections_via_symbols
