	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_raspicamcontrol_set_rotation   ## -- Begin function raspicamcontrol_set_rotation
	.p2align	4, 0x90
_raspicamcontrol_set_rotation:          ## @raspicamcontrol_set_rotation
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movslq	%esi, %rbx
	imulq	$-1240768329, %rbx, %rax        ## imm = 0xB60B60B7
	shrq	$32, %rax
	addl	%ebx, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	sarl	$8, %eax
	addl	%ecx, %eax
	imull	$360, %eax, %eax                ## imm = 0x168
	subl	%eax, %ebx
	movswl	%bx, %eax
	imull	$11651, %eax, %eax              ## imm = 0x2D83
	movl	%eax, %ecx
	shrl	$31, %ecx
	sarl	$20, %eax
	addl	%ecx, %eax
	imull	$90, %eax, %eax
	movl	%ebx, %ecx
	subl	%eax, %ecx
	movswl	%cx, %eax
	subl	%eax, %ebx
	movq	(%rdi), %rax
	movl	(%rax), %edi
	movq	_MMAL_PARAMETER_ROTATION@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%ebx, %edx
	callq	_mmal_port_parameter_set_int32
	movl	%eax, %r15d
	movq	(%r14), %rax
	movl	4(%rax), %edi
	movl	(%r12), %esi
	movl	%ebx, %edx
	callq	_mmal_port_parameter_set_int32
	movq	(%r14), %rax
	movl	8(%rax), %edi
	movl	(%r12), %esi
	movl	%ebx, %edx
	callq	_mmal_port_parameter_set_int32
	movl	%r15d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmal_status_to_int             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_PARAMETER_ROTATION,4,2    ## @MMAL_PARAMETER_ROTATION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_raspicamcontrol_set_rotation   ; -- Begin function raspicamcontrol_set_rotation
	.p2align	2
_raspicamcontrol_set_rotation:          ; @raspicamcontrol_set_rotation
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	mov	w8, #24759
	movk	w8, #46603, lsl #16
	smull	x8, w1, w8
	lsr	x8, x8, #32
	add	w8, w8, w1
	asr	w9, w8, #8
	add	w8, w9, w8, lsr #31
	mov	w9, #360
	msub	w8, w8, w9, w1
	sxth	w9, w8
	mov	w10, #11651
	mul	w9, w9, w10
	asr	w10, w9, #20
	add	w9, w10, w9, lsr #31
	mov	w10, #90
	msub	w9, w9, w10, w8
	sub	w20, w8, w9, sxth
	ldr	x8, [x0]
	ldr	w0, [x8]
Lloh0:
	adrp	x22, _MMAL_PARAMETER_ROTATION@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MMAL_PARAMETER_ROTATION@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x2, x20
	bl	_mmal_port_parameter_set_int32
	mov	x21, x0
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	ldr	w1, [x22]
	mov	x2, x20
	bl	_mmal_port_parameter_set_int32
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	ldr	w1, [x22]
	mov	x2, x20
	bl	_mmal_port_parameter_set_int32
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mmal_status_to_int
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_PARAMETER_ROTATION,4,2    ; @MMAL_PARAMETER_ROTATION
.subsections_via_symbols
