	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_plane_init                 ## -- Begin function drm_plane_init
	.p2align	4, 0x90
_drm_plane_init:                        ## @drm_plane_init
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_drm_modeset_lock_all
	leaq	24(%rbx), %r12
	movq	_DRM_MODE_OBJECT_PLANE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_drm_mode_object_get
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	leaq	48(%rbx), %rax
	movq	%rax, 24(%rbx)
	movq	%r14, 40(%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 32(%rbx)
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	leal	(,%r13,4), %r15d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_kmalloc
	movl	%eax, 20(%rbx)
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	16(%rbp), %r12d
	movl	%eax, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_memcpy
	movl	%r13d, (%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	addq	$16, %rbx
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	callq	_INIT_LIST_HEAD
	jmp	LBB0_6
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_drm_mode_object_put
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_7
LBB0_4:
	leaq	4(%r14), %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
	incl	(%r14)
LBB0_6:
	xorl	%r15d, %r15d
LBB0_7:
	movq	%r14, %rdi
	callq	_drm_modeset_unlock_all
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_OBJECT_PLANE,4,2      ## @DRM_MODE_OBJECT_PLANE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory when allocating plane\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_plane_init                 ; -- Begin function drm_plane_init
	.p2align	2
_drm_plane_init:                        ; @drm_plane_init
	.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	x20, x6
	mov	x21, x5
	mov	x24, x4
	mov	x26, x3
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
	bl	_drm_modeset_lock_all
	add	x25, x22, #24
Lloh0:
	adrp	x8, _DRM_MODE_OBJECT_PLANE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_OBJECT_PLANE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x25
	bl	_drm_mode_object_get
	mov	x27, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x19
	bl	_drm_modeset_unlock_all
	mov	x0, x27
	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
LBB0_2:
	add	x8, x22, #48
	stp	x26, x19, [x22, #32]
	str	x8, [x22, #24]
	lsl	w26, w21, #2
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x26
	bl	_kmalloc
	str	w0, [x22, #20]
	cbz	w0, LBB0_5
; %bb.3:
	mov	x1, x24
	mov	x2, x26
	bl	_memcpy
	str	w21, [x22]
	str	x23, [x22, #8]
	add	x0, x22, #16
	cbz	w20, LBB0_6
; %bb.4:
	bl	_INIT_LIST_HEAD
	mov	w27, #0
	b	LBB0_1
LBB0_5:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	x0, x19
	mov	x1, x25
	bl	_drm_mode_object_put
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w27, w8
	b	LBB0_1
LBB0_6:
	add	x1, x19, #4
	bl	_list_add_tail
	mov	w27, #0
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_OBJECT_PLANE,4,2      ; @DRM_MODE_OBJECT_PLANE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory when allocating plane\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
