	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function g2d_unmap_cmdlist_gem
_g2d_unmap_cmdlist_gem:                 ## @g2d_unmap_cmdlist_gem
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rsi)
	jle	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	movq	_REG_TYPE_NONE@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_g2d_userptr_put_dma_addr
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %eax
	movq	8(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	24(%r12), %rax
	movq	$0, (%rax,%r13,8)
	movq	16(%r12), %rax
	movq	$0, (%rax,%r13,8)
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	16(%r12), %rcx
	movl	(%rax,%rbx,4), %r13d
	leaq	(,%r13,4), %r15
	addq	32(%r12), %r15
	movq	24(%r12), %rax
	movq	(%rax,%r13,8), %rsi
	movq	(%rcx,%r13,8), %rax
	movq	_BUF_TYPE_GEM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rsi, %rdi
	callq	_exynos_drm_gem_put
	jmp	LBB0_5
LBB0_6:
	movl	$0, (%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUF_TYPE_GEM,8,3               ## @BUF_TYPE_GEM
	.comm	_REG_TYPE_NONE,4,2              ## @REG_TYPE_NONE
	.no_dead_strip	_g2d_unmap_cmdlist_gem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function g2d_unmap_cmdlist_gem
_g2d_unmap_cmdlist_gem:                 ; @g2d_unmap_cmdlist_gem
	.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	x19, x1
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x20, x0
	mov	x21, #0
Lloh0:
	adrp	x22, _BUF_TYPE_GEM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BUF_TYPE_GEM@GOTPAGEOFF]
Lloh2:
	adrp	x23, _REG_TYPE_NONE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _REG_TYPE_NONE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	w2, #0
	bl	_g2d_userptr_put_dma_addr
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x26, x25, lsl #2
	ldr	w8, [x23]
	ldr	x9, [x19, #8]
	str	w8, [x9, x21, lsl #2]
	ldr	x8, [x19, #24]
	str	xzr, [x8, x24]
	ldr	x8, [x19, #16]
	str	xzr, [x8, x24]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x19, #8]
	ldr	w25, [x8, x21, lsl #2]
	ldp	x8, x26, [x19, #24]
	lsl	x24, x25, #3
	ldr	x1, [x8, x24]
	ldr	x8, [x9, x24]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x1
	bl	_exynos_drm_gem_put
	b	LBB0_3
LBB0_6:
	str	wzr, [x19]
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BUF_TYPE_GEM,8,3               ; @BUF_TYPE_GEM
	.comm	_REG_TYPE_NONE,4,2              ; @REG_TYPE_NONE
	.no_dead_strip	_g2d_unmap_cmdlist_gem
.subsections_via_symbols
