	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function goto_high_power
_goto_high_power:                       ## @goto_high_power
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_CPIA_COMMAND_GotoHiPower@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_do_command
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_2:
	movl	$40, %edi
	callq	_msleep_interruptible
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_EINTR@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_CPIA_COMMAND_GetCameraStatus@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_do_command
	testq	%rax, %rax
	jne	LBB0_1
## %bb.5:
	movq	(%r14), %rax
	movq	_HI_POWER_STATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdi
	callq	_DBG
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_7:
	movq	%r14, %rdi
	callq	_printstatus
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_CPIA_COMMAND_GotoHiPower,4,2   ## @CPIA_COMMAND_GotoHiPower
	.comm	_EIO,4,2                        ## @EIO
	.comm	_current,4,2                    ## @current
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_CPIA_COMMAND_GetCameraStatus,4,2 ## @CPIA_COMMAND_GetCameraStatus
	.comm	_HI_POWER_STATE,8,3             ## @HI_POWER_STATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"camera now in HIGH power state\n"

	.no_dead_strip	_goto_high_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function goto_high_power
_goto_high_power:                       ; @goto_high_power
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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, _CPIA_COMMAND_GotoHiPower@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CPIA_COMMAND_GotoHiPower@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_do_command
	cbz	x0, LBB0_2
LBB0_1:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	w0, #40
	bl	_msleep_interruptible
Lloh5:
	adrp	x8, _current@GOTPAGE
Lloh6:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_signal_pending
	cbz	x0, LBB0_6
; %bb.3:
Lloh8:
	adrp	x8, _EINTR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh10:
	adrp	x8, _CPIA_COMMAND_GetCameraStatus@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CPIA_COMMAND_GetCameraStatus@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_do_command
	cbnz	x0, LBB0_1
; %bb.7:
	ldr	x8, [x19]
Lloh13:
	adrp	x9, _HI_POWER_STATE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _HI_POWER_STATE@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG
	mov	w0, #0
	b	LBB0_5
LBB0_9:
	mov	x0, x19
	bl	_printstatus
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CPIA_COMMAND_GotoHiPower,4,2   ; @CPIA_COMMAND_GotoHiPower
	.comm	_EIO,4,2                        ; @EIO
	.comm	_current,4,2                    ; @current
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_CPIA_COMMAND_GetCameraStatus,4,2 ; @CPIA_COMMAND_GetCameraStatus
	.comm	_HI_POWER_STATE,8,3             ; @HI_POWER_STATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"camera now in HIGH power state\n"

	.no_dead_strip	_goto_high_power
.subsections_via_symbols
