	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function goto_low_power
_goto_low_power:                        ## @goto_low_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_CPIA_COMMAND_GotoLoPower@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_do_command
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	_CPIA_COMMAND_GetCameraStatus@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_do_command
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movq	(%rbx), %rdx
	movq	_LO_POWER_STATE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_3
## %bb.6:
	movq	_D_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	callq	_gspca_dbg
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_3:
	movq	_WARM_BOOT_STATE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_gspca_err
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_printstatus
LBB0_5:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPIA_COMMAND_GotoLoPower,4,2   ## @CPIA_COMMAND_GotoLoPower
	.comm	_CPIA_COMMAND_GetCameraStatus,4,2 ## @CPIA_COMMAND_GetCameraStatus
	.comm	_LO_POWER_STATE,8,3             ## @LO_POWER_STATE
	.comm	_WARM_BOOT_STATE,8,3            ## @WARM_BOOT_STATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected state after lo power cmd: %02x\n"

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

	.no_dead_strip	_goto_low_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function goto_low_power
_goto_low_power:                        ; @goto_low_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_GotoLoPower@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CPIA_COMMAND_GotoLoPower@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:
Lloh3:
	adrp	x8, _CPIA_COMMAND_GetCameraStatus@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CPIA_COMMAND_GetCameraStatus@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_do_command
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	x2, [x19]
Lloh6:
	adrp	x8, _LO_POWER_STATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LO_POWER_STATE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _D_CONF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _D_CONF@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_gspca_dbg
	mov	w0, #0
	b	LBB0_7
LBB0_4:
Lloh14:
	adrp	x8, _WARM_BOOT_STATE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WARM_BOOT_STATE@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x2, x8
	b.eq	LBB0_6
; %bb.5:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_gspca_err
	mov	x0, x19
	mov	x1, x19
	bl	_printstatus
LBB0_6:
Lloh19:
	adrp	x8, _EIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_CPIA_COMMAND_GotoLoPower,4,2   ; @CPIA_COMMAND_GotoLoPower
	.comm	_CPIA_COMMAND_GetCameraStatus,4,2 ; @CPIA_COMMAND_GetCameraStatus
	.comm	_LO_POWER_STATE,8,3             ; @LO_POWER_STATE
	.comm	_WARM_BOOT_STATE,8,3            ; @WARM_BOOT_STATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected state after lo power cmd: %02x\n"

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

	.no_dead_strip	_goto_low_power
.subsections_via_symbols
