	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_mode_getfb                 ## -- Begin function drm_mode_getfb
	.p2align	4, 0x90
_drm_mode_getfb:                        ## @drm_mode_getfb
	.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	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_DRIVER_MODESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_drm_core_check_feature
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	32(%r14), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_drm_framebuffer_lookup
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movq	16(%rax), %rax
	cmpl	$2, (%rax)
	jl	LBB0_8
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_8:
	movq	(%r12), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_9
## %bb.10:
	movl	28(%r12), %ecx
	movl	%ecx, 28(%r14)
	movl	24(%r12), %ecx
	movl	%ecx, 24(%r14)
	movl	16(%rax), %ecx
	movl	%ecx, 20(%r14)
	movq	8(%rax), %rax
	movl	(%rax), %eax
	shll	$3, %eax
	movl	%eax, (%r14)
	movq	8(%r12), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	%r15, %rdi
	callq	_drm_is_current_master
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	movq	_CAP_SYS_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_12
LBB0_13:
	movq	(%r12), %rax
	addq	$8, %r14
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	*(%rax)
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_9:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movq	%r12, %rdi
	callq	_drm_framebuffer_put
LBB0_15:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	$0, 8(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_DRIVER_MODESET,4,2             ## @DRIVER_MODESET
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_CAP_SYS_ADMIN,4,2              ## @CAP_SYS_ADMIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_mode_getfb                 ; -- Begin function drm_mode_getfb
	.p2align	2
_drm_mode_getfb:                        ; @drm_mode_getfb
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, 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_4
; %bb.1:
	ldr	w2, [x21, #32]
	mov	x0, x19
	mov	x1, x20
	bl	_drm_framebuffer_lookup
	cbz	x0, LBB0_5
; %bb.2:
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	w9, [x8]
	cmp	w9, #2
	b.lt	LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_4:
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _ENOENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_14
LBB0_7:
	ldr	x9, [x19]
	ldr	x9, [x9]
	cbz	x9, LBB0_11
; %bb.8:
	ldr	d0, [x19, #24]
	str	d0, [x21, #24]
	ldr	w9, [x8, #16]
	str	w9, [x21, #20]
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
	lsl	w8, w8, #3
	str	w8, [x21]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	str	w8, [x21, #16]
	mov	x0, x20
	bl	_drm_is_current_master
	cbnz	w0, LBB0_10
; %bb.9:
Lloh9:
	adrp	x8, _CAP_SYS_ADMIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CAP_SYS_ADMIN@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_15
LBB0_10:
	ldr	x8, [x19]
	ldr	x8, [x8]
	add	x2, x21, #8
	mov	x0, x19
	mov	x1, x20
	blr	x8
	mov	x20, x0
	b	LBB0_13
LBB0_11:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_13:
	mov	x0, x19
	bl	_drm_framebuffer_put
LBB0_14:
	mov	x0, x20
	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
LBB0_15:
	mov	w20, #0
	str	xzr, [x21, #8]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DRIVER_MODESET,4,2             ; @DRIVER_MODESET
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_CAP_SYS_ADMIN,4,2              ; @CAP_SYS_ADMIN
.subsections_via_symbols
