	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_blending_from_plane_state
_fill_blending_from_plane_state:        ## @fill_blending_from_plane_state
	.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	%rdi, %rbx
	movl	$0, (%rsi)
	movl	$0, (%rdx)
	movl	$255, (%rcx)
	movq	24(%rdi), %rax
	movq	(%rax), %rax
	movq	_DRM_PLANE_TYPE_OVERLAY@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rax
	jne	LBB0_9
## %bb.1:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movq	_DRM_MODE_BLEND_PREMULTI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.2:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	leaq	_fill_blending_from_plane_state.alpha_formats(%rip), %r12
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	xorl	%r15d, %r15d
	movq	%r12, %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%r13), %r14
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$8, %r13
	cmpq	%rax, %r15
	jb	LBB0_5
	jmp	LBB0_7
LBB0_6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
LBB0_7:
	cmpl	$65534, 8(%rbx)                 ## imm = 0xFFFE
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jg	LBB0_9
## %bb.8:
	movl	$1, (%rax)
	movl	8(%rbx), %eax
	sarl	$8, %eax
	movl	%eax, (%rcx)
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_PLANE_TYPE_OVERLAY,8,3     ## @DRM_PLANE_TYPE_OVERLAY
	.comm	_DRM_MODE_BLEND_PREMULTI,8,3    ## @DRM_MODE_BLEND_PREMULTI
	.section	__TEXT,__const
	.p2align	4                               ## @fill_blending_from_plane_state.alpha_formats
_fill_blending_from_plane_state.alpha_formats:
	.quad	129                             ## 0x81
	.quad	128                             ## 0x80
	.quad	130                             ## 0x82

	.no_dead_strip	_fill_blending_from_plane_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_blending_from_plane_state
_fill_blending_from_plane_state:        ; @fill_blending_from_plane_state
	.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
	str	wzr, [x1]
	str	wzr, [x2]
	mov	w8, #255
	str	w8, [x3]
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _DRM_PLANE_TYPE_OVERLAY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_PLANE_TYPE_OVERLAY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _DRM_MODE_BLEND_PREMULTI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRM_MODE_BLEND_PREMULTI@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	mov	x22, x1
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	ldr	x24, [x8]
Lloh6:
	adrp	x23, _fill_blending_from_plane_state.alpha_formats@PAGE
Lloh7:
	add	x23, x23, _fill_blending_from_plane_state.alpha_formats@PAGEOFF
	mov	x0, x23
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_7
; %bb.3:
	mov	x25, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, x25, lsl #3]
	cmp	x24, x8
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	mov	x0, x23
	bl	_ARRAY_SIZE
	cmp	x25, w0, uxtw
	b.lo	LBB0_4
	b	LBB0_7
LBB0_6:
	mov	w8, #1
	str	w8, [x22]
LBB0_7:
	ldr	w8, [x21, #8]
	mov	w9, #65534
	cmp	w8, w9
	b.gt	LBB0_9
; %bb.8:
	mov	w8, #1
	str	w8, [x20]
	ldr	w8, [x21, #8]
	asr	w8, w8, #8
	str	w8, [x19]
LBB0_9:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_PLANE_TYPE_OVERLAY,8,3     ; @DRM_PLANE_TYPE_OVERLAY
	.comm	_DRM_MODE_BLEND_PREMULTI,8,3    ; @DRM_MODE_BLEND_PREMULTI
	.section	__TEXT,__const
	.p2align	3                               ; @fill_blending_from_plane_state.alpha_formats
_fill_blending_from_plane_state.alpha_formats:
	.quad	129                             ; 0x81
	.quad	128                             ; 0x80
	.quad	130                             ; 0x82

	.no_dead_strip	_fill_blending_from_plane_state
.subsections_via_symbols
