	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_fbdev_client_hotplug
_drm_fbdev_client_hotplug:              ## @drm_fbdev_client_hotplug
	.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	%rdi, %rbx
	callq	_drm_fb_helper_from_client
	movq	%rax, %r12
	movq	(%rbx), %r14
	cmpq	$0, 8(%rax)
	je	LBB0_3
LBB0_1:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_fb_helper_hotplug_event    ## TAILCALL
LBB0_3:
	xorl	%r15d, %r15d
	cmpq	$0, 24(%r12)
	jne	LBB0_13
	jmp	LBB0_1
LBB0_4:
	cmpl	$0, 4(%r14)
	je	LBB0_11
## %bb.5:
	movq	_drm_fb_helper_generic_funcs@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_drm_fb_helper_prepare
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_drm_fb_helper_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movq	%r14, %rdi
	callq	_drm_drv_uses_atomic_modeset
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_drm_helper_disable_unused_functions
LBB0_8:
	movl	16(%r12), %esi
	movq	%r12, %rdi
	callq	_drm_fb_helper_initial_config
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_drm_fbdev_cleanup
LBB0_10:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r12)
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	callq	_DRM_DEV_ERROR
	jmp	LBB0_13
LBB0_11:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DRM_DEV_DEBUG
LBB0_12:
	xorl	%r15d, %r15d
LBB0_13:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No connectors found, will not create framebuffer!\n"

	.comm	_drm_fb_helper_generic_funcs,4,2 ## @drm_fb_helper_generic_funcs
L_.str.1:                               ## @.str.1
	.asciz	"fbdev: Failed to setup generic emulation (ret=%d)\n"

	.no_dead_strip	_drm_fbdev_client_hotplug
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_fbdev_client_hotplug
_drm_fbdev_client_hotplug:              ; @drm_fbdev_client_hotplug
	.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	x19, x0
	bl	_drm_fb_helper_from_client
	mov	x20, x0
	ldr	x19, [x19]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
LBB0_1:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.2:
	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
	b	_drm_fb_helper_hotplug_event
LBB0_3:
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_12
	b	LBB0_1
LBB0_4:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_11
; %bb.5:
Lloh0:
	adrp	x2, _drm_fb_helper_generic_funcs@GOTPAGE
Lloh1:
	ldr	x2, [x2, _drm_fb_helper_generic_funcs@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x20
	bl	_drm_fb_helper_prepare
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_drm_fb_helper_init
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.6:
	mov	x0, x19
	bl	_drm_drv_uses_atomic_modeset
	cbnz	w0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_drm_helper_disable_unused_functions
LBB0_8:
	ldr	w1, [x20, #16]
	mov	x0, x20
	bl	_drm_fb_helper_initial_config
	mov	x21, x0
	cbz	w0, LBB0_13
; %bb.9:
	mov	x0, x20
	bl	_drm_fbdev_cleanup
LBB0_10:
	stp	xzr, xzr, [x20]
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_DRM_DEV_ERROR
	b	LBB0_13
LBB0_11:
	ldr	w0, [x19]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DRM_DEV_DEBUG
LBB0_12:
	mov	w21, #0
LBB0_13:
	mov	x0, x21
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No connectors found, will not create framebuffer!\n"

	.comm	_drm_fb_helper_generic_funcs,4,2 ; @drm_fb_helper_generic_funcs
l_.str.1:                               ; @.str.1
	.asciz	"fbdev: Failed to setup generic emulation (ret=%d)\n"

	.no_dead_strip	_drm_fbdev_client_hotplug
.subsections_via_symbols
