	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_fb_helper_fbdev_teardown   ## -- Begin function drm_fb_helper_fbdev_teardown
	.p2align	4, 0x90
_drm_fb_helper_fbdev_teardown:          ## @drm_fb_helper_fbdev_teardown
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.1:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.2:
	cmpq	$0, 16(%rdi)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_drm_fb_helper_unregister_fbi
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
LBB0_4:
	cmpq	$0, 8(%rdi)
	je	LBB0_8
## %bb.5:
	callq	_fb_deferred_io_cleanup
	movq	8(%rbx), %rax
	movq	8(%rax), %rdi
	callq	_kfree
	movq	8(%rbx), %rax
	movq	(%rax), %r14
	jmp	LBB0_9
LBB0_8:
	xorl	%r14d, %r14d
LBB0_9:
	movq	%rbx, %rdi
	callq	_drm_fb_helper_fini
	movq	%r14, %rdi
	callq	_kfree
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_drm_framebuffer_remove         ## TAILCALL
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_fb_helper_fbdev_teardown   ; -- Begin function drm_fb_helper_fbdev_teardown
	.p2align	2
_drm_fb_helper_fbdev_teardown:          ; @drm_fb_helper_fbdev_teardown
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
	cbz	x19, LBB0_9
; %bb.1:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_drm_fb_helper_unregister_fbi
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_6
LBB0_4:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_6
; %bb.5:
	bl	_fb_deferred_io_cleanup
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #8]
	bl	_kfree
	ldr	x8, [x19, #8]
	ldr	x20, [x8]
	b	LBB0_7
LBB0_6:
	mov	x20, #0
LBB0_7:
	mov	x0, x19
	bl	_drm_fb_helper_fini
	mov	x0, x20
	bl	_kfree
	ldr	x0, [x19]
	cbz	x0, LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_drm_framebuffer_remove
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
