	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dc_init_planes
_dc_init_planes:                        ## @dc_init_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	%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	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%r12), %eax
	movq	_DC_MAX_PLANES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_DRM_MEM_KMS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	$8, %edi
	callq	_malloc
	movq	%rax, %r13
	movl	%r12d, (%rax)
	leaq	4(%rax), %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movzbl	(%rax), %ecx
	movl	$1, %r15d
	shll	%cl, %r15d
	movq	_dc_plane_formats@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_nitems
	movl	$0, (%rsp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r15d, %edx
	movq	_dc_plane_funcs@GOTPCREL(%rip), %rcx
	movl	%r14d, %r8d
	movl	%eax, %r9d
	callq	_drm_plane_init
	incl	%r12d
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	movl	%eax, %ebx
	movq	_DRM_MEM_KMS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_free
	jmp	LBB0_5
LBB0_2:
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DC_MAX_PLANES,4,2              ## @DC_MAX_PLANES
	.comm	_DRM_MEM_KMS,4,2                ## @DRM_MEM_KMS
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_dc_plane_funcs,4,2             ## @dc_plane_funcs
	.comm	_dc_plane_formats,4,2           ## @dc_plane_formats
	.no_dead_strip	_dc_init_planes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dc_init_planes
_dc_init_planes:                        ; @dc_init_planes
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	mov	w28, #1
Lloh0:
	adrp	x27, _dc_plane_formats@GOTPAGE
Lloh1:
	ldr	x27, [x27, _dc_plane_formats@GOTPAGEOFF]
	mov	w26, #1
Lloh2:
	adrp	x21, _dc_plane_funcs@GOTPAGE
Lloh3:
	ldr	x21, [x21, _dc_plane_funcs@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w26, #1
Lloh4:
	adrp	x9, _DC_MAX_PLANES@GOTPAGE
Lloh5:
	ldr	x9, [x9, _DC_MAX_PLANES@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh7:
	adrp	x8, _DRM_MEM_KMS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DRM_MEM_KMS@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh14:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #8
	bl	_malloc
	mov	x22, x0
	mov	x23, x0
	str	w26, [x23], #4
	ldr	w8, [x20]
	lsl	w24, w28, w8
	ldr	w25, [x27]
	mov	x0, x25
	bl	_nitems
	mov	x5, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	mov	x3, x21
	mov	x4, x25
	mov	w6, #0
	bl	_drm_plane_init
	add	w26, w26, #1
	cbz	w0, LBB0_1
; %bb.3:
	mov	x23, x0
Lloh16:
	adrp	x8, _DRM_MEM_KMS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DRM_MEM_KMS@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_free
	b	LBB0_5
LBB0_4:
	mov	w23, #0
LBB0_5:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_DC_MAX_PLANES,4,2              ; @DC_MAX_PLANES
	.comm	_DRM_MEM_KMS,4,2                ; @DRM_MEM_KMS
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_dc_plane_funcs,4,2             ; @dc_plane_funcs
	.comm	_dc_plane_formats,4,2           ; @dc_plane_formats
	.no_dead_strip	_dc_init_planes
.subsections_via_symbols
