	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dispc_ovl_enable_zorder_planes
_dispc_ovl_enable_zorder_planes:        ## @dispc_ovl_enable_zorder_planes
	.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, %r14
	movq	_FEAT_ALPHA_FREE_ZORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dispc_has_feature
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_dispc_get_num_ovls
	testl	%eax, %eax
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_DISPC_OVL_ATTRIBUTES
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	movl	$25, %ecx
	movl	$25, %r8d
	callq	_REG_FLD_MOD
	incl	%ebx
	movq	%r14, %rdi
	callq	_dispc_get_num_ovls
	cmpl	%eax, %ebx
	jl	LBB0_3
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FEAT_ALPHA_FREE_ZORDER,4,2     ## @FEAT_ALPHA_FREE_ZORDER
	.no_dead_strip	_dispc_ovl_enable_zorder_planes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dispc_ovl_enable_zorder_planes
_dispc_ovl_enable_zorder_planes:        ; @dispc_ovl_enable_zorder_planes
	.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
Lloh0:
	adrp	x8, _FEAT_ALPHA_FREE_ZORDER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FEAT_ALPHA_FREE_ZORDER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_dispc_has_feature
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_dispc_get_num_ovls
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	mov	w20, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_DISPC_OVL_ATTRIBUTES
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	mov	w3, #25
	mov	w4, #25
	bl	_REG_FLD_MOD
	add	w20, w20, #1
	mov	x0, x19
	bl	_dispc_get_num_ovls
	cmp	w20, w0
	b.lt	LBB0_3
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
	.cfi_endproc
                                        ; -- End function
	.comm	_FEAT_ALPHA_FREE_ZORDER,4,2     ; @FEAT_ALPHA_FREE_ZORDER
	.no_dead_strip	_dispc_ovl_enable_zorder_planes
.subsections_via_symbols
