	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxsfb_set_pixel_fmt
_mxsfb_set_pixel_fmt:                   ## @mxsfb_set_pixel_fmt
	.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
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %r13d
	movq	_CTRL_BYPASS_COUNT@GOTPCREL(%rip), %rax
	movq	_CTRL_MASTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	(%rax), %r12d
	movq	_LCDC_CTRL1@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	_CTRL1_CUR_FRAME_DONE_IRQ_EN@GOTPCREL(%rip), %rcx
	movq	_CTRL1_CUR_FRAME_DONE_IRQ@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	xorl	%r15d, %r15d
	cmpl	$129, %r13d
	je	LBB0_1
## %bb.2:
	cmpl	$128, %r13d
	jne	LBB0_6
## %bb.3:
	movl	$7, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$3, %r13d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_1:
	movl	$15, -44(%rbp)                  ## 4-byte Folded Spill
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
LBB0_4:
	andl	%eax, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_dev_dbg
	movl	%r13d, %edi
	callq	_CTRL_SET_WORD_LENGTH
	movl	%eax, %r13d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_CTRL1_SET_BYTE_PACKAGING
	orl	%eax, %ebx
	orl	%r13d, %r12d
	movq	_LCDC_CTRL1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	_LCDC_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movl	%r12d, %edi
	callq	_writel
	jmp	LBB0_5
LBB0_6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r13d, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTRL_BYPASS_COUNT,4,2          ## @CTRL_BYPASS_COUNT
	.comm	_CTRL_MASTER,4,2                ## @CTRL_MASTER
	.comm	_LCDC_CTRL1,8,3                 ## @LCDC_CTRL1
	.comm	_CTRL1_CUR_FRAME_DONE_IRQ_EN,4,2 ## @CTRL1_CUR_FRAME_DONE_IRQ_EN
	.comm	_CTRL1_CUR_FRAME_DONE_IRQ,4,2   ## @CTRL1_CUR_FRAME_DONE_IRQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting up RGB565 mode\n"

L_.str.1:                               ## @.str.1
	.asciz	"Setting up XRGB8888 mode\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unhandled pixel format %08x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_LCDC_CTRL,8,3                  ## @LCDC_CTRL
	.no_dead_strip	_mxsfb_set_pixel_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxsfb_set_pixel_fmt
_mxsfb_set_pixel_fmt:                   ; @mxsfb_set_pixel_fmt
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldp	x8, x23, [x0, #8]
	ldr	x9, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w20, [x8]
Lloh0:
	adrp	x8, _CTRL_BYPASS_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CTRL_BYPASS_COUNT@GOTPAGEOFF]
Lloh2:
	adrp	x10, _CTRL_MASTER@GOTPAGE
Lloh3:
	ldr	x10, [x10, _CTRL_MASTER@GOTPAGEOFF]
Lloh4:
	ldr	w24, [x8]
Lloh5:
	ldr	w25, [x10]
Lloh6:
	adrp	x22, _LCDC_CTRL1@GOTPAGE
Lloh7:
	ldr	x22, [x22, _LCDC_CTRL1@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x0, x8, x9
	bl	_readl
Lloh8:
	adrp	x8, _CTRL1_CUR_FRAME_DONE_IRQ_EN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CTRL1_CUR_FRAME_DONE_IRQ_EN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _CTRL1_CUR_FRAME_DONE_IRQ@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CTRL1_CUR_FRAME_DONE_IRQ@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w20, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w20, #128
	b.ne	LBB0_5
; %bb.2:
	mov	w20, #7
	mov	w21, #3
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
	mov	w21, #0
	mov	w20, #15
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	orr	w24, w25, w24
	orr	w8, w9, w8
	and	w25, w8, w0
	ldr	w0, [x23]
	bl	_dev_dbg
	mov	x0, x21
	bl	_CTRL_SET_WORD_LENGTH
	mov	x21, x0
	mov	x0, x20
	bl	_CTRL1_SET_BYTE_PACKAGING
	orr	w0, w0, w25
	orr	w20, w24, w21
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _LCDC_CTRL@GOTPAGE
Lloh19:
	ldr	x9, [x9, _LCDC_CTRL@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	ldr	w0, [x23]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_dev_err
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_CTRL_BYPASS_COUNT,4,2          ; @CTRL_BYPASS_COUNT
	.comm	_CTRL_MASTER,4,2                ; @CTRL_MASTER
	.comm	_LCDC_CTRL1,8,3                 ; @LCDC_CTRL1
	.comm	_CTRL1_CUR_FRAME_DONE_IRQ_EN,4,2 ; @CTRL1_CUR_FRAME_DONE_IRQ_EN
	.comm	_CTRL1_CUR_FRAME_DONE_IRQ,4,2   ; @CTRL1_CUR_FRAME_DONE_IRQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting up RGB565 mode\n"

l_.str.1:                               ; @.str.1
	.asciz	"Setting up XRGB8888 mode\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unhandled pixel format %08x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_LCDC_CTRL,8,3                  ; @LCDC_CTRL
	.no_dead_strip	_mxsfb_set_pixel_fmt
.subsections_via_symbols
