	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_plane_type
_drm_plane_type:                        ## @drm_plane_type
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_drm@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	(%rdi), %esi
	movq	_DRM_MODE_OBJECT_PLANE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	callq	_drmModeObjectGetProperties
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.1:
	movq	%rax, %r12
	xorl	%ebx, %ebx
	leaq	L_.str(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	callq	_drmModeGetProperty
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	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	"type"

	.no_dead_strip	_drm_plane_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_plane_type
_drm_plane_type:                        ; @drm_plane_type
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x21, _drm@GOTPAGE
Lloh1:
	ldr	x21, [x21, _drm@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	w1, [x0]
Lloh2:
	adrp	x9, _DRM_MODE_OBJECT_PLANE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DRM_MODE_OBJECT_PLANE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x9]
	mov	x0, x8
	bl	_drmModeObjectGetProperties
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x22, #0
Lloh5:
	adrp	x20, l_.str@PAGE
Lloh6:
	add	x20, x20, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	ldr	x8, [x19, #16]
	ldr	w1, [x8, x22, lsl #2]
	bl	_drmModeGetProperty
	ldr	w0, [x0]
	mov	x1, x20
	bl	_string_is_equal
	cbnz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x22, lsl #2]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.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	"type"

	.no_dead_strip	_drm_plane_type
.subsections_via_symbols
