	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_mode_getencoder            ## -- Begin function drm_mode_getencoder
	.p2align	4, 0x90
_drm_mode_getencoder:                   ## @drm_mode_getencoder
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_DRIVER_MODESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_drm_core_check_feature
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	8(%r15), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_drm_encoder_find
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_drm_modeset_lock
	movq	%r13, %rdi
	callq	_drm_encoder_get_crtc
	movq	%rax, %rbx
	movl	$0, %eax
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.6:
	movq	(%rbx), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_drm_lease_held
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	(%rbx), %rax
	jmp	LBB0_9
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_10
LBB0_7:
	xorl	%eax, %eax
LBB0_9:
	movq	%rax, 16(%r15)
	movq	%r14, %rdi
	callq	_drm_modeset_unlock
	movl	12(%r13), %eax
	movl	%eax, 12(%r15)
	movl	8(%r13), %eax
	movl	%eax, 8(%r15)
	movl	4(%r13), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_drm_lease_filter_crtcs
	movl	%eax, 4(%r15)
	movl	(%r13), %eax
	movl	%eax, (%r15)
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRIVER_MODESET,4,2             ## @DRIVER_MODESET
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ENOENT,4,2                     ## @ENOENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_mode_getencoder            ; -- Begin function drm_mode_getencoder
	.p2align	2
_drm_mode_getencoder:                   ; @drm_mode_getencoder
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _DRIVER_MODESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRIVER_MODESET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_drm_core_check_feature
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w2, [x19, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_drm_encoder_find
	cbz	x0, LBB0_6
; %bb.2:
	mov	x22, x0
	mov	x0, x21
	mov	x1, #0
	bl	_drm_modeset_lock
	mov	x0, x22
	bl	_drm_encoder_get_crtc
	cbz	x0, LBB0_8
; %bb.3:
	mov	x23, x0
	ldr	x1, [x0]
	mov	x0, x20
	bl	_drm_lease_held
	cbz	x0, LBB0_8
; %bb.4:
	ldr	x8, [x23]
	b	LBB0_9
LBB0_5:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x8, _ENOENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_8:
	mov	x8, #0
LBB0_9:
	str	x8, [x19, #16]
	mov	x0, x21
	bl	_drm_modeset_unlock
	ldr	d0, [x22, #8]
	str	d0, [x19, #8]
	ldr	w1, [x22, #4]
	mov	x0, x20
	bl	_drm_lease_filter_crtcs
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x22]
	stp	w9, w8, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_DRIVER_MODESET,4,2             ; @DRIVER_MODESET
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
