	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov5640_set_framefmt
_ov5640_set_framefmt:                   ## @ov5640_set_framefmt
	.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	(%rsi), %ecx
	addl	$-128, %ecx
	cmpl	$8, %ecx
	ja	LBB0_21
## %bb.1:
	movq	%rdi, %r12
	movq	_OV5640_FMT_MUX_YUV422@GOTPCREL(%rip), %rax
	movl	$63, %edx
	movb	$1, %r13b
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rcx,4), %rcx
	addq	%rsi, %rcx
	jmpq	*%rcx
LBB0_9:
	movl	$48, %edx
	jmp	LBB0_10
LBB0_21:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_22
LBB0_8:
	movq	_OV5640_FMT_MUX_RAW_DPC@GOTPCREL(%rip), %rax
	movl	$3, %edx
	jmp	LBB0_10
LBB0_7:
	movq	_OV5640_FMT_MUX_RAW_DPC@GOTPCREL(%rip), %rax
	movl	$2, %edx
	jmp	LBB0_10
LBB0_6:
	movq	_OV5640_FMT_MUX_RAW_DPC@GOTPCREL(%rip), %rax
	movl	$1, %edx
	jmp	LBB0_10
LBB0_5:
	movq	_OV5640_FMT_MUX_RAW_DPC@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	jmp	LBB0_10
LBB0_2:
	movq	_OV5640_FMT_MUX_RGB@GOTPCREL(%rip), %rax
	movl	$111, %edx
	jmp	LBB0_10
LBB0_3:
	movq	_OV5640_FMT_MUX_RGB@GOTPCREL(%rip), %rax
	movl	$97, %edx
	jmp	LBB0_10
LBB0_4:
	movl	$48, %edx
	xorl	%r13d, %r13d
LBB0_10:
	movl	(%rax), %ebx
	movq	_OV5640_REG_FORMAT_CONTROL00@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ov5640_write_reg
	testl	%eax, %eax
	jne	LBB0_22
## %bb.11:
	movq	_OV5640_REG_ISP_FORMAT_MUX_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_ov5640_write_reg
	testl	%eax, %eax
	jne	LBB0_22
## %bb.12:
	movq	_OV5640_REG_TIMING_TC_REG21@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	$5, %edi
	callq	_BIT
	movl	%eax, %ebx
	xorl	%ecx, %ecx
	testb	%r13b, %r13b
	jne	LBB0_14
## %bb.13:
	movl	$5, %edi
	callq	_BIT
	movl	%eax, %ecx
LBB0_14:
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_ov5640_mod_reg
	testl	%eax, %eax
	jne	LBB0_22
## %bb.15:
	movq	_OV5640_REG_SYS_RESET02@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	$4, %edi
	callq	_BIT
	movl	%eax, %r15d
	movl	$3, %edi
	callq	_BIT
	movl	%eax, %ebx
	orl	%r15d, %ebx
	movl	$2, %edi
	callq	_BIT
	movl	%eax, %r15d
	orl	%ebx, %r15d
	xorl	%ecx, %ecx
	testb	%r13b, %r13b
	je	LBB0_17
## %bb.16:
	movl	$4, %edi
	callq	_BIT
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%eax, %r14d
	movl	$3, %edi
	callq	_BIT
	movl	%eax, %ebx
	orl	%r14d, %ebx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	$2, %edi
	callq	_BIT
	movl	%eax, %ecx
	orl	%ebx, %ecx
LBB0_17:
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_ov5640_mod_reg
	testl	%eax, %eax
	je	LBB0_18
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_OV5640_REG_SYS_CLOCK_ENABLE02@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	$5, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	$3, %edi
	callq	_BIT
	movl	%eax, %r15d
	orl	%ebx, %r15d
	xorl	%ecx, %ecx
	testb	%r13b, %r13b
	jne	LBB0_20
## %bb.19:
	movl	$5, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	$3, %edi
	callq	_BIT
	movl	%eax, %ecx
	orl	%ebx, %ecx
LBB0_20:
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ov5640_mod_reg                 ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_OV5640_FMT_MUX_YUV422,4,2      ## @OV5640_FMT_MUX_YUV422
	.comm	_OV5640_FMT_MUX_RGB,4,2         ## @OV5640_FMT_MUX_RGB
	.comm	_OV5640_FMT_MUX_RAW_DPC,4,2     ## @OV5640_FMT_MUX_RAW_DPC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_OV5640_REG_FORMAT_CONTROL00,4,2 ## @OV5640_REG_FORMAT_CONTROL00
	.comm	_OV5640_REG_ISP_FORMAT_MUX_CTRL,4,2 ## @OV5640_REG_ISP_FORMAT_MUX_CTRL
	.comm	_OV5640_REG_TIMING_TC_REG21,4,2 ## @OV5640_REG_TIMING_TC_REG21
	.comm	_OV5640_REG_SYS_RESET02,4,2     ## @OV5640_REG_SYS_RESET02
	.comm	_OV5640_REG_SYS_CLOCK_ENABLE02,4,2 ## @OV5640_REG_SYS_CLOCK_ENABLE02
	.no_dead_strip	_ov5640_set_framefmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov5640_set_framefmt
_ov5640_set_framefmt:                   ; @ov5640_set_framefmt
	.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	w8, [x1]
	sub	w9, w8, #128
	cmp	w9, #8
	b.hi	LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _OV5640_FMT_MUX_YUV422@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OV5640_FMT_MUX_YUV422@GOTPAGEOFF]
	mov	w2, #63
	mov	w23, #1
Lloh2:
	adrp	x10, lJTI0_0@PAGE
Lloh3:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh4:
	adrp	x8, _OV5640_FMT_MUX_YUV422@GOTPAGE
Lloh5:
	ldr	x8, [x8, _OV5640_FMT_MUX_YUV422@GOTPAGEOFF]
	mov	w2, #48
	b	LBB0_10
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_22
LBB0_4:
Lloh9:
	adrp	x8, _OV5640_FMT_MUX_RAW_DPC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OV5640_FMT_MUX_RAW_DPC@GOTPAGEOFF]
	mov	w2, #3
	b	LBB0_10
LBB0_5:
Lloh11:
	adrp	x8, _OV5640_FMT_MUX_RAW_DPC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OV5640_FMT_MUX_RAW_DPC@GOTPAGEOFF]
	mov	w2, #2
	b	LBB0_10
LBB0_6:
Lloh13:
	adrp	x8, _OV5640_FMT_MUX_RAW_DPC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OV5640_FMT_MUX_RAW_DPC@GOTPAGEOFF]
	mov	w23, #1
	mov	w2, #1
	b	LBB0_11
LBB0_7:
	mov	w2, #0
Lloh15:
	adrp	x8, _OV5640_FMT_MUX_RAW_DPC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OV5640_FMT_MUX_RAW_DPC@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh17:
	adrp	x8, _OV5640_FMT_MUX_RGB@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OV5640_FMT_MUX_RGB@GOTPAGEOFF]
	mov	w2, #111
	b	LBB0_10
LBB0_9:
Lloh19:
	adrp	x8, _OV5640_FMT_MUX_RGB@GOTPAGE
Lloh20:
	ldr	x8, [x8, _OV5640_FMT_MUX_RGB@GOTPAGEOFF]
	mov	w2, #97
LBB0_10:
	mov	w23, #1
LBB0_11:
	ldr	w20, [x8]
Lloh21:
	adrp	x8, _OV5640_REG_FORMAT_CONTROL00@GOTPAGE
Lloh22:
	ldr	x8, [x8, _OV5640_REG_FORMAT_CONTROL00@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ov5640_write_reg
	cbnz	w0, LBB0_22
; %bb.12:
Lloh24:
	adrp	x8, _OV5640_REG_ISP_FORMAT_MUX_CTRL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _OV5640_REG_ISP_FORMAT_MUX_CTRL@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_ov5640_write_reg
	cbnz	w0, LBB0_22
; %bb.13:
Lloh27:
	adrp	x8, _OV5640_REG_TIMING_TC_REG21@GOTPAGE
Lloh28:
	ldr	x8, [x8, _OV5640_REG_TIMING_TC_REG21@GOTPAGEOFF]
Lloh29:
	ldr	w20, [x8]
	mov	w0, #5
	bl	_BIT
	mov	x21, x0
	tbz	w23, #0, LBB0_16
; %bb.14:
	mov	w3, #0
	b	LBB0_17
LBB0_15:
	mov	w23, #0
Lloh30:
	adrp	x8, _OV5640_FMT_MUX_YUV422@GOTPAGE
Lloh31:
	ldr	x8, [x8, _OV5640_FMT_MUX_YUV422@GOTPAGEOFF]
	mov	w2, #48
	b	LBB0_11
LBB0_16:
	mov	w0, #5
	bl	_BIT
	mov	x3, x0
LBB0_17:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_ov5640_mod_reg
	cbnz	w0, LBB0_22
; %bb.18:
Lloh32:
	adrp	x8, _OV5640_REG_SYS_RESET02@GOTPAGE
Lloh33:
	ldr	x8, [x8, _OV5640_REG_SYS_RESET02@GOTPAGEOFF]
Lloh34:
	ldr	w20, [x8]
	mov	w0, #4
	bl	_BIT
	mov	x21, x0
	mov	w0, #3
	bl	_BIT
	orr	w21, w0, w21
	mov	w0, #2
	bl	_BIT
	orr	w21, w21, w0
	cbz	w23, LBB0_20
; %bb.19:
	mov	w0, #4
	bl	_BIT
	mov	x22, x0
	mov	w0, #3
	bl	_BIT
	orr	w22, w0, w22
	mov	w0, #2
	bl	_BIT
	orr	w3, w22, w0
	b	LBB0_21
LBB0_20:
	mov	w3, #0
LBB0_21:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_ov5640_mod_reg
	cbz	w0, LBB0_23
LBB0_22:
	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_23:
Lloh35:
	adrp	x8, _OV5640_REG_SYS_CLOCK_ENABLE02@GOTPAGE
Lloh36:
	ldr	x8, [x8, _OV5640_REG_SYS_CLOCK_ENABLE02@GOTPAGEOFF]
Lloh37:
	ldr	w20, [x8]
	mov	w0, #5
	bl	_BIT
	mov	x21, x0
	mov	w0, #3
	bl	_BIT
	orr	w21, w0, w21
	tbz	w23, #0, LBB0_25
; %bb.24:
	mov	w3, #0
	b	LBB0_26
LBB0_25:
	mov	w0, #5
	bl	_BIT
	mov	x22, x0
	mov	w0, #3
	bl	_BIT
	orr	w3, w0, w22
LBB0_26:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	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	_ov5640_mod_reg
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
                                        ; -- End function
	.comm	_OV5640_FMT_MUX_YUV422,4,2      ; @OV5640_FMT_MUX_YUV422
	.comm	_OV5640_FMT_MUX_RGB,4,2         ; @OV5640_FMT_MUX_RGB
	.comm	_OV5640_FMT_MUX_RAW_DPC,4,2     ; @OV5640_FMT_MUX_RAW_DPC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_OV5640_REG_FORMAT_CONTROL00,4,2 ; @OV5640_REG_FORMAT_CONTROL00
	.comm	_OV5640_REG_ISP_FORMAT_MUX_CTRL,4,2 ; @OV5640_REG_ISP_FORMAT_MUX_CTRL
	.comm	_OV5640_REG_TIMING_TC_REG21,4,2 ; @OV5640_REG_TIMING_TC_REG21
	.comm	_OV5640_REG_SYS_RESET02,4,2     ; @OV5640_REG_SYS_RESET02
	.comm	_OV5640_REG_SYS_CLOCK_ENABLE02,4,2 ; @OV5640_REG_SYS_CLOCK_ENABLE02
	.no_dead_strip	_ov5640_set_framefmt
.subsections_via_symbols
