	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_raspicamcontrol_set_flips      ## -- Begin function raspicamcontrol_set_flips
	.p2align	4, 0x90
_raspicamcontrol_set_flips:             ## @raspicamcontrol_set_flips
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_MMAL_PARAMETER_MIRROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_MMAL_PARAM_MIRROR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	$0, -32(%rbp)
	movq	$0, -28(%rbp)
	movl	%esi, %eax
	orl	%edx, %eax
	je	LBB0_6
## %bb.1:
	movq	_MMAL_PARAM_MIRROR_HORIZONTAL@GOTPCREL(%rip), %rax
	testl	%edx, %edx
	je	LBB0_3
## %bb.2:
	movq	_MMAL_PARAM_MIRROR_BOTH@GOTPCREL(%rip), %rax
LBB0_3:
	testl	%esi, %esi
	jne	LBB0_5
## %bb.4:
	movq	_MMAL_PARAM_MIRROR_VERTICAL@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
LBB0_6:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leaq	-40(%rbp), %r14
	movq	%r14, %rsi
	callq	_mmal_port_parameter_set
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	movq	%r14, %rsi
	callq	_mmal_port_parameter_set
	movq	(%rbx), %rax
	movl	8(%rax), %edi
	movq	%r14, %rsi
	callq	_mmal_port_parameter_set
	movl	%eax, %edi
	callq	_mmal_status_to_int
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_PARAMETER_MIRROR,4,2      ## @MMAL_PARAMETER_MIRROR
	.comm	_MMAL_PARAM_MIRROR_NONE,4,2     ## @MMAL_PARAM_MIRROR_NONE
	.comm	_MMAL_PARAM_MIRROR_BOTH,4,2     ## @MMAL_PARAM_MIRROR_BOTH
	.comm	_MMAL_PARAM_MIRROR_HORIZONTAL,4,2 ## @MMAL_PARAM_MIRROR_HORIZONTAL
	.comm	_MMAL_PARAM_MIRROR_VERTICAL,4,2 ## @MMAL_PARAM_MIRROR_VERTICAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_raspicamcontrol_set_flips      ; -- Begin function raspicamcontrol_set_flips
	.p2align	2
_raspicamcontrol_set_flips:             ; @raspicamcontrol_set_flips
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, _MMAL_PARAMETER_MIRROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_PARAMETER_MIRROR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MMAL_PARAM_MIRROR_NONE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MMAL_PARAM_MIRROR_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #8]
	str	wzr, [sp, #16]
	stur	xzr, [sp, #20]
	orr	w8, w1, w2
	cbz	w8, LBB0_2
; %bb.1:
	cmp	w2, #0
	ccmp	w1, #0, #4, ne
Lloh6:
	adrp	x8, _MMAL_PARAM_MIRROR_BOTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MMAL_PARAM_MIRROR_BOTH@GOTPAGEOFF]
Lloh8:
	adrp	x9, _MMAL_PARAM_MIRROR_HORIZONTAL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MMAL_PARAM_MIRROR_HORIZONTAL@GOTPAGEOFF]
	csel	x8, x8, x9, ne
Lloh10:
	adrp	x9, _MMAL_PARAM_MIRROR_VERTICAL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MMAL_PARAM_MIRROR_VERTICAL@GOTPAGEOFF]
	cmp	w1, #0
	csel	x8, x8, x9, ne
	ldr	w8, [x8]
	str	w8, [sp, #12]
LBB0_2:
	ldr	x8, [x19]
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_mmal_port_parameter_set
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	add	x1, sp, #8
	bl	_mmal_port_parameter_set
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	add	x1, sp, #8
	bl	_mmal_port_parameter_set
	bl	_mmal_status_to_int
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_PARAMETER_MIRROR,4,2      ; @MMAL_PARAMETER_MIRROR
	.comm	_MMAL_PARAM_MIRROR_NONE,4,2     ; @MMAL_PARAM_MIRROR_NONE
	.comm	_MMAL_PARAM_MIRROR_BOTH,4,2     ; @MMAL_PARAM_MIRROR_BOTH
	.comm	_MMAL_PARAM_MIRROR_HORIZONTAL,4,2 ; @MMAL_PARAM_MIRROR_HORIZONTAL
	.comm	_MMAL_PARAM_MIRROR_VERTICAL,4,2 ; @MMAL_PARAM_MIRROR_VERTICAL
.subsections_via_symbols
