	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function raspicamcontrol_set_gains
LCPI0_0:
	.long	0x47800000                      ## float 65536
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_raspicamcontrol_set_gains
	.p2align	4, 0x90
_raspicamcontrol_set_gains:             ## @raspicamcontrol_set_gains
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movss	%xmm1, -12(%rbp)                ## 4-byte Spill
	mulss	LCPI0_0(%rip), %xmm0
	cvttss2si	%xmm0, %rdx
	movl	(%rdi), %edi
	movq	_MMAL_PARAMETER_ANALOG_GAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shlq	$32, %rdx
	xorl	%ecx, %ecx
	callq	_mmal_port_parameter_set_rational
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movss	-12(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	mulss	LCPI0_0(%rip), %xmm0
	cvttss2si	%xmm0, %rdx
	movl	(%rbx), %edi
	movq	_MMAL_PARAMETER_DIGITAL_GAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shlq	$32, %rdx
	xorl	%ecx, %ecx
	callq	_mmal_port_parameter_set_rational
LBB0_3:
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mmal_status_to_int             ## TAILCALL
LBB0_4:
	movl	$1, %eax
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_PARAMETER_ANALOG_GAIN,4,2 ## @MMAL_PARAMETER_ANALOG_GAIN
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.comm	_MMAL_PARAMETER_DIGITAL_GAIN,4,2 ## @MMAL_PARAMETER_DIGITAL_GAIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_raspicamcontrol_set_gains      ; -- Begin function raspicamcontrol_set_gains
	.p2align	2
_raspicamcontrol_set_gains:             ; @raspicamcontrol_set_gains
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_4
; %bb.1:
	stp	d9, d8, [sp, #-48]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	fmov	s8, s1
	mov	x19, x0
	fcvtzu	w8, s0, #16
	ldr	w0, [x0]
Lloh0:
	adrp	x9, _MMAL_PARAMETER_ANALOG_GAIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMAL_PARAMETER_ANALOG_GAIN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	lsl	x2, x8, #32
	mov	x3, #0
	bl	_mmal_port_parameter_set_rational
Lloh3:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
	fcvtzu	w8, s8, #16
	ldr	w0, [x19]
Lloh6:
	adrp	x9, _MMAL_PARAMETER_DIGITAL_GAIN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MMAL_PARAMETER_DIGITAL_GAIN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	lsl	x2, x8, #32
	mov	x3, #0
	bl	_mmal_port_parameter_set_rational
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	b	_mmal_status_to_int
LBB0_4:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value b8
	.cfi_same_value b9
	mov	w0, #1
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_PARAMETER_ANALOG_GAIN,4,2 ; @MMAL_PARAMETER_ANALOG_GAIN
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.comm	_MMAL_PARAMETER_DIGITAL_GAIN,4,2 ; @MMAL_PARAMETER_DIGITAL_GAIN
.subsections_via_symbols
