	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_framebuffer_init           ## -- Begin function drm_framebuffer_init
	.p2align	4, 0x90
_drm_framebuffer_init:                  ## @drm_framebuffer_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	$1, %edi
	cmpq	%r14, 32(%rsi)
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpl	$0, 28(%rbx)
	sete	%dil
LBB0_2:
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_4:
	leaq	24(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r15, 16(%rbx)
	movl	8(%rbx), %edi
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	callq	_strcpy
	movq	_DRM_MODE_OBJECT_FB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_drm_framebuffer_free@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	___drm_mode_object_add
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_mutex_lock
	incl	8(%r14)
	leaq	4(%rbx), %rdi
	leaq	4(%r14), %rsi
	callq	_list_add
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_drm_mode_object_register
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_current,8,3                    ## @current
	.comm	_DRM_MODE_OBJECT_FB,4,2         ## @DRM_MODE_OBJECT_FB
	.comm	_drm_framebuffer_free,4,2       ## @drm_framebuffer_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_framebuffer_init           ; -- Begin function drm_framebuffer_init
	.p2align	2
_drm_framebuffer_init:                  ; @drm_framebuffer_init
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #32]
	cmp	x8, x0
	b.eq	LBB0_3
; %bb.1:
	mov	w0, #1
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_3:
	ldr	w8, [x19, #28]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbnz	x0, LBB0_2
LBB0_4:
	add	x0, x19, #24
	bl	_INIT_LIST_HEAD
	str	x21, [x19, #16]
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x8, _current@GOTPAGE
Lloh4:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w1, [x8]
	bl	_strcpy
Lloh6:
	adrp	x8, _DRM_MODE_OBJECT_FB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRM_MODE_OBJECT_FB@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _drm_framebuffer_free@GOTPAGE
Lloh10:
	ldr	x8, [x8, _drm_framebuffer_free@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	___drm_mode_object_add
	cbnz	w0, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	add	x0, x19, #4
	add	x1, x20, #4
	bl	_list_add
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x20
	mov	x1, x19
	bl	_drm_mode_object_register
	mov	w0, #0
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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_current,8,3                    ; @current
	.comm	_DRM_MODE_OBJECT_FB,4,2         ; @DRM_MODE_OBJECT_FB
	.comm	_drm_framebuffer_free,4,2       ; @drm_framebuffer_free
.subsections_via_symbols
