	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sony_pic_camera_command        ## -- Begin function sony_pic_camera_command
	.p2align	4, 0x90
_sony_pic_camera_command:               ## @sony_pic_camera_command
	.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:
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	_spic_dev@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	leal	-128(%rbx), %eax
	cmpl	$7, %eax
	ja	LBB0_15
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_12:
	movq	_SONYPI_CAMERA_SHARPNESS@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_17
LBB0_15:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_err
	jmp	LBB0_16
LBB0_13:
	movq	_SONYPI_CAMERA_PICTURE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_10:
	movq	_SONYPI_CAMERA_HUE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_9:
	movq	_SONYPI_CAMERA_CONTRAST@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_11:
	movq	_SONYPI_CAMERA_COLOR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_SONYPI_CAMERA_BRIGHTNESS@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_14:
	movq	_SONYPI_CAMERA_AGC@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	movl	$144, %edi
	movl	%r14d, %edx
	callq	_sony_pic_call3
	movq	_ITERATIONS_SHORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_wait_on_command
LBB0_16:
	movq	_spic_dev@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
LBB0_17:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.5:
	callq	___sony_pic_camera_on
	jmp	LBB0_16
LBB0_6:
	callq	___sony_pic_camera_off
	jmp	LBB0_16
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_7
	.long	L0_0_set_14
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_camera,4,2                     ## @camera
	.comm	_EIO,4,2                        ## @EIO
	.comm	_spic_dev,4,2                   ## @spic_dev
	.comm	_SONYPI_CAMERA_BRIGHTNESS,4,2   ## @SONYPI_CAMERA_BRIGHTNESS
	.comm	_ITERATIONS_SHORT,4,2           ## @ITERATIONS_SHORT
	.comm	_SONYPI_CAMERA_CONTRAST,4,2     ## @SONYPI_CAMERA_CONTRAST
	.comm	_SONYPI_CAMERA_HUE,4,2          ## @SONYPI_CAMERA_HUE
	.comm	_SONYPI_CAMERA_COLOR,4,2        ## @SONYPI_CAMERA_COLOR
	.comm	_SONYPI_CAMERA_SHARPNESS,4,2    ## @SONYPI_CAMERA_SHARPNESS
	.comm	_SONYPI_CAMERA_PICTURE,4,2      ## @SONYPI_CAMERA_PICTURE
	.comm	_SONYPI_CAMERA_AGC,4,2          ## @SONYPI_CAMERA_AGC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sony_pic_camera_command invalid: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sony_pic_camera_command        ; -- Begin function sony_pic_camera_command
	.p2align	2
_sony_pic_camera_command:               ; @sony_pic_camera_command
	.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_4
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh3:
	adrp	x0, _spic_dev@GOTPAGE
Lloh4:
	ldr	x0, [x0, _spic_dev@GOTPAGEOFF]
	bl	_mutex_lock
	sub	w8, w20, #128
	cmp	w8, #7
	b.hi	LBB0_5
; %bb.2:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh7:
	adrp	x8, _SONYPI_CAMERA_SHARPNESS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SONYPI_CAMERA_SHARPNESS@GOTPAGEOFF]
	b	LBB0_12
LBB0_4:
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_5:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_pr_err
	b	LBB0_13
LBB0_6:
Lloh14:
	adrp	x8, _SONYPI_CAMERA_PICTURE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SONYPI_CAMERA_PICTURE@GOTPAGEOFF]
	b	LBB0_12
LBB0_7:
Lloh16:
	adrp	x8, _SONYPI_CAMERA_HUE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SONYPI_CAMERA_HUE@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
Lloh18:
	adrp	x8, _SONYPI_CAMERA_CONTRAST@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SONYPI_CAMERA_CONTRAST@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
Lloh20:
	adrp	x8, _SONYPI_CAMERA_COLOR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SONYPI_CAMERA_COLOR@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh22:
	adrp	x8, _SONYPI_CAMERA_BRIGHTNESS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SONYPI_CAMERA_BRIGHTNESS@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh24:
	adrp	x8, _SONYPI_CAMERA_AGC@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SONYPI_CAMERA_AGC@GOTPAGEOFF]
LBB0_12:
	ldr	w1, [x8]
	mov	w0, #144
	mov	x2, x19
	bl	_sony_pic_call3
Lloh26:
	adrp	x8, _ITERATIONS_SHORT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ITERATIONS_SHORT@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_wait_on_command
LBB0_13:
Lloh29:
	adrp	x0, _spic_dev@GOTPAGE
Lloh30:
	ldr	x0, [x0, _spic_dev@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_15:
	cbz	w19, LBB0_17
; %bb.16:
	bl	___sony_pic_camera_on
	b	LBB0_13
LBB0_17:
	bl	___sony_pic_camera_off
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_15-LBB0_3)>>2
                                        ; -- End function
	.comm	_camera,4,2                     ; @camera
	.comm	_EIO,4,2                        ; @EIO
	.comm	_spic_dev,4,2                   ; @spic_dev
	.comm	_SONYPI_CAMERA_BRIGHTNESS,4,2   ; @SONYPI_CAMERA_BRIGHTNESS
	.comm	_ITERATIONS_SHORT,4,2           ; @ITERATIONS_SHORT
	.comm	_SONYPI_CAMERA_CONTRAST,4,2     ; @SONYPI_CAMERA_CONTRAST
	.comm	_SONYPI_CAMERA_HUE,4,2          ; @SONYPI_CAMERA_HUE
	.comm	_SONYPI_CAMERA_COLOR,4,2        ; @SONYPI_CAMERA_COLOR
	.comm	_SONYPI_CAMERA_SHARPNESS,4,2    ; @SONYPI_CAMERA_SHARPNESS
	.comm	_SONYPI_CAMERA_PICTURE,4,2      ; @SONYPI_CAMERA_PICTURE
	.comm	_SONYPI_CAMERA_AGC,4,2          ; @SONYPI_CAMERA_AGC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sony_pic_camera_command invalid: %d\n"

.subsections_via_symbols
