	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcm825x_configure
_tcm825x_configure:                     ## @tcm825x_configure
	.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
	movq	(%rdi), %r15
	movl	28(%r15), %edx
	movl	32(%r15), %esi
	callq	_tcm825x_find_size
	movl	%eax, %r14d
	movq	(%r15), %rbx
	movq	8(%r15), %rcx
	xorl	%eax, %eax
	callq	*(%rcx)
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_tcm825x_write_default_regs
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movq	_tcm825x_siz_reg@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	%r14d, %ebx
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %r13d
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_dbg
	movq	(%r15), %rdi
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	4(%rax), %esi
	movl	%r13d, %edx
	callq	_tcm825x_write_reg_mask
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	cmpl	$128, 24(%r15)
	jne	LBB0_3
## %bb.4:
	movq	_YUV422@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_RGB565@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %ebx
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_dbg
	movq	_tcm825x_fmt_reg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%r15), %rdi
	movl	(%rax), %edx
	movl	4(%rax), %esi
	callq	_tcm825x_write_reg_mask
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movl	16(%r15), %eax
	cltd
	idivl	20(%r15)
	movq	_HIGH_FPS_MODE_LOWER_LIMIT@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpl	(%rcx), %eax
	jg	LBB0_8
## %bb.7:
	movq	(%r15), %rdi
	movl	$2, %esi
	callq	_tcm825x_read_reg
	orl	$128, %eax
	movq	(%r15), %rdi
	movl	$2, %esi
	movl	%eax, %edx
	callq	_tcm825x_write_reg
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tcm825x_siz_reg,8,3            ## @tcm825x_siz_reg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"configuring image size %d\n"

	.comm	_RGB565,4,2                     ## @RGB565
	.comm	_YUV422,4,2                     ## @YUV422
L_.str.1:                               ## @.str.1
	.asciz	"configuring pixel format %d\n"

	.comm	_tcm825x_fmt_reg,8,3            ## @tcm825x_fmt_reg
	.comm	_HIGH_FPS_MODE_LOWER_LIMIT,4,2  ## @HIGH_FPS_MODE_LOWER_LIMIT
	.no_dead_strip	_tcm825x_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcm825x_configure
_tcm825x_configure:                     ; @tcm825x_configure
	.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
	ldr	x21, [x0]
	ldp	w2, w1, [x21, #28]
	bl	_tcm825x_find_size
	mov	x19, x0
	ldp	x20, x8, [x21]
	ldr	x8, [x8]
	blr	x8
	mov	x1, x0
	mov	x0, x20
	bl	_tcm825x_write_default_regs
	cbnz	w0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x22, _tcm825x_siz_reg@GOTPAGE
Lloh1:
	ldr	x22, [x22, _tcm825x_siz_reg@GOTPAGEOFF]
	ldr	x8, [x22]
	mov	w9, w19
	lsl	x23, x9, #3
	ldr	x8, [x8, x23]
	ldr	w20, [x8]
	ldr	x0, [x21]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_dbg
	ldr	x0, [x21]
	ldr	x8, [x22]
	ldr	x8, [x8, x23]
	ldr	w1, [x8, #4]
	mov	x2, x20
	bl	_tcm825x_write_reg_mask
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	w8, [x21, #24]
Lloh4:
	adrp	x9, _YUV422@GOTPAGE
Lloh5:
	ldr	x9, [x9, _YUV422@GOTPAGEOFF]
Lloh6:
	adrp	x10, _RGB565@GOTPAGE
Lloh7:
	ldr	x10, [x10, _RGB565@GOTPAGEOFF]
	cmp	w8, #128
	csel	x8, x9, x10, eq
	ldr	w19, [x8]
	ldr	x0, [x21]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_dev_dbg
Lloh10:
	adrp	x8, _tcm825x_fmt_reg@GOTPAGE
Lloh11:
	ldr	x8, [x8, _tcm825x_fmt_reg@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x8, [x8, x19, lsl #3]
	ldr	x0, [x21]
	ldp	w2, w1, [x8]
	bl	_tcm825x_write_reg_mask
	cbnz	w0, LBB0_6
; %bb.3:
	ldp	w8, w9, [x21, #16]
	sdiv	w8, w8, w9
Lloh13:
	adrp	x9, _HIGH_FPS_MODE_LOWER_LIMIT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _HIGH_FPS_MODE_LOWER_LIMIT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_5
; %bb.4:
	ldr	x0, [x21]
	mov	w1, #2
	bl	_tcm825x_read_reg
	orr	w2, w0, #0x80
	ldr	x0, [x21]
	mov	w1, #2
	bl	_tcm825x_write_reg
LBB0_5:
	mov	w0, #0
LBB0_6:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_tcm825x_siz_reg,8,3            ; @tcm825x_siz_reg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"configuring image size %d\n"

	.comm	_RGB565,4,2                     ; @RGB565
	.comm	_YUV422,4,2                     ; @YUV422
l_.str.1:                               ; @.str.1
	.asciz	"configuring pixel format %d\n"

	.comm	_tcm825x_fmt_reg,8,3            ; @tcm825x_fmt_reg
	.comm	_HIGH_FPS_MODE_LOWER_LIMIT,4,2  ; @HIGH_FPS_MODE_LOWER_LIMIT
	.no_dead_strip	_tcm825x_configure
.subsections_via_symbols
