	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __sony_pic_camera_off
___sony_pic_camera_off:                 ## @__sony_pic_camera_off
	.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	_camera@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_SONYPI_CAMERA_PICTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SONYPI_CAMERA_MUTE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$144, %edi
	callq	_sony_pic_call3
	movq	_ITERATIONS_SHORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_wait_on_command
	movq	_spic_dev@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_3
## %bb.4:
	xorl	%ebx, %ebx
	movl	$145, %edi
	xorl	%esi, %esi
	callq	_sony_pic_call2
	movq	$0, (%r14)
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_warn
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_camera,4,2                     ## @camera
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"camera control not enabled\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_SONYPI_CAMERA_PICTURE,4,2      ## @SONYPI_CAMERA_PICTURE
	.comm	_SONYPI_CAMERA_MUTE_MASK,4,2    ## @SONYPI_CAMERA_MUTE_MASK
	.comm	_ITERATIONS_SHORT,4,2           ## @ITERATIONS_SHORT
	.comm	_spic_dev,8,3                   ## @spic_dev
	.no_dead_strip	___sony_pic_camera_off
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __sony_pic_camera_off
___sony_pic_camera_off:                 ; @__sony_pic_camera_off
	.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
Lloh0:
	adrp	x8, _camera@GOTPAGE
Lloh1:
	ldr	x8, [x8, _camera@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _SONYPI_CAMERA_PICTURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SONYPI_CAMERA_PICTURE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _SONYPI_CAMERA_MUTE_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SONYPI_CAMERA_MUTE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w0, #144
	bl	_sony_pic_call3
Lloh9:
	adrp	x8, _ITERATIONS_SHORT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ITERATIONS_SHORT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_wait_on_command
Lloh12:
	adrp	x19, _spic_dev@GOTPAGE
Lloh13:
	ldr	x19, [x19, _spic_dev@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.2:
	mov	w0, #145
	mov	w1, #0
	bl	_sony_pic_call2
	mov	w0, #0
	str	xzr, [x19]
	b	LBB0_5
LBB0_3:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
Lloh16:
	adrp	x8, _ENODEV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	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 AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_camera,4,2                     ; @camera
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"camera control not enabled\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_SONYPI_CAMERA_PICTURE,4,2      ; @SONYPI_CAMERA_PICTURE
	.comm	_SONYPI_CAMERA_MUTE_MASK,4,2    ; @SONYPI_CAMERA_MUTE_MASK
	.comm	_ITERATIONS_SHORT,4,2           ; @ITERATIONS_SHORT
	.comm	_spic_dev,8,3                   ; @spic_dev
	.no_dead_strip	___sony_pic_camera_off
.subsections_via_symbols
