	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dma_buf_release
_dma_buf_release:                       ## @dma_buf_release
	.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	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_is_dma_buf_file
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rbx
	movl	(%rbx), %edi
	callq	_BUG_ON
	movl	$1, %edi
	cmpq	$0, 40(%rbx)
	jne	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	cmpq	$0, 32(%rbx)
	setne	%dil
LBB0_4:
	callq	_BUG_ON
	movq	24(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	_db_list@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	16(%rbx), %rdi
	callq	_list_del
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	8(%rbx), %rdi
	leaq	48(%rbx), %rax
	cmpq	%rax, %rdi
	jne	LBB0_6
## %bb.5:
	callq	_dma_resv_fini
LBB0_6:
	movl	4(%rbx), %edi
	callq	_module_put
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_db_list,4,2                    ## @db_list
	.no_dead_strip	_dma_buf_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dma_buf_release
_dma_buf_release:                       ; @dma_buf_release
	.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, x1
	mov	x0, x1
	bl	_is_dma_buf_file
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x19, [x19]
	ldr	w0, [x19]
	bl	_BUG_ON
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_4
; %bb.2:
	mov	w0, #1
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_4:
	ldr	x8, [x19, #32]
	cmp	x8, #0
	cset	w0, ne
LBB0_5:
	bl	_BUG_ON
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
Lloh3:
	adrp	x20, _db_list@GOTPAGE
Lloh4:
	ldr	x20, [x20, _db_list@GOTPAGEOFF]
	mov	x0, x20
	bl	_mutex_lock
	add	x0, x19, #16
	bl	_list_del
	mov	x0, x20
	bl	_mutex_unlock
	ldr	x0, [x19, #8]
	add	x8, x19, #48
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:
	bl	_dma_resv_fini
LBB0_7:
	ldr	w0, [x19, #4]
	bl	_module_put
	mov	x0, x19
	bl	_kfree
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_db_list,4,2                    ; @db_list
	.no_dead_strip	_dma_buf_release
.subsections_via_symbols
