	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function imx_drm_bind
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	4096                            ## 0x1000
	.long	4096                            ## 0x1000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_imx_drm_bind:                          ## @imx_drm_bind
	.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, %r14
	movq	_imx_drm_driver@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_drm_dev_alloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.11:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movl	$1, (%rbx)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,1,4096,4096]
	movups	%xmm0, 8(%rbx)
	movq	_imx_drm_mode_config_funcs@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
	movq	_imx_drm_mode_config_helpers@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 24(%rbx)
	movq	%rbx, %rdi
	callq	_drm_mode_config_init
	movq	_MAX_CRTC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_drm_vblank_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_dev_set_drvdata
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_component_bind_all
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movq	%rbx, %rdi
	callq	_drm_mode_config_reset
	movq	_legacyfb_depth@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	cmpl	$16, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$32, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
	movl	$16, (%r12)
LBB0_6:
	movq	%rbx, %rdi
	callq	_drm_kms_helper_poll_init
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_drm_dev_register
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_drm_kms_helper_poll_fini
	movl	4(%rbx), %edi
	movq	%rbx, %rsi
	callq	_component_unbind_all
	movl	%r14d, %r15d
LBB0_9:
	movq	%rbx, %rdi
	callq	_drm_mode_config_cleanup
	movq	%rbx, %rdi
	callq	_drm_dev_put
LBB0_10:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_drm_fbdev_generic_setup
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_imx_drm_driver,4,2             ## @imx_drm_driver
	.comm	_imx_drm_mode_config_funcs,4,2  ## @imx_drm_mode_config_funcs
	.comm	_imx_drm_mode_config_helpers,4,2 ## @imx_drm_mode_config_helpers
	.comm	_MAX_CRTC,4,2                   ## @MAX_CRTC
	.comm	_legacyfb_depth,4,2             ## @legacyfb_depth
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid legacyfb_depth.  Defaulting to 16bpp\n"

	.no_dead_strip	_imx_drm_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function imx_drm_bind
lCPI0_0:
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	4096                            ; 0x1000
	.long	4096                            ; 0x1000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_imx_drm_bind:                          ; @imx_drm_bind
	.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, x0
Lloh0:
	adrp	x0, _imx_drm_driver@GOTPAGE
Lloh1:
	ldr	x0, [x0, _imx_drm_driver@GOTPAGEOFF]
	mov	x1, x20
	bl	_drm_dev_alloc
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	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	_PTR_ERR
LBB0_2:
	mov	w8, #1
	str	w8, [x19]
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [x19, #8]
Lloh4:
	adrp	x8, _imx_drm_mode_config_funcs@GOTPAGE
Lloh5:
	ldr	x8, [x8, _imx_drm_mode_config_funcs@GOTPAGEOFF]
Lloh6:
	adrp	x9, _imx_drm_mode_config_helpers@GOTPAGE
Lloh7:
	ldr	x9, [x9, _imx_drm_mode_config_helpers@GOTPAGEOFF]
	stp	x9, x8, [x19, #32]
	movi.2s	v0, #1
	str	d0, [x19, #24]
	mov	x0, x19
	bl	_drm_mode_config_init
Lloh8:
	adrp	x8, _MAX_CRTC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAX_CRTC@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_drm_vblank_init
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_dev_set_drvdata
	mov	x0, x20
	mov	x1, x19
	bl	_component_bind_all
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.4:
	mov	x0, x19
	bl	_drm_mode_config_reset
Lloh11:
	adrp	x22, _legacyfb_depth@GOTPAGE
Lloh12:
	ldr	x22, [x22, _legacyfb_depth@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #16
	b.eq	LBB0_7
; %bb.5:
	cmp	w8, #32
	b.eq	LBB0_7
; %bb.6:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
	mov	w8, #16
	str	w8, [x22]
LBB0_7:
	mov	x0, x19
	bl	_drm_kms_helper_poll_init
	mov	x0, x19
	mov	w1, #0
	bl	_drm_dev_register
	mov	x21, x0
	cbz	w0, LBB0_11
; %bb.8:
	mov	x0, x19
	bl	_drm_kms_helper_poll_fini
	ldr	w0, [x19, #4]
	mov	x1, x19
	bl	_component_unbind_all
LBB0_9:
	mov	x0, x19
	bl	_drm_mode_config_cleanup
	mov	x0, x19
	bl	_drm_dev_put
LBB0_10:
	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
LBB0_11:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_drm_fbdev_generic_setup
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdrp	Lloh2, Lloh4
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_imx_drm_driver,4,2             ; @imx_drm_driver
	.comm	_imx_drm_mode_config_funcs,4,2  ; @imx_drm_mode_config_funcs
	.comm	_imx_drm_mode_config_helpers,4,2 ; @imx_drm_mode_config_helpers
	.comm	_MAX_CRTC,4,2                   ; @MAX_CRTC
	.comm	_legacyfb_depth,4,2             ; @legacyfb_depth
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid legacyfb_depth.  Defaulting to 16bpp\n"

	.no_dead_strip	_imx_drm_bind
.subsections_via_symbols
