	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __sony_pic_camera_on
___sony_pic_camera_on:                  ## @__sony_pic_camera_on
	.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.3:
	movq	_spic_dev@GOTPCREL(%rip), %r14
	xorl	%eax, %eax
	cmpl	$0, (%r14)
	jne	LBB0_36
## %bb.4:
	movl	$100, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$145, %edi
	movl	$1, %esi
	callq	_sony_pic_call2
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$10, %edi
	callq	_msleep
	decl	%ebx
	jne	LBB0_5
LBB0_7:
	movl	$147, %edi
	callq	_sony_pic_call1
	movl	$401, %ebx                      ## imm = 0x191
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	___sony_pic_camera_ready
	testq	%rax, %rax
	jne	LBB0_35
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	$10, %edi
	callq	_msleep
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_8
## %bb.10:
	movl	$100, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	$145, %edi
	movl	$1, %esi
	callq	_sony_pic_call2
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	$10, %edi
	callq	_msleep
	decl	%ebx
	jne	LBB0_11
LBB0_13:
	movl	$147, %edi
	callq	_sony_pic_call1
	movl	$401, %ebx                      ## imm = 0x191
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	___sony_pic_camera_ready
	testq	%rax, %rax
	jne	LBB0_35
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	$10, %edi
	callq	_msleep
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_14
## %bb.16:
	movl	$100, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	$145, %edi
	movl	$1, %esi
	callq	_sony_pic_call2
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	$10, %edi
	callq	_msleep
	decl	%ebx
	jne	LBB0_17
LBB0_19:
	movl	$147, %edi
	callq	_sony_pic_call1
	movl	$401, %ebx                      ## imm = 0x191
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	___sony_pic_camera_ready
	testq	%rax, %rax
	jne	LBB0_35
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	$10, %edi
	callq	_msleep
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_20
## %bb.22:
	movl	$100, %ebx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	$145, %edi
	movl	$1, %esi
	callq	_sony_pic_call2
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	$10, %edi
	callq	_msleep
	decl	%ebx
	jne	LBB0_23
LBB0_25:
	movl	$147, %edi
	callq	_sony_pic_call1
	movl	$401, %ebx                      ## imm = 0x191
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	___sony_pic_camera_ready
	testq	%rax, %rax
	jne	LBB0_35
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	movl	$10, %edi
	callq	_msleep
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_26
## %bb.28:
	movl	$100, %ebx
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movl	$145, %edi
	movl	$1, %esi
	callq	_sony_pic_call2
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	movl	$10, %edi
	callq	_msleep
	decl	%ebx
	jne	LBB0_29
LBB0_31:
	movl	$147, %edi
	callq	_sony_pic_call1
	movl	$401, %ebx                      ## imm = 0x191
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	___sony_pic_camera_ready
	testq	%rax, %rax
	jne	LBB0_35
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	movl	$10, %edi
	callq	_msleep
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_32
## %bb.34:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rdi
LBB0_2:
	callq	_pr_warn
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_36
LBB0_35:
	movq	_SONYPI_CAMERA_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$144, %edi
	movl	$90, %edx
	callq	_sony_pic_call3
	movq	_ITERATIONS_SHORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_wait_on_command
	movl	$1, (%r14)
	xorl	%eax, %eax
LBB0_36:
	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	_spic_dev,4,2                   ## @spic_dev
L_.str.1:                               ## @.str.1
	.asciz	"failed to power on camera\n"

	.comm	_SONYPI_CAMERA_CONTROL,4,2      ## @SONYPI_CAMERA_CONTROL
	.comm	_ITERATIONS_SHORT,4,2           ## @ITERATIONS_SHORT
	.no_dead_strip	___sony_pic_camera_on
.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_on
___sony_pic_camera_on:                  ; @__sony_pic_camera_on
	.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	x19, _spic_dev@GOTPAGE
Lloh4:
	ldr	x19, [x19, _spic_dev@GOTPAGEOFF]
	ldr	w8, [x19]
	cbz	w8, LBB0_5
; %bb.2:
	mov	w0, #0
	b	LBB0_37
LBB0_3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	bl	_pr_warn
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_37
LBB0_5:
	mov	w20, #100
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #145
	mov	w1, #1
	bl	_sony_pic_call2
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #10
	bl	_msleep
	subs	w20, w20, #1
	b.ne	LBB0_6
LBB0_8:
	mov	w0, #147
	bl	_sony_pic_call1
	mov	w20, #401
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	bl	___sony_pic_camera_ready
	cbnz	x0, LBB0_36
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w0, #10
	bl	_msleep
	sub	w20, w20, #1
	cmp	w20, #1
	b.hi	LBB0_9
; %bb.11:
	mov	w20, #100
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #145
	mov	w1, #1
	bl	_sony_pic_call2
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w0, #10
	bl	_msleep
	subs	w20, w20, #1
	b.ne	LBB0_12
LBB0_14:
	mov	w0, #147
	bl	_sony_pic_call1
	mov	w20, #401
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	bl	___sony_pic_camera_ready
	cbnz	x0, LBB0_36
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	w0, #10
	bl	_msleep
	sub	w20, w20, #1
	cmp	w20, #1
	b.hi	LBB0_15
; %bb.17:
	mov	w20, #100
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #145
	mov	w1, #1
	bl	_sony_pic_call2
	cbz	x0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	w0, #10
	bl	_msleep
	subs	w20, w20, #1
	b.ne	LBB0_18
LBB0_20:
	mov	w0, #147
	bl	_sony_pic_call1
	mov	w20, #401
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	bl	___sony_pic_camera_ready
	cbnz	x0, LBB0_36
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	w0, #10
	bl	_msleep
	sub	w20, w20, #1
	cmp	w20, #1
	b.hi	LBB0_21
; %bb.23:
	mov	w20, #100
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #145
	mov	w1, #1
	bl	_sony_pic_call2
	cbz	x0, LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	w0, #10
	bl	_msleep
	subs	w20, w20, #1
	b.ne	LBB0_24
LBB0_26:
	mov	w0, #147
	bl	_sony_pic_call1
	mov	w20, #401
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	bl	___sony_pic_camera_ready
	cbnz	x0, LBB0_36
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	mov	w0, #10
	bl	_msleep
	sub	w20, w20, #1
	cmp	w20, #1
	b.hi	LBB0_27
; %bb.29:
	mov	w20, #100
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #145
	mov	w1, #1
	bl	_sony_pic_call2
	cbz	x0, LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	mov	w0, #10
	bl	_msleep
	subs	w20, w20, #1
	b.ne	LBB0_30
LBB0_32:
	mov	w0, #147
	bl	_sony_pic_call1
	mov	w20, #401
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	bl	___sony_pic_camera_ready
	cbnz	x0, LBB0_36
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=1
	mov	w0, #10
	bl	_msleep
	sub	w20, w20, #1
	cmp	w20, #1
	b.hi	LBB0_33
; %bb.35:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_36:
Lloh12:
	adrp	x8, _SONYPI_CAMERA_CONTROL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SONYPI_CAMERA_CONTROL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w0, #144
	mov	w2, #90
	bl	_sony_pic_call3
Lloh15:
	adrp	x8, _ITERATIONS_SHORT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ITERATIONS_SHORT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_wait_on_command
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
LBB0_37:
	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	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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	_spic_dev,4,2                   ; @spic_dev
l_.str.1:                               ; @.str.1
	.asciz	"failed to power on camera\n"

	.comm	_SONYPI_CAMERA_CONTROL,4,2      ; @SONYPI_CAMERA_CONTROL
	.comm	_ITERATIONS_SHORT,4,2           ; @ITERATIONS_SHORT
	.no_dead_strip	___sony_pic_camera_on
.subsections_via_symbols
