	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov9650_set_hflip
_ov9650_set_hflip:                      ## @ov9650_set_hflip
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	_D_V4L2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_PDEBUG
	movq	_HFLIP_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, (%r15,%rax,4)
	movq	_ov9650_flip_dmi_table@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dmi_check_system
	shll	$5, %ebx
	andl	$32, %ebx
	movq	_VFLIP_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%r15,%rcx,4), %ecx
	xorl	%edx, %edx
	testl	%ecx, %ecx
	sete	%dl
	testl	%eax, %eax
	cmovel	%ecx, %edx
	shll	$4, %edx
	orl	%ebx, %edx
	movl	%edx, -28(%rbp)
	movq	_OV9650_MVFP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_m5602_write_sensor
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D_V4L2,4,2                     ## @D_V4L2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set horizontal flip to %d"

	.comm	_HFLIP_IDX,8,3                  ## @HFLIP_IDX
	.comm	_ov9650_flip_dmi_table,4,2      ## @ov9650_flip_dmi_table
	.comm	_VFLIP_IDX,8,3                  ## @VFLIP_IDX
	.comm	_OV9650_MVFP,4,2                ## @OV9650_MVFP
	.no_dead_strip	_ov9650_set_hflip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov9650_set_hflip
_ov9650_set_hflip:                      ; @ov9650_set_hflip
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _D_V4L2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_V4L2@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_PDEBUG
Lloh5:
	adrp	x8, _HFLIP_IDX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HFLIP_IDX@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	w19, [x21, x8, lsl #2]
Lloh8:
	adrp	x8, _ov9650_flip_dmi_table@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ov9650_flip_dmi_table@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_dmi_check_system
Lloh11:
	adrp	x8, _VFLIP_IDX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VFLIP_IDX@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	w8, [x21, x8, lsl #2]
	ubfiz	w9, w19, #5, #1
	cmp	w8, #0
	cset	w10, eq
	lsl	w10, w10, #4
	lsl	w8, w8, #4
	cmp	w0, #0
	csel	w8, w8, w10, eq
	orr	w8, w8, w9
	str	w8, [sp, #12]
Lloh14:
	adrp	x8, _OV9650_MVFP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OV9650_MVFP@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	mov	w3, #1
	bl	_m5602_write_sensor
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_D_V4L2,4,2                     ; @D_V4L2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set horizontal flip to %d"

	.comm	_HFLIP_IDX,8,3                  ; @HFLIP_IDX
	.comm	_ov9650_flip_dmi_table,4,2      ; @ov9650_flip_dmi_table
	.comm	_VFLIP_IDX,8,3                  ; @VFLIP_IDX
	.comm	_OV9650_MVFP,4,2                ; @OV9650_MVFP
	.no_dead_strip	_ov9650_set_hflip
.subsections_via_symbols
