	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vv6410_set_hflip
_vv6410_set_hflip:                      ## @vv6410_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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_VV6410_DATAFORMAT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	callq	_stv06xx_read_sensor
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	_VV6410_HFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:
	orl	-28(%rbp), %eax
	jmp	LBB0_4
LBB0_3:
	notl	%eax
	andl	-28(%rbp), %eax
LBB0_4:
	movl	%eax, -28(%rbp)
	movq	_D_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rcx
	callq	_gspca_dbg
	movl	(%r15), %esi
	movl	-28(%rbp), %edx
	movq	%rbx, %rdi
	callq	_stv06xx_write_sensor
	movl	%eax, %ecx
	sarl	$31, %eax
	andl	%ecx, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VV6410_DATAFORMAT,4,2          ## @VV6410_DATAFORMAT
	.comm	_VV6410_HFLIP,4,2               ## @VV6410_HFLIP
	.comm	_D_CONF,4,2                     ## @D_CONF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set horizontal flip to %d\n"

	.no_dead_strip	_vv6410_set_hflip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vv6410_set_hflip
_vv6410_set_hflip:                      ; @vv6410_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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _VV6410_DATAFORMAT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _VV6410_DATAFORMAT@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_stv06xx_read_sensor
	tbnz	w0, #31, LBB0_5
; %bb.1:
Lloh2:
	adrp	x8, _VV6410_HFLIP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VV6410_HFLIP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cbz	x20, LBB0_3
; %bb.2:
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
	b	LBB0_4
LBB0_3:
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
LBB0_4:
	str	w8, [sp, #12]
Lloh5:
	adrp	x8, _D_CONF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _D_CONF@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_gspca_dbg
	ldr	w1, [x21]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_stv06xx_write_sensor
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_5:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_VV6410_DATAFORMAT,4,2          ; @VV6410_DATAFORMAT
	.comm	_VV6410_HFLIP,4,2               ; @VV6410_HFLIP
	.comm	_D_CONF,4,2                     ; @D_CONF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set horizontal flip to %d\n"

	.no_dead_strip	_vv6410_set_hflip
.subsections_via_symbols
