	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_pan_tilt
_store_pan_tilt:                        ## @store_pan_tilt
	.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	%rdx, %r14
	callq	_cd_to_pwc
	movq	%rax, %r15
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	$5, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	leaq	-32(%rbp), %rdx
	leaq	-28(%rbp), %rcx
	movq	%r14, %rdi
	callq	_sscanf
	testq	%rax, %rax
	jle	LBB0_3
## %bb.4:
	movl	-32(%rbp), %esi
	movl	-28(%rbp), %edx
	movq	%r15, %rdi
	callq	_pwc_mpt_set_angle
	jmp	LBB0_5
LBB0_1:
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_pwc_mpt_reset
LBB0_5:
	movl	%eax, %ebx
	testl	%ebx, %ebx
	js	LBB0_8
LBB0_7:
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	negl	%ebx
	testl	%ebx, %ebx
	jns	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reset"

L_.str.1:                               ## @.str.1
	.asciz	"%d %d"

	.no_dead_strip	_store_pan_tilt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_pan_tilt
_store_pan_tilt:                        ; @store_pan_tilt
	.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	x19, x2
	bl	_cd_to_pwc
	mov	x20, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #5
	bl	_strncmp
	cbz	x0, LBB0_3
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x19
	bl	_sscanf
	cmp	x0, #1
	b.lt	LBB0_6
; %bb.2:
	ldp	w2, w1, [sp, #8]
	mov	x0, x20
	bl	_pwc_mpt_set_angle
	tbz	w0, #31, LBB0_4
	b	LBB0_5
LBB0_3:
	mov	x0, x20
	mov	w1, #3
	bl	_pwc_mpt_reset
	tbnz	w0, #31, LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_strlen
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
LBB0_6:
	neg	w0, w21
	tbz	w0, #31, LBB0_4
	b	LBB0_5
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reset"

l_.str.1:                               ; @.str.1
	.asciz	"%d %d"

	.no_dead_strip	_store_pan_tilt
.subsections_via_symbols
