	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mock_dmabuf
_mock_dmabuf:                           ## @mock_dmabuf
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	movq	_exp_info@GOTPCREL(%rip), %r14
	movups	(%r14), %xmm0
	movups	16(%r14), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_DEFINE_DMA_BUF_EXPORT_INFO
	leal	16(,%r15,8), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %r12
	movl	%r15d, (%rax)
	testl	%r15d, %r15d
	jle	LBB0_2
## %bb.3:
	movl	%r15d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	callq	_alloc_page
	movq	8(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_4
## %bb.6:
	movl	%r15d, %ebx
	movq	_exp_info@GOTPCREL(%rip), %r14
	jmp	LBB0_7
LBB0_2:
	xorl	%ebx, %ebx
LBB0_7:
	movq	_mock_dmabuf_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r14)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	imull	(%rax), %r15d
	movl	%r15d, (%r14)
	movq	_O_CLOEXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	%r12, 8(%r14)
	movq	%r14, %rdi
	callq	_dma_buf_export
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
LBB0_8:
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.9:
	movl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	-4(%rax,%rbx,4), %edi
	callq	_put_page
	decq	%rbx
	jne	LBB0_10
LBB0_11:
	movq	%r12, %rdi
	callq	_kfree
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_13:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_exp_info,32,3                  ## @exp_info
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mock_dmabuf_ops,4,2            ## @mock_dmabuf_ops
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_O_CLOEXEC,4,2                  ## @O_CLOEXEC
	.no_dead_strip	_mock_dmabuf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mock_dmabuf
_mock_dmabuf:                           ; @mock_dmabuf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x0
Lloh0:
	adrp	x20, _exp_info@GOTPAGE
Lloh1:
	ldr	x20, [x20, _exp_info@GOTPAGEOFF]
	ldp	q0, q1, [x20]
	stp	q0, q1, [sp]
	mov	x0, sp
	bl	_DEFINE_DMA_BUF_EXPORT_INFO
	lsl	w8, w21, #3
	add	w0, w8, #16
Lloh2:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_kmalloc
	cbz	x0, LBB0_12
; %bb.1:
	mov	x19, x0
	str	w21, [x0]
	cmp	w21, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x22, #0
	mov	w24, w21
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	bl	_alloc_page
	ldr	x8, [x19, #8]
	str	w0, [x8, x22, lsl #2]
	cbz	w0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	cmp	x24, x22
	b.ne	LBB0_3
; %bb.5:
	mov	x22, x21
	b	LBB0_7
LBB0_6:
	mov	w22, #0
LBB0_7:
Lloh4:
	adrp	x8, _mock_dmabuf_ops@GOTPAGE
Lloh5:
	ldr	x8, [x8, _mock_dmabuf_ops@GOTPAGEOFF]
	str	x8, [x20, #24]
Lloh6:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mul	w8, w8, w21
	str	w8, [x20]
Lloh9:
	adrp	x8, _O_CLOEXEC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _O_CLOEXEC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	str	x19, [x20, #8]
	mov	x0, x20
	bl	_dma_buf_export
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_13
LBB0_8:
	cbz	w22, LBB0_11
; %bb.9:
	mov	w8, w22
	lsl	x8, x8, #2
	sub	x20, x8, #4
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x20]
	bl	_put_page
	sub	x20, x20, #4
	cmn	x20, #4
	b.ne	LBB0_10
LBB0_11:
	mov	x0, x19
	bl	_kfree
LBB0_12:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	mov	x20, x0
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_exp_info,32,3                  ; @exp_info
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mock_dmabuf_ops,4,2            ; @mock_dmabuf_ops
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_O_CLOEXEC,4,2                  ; @O_CLOEXEC
	.no_dead_strip	_mock_dmabuf
.subsections_via_symbols
