	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt9m111_set_hvflip
_mt9m111_set_hvflip:                    ## @mt9m111_set_hvflip
	.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
	movq	%rdi, %rbx
	movq	$0, -32(%rbp)
	movq	_D_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movl	(%rcx), %ecx
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rdx
	callq	_gspca_dbg
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	(%rcx), %r14d
	movl	(%rax), %r15d
	movq	_MT9M111_PAGE_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$2, %ecx
	callq	_m5602_write_sensor
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	testl	%r15d, %r15d
	sete	%al
	xorl	%ecx, %ecx
	testl	%r14d, %r14d
	sete	%cl
	movq	_MT9M111_RMB_OVER_SIZED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -32(%rbp)
	cmpl	$640, (%rbx)                    ## imm = 0x280
	movq	_MT9M111_RMB_ROW_SKIP_4X@GOTPCREL(%rip), %rdx
	cmoveq	_MT9M111_RMB_ROW_SKIP_2X@GOTPCREL(%rip), %rdx
	movq	_MT9M111_RMB_COLUMN_SKIP_4X@GOTPCREL(%rip), %rsi
	cmoveq	_MT9M111_RMB_COLUMN_SKIP_2X@GOTPCREL(%rip), %rsi
	leal	(%rax,%rcx,2), %eax
	orl	(%rdx), %eax
	orl	(%rsi), %eax
	movl	%eax, -28(%rbp)
	movq	_MT9M111_SC_R_MODE_CONTEXT_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$2, %ecx
	callq	_m5602_write_sensor
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D_CONF,4,2                     ## @D_CONF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set hvflip to %d %d\n"

	.comm	_MT9M111_PAGE_MAP,4,2           ## @MT9M111_PAGE_MAP
	.comm	_MT9M111_RMB_OVER_SIZED,4,2     ## @MT9M111_RMB_OVER_SIZED
	.comm	_MT9M111_RMB_ROW_SKIP_2X,4,2    ## @MT9M111_RMB_ROW_SKIP_2X
	.comm	_MT9M111_RMB_COLUMN_SKIP_2X,4,2 ## @MT9M111_RMB_COLUMN_SKIP_2X
	.comm	_MT9M111_RMB_ROW_SKIP_4X,4,2    ## @MT9M111_RMB_ROW_SKIP_4X
	.comm	_MT9M111_RMB_COLUMN_SKIP_4X,4,2 ## @MT9M111_RMB_COLUMN_SKIP_4X
	.comm	_MT9M111_SC_R_MODE_CONTEXT_B,4,2 ## @MT9M111_SC_R_MODE_CONTEXT_B
	.no_dead_strip	_mt9m111_set_hvflip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt9m111_set_hvflip
_mt9m111_set_hvflip:                    ; @mt9m111_set_hvflip
	.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, x0
Lloh0:
	adrp	x8, _D_CONF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_CONF@GOTPAGEOFF]
	str	xzr, [sp, #8]
Lloh2:
	ldr	w1, [x8]
	ldp	x9, x8, [x0]
	ldr	w3, [x8]
	ldr	w4, [x9]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_gspca_dbg
	ldp	x9, x8, [x19]
	ldr	w20, [x8]
	ldr	w21, [x9]
Lloh5:
	adrp	x8, _MT9M111_PAGE_MAP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MT9M111_PAGE_MAP@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #2
	bl	_m5602_write_sensor
	tbnz	w0, #31, LBB0_2
; %bb.1:
	cmp	w21, #0
	cset	w8, eq
	cmp	w20, #0
Lloh8:
	adrp	x9, _MT9M111_RMB_OVER_SIZED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MT9M111_RMB_OVER_SIZED@GOTPAGEOFF]
	cset	w10, eq
Lloh10:
	ldr	w9, [x9]
	str	w9, [sp, #8]
	ldr	w9, [x19]
Lloh11:
	adrp	x11, _MT9M111_RMB_ROW_SKIP_2X@GOTPAGE
Lloh12:
	ldr	x11, [x11, _MT9M111_RMB_ROW_SKIP_2X@GOTPAGEOFF]
Lloh13:
	adrp	x12, _MT9M111_RMB_ROW_SKIP_4X@GOTPAGE
Lloh14:
	ldr	x12, [x12, _MT9M111_RMB_ROW_SKIP_4X@GOTPAGEOFF]
	cmp	w9, #640
	csel	x9, x11, x12, eq
Lloh15:
	adrp	x11, _MT9M111_RMB_COLUMN_SKIP_2X@GOTPAGE
Lloh16:
	ldr	x11, [x11, _MT9M111_RMB_COLUMN_SKIP_2X@GOTPAGEOFF]
	ldr	w9, [x9]
Lloh17:
	adrp	x12, _MT9M111_RMB_COLUMN_SKIP_4X@GOTPAGE
Lloh18:
	ldr	x12, [x12, _MT9M111_RMB_COLUMN_SKIP_4X@GOTPAGEOFF]
	csel	x11, x11, x12, eq
	ldr	w11, [x11]
	bfi	w8, w10, #1, #1
	orr	w8, w8, w9
	orr	w8, w8, w11
	str	w8, [sp, #12]
Lloh19:
	adrp	x8, _MT9M111_SC_R_MODE_CONTEXT_B@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MT9M111_SC_R_MODE_CONTEXT_B@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #2
	bl	_m5602_write_sensor
LBB0_2:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_D_CONF,4,2                     ; @D_CONF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set hvflip to %d %d\n"

	.comm	_MT9M111_PAGE_MAP,4,2           ; @MT9M111_PAGE_MAP
	.comm	_MT9M111_RMB_OVER_SIZED,4,2     ; @MT9M111_RMB_OVER_SIZED
	.comm	_MT9M111_RMB_ROW_SKIP_2X,4,2    ; @MT9M111_RMB_ROW_SKIP_2X
	.comm	_MT9M111_RMB_COLUMN_SKIP_2X,4,2 ; @MT9M111_RMB_COLUMN_SKIP_2X
	.comm	_MT9M111_RMB_ROW_SKIP_4X,4,2    ; @MT9M111_RMB_ROW_SKIP_4X
	.comm	_MT9M111_RMB_COLUMN_SKIP_4X,4,2 ; @MT9M111_RMB_COLUMN_SKIP_4X
	.comm	_MT9M111_SC_R_MODE_CONTEXT_B,4,2 ; @MT9M111_SC_R_MODE_CONTEXT_B
	.no_dead_strip	_mt9m111_set_hvflip
.subsections_via_symbols
