	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dma_buf_export                 ## -- Begin function dma_buf_export
	.p2align	4, 0x90
_dma_buf_export:                        ## @dma_buf_export
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %r14
	xorl	%r15d, %r15d
	testq	%r14, %r14
	sete	%r12b
	movl	$1, %edi
	cmpq	$0, 24(%rbx)
	je	LBB0_5
## %bb.1:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	cmpl	$0, 8(%rax)
	je	LBB0_5
## %bb.3:
	cmpl	$0, 4(%rax)
	je	LBB0_5
## %bb.4:
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
LBB0_5:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_9:
	movl	(%rbx), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movb	%r12b, %r15b
	leaq	(%r15,%r15,2), %rdi
	addq	$97, %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%rax, %r15
	movq	24(%rbx), %rax
	movq	%rax, 88(%r15)
	movq	16(%rbx), %rax
	movq	%rax, 80(%r15)
	movl	12(%rbx), %eax
	movl	%eax, 76(%r15)
	movl	8(%rbx), %eax
	movl	%eax, 72(%r15)
	movl	(%rbx), %eax
	movl	%eax, 68(%r15)
	leaq	64(%r15), %r12
	movq	%r12, %rdi
	callq	_init_waitqueue_head
	movq	%r12, 40(%r15)
	movq	%r12, 56(%r15)
	movq	$0, 32(%r15)
	movq	$0, 48(%r15)
	testq	%r14, %r14
	jne	LBB0_15
## %bb.14:
	leaq	96(%r15), %r14
	movq	%r14, %rdi
	callq	_dma_resv_init
LBB0_15:
	movq	%r14, 24(%r15)
	movl	4(%rbx), %esi
	movq	%r15, %rdi
	callq	_dma_buf_getfile
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_17
LBB0_10:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_17:
	movl	(%rbx), %edi
	callq	_module_put
	movl	%r14d, %edi
	jmp	LBB0_8
LBB0_18:
	movq	_FMODE_LSEEK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movq	%r14, 16(%r15)
	leaq	8(%r15), %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	addq	$4, %rdi
	callq	_INIT_LIST_HEAD
	movq	_db_list@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	leaq	4(%rbx), %rsi
	movq	%r15, %rdi
	callq	_list_add
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_FMODE_LSEEK,4,2                ## @FMODE_LSEEK
	.comm	_db_list,8,2                    ## @db_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dma_buf_export                 ; -- Begin function dma_buf_export
	.p2align	2
_dma_buf_export:                        ; @dma_buf_export
	.cfi_startproc
; %bb.0:
	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
	mov	w8, #97
	mov	w9, #100
	ldp	x10, x20, [x0, #24]
	cmp	x20, #0
	csel	x21, x9, x8, eq
	cbz	x10, LBB0_11
; %bb.1:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_11
; %bb.2:
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_11
; %bb.3:
	ldr	w9, [x8, #4]
	cbz	w9, LBB0_11
; %bb.4:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_12
LBB0_5:
	ldr	w0, [x19]
	bl	_try_module_get
	cbz	w0, LBB0_15
; %bb.6:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_kzalloc
	cbz	x0, LBB0_16
; %bb.7:
	mov	x21, x0
	ldp	x9, x8, [x19, #16]
	stp	x9, x8, [x0, #80]
	ldr	d0, [x19, #8]
	str	d0, [x0, #72]
	ldr	w8, [x19]
	str	w8, [x0, #68]
	add	x22, x0, #64
	mov	x0, x22
	bl	_init_waitqueue_head
	stp	xzr, x22, [x21, #32]
	stp	xzr, x22, [x21, #48]
	cbnz	x20, LBB0_9
; %bb.8:
	add	x20, x21, #96
	mov	x0, x20
	bl	_dma_resv_init
LBB0_9:
	str	x20, [x21, #24]
	ldr	w1, [x19, #4]
	mov	x0, x21
	bl	_dma_buf_getfile
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.10:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x20, x0
	mov	x0, x21
	bl	_kfree
	b	LBB0_17
LBB0_11:
	mov	w0, #1
	bl	_WARN_ON
	cbz	x0, LBB0_5
LBB0_12:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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	_ERR_PTR
LBB0_15:
Lloh5:
	adrp	x8, _ENOENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_13
LBB0_16:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_17:
	ldr	w0, [x19]
	bl	_module_put
	mov	x0, x20
	b	LBB0_14
LBB0_18:
Lloh10:
	adrp	x8, _FMODE_LSEEK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FMODE_LSEEK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	str	x20, [x21, #16]
	add	x0, x21, #8
	bl	_mutex_init
	add	x0, x21, #4
	bl	_INIT_LIST_HEAD
Lloh13:
	adrp	x19, _db_list@GOTPAGE
Lloh14:
	ldr	x19, [x19, _db_list@GOTPAGEOFF]
	mov	x0, x19
	bl	_mutex_lock
	add	x1, x19, #4
	mov	x0, x21
	bl	_list_add
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_FMODE_LSEEK,4,2                ; @FMODE_LSEEK
	.comm	_db_list,8,2                    ; @db_list
.subsections_via_symbols
