	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_plane_prop_id
_get_plane_prop_id:                     ## @get_plane_prop_id
	.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
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	_drm@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_drmModeGetPlaneResources
	cmpl	$0, (%rax)
	jle	LBB0_13
## %bb.1:
	movq	%rax, %rbx
	xorl	%r13d, %r13d
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	leaq	L_.str(%rip), %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_RARCH_ERR
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movslq	(%rbx), %rax
	cmpq	%rax, %r13
	jge	LBB0_13
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_8 Depth 2
	movl	(%r12), %edi
	movq	8(%rbx), %rax
	movl	(%rax,%r13,4), %esi
	callq	_drmModeGetPlane
	cmpq	%r14, (%rax)
	jne	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%r12), %edi
	movq	_DRM_MODE_OBJECT_PLANE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_drmModeObjectGetProperties
	movq	%rax, %r15
	movl	(%rax), %edi
	shll	$3, %edi
	callq	_malloc
	cmpl	$0, (%r15)
	jle	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r12), %edi
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	callq	_drmModeGetProperty
	movq	%rax, (%r14,%rbx,8)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	jle	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14,%rbx,8), %rax
	movl	8(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_8
	jmp	LBB0_11
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_9:
	movq	(%r14,%rbx,8), %rax
	movq	(%rax), %rax
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_drm,4,2                        ## @drm
	.comm	_DRM_MODE_OBJECT_PLANE,4,2      ## @DRM_MODE_OBJECT_PLANE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DRM: plane %d fb property ID with name %s not found\n"

	.no_dead_strip	_get_plane_prop_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_plane_prop_id
_get_plane_prop_id:                     ; @get_plane_prop_id
	.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
Lloh0:
	adrp	x26, _drm@GOTPAGE
Lloh1:
	ldr	x26, [x26, _drm@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_drmModeGetPlaneResources
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x21, x0
	mov	x27, #0
Lloh2:
	adrp	x28, _DRM_MODE_OBJECT_PLANE@GOTPAGE
Lloh3:
	ldr	x28, [x28, _DRM_MODE_OBJECT_PLANE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x23]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_RARCH_ERR
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x21]
	cmp	x27, x8
	b.ge	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	ldr	w0, [x26]
	ldr	x8, [x21, #8]
	ldr	w1, [x8, x27, lsl #2]
	bl	_drmModeGetPlane
	ldr	x8, [x0]
	cmp	x8, x20
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
	ldr	w0, [x26]
	ldr	w2, [x28]
	mov	x1, x20
	bl	_drmModeObjectGetProperties
	mov	x24, x0
	ldr	w8, [x0]
	lsl	w0, w8, #3
	bl	_malloc
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x0
	mov	x22, #0
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x26]
	ldr	x8, [x24, #8]
	ldr	w1, [x8, x22, lsl #2]
	bl	_drmModeGetProperty
	str	x0, [x25, x22, lsl #3]
	add	x22, x22, #1
	ldrsw	x8, [x24]
	cmp	x22, x8
	b.lt	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, #0
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x25, x22, lsl #3]
	ldr	w0, [x8, #8]
	mov	x1, x19
	bl	_string_is_equal
	cbnz	x0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x22, x22, #1
	ldrsw	x8, [x24]
	cmp	x22, x8
	b.lt	LBB0_10
	b	LBB0_2
LBB0_12:
	mov	x0, #0
	b	LBB0_14
LBB0_13:
	ldr	x8, [x25, x22, lsl #3]
	ldr	x0, [x8]
LBB0_14:
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_drm,4,2                        ; @drm
	.comm	_DRM_MODE_OBJECT_PLANE,4,2      ; @DRM_MODE_OBJECT_PLANE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DRM: plane %d fb property ID with name %s not found\n"

	.no_dead_strip	_get_plane_prop_id
.subsections_via_symbols
