	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_fbdev_generic_setup        ## -- Begin function drm_fbdev_generic_setup
	.p2align	4, 0x90
_drm_fbdev_generic_setup:               ## @drm_fbdev_generic_setup
	.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
	movl	%esi, %r14d
	movq	%rdi, %r13
	movl	8(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_WARN
	movq	_drm_fbdev_emulation@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	cmpl	$0, (%rax)
	je	LBB0_10
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%rax, %r12
	addq	$4, %r12
	leaq	L_.str.1(%rip), %rdx
	movq	_drm_fbdev_client_funcs@GOTPCREL(%rip), %rcx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_drm_client_init
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_kfree
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	callq	_DRM_DEV_ERROR
	movl	%r14d, %r15d
	jmp	LBB0_10
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_10
LBB0_5:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	jne	LBB0_7
## %bb.6:
	movl	4(%r13), %ecx
LBB0_7:
	testl	%ecx, %ecx
	movl	$32, %eax
	cmovnel	%ecx, %eax
	movl	%eax, (%rbx)
	movq	%r12, %rdi
	callq	_drm_fbdev_client_hotplug
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	callq	_DRM_DEV_DEBUG
LBB0_9:
	movq	%r12, %rdi
	callq	_drm_client_register
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fb_helper is already set!\n"

	.comm	_drm_fbdev_emulation,4,2        ## @drm_fbdev_emulation
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"fbdev"

	.comm	_drm_fbdev_client_funcs,4,2     ## @drm_fbdev_client_funcs
L_.str.2:                               ## @.str.2
	.asciz	"Failed to register client: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"client hotplug ret=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_fbdev_generic_setup        ; -- Begin function drm_fbdev_generic_setup
	.p2align	2
_drm_fbdev_generic_setup:               ; @drm_fbdev_generic_setup
	.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, x1
	mov	x19, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN
Lloh2:
	adrp	x8, _drm_fbdev_emulation@GOTPAGE
Lloh3:
	ldr	x8, [x8, _drm_fbdev_emulation@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cbz	w8, LBB0_10
; %bb.1:
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x22, x0
	add	x21, x0, #4
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
Lloh10:
	adrp	x3, _drm_fbdev_client_funcs@GOTPAGE
Lloh11:
	ldr	x3, [x3, _drm_fbdev_client_funcs@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x21
	bl	_drm_client_init
	cbz	w0, LBB0_5
; %bb.3:
	mov	x23, x0
	mov	x0, x22
	bl	_kfree
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x23
	bl	_DRM_DEV_ERROR
	b	LBB0_11
LBB0_4:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_11
LBB0_5:
	cbnz	w20, LBB0_7
; %bb.6:
	ldr	w20, [x19, #4]
LBB0_7:
	mov	w8, #32
	cmp	w20, #0
	csel	w8, w8, w20, eq
	str	w8, [x22]
	mov	x0, x21
	bl	_drm_fbdev_client_hotplug
	cbz	w0, LBB0_9
; %bb.8:
	mov	x2, x0
	ldr	w0, [x19]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_DRM_DEV_DEBUG
LBB0_9:
	mov	x0, x21
	bl	_drm_client_register
LBB0_10:
	mov	w23, #0
LBB0_11:
	mov	x0, x23
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fb_helper is already set!\n"

	.comm	_drm_fbdev_emulation,4,2        ; @drm_fbdev_emulation
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"fbdev"

	.comm	_drm_fbdev_client_funcs,4,2     ; @drm_fbdev_client_funcs
l_.str.2:                               ; @.str.2
	.asciz	"Failed to register client: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"client hotplug ret=%d\n"

.subsections_via_symbols
