	.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	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_do_command
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movl	$40, %edi
	callq	_msleep_interruptible
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_EINTR@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_3:
	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
	movq	(%r14), %rdx
	movq	_HI_POWER_STATE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_5
## %bb.4:
	movq	_D_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_PDEBUG
	jmp	LBB0_7
LBB0_5:
	movq	_D_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_PDEBUG
	movq	%r14, %rdi
	callq	_printstatus
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_6:
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPIA_COMMAND_GotoHiPower,4,2   ## @CPIA_COMMAND_GotoHiPower
	.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
	.comm	_D_ERR,4,2                      ## @D_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected state after hi power cmd: %02x"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_D_CONF,4,2                     ## @D_CONF
L_.str.1:                               ## @.str.1
	.asciz	"camera now in HIGH power state"

	.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:
	sub	sp, sp, #48
	.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
	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
	cbnz	w0, LBB0_7
; %bb.1:
	mov	w0, #40
	bl	_msleep_interruptible
Lloh3:
	adrp	x8, _current@GOTPAGE
Lloh4:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_signal_pending
	cbz	x0, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _EINTR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh8:
	adrp	x8, _CPIA_COMMAND_GetCameraStatus@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CPIA_COMMAND_GetCameraStatus@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_do_command
	ldr	x8, [x19]
Lloh11:
	adrp	x9, _HI_POWER_STATE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HI_POWER_STATE@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh14:
	adrp	x8, _D_CONF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _D_CONF@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_PDEBUG
	mov	w0, #0
	b	LBB0_7
LBB0_5:
Lloh19:
	adrp	x9, _D_ERR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _D_ERR@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PDEBUG
	mov	x0, x19
	bl	_printstatus
Lloh24:
	adrp	x8, _EIO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_CPIA_COMMAND_GotoHiPower,4,2   ; @CPIA_COMMAND_GotoHiPower
	.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
	.comm	_D_ERR,4,2                      ; @D_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected state after hi power cmd: %02x"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_D_CONF,4,2                     ; @D_CONF
l_.str.1:                               ; @.str.1
	.asciz	"camera now in HIGH power state"

	.no_dead_strip	_goto_high_power
.subsections_via_symbols
