	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxsfb_load
_mxsfb_load:                            ## @mxsfb_load
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_to_platform_device
	movq	%rax, %r15
	leaq	8(%rax), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, 48(%r14)
	movq	_mxsfb_devdata@GOTPCREL(%rip), %rax
	movq	(%r15), %rcx
	movq	(%rcx), %rcx
	shlq	$2, %rcx
	addq	(%rax), %rcx
	movq	%rcx, 48(%rbx)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movl	(%r14), %edi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 40(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	40(%rbx), %rdi
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_23:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movq	%rax, 32(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	32(%rbx), %rdi
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_7:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_devm_clk_get
	movq	%rax, 24(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	$0, 24(%rbx)
LBB0_9:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_devm_clk_get
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	$0, 16(%rbx)
LBB0_11:
	movl	(%r14), %r12d
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_dma_set_mask_and_coherent
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_23
## %bb.12:
	movl	(%r14), %edi
	callq	_pm_runtime_enable
	movl	40(%r14), %esi
	movq	%r14, %rdi
	callq	_drm_vblank_init
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:
	movq	%r14, %rdi
	callq	_drm_mode_config_init
	movq	%r14, %rdi
	callq	_mxsfb_create_output
	testl	%eax, %eax
	js	LBB0_15
## %bb.16:
	leaq	8(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_mxsfb_formats@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_ARRAY_SIZE
	movq	%rbx, %r13
	addq	$4, %r13
	movq	%r13, (%rsp)
	movq	_mxsfb_funcs@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %ecx
	movl	%eax, %r8d
	xorl	%r9d, %r9d
	callq	_drm_simple_display_pipe_init
	testl	%eax, %eax
	js	LBB0_17
## %bb.18:
	movl	(%rbx), %edi
	movq	%r13, %rsi
	callq	_drm_panel_attach
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %r12d
	movl	(%r14), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_22
LBB0_13:
	movl	%eax, %r12d
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_22
LBB0_15:
	movl	%eax, %r12d
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_22
LBB0_17:
	movl	%eax, %r12d
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_22
LBB0_20:
	movq	_MXSFB_MIN_XRES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r14)
	movq	_MXSFB_MIN_YRES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movq	_MXSFB_MAX_XRES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	movq	_MXSFB_MAX_YRES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	_mxsfb_mode_config_funcs@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r14)
	movq	_mxsfb_mode_config_helpers@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r14)
	movq	%r14, %rdi
	callq	_drm_mode_config_reset
	movl	(%r14), %edi
	callq	_pm_runtime_get_sync
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_drm_irq_install
	movl	%eax, %r13d
	movl	(%r14), %edi
	callq	_pm_runtime_put_sync
	testl	%r13d, %r13d
	js	LBB0_21
## %bb.24:
	movq	%r14, %rdi
	callq	_drm_kms_helper_poll_init
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	callq	_drm_helper_hpd_irq_event
	jmp	LBB0_23
LBB0_21:
	movl	(%r14), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_dev_err
	movl	(%rbx), %edi
	callq	_drm_panel_detach
	movl	%r13d, %r12d
LBB0_22:
	movl	(%r14), %edi
	callq	_pm_runtime_disable
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mxsfb_devdata,8,3              ## @mxsfb_devdata
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"axi"

L_.str.1:                               ## @.str.1
	.asciz	"disp_axi"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to initialise vblank\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to create outputs\n"

	.comm	_mxsfb_funcs,4,2                ## @mxsfb_funcs
	.comm	_mxsfb_formats,4,2              ## @mxsfb_formats
L_.str.4:                               ## @.str.4
	.asciz	"Cannot setup simple display pipe\n"

L_.str.5:                               ## @.str.5
	.asciz	"Cannot connect panel\n"

	.comm	_MXSFB_MIN_XRES,4,2             ## @MXSFB_MIN_XRES
	.comm	_MXSFB_MIN_YRES,4,2             ## @MXSFB_MIN_YRES
	.comm	_MXSFB_MAX_XRES,4,2             ## @MXSFB_MAX_XRES
	.comm	_MXSFB_MAX_YRES,4,2             ## @MXSFB_MAX_YRES
	.comm	_mxsfb_mode_config_funcs,4,2    ## @mxsfb_mode_config_funcs
	.comm	_mxsfb_mode_config_helpers,4,2  ## @mxsfb_mode_config_helpers
L_.str.6:                               ## @.str.6
	.asciz	"Failed to install IRQ handler\n"

	.no_dead_strip	_mxsfb_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxsfb_load
_mxsfb_load:                            ; @mxsfb_load
	.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	x19, x0
	ldr	w0, [x0]
	bl	_to_platform_device
	mov	x20, x0
	add	x0, x0, #8
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	str	x0, [x19, #48]
Lloh3:
	adrp	x8, _mxsfb_devdata@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mxsfb_devdata@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x20]
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #2
	str	x8, [x0, #48]
Lloh6:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	ldr	w0, [x19]
	bl	_devm_ioremap_resource
	str	x0, [x21, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x0, [x21, #40]
	b	LBB0_7
LBB0_3:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_4:
	mov	x0, x22
	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
LBB0_5:
	ldr	w0, [x19]
	mov	x1, #0
	bl	_devm_clk_get
	str	x0, [x21, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.6:
	ldr	x0, [x21, #32]
LBB0_7:
	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
	b	_PTR_ERR
LBB0_8:
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_devm_clk_get
	str	x0, [x21, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.9:
	str	xzr, [x21, #24]
LBB0_10:
	ldr	w0, [x19]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_devm_clk_get
	str	x0, [x21, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.11:
	str	xzr, [x21, #16]
LBB0_12:
	ldr	w22, [x19]
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x22
	bl	_dma_set_mask_and_coherent
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.13:
	ldr	w0, [x19]
	bl	_pm_runtime_enable
	ldr	w1, [x19, #40]
	mov	x0, x19
	bl	_drm_vblank_init
	tbnz	w0, #31, LBB0_18
; %bb.14:
	mov	x0, x19
	bl	_drm_mode_config_init
	mov	x0, x19
	bl	_mxsfb_create_output
	tbnz	w0, #31, LBB0_19
; %bb.15:
	add	x22, x21, #8
Lloh16:
	adrp	x8, _mxsfb_formats@GOTPAGE
Lloh17:
	ldr	x8, [x8, _mxsfb_formats@GOTPAGEOFF]
Lloh18:
	ldr	w24, [x8]
	mov	x0, x24
	bl	_ARRAY_SIZE
	mov	x4, x0
	add	x23, x21, #4
Lloh19:
	adrp	x2, _mxsfb_funcs@GOTPAGE
Lloh20:
	ldr	x2, [x2, _mxsfb_funcs@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x22
	mov	x3, x24
	mov	x5, #0
	mov	x6, x23
	bl	_drm_simple_display_pipe_init
	tbnz	w0, #31, LBB0_20
; %bb.16:
	ldr	w0, [x21]
	mov	x1, x23
	bl	_drm_panel_attach
	cbz	w0, LBB0_21
; %bb.17:
	mov	x22, x0
	ldr	w0, [x19]
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_err
	b	LBB0_24
LBB0_18:
	mov	x22, x0
	ldr	w0, [x19]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_24
LBB0_19:
	mov	x22, x0
	ldr	w0, [x19]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	b	LBB0_24
LBB0_20:
	mov	x22, x0
	ldr	w0, [x19]
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
	b	LBB0_24
LBB0_21:
Lloh29:
	adrp	x8, _MXSFB_MIN_XRES@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MXSFB_MIN_XRES@GOTPAGEOFF]
Lloh31:
	adrp	x9, _MXSFB_MIN_YRES@GOTPAGE
Lloh32:
	ldr	x9, [x9, _MXSFB_MIN_YRES@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
Lloh35:
	adrp	x8, _MXSFB_MAX_XRES@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MXSFB_MAX_XRES@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _MXSFB_MAX_YRES@GOTPAGE
Lloh39:
	ldr	x9, [x9, _MXSFB_MAX_YRES@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
Lloh41:
	adrp	x8, _mxsfb_mode_config_funcs@GOTPAGE
Lloh42:
	ldr	x8, [x8, _mxsfb_mode_config_funcs@GOTPAGEOFF]
Lloh43:
	adrp	x9, _mxsfb_mode_config_helpers@GOTPAGE
Lloh44:
	ldr	x9, [x9, _mxsfb_mode_config_helpers@GOTPAGEOFF]
	stp	x9, x8, [x19, #8]
	mov	x0, x19
	bl	_drm_mode_config_reset
	ldr	w0, [x19]
	bl	_pm_runtime_get_sync
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	mov	x1, x0
	mov	x0, x19
	bl	_drm_irq_install
	mov	x22, x0
	ldr	w0, [x19]
	bl	_pm_runtime_put_sync
	tbnz	w22, #31, LBB0_23
; %bb.22:
	mov	x0, x19
	bl	_drm_kms_helper_poll_init
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x19
	bl	_drm_helper_hpd_irq_event
	mov	w22, #0
	b	LBB0_4
LBB0_23:
	ldr	w0, [x19]
Lloh45:
	adrp	x1, l_.str.6@PAGE
Lloh46:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_err
	ldr	w0, [x21]
	bl	_drm_panel_detach
LBB0_24:
	ldr	w0, [x19]
	bl	_pm_runtime_disable
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh33
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mxsfb_devdata,8,3              ; @mxsfb_devdata
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"axi"

l_.str.1:                               ; @.str.1
	.asciz	"disp_axi"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to initialise vblank\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to create outputs\n"

	.comm	_mxsfb_funcs,4,2                ; @mxsfb_funcs
	.comm	_mxsfb_formats,4,2              ; @mxsfb_formats
l_.str.4:                               ; @.str.4
	.asciz	"Cannot setup simple display pipe\n"

l_.str.5:                               ; @.str.5
	.asciz	"Cannot connect panel\n"

	.comm	_MXSFB_MIN_XRES,4,2             ; @MXSFB_MIN_XRES
	.comm	_MXSFB_MIN_YRES,4,2             ; @MXSFB_MIN_YRES
	.comm	_MXSFB_MAX_XRES,4,2             ; @MXSFB_MAX_XRES
	.comm	_MXSFB_MAX_YRES,4,2             ; @MXSFB_MAX_YRES
	.comm	_mxsfb_mode_config_funcs,4,2    ; @mxsfb_mode_config_funcs
	.comm	_mxsfb_mode_config_helpers,4,2  ; @mxsfb_mode_config_helpers
l_.str.6:                               ; @.str.6
	.asciz	"Failed to install IRQ handler\n"

	.no_dead_strip	_mxsfb_load
.subsections_via_symbols
