	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_exynos_g2d_exec_ioctl          ## -- Begin function exynos_g2d_exec_ioctl
	.p2align	4, 0x90
_exynos_g2d_exec_ioctl:                 ## @exynos_g2d_exec_ioctl
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	(%rdx), %r12
	movq	(%rdi), %rax
	movl	(%rax), %edi
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movl	16(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmem_cache_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	40(%rax), %rbx
	movq	%r13, %r14
	leaq	36(%rax), %r13
	movq	%rbx, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r13, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r15, %rdi
	callq	_init_completion
	movq	(%r14), %rax
	movq	%rax, 8(%r15)
	leaq	4(%r12), %rdi
	movq	%rbx, %rsi
	callq	_list_splice_init
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_list_splice_init
	movq	%rbx, %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	20(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movl	16(%rbx), %edi
	movq	%r15, %rsi
	callq	_kmem_cache_free
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	leaq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%r15)
	movq	%r15, %rdi
	addq	$16, %rdi
	movq	%r14, %rsi
	addq	$12, %rsi
	callq	_list_add_tail
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	4(%r14), %edi
	movq	%r14, %rsi
	callq	_queue_work
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r15)
	jne	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_wait_for_completion
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_g2d_free_runqueue_node
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"there is no inuse cmdlist\n"

	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_current,8,3                    ## @current
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_exynos_g2d_exec_ioctl          ; -- Begin function exynos_g2d_exec_ioctl
	.p2align	2
_exynos_g2d_exec_ioctl:                 ; @exynos_g2d_exec_ioctl
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x23, x1
	ldr	x22, [x2]
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_dev_get_drvdata
	mov	x19, x0
	ldr	w0, [x0, #16]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kmem_cache_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	add	x24, x0, #40
	add	x25, x0, #36
	mov	x0, x24
	bl	_INIT_LIST_HEAD
	mov	x0, x25
	bl	_INIT_LIST_HEAD
	mov	x0, x20
	bl	_init_completion
	ldr	x8, [x23]
	str	x8, [x20, #8]
	add	x0, x22, #4
	mov	x1, x24
	bl	_list_splice_init
	mov	x0, x22
	mov	x1, x25
	bl	_list_splice_init
	mov	x0, x24
	bl	_list_empty
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w0, [x19, #20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	w0, [x19, #16]
	mov	x1, x20
	bl	_kmem_cache_free
Lloh5:
	adrp	x8, _EPERM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_5:
	add	x22, x19, #8
	mov	x0, x22
	bl	_mutex_lock
Lloh9:
	adrp	x8, _current@GOTPAGE
Lloh10:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w8, [x20, #32]
	str	x21, [x20, #24]
	add	x0, x20, #16
	add	x1, x19, #12
	bl	_list_add_tail
	mov	x0, x22
	bl	_mutex_unlock
	ldr	w0, [x19, #4]
	mov	x1, x19
	bl	_queue_work
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_wait_for_completion
	mov	x0, x19
	mov	x1, x20
	bl	_g2d_free_runqueue_node
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"there is no inuse cmdlist\n"

	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_current,8,3                    ; @current
.subsections_via_symbols
