	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function armada_overlay_reset
_armada_overlay_reset:                  ## @armada_overlay_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	callq	___drm_atomic_helper_plane_destroy_state
	movq	(%r14), %rdi
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
LBB0_3:
	callq	_kfree
	movq	$0, (%r14)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %rbx
	movabsq	$72340172804390400, %rax        ## imm = 0x1010100FEFEFE00
	movq	%rax, (%rbx)
	movl	$16843008, 8(%rbx)              ## imm = 0x1010100
	movq	_CKMODE_RGB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CFG_CKMODE
	movl	%eax, %r15d
	movq	_CFG_ALPHAM_GRA@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	xorl	%edi, %edi
	callq	_CFG_ALPHA
	orl	%r15d, %eax
	movl	%eax, 12(%rbx)
	movq	_ADV_GRACOLORKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_DEFAULT_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_DEFAULT_CONTRAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_DEFAULT_SATURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	%rbx, %rsi
	addq	$16, %rsi
	movq	%r14, %rdi
	callq	___drm_atomic_helper_plane_reset
	movq	_DEFAULT_ENCODING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_DRM_COLOR_YCBCR_LIMITED_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_CKMODE_RGB,4,2                 ## @CKMODE_RGB
	.comm	_CFG_ALPHAM_GRA,4,2             ## @CFG_ALPHAM_GRA
	.comm	_ADV_GRACOLORKEY,4,2            ## @ADV_GRACOLORKEY
	.comm	_DEFAULT_BRIGHTNESS,4,2         ## @DEFAULT_BRIGHTNESS
	.comm	_DEFAULT_CONTRAST,4,2           ## @DEFAULT_CONTRAST
	.comm	_DEFAULT_SATURATION,4,2         ## @DEFAULT_SATURATION
	.comm	_DEFAULT_ENCODING,4,2           ## @DEFAULT_ENCODING
	.comm	_DRM_COLOR_YCBCR_LIMITED_RANGE,4,2 ## @DRM_COLOR_YCBCR_LIMITED_RANGE
	.no_dead_strip	_armada_overlay_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function armada_overlay_reset
lCPI0_0:
	.long	4278124032                      ; 0xfefefe00
	.long	16843008                        ; 0x1010100
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_armada_overlay_reset:                  ; @armada_overlay_reset
	.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
	ldr	x0, [x0]
	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, #40
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x0]
	mov	w8, #256
	movk	w8, #257, lsl #16
	str	w8, [x0, #8]
Lloh5:
	adrp	x8, _CKMODE_RGB@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CKMODE_RGB@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_CFG_CKMODE
Lloh8:
	adrp	x8, _CFG_ALPHAM_GRA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CFG_ALPHAM_GRA@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w21, w8, w0
	mov	w0, #0
	bl	_CFG_ALPHA
	orr	w8, w21, w0
	str	w8, [x20, #12]
Lloh11:
	adrp	x8, _ADV_GRACOLORKEY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ADV_GRACOLORKEY@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _DEFAULT_BRIGHTNESS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DEFAULT_BRIGHTNESS@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #32]
Lloh17:
	adrp	x8, _DEFAULT_CONTRAST@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DEFAULT_CONTRAST@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _DEFAULT_SATURATION@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DEFAULT_SATURATION@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
	add	x1, x20, #16
	mov	x0, x19
	bl	___drm_atomic_helper_plane_reset
Lloh23:
	adrp	x8, _DEFAULT_ENCODING@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DEFAULT_ENCODING@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _DRM_COLOR_YCBCR_LIMITED_RANGE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _DRM_COLOR_YCBCR_LIMITED_RANGE@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #16]
LBB0_4:
	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 AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdr	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_CKMODE_RGB,4,2                 ; @CKMODE_RGB
	.comm	_CFG_ALPHAM_GRA,4,2             ; @CFG_ALPHAM_GRA
	.comm	_ADV_GRACOLORKEY,4,2            ; @ADV_GRACOLORKEY
	.comm	_DEFAULT_BRIGHTNESS,4,2         ; @DEFAULT_BRIGHTNESS
	.comm	_DEFAULT_CONTRAST,4,2           ; @DEFAULT_CONTRAST
	.comm	_DEFAULT_SATURATION,4,2         ; @DEFAULT_SATURATION
	.comm	_DEFAULT_ENCODING,4,2           ; @DEFAULT_ENCODING
	.comm	_DRM_COLOR_YCBCR_LIMITED_RANGE,4,2 ; @DRM_COLOR_YCBCR_LIMITED_RANGE
	.no_dead_strip	_armada_overlay_reset
.subsections_via_symbols
