	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_raspicamcontrol_set_all_parameters ## -- Begin function raspicamcontrol_set_all_parameters
	.p2align	4, 0x90
_raspicamcontrol_set_all_parameters:    ## @raspicamcontrol_set_all_parameters
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	132(%rsi), %esi
	callq	_raspicamcontrol_set_saturation
	movl	%eax, %r15d
	movl	128(%rbx), %esi
	movq	%r14, %rdi
	callq	_raspicamcontrol_set_sharpness
	movq	%rax, %r12
	addl	%r15d, %r12d
	movl	124(%rbx), %esi
	movq	%r14, %rdi
	callq	_raspicamcontrol_set_contrast
	movq	%rax, %r15
	addl	%r12d, %r15d
	movl	120(%rbx), %esi
	movq	%r14, %rdi
	callq	_raspicamcontrol_set_brightness
	movq	%rax, %r12
	addl	%r15d, %r12d
	movl	116(%rbx), %esi
	movq	%r14, %rdi
	callq	_raspicamcontrol_set_ISO
	movq	%rax, %r15
	addl	%r12d, %r15d
	movl	112(%rbx), %esi
	movq	%r14, %rdi
	callq	_raspicamcontrol_set_video_stabilisation
	movq	%rax, %r12
	addl	%r15d, %r12d
	movl	108(%rbx), %esi
	movq	%r14, %rdi
	callq	_raspicamcontrol_set_exposure_compensation
	movq	%rax, %r15
	addl	%r12d, %r15d
	movl	104(%rbx), %esi
	movq	%r14, %rdi
	callq	_raspicamcontrol_set_exposure_mode
	movq	%rax, %r12
	addl	%r15d, %r12d
	movl	100(%rbx), %esi
	movq	%r14, %rdi
	callq	_raspicamcontrol_set_flicker_avoid_mode
	movq	%rax, %r15
	addl	%r12d, %r15d
	movl	96(%rbx), %esi
	movq	%r14, %rdi
	callq	_raspicamcontrol_set_metering_mode
	movq	%rax, %r12
	addl	%r15d, %r12d
	movl	92(%rbx), %esi
	movq	%r14, %rdi
	callq	_raspicamcontrol_set_awb_mode
	movq	%rax, %r15
	addl	%r12d, %r15d
	movl	84(%rbx), %edx
	movl	88(%rbx), %esi
	movq	%r14, %rdi
	callq	_raspicamcontrol_set_awb_gains
	movq	%rax, %r12
	addl	%r15d, %r12d
	movl	80(%rbx), %esi
	movq	%r14, %rdi
	callq	_raspicamcontrol_set_imageFX
	movq	%rax, %r15
	addl	%r12d, %r15d
	leaq	76(%rbx), %rsi
	movq	%r14, %rdi
	callq	_raspicamcontrol_set_colourFX
	movq	%rax, %r12
	addl	%r15d, %r12d
	movl	72(%rbx), %esi
	movq	%r14, %rdi
	callq	_raspicamcontrol_set_rotation
	movq	%rax, %r15
	addl	%r12d, %r15d
	movl	64(%rbx), %edx
	movl	68(%rbx), %esi
	movq	%r14, %rdi
	callq	_raspicamcontrol_set_flips
	movq	%rax, %r12
	addl	%r15d, %r12d
	movl	60(%rbx), %esi
	movq	%r14, %rdi
	callq	_raspicamcontrol_set_ROI
	movq	%rax, %r15
	addl	%r12d, %r15d
	movl	56(%rbx), %esi
	movq	%r14, %rdi
	callq	_raspicamcontrol_set_shutter_speed
	movq	%rax, %r12
	addl	%r15d, %r12d
	movl	52(%rbx), %esi
	movq	%r14, %rdi
	callq	_raspicamcontrol_set_DRC
	movq	%rax, %r13
	addl	%r12d, %r13d
	movl	48(%rbx), %esi
	movq	%r14, %rdi
	callq	_raspicamcontrol_set_stats_pass
	movq	%rax, %r15
	addl	%r13d, %r15d
	movl	44(%rbx), %esi
	movl	40(%rbx), %edx
	movl	36(%rbx), %ecx
	movl	32(%rbx), %r8d
	movl	28(%rbx), %r9d
	movl	24(%rbx), %r10d
	movl	16(%rbx), %eax
	movl	20(%rbx), %r11d
	subq	$8, %rsp
	movq	%r14, %rdi
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_raspicamcontrol_set_annotate
	addq	$32, %rsp
	movq	%rax, %r12
	addl	%r15d, %r12d
	movl	8(%rbx), %edx
	movl	12(%rbx), %esi
	movq	%r14, %rdi
	callq	_raspicamcontrol_set_gains
	movq	%rax, %r15
	addl	%r12d, %r15d
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.1:
	movq	_MMAL_PARAMETER_CHANGE_EVENT_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	leaq	-60(%rbp), %rsi
	movq	_MMAL_PARAMETER_CAMERA_SETTINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movl	$1, -56(%rbp)
	movq	$0, -52(%rbp)
	movl	(%r14), %edi
	callq	_mmal_port_parameter_set
	movq	%rax, %rbx
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_vcos_log_error
LBB0_3:
	addl	%ebx, %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_PARAMETER_CHANGE_EVENT_REQUEST,4,2 ## @MMAL_PARAMETER_CHANGE_EVENT_REQUEST
	.comm	_MMAL_PARAMETER_CAMERA_SETTINGS,4,2 ## @MMAL_PARAMETER_CAMERA_SETTINGS
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No camera settings events"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_raspicamcontrol_set_all_parameters ; -- Begin function raspicamcontrol_set_all_parameters
	.p2align	2
_raspicamcontrol_set_all_parameters:    ; @raspicamcontrol_set_all_parameters
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w1, [x1, #132]
	bl	_raspicamcontrol_set_saturation
	mov	x21, x0
	ldr	w1, [x20, #128]
	mov	x0, x19
	bl	_raspicamcontrol_set_sharpness
	add	w21, w21, w0
	ldr	w1, [x20, #124]
	mov	x0, x19
	bl	_raspicamcontrol_set_contrast
	add	w21, w21, w0
	ldr	w1, [x20, #120]
	mov	x0, x19
	bl	_raspicamcontrol_set_brightness
	add	w21, w21, w0
	ldr	w1, [x20, #116]
	mov	x0, x19
	bl	_raspicamcontrol_set_ISO
	add	w21, w21, w0
	ldr	w1, [x20, #112]
	mov	x0, x19
	bl	_raspicamcontrol_set_video_stabilisation
	add	w21, w21, w0
	ldr	w1, [x20, #108]
	mov	x0, x19
	bl	_raspicamcontrol_set_exposure_compensation
	add	w21, w21, w0
	ldr	w1, [x20, #104]
	mov	x0, x19
	bl	_raspicamcontrol_set_exposure_mode
	add	w21, w21, w0
	ldr	w1, [x20, #100]
	mov	x0, x19
	bl	_raspicamcontrol_set_flicker_avoid_mode
	add	w21, w21, w0
	ldr	w1, [x20, #96]
	mov	x0, x19
	bl	_raspicamcontrol_set_metering_mode
	add	w21, w21, w0
	ldr	w1, [x20, #92]
	mov	x0, x19
	bl	_raspicamcontrol_set_awb_mode
	add	w21, w21, w0
	ldp	w2, w1, [x20, #84]
	mov	x0, x19
	bl	_raspicamcontrol_set_awb_gains
	add	w21, w21, w0
	ldr	w1, [x20, #80]
	mov	x0, x19
	bl	_raspicamcontrol_set_imageFX
	add	w21, w21, w0
	add	x1, x20, #76
	mov	x0, x19
	bl	_raspicamcontrol_set_colourFX
	add	w21, w21, w0
	ldr	w1, [x20, #72]
	mov	x0, x19
	bl	_raspicamcontrol_set_rotation
	add	w21, w21, w0
	ldp	w2, w1, [x20, #64]
	mov	x0, x19
	bl	_raspicamcontrol_set_flips
	add	w21, w21, w0
	ldr	w1, [x20, #60]
	mov	x0, x19
	bl	_raspicamcontrol_set_ROI
	add	w21, w21, w0
	ldr	w1, [x20, #56]
	mov	x0, x19
	bl	_raspicamcontrol_set_shutter_speed
	add	w21, w21, w0
	ldr	w1, [x20, #52]
	mov	x0, x19
	bl	_raspicamcontrol_set_DRC
	add	w21, w21, w0
	ldr	w1, [x20, #48]
	mov	x0, x19
	bl	_raspicamcontrol_set_stats_pass
	add	w21, w21, w0
	ldp	w2, w1, [x20, #40]
	ldp	w4, w3, [x20, #32]
	ldp	w6, w5, [x20, #24]
	ldp	w8, w7, [x20, #16]
	str	w8, [sp]
	mov	x0, x19
	bl	_raspicamcontrol_set_annotate
	add	w21, w21, w0
	ldp	w2, w1, [x20, #8]
	mov	x0, x19
	bl	_raspicamcontrol_set_gains
	add	w21, w21, w0
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _MMAL_PARAMETER_CHANGE_EVENT_REQUEST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_PARAMETER_CHANGE_EVENT_REQUEST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	x9, sp, #8
	orr	x1, x9, #0x4
Lloh3:
	adrp	x9, _MMAL_PARAMETER_CAMERA_SETTINGS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MMAL_PARAMETER_CAMERA_SETTINGS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #8]
	mov	w8, #1
	str	w8, [sp, #16]
	stur	xzr, [sp, #20]
	ldr	w0, [x19]
	bl	_mmal_port_parameter_set
	mov	x19, x0
Lloh6:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.2:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_vcos_log_error
LBB0_3:
	add	w21, w21, w19
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_PARAMETER_CHANGE_EVENT_REQUEST,4,2 ; @MMAL_PARAMETER_CHANGE_EVENT_REQUEST
	.comm	_MMAL_PARAMETER_CAMERA_SETTINGS,4,2 ; @MMAL_PARAMETER_CAMERA_SETTINGS
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No camera settings events"

.subsections_via_symbols
