	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function komeda_plane_reset
_komeda_plane_reset:                    ## @komeda_plane_reset
	.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	%rdi, %rbx
	callq	_to_kplane
	movq	%rax, %r14
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	callq	___drm_atomic_helper_plane_destroy_state
	movq	(%rbx), %rdi
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
LBB0_3:
	callq	_kfree
	movq	$0, (%rbx)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_DRM_MODE_ROTATE_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%rax)
	movq	_DRM_MODE_BLEND_PREMULTI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	movq	_DRM_BLEND_ALPHA_OPAQUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	movq	(%r14), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	_DRM_COLOR_YCBCR_BT601@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movq	_DRM_COLOR_YCBCR_LIMITED_RANGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	%rax, (%rbx)
	movq	%rbx, (%rax)
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_DRM_MODE_ROTATE_0,4,2          ## @DRM_MODE_ROTATE_0
	.comm	_DRM_MODE_BLEND_PREMULTI,4,2    ## @DRM_MODE_BLEND_PREMULTI
	.comm	_DRM_BLEND_ALPHA_OPAQUE,4,2     ## @DRM_BLEND_ALPHA_OPAQUE
	.comm	_DRM_COLOR_YCBCR_BT601,4,2      ## @DRM_COLOR_YCBCR_BT601
	.comm	_DRM_COLOR_YCBCR_LIMITED_RANGE,4,2 ## @DRM_COLOR_YCBCR_LIMITED_RANGE
	.no_dead_strip	_komeda_plane_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function komeda_plane_reset
_komeda_plane_reset:                    ; @komeda_plane_reset
	.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, x0
	bl	_to_kplane
	mov	x20, x0
	ldr	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
	bl	___drm_atomic_helper_plane_destroy_state
	ldr	x0, [x19]
LBB0_2:
	bl	_kfree
	str	xzr, [x19]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _DRM_MODE_ROTATE_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_MODE_ROTATE_0@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _DRM_MODE_BLEND_PREMULTI@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DRM_MODE_BLEND_PREMULTI@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #24]
Lloh9:
	adrp	x8, _DRM_BLEND_ALPHA_OPAQUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DRM_BLEND_ALPHA_OPAQUE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	x9, [x20]
	ldr	w9, [x9]
	stp	w9, w8, [x0, #16]
Lloh12:
	adrp	x8, _DRM_COLOR_YCBCR_BT601@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DRM_COLOR_YCBCR_BT601@GOTPAGEOFF]
Lloh14:
	adrp	x9, _DRM_COLOR_YCBCR_LIMITED_RANGE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DRM_COLOR_YCBCR_LIMITED_RANGE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
	str	x0, [x19]
	str	x19, [x0]
LBB0_4:
	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 AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_DRM_MODE_ROTATE_0,4,2          ; @DRM_MODE_ROTATE_0
	.comm	_DRM_MODE_BLEND_PREMULTI,4,2    ; @DRM_MODE_BLEND_PREMULTI
	.comm	_DRM_BLEND_ALPHA_OPAQUE,4,2     ; @DRM_BLEND_ALPHA_OPAQUE
	.comm	_DRM_COLOR_YCBCR_BT601,4,2      ; @DRM_COLOR_YCBCR_BT601
	.comm	_DRM_COLOR_YCBCR_LIMITED_RANGE,4,2 ; @DRM_COLOR_YCBCR_LIMITED_RANGE
	.no_dead_strip	_komeda_plane_reset
.subsections_via_symbols
