	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init
_init:                                  ## @init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	$-1, (%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_write_reg
	testl	%eax, %eax
	js	LBB0_46
## %bb.1:
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_write_reg
	testl	%eax, %eax
	js	LBB0_46
## %bb.2:
	movq	%rbx, %rdi
	movl	$2, %esi
	movl	$16, %edx
	callq	_write_reg
	testl	%eax, %eax
	js	LBB0_46
## %bb.3:
	movq	%rbx, %rdi
	movl	$3, %esi
	xorl	%edx, %edx
	callq	_write_reg
	testl	%eax, %eax
	js	LBB0_46
## %bb.4:
	movq	%rbx, %rdi
	movl	$5, %esi
	movl	$255, %edx
	callq	_write_reg
	testl	%eax, %eax
	js	LBB0_46
## %bb.5:
	movq	%rbx, %rdi
	movl	$6, %esi
	movl	$31, %edx
	callq	_write_reg
	testl	%eax, %eax
	js	LBB0_46
## %bb.6:
	movq	%rbx, %rdi
	movl	$7, %esi
	movl	$31, %edx
	callq	_write_reg
	testl	%eax, %eax
	js	LBB0_46
## %bb.7:
	movq	%rbx, %rdi
	movl	$8, %esi
	movl	$40, %edx
	callq	_write_reg
	testl	%eax, %eax
	js	LBB0_46
## %bb.8:
	movq	%rbx, %rdi
	movl	$20, %esi
	movl	$32, %edx
	callq	_write_reg
	testl	%eax, %eax
	js	LBB0_46
## %bb.9:
	movq	%rbx, %rdi
	movl	$10, %esi
	movl	$167, %edx
	callq	_write_reg
	testl	%eax, %eax
	js	LBB0_46
## %bb.10:
	movq	%rbx, %rdi
	movl	$11, %esi
	movl	$51, %edx
	callq	_write_reg
	testl	%eax, %eax
	js	LBB0_46
## %bb.11:
	movq	%rbx, %rdi
	movl	$12, %esi
	movl	$51, %edx
	callq	_write_reg
	testl	%eax, %eax
	js	LBB0_46
## %bb.12:
	movq	%rbx, %rdi
	movl	$20, %esi
	xorl	%edx, %edx
	movl	$15, %ecx
	callq	_write_regm
	testl	%eax, %eax
	js	LBB0_46
## %bb.13:
	movl	4(%rbx), %edx
	movq	%rbx, %rdi
	movl	$21, %esi
	callq	_write_reg
	testl	%eax, %eax
	js	LBB0_46
## %bb.14:
	movq	%rbx, %rdi
	movl	$22, %esi
	xorl	%edx, %edx
	movl	$15, %ecx
	callq	_write_regm
	testl	%eax, %eax
	js	LBB0_46
## %bb.15:
	movl	8(%rbx), %edx
	movq	%rbx, %rdi
	movl	$23, %esi
	callq	_write_reg
	testl	%eax, %eax
	js	LBB0_46
## %bb.16:
	movl	24(%rbx), %eax
	cmpl	$1, %eax
	je	LBB0_25
## %bb.17:
	cmpl	$2, %eax
	jne	LBB0_32
## %bb.18:
	movl	28(%rbx), %r15d
	cmpq	$0, 32(%rbx)
	je	LBB0_20
## %bb.19:
	movq	%rbx, %rdi
	movl	$9, %esi
	movl	$111, %edx
	jmp	LBB0_21
LBB0_25:
	cmpq	$0, 32(%rbx)
	je	LBB0_27
## %bb.26:
	movq	%rbx, %rdi
	movl	$9, %esi
	movl	$111, %edx
	jmp	LBB0_28
LBB0_32:
	cmpq	$0, 32(%rbx)
	je	LBB0_34
## %bb.33:
	movq	%rbx, %rdi
	movl	$9, %esi
	movl	$79, %edx
	jmp	LBB0_35
LBB0_20:
	movq	%rbx, %rdi
	movl	$9, %esi
	movl	$109, %edx
LBB0_21:
	callq	_write_reg
	testl	%eax, %eax
	js	LBB0_46
## %bb.22:
	movq	%rbx, %rdi
	movl	$32, %esi
	movl	$8, %edx
	callq	_write_reg
	testl	%eax, %eax
	js	LBB0_46
## %bb.23:
	shll	$13, %r15d
	addl	$71999, %r15d                   ## imm = 0x1193F
	movslq	%r15d, %rax
	imulq	$1954687339, %rax, %rcx         ## imm = 0x7482296B
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$47, %rcx
	addl	%eax, %ecx
	movq	%rcx, %r15
	movzbl	%ch, %edx
	movq	%rbx, %rdi
	movl	$33, %esi
	callq	_write_reg
	testl	%eax, %eax
	js	LBB0_46
## %bb.24:
	movzbl	%r15b, %edx
	movq	%rbx, %rdi
	movl	$34, %esi
	jmp	LBB0_39
LBB0_27:
	movq	%rbx, %rdi
	movl	$9, %esi
	movl	$109, %edx
LBB0_28:
	callq	_write_reg
	testl	%eax, %eax
	js	LBB0_46
## %bb.29:
	movq	%rbx, %rdi
	movl	$32, %esi
	movl	$104, %edx
	callq	_write_reg
	testl	%eax, %eax
	js	LBB0_46
## %bb.30:
	movq	%rbx, %rdi
	movl	$33, %esi
	xorl	%edx, %edx
	callq	_write_reg
	testl	%eax, %eax
	js	LBB0_46
## %bb.31:
	movq	%rbx, %rdi
	movl	$34, %esi
	movl	$2, %edx
	jmp	LBB0_39
LBB0_34:
	movq	%rbx, %rdi
	movl	$9, %esi
	movl	$77, %edx
LBB0_35:
	callq	_write_reg
	testl	%eax, %eax
	js	LBB0_46
## %bb.36:
	movq	%rbx, %rdi
	movl	$32, %esi
	movl	$40, %edx
	callq	_write_reg
	testl	%eax, %eax
	js	LBB0_46
## %bb.37:
	movq	%rbx, %rdi
	movl	$33, %esi
	xorl	%edx, %edx
	callq	_write_reg
	testl	%eax, %eax
	js	LBB0_46
## %bb.38:
	movq	%rbx, %rdi
	movl	$34, %esi
	movl	$7, %edx
LBB0_39:
	callq	_write_reg
	testl	%eax, %eax
	js	LBB0_46
## %bb.40:
	movq	%rbx, %rdi
	movl	$32, %esi
	movl	$128, %edx
	movl	$128, %ecx
	callq	_write_regm
	testl	%eax, %eax
	js	LBB0_46
## %bb.41:
	movq	%rbx, %rdi
	movl	$3, %esi
	movl	$2, %edx
	movl	$2, %ecx
	callq	_write_regm
	testl	%eax, %eax
	js	LBB0_46
## %bb.42:
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$4, %edx
	callq	_write_reg
	testl	%eax, %eax
	js	LBB0_46
## %bb.43:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$49, %edx
	callq	_write_reg
	testl	%eax, %eax
	js	LBB0_46
## %bb.44:
	movq	%rbx, %rdi
	movl	$9, %esi
	movl	$8, %edx
	movl	$8, %ecx
	callq	_write_regm
	testl	%eax, %eax
	js	LBB0_46
## %bb.45:
	movl	$-1, 12(%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_cam_mode
LBB0_46:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init
_init:                                  ; @init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_mutex_lock
	mov	w8, #-1
	str	w8, [x20]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	bl	_write_reg
	tbnz	w0, #31, LBB0_46
; %bb.1:
	mov	x0, x20
	mov	w1, #1
	mov	w2, #0
	bl	_write_reg
	tbnz	w0, #31, LBB0_46
; %bb.2:
	mov	x0, x20
	mov	w1, #2
	mov	w2, #16
	bl	_write_reg
	tbnz	w0, #31, LBB0_46
; %bb.3:
	mov	x0, x20
	mov	w1, #3
	mov	w2, #0
	bl	_write_reg
	tbnz	w0, #31, LBB0_46
; %bb.4:
	mov	x0, x20
	mov	w1, #5
	mov	w2, #255
	bl	_write_reg
	tbnz	w0, #31, LBB0_46
; %bb.5:
	mov	x0, x20
	mov	w1, #6
	mov	w2, #31
	bl	_write_reg
	tbnz	w0, #31, LBB0_46
; %bb.6:
	mov	x0, x20
	mov	w1, #7
	mov	w2, #31
	bl	_write_reg
	tbnz	w0, #31, LBB0_46
; %bb.7:
	mov	x0, x20
	mov	w1, #8
	mov	w2, #40
	bl	_write_reg
	tbnz	w0, #31, LBB0_46
; %bb.8:
	mov	x0, x20
	mov	w1, #20
	mov	w2, #32
	bl	_write_reg
	tbnz	w0, #31, LBB0_46
; %bb.9:
	mov	x0, x20
	mov	w1, #10
	mov	w2, #167
	bl	_write_reg
	tbnz	w0, #31, LBB0_46
; %bb.10:
	mov	x0, x20
	mov	w1, #11
	mov	w2, #51
	bl	_write_reg
	tbnz	w0, #31, LBB0_46
; %bb.11:
	mov	x0, x20
	mov	w1, #12
	mov	w2, #51
	bl	_write_reg
	tbnz	w0, #31, LBB0_46
; %bb.12:
	mov	x0, x20
	mov	w1, #20
	mov	w2, #0
	mov	w3, #15
	bl	_write_regm
	tbnz	w0, #31, LBB0_46
; %bb.13:
	ldr	w2, [x20, #4]
	mov	x0, x20
	mov	w1, #21
	bl	_write_reg
	tbnz	w0, #31, LBB0_46
; %bb.14:
	mov	x0, x20
	mov	w1, #22
	mov	w2, #0
	mov	w3, #15
	bl	_write_regm
	tbnz	w0, #31, LBB0_46
; %bb.15:
	ldr	w2, [x20, #8]
	mov	x0, x20
	mov	w1, #23
	bl	_write_reg
	tbnz	w0, #31, LBB0_46
; %bb.16:
	ldr	w8, [x20, #24]
	cmp	w8, #1
	b.eq	LBB0_20
; %bb.17:
	cmp	w8, #2
	b.ne	LBB0_22
; %bb.18:
	ldr	w21, [x20, #28]
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_24
; %bb.19:
	mov	x0, x20
	mov	w1, #9
	mov	w2, #111
	b	LBB0_25
LBB0_20:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_29
; %bb.21:
	mov	x0, x20
	mov	w1, #9
	mov	w2, #111
	b	LBB0_30
LBB0_22:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_34
; %bb.23:
	mov	x0, x20
	mov	w1, #9
	mov	w2, #79
	b	LBB0_35
LBB0_24:
	mov	x0, x20
	mov	w1, #9
	mov	w2, #109
LBB0_25:
	bl	_write_reg
	tbnz	w0, #31, LBB0_46
; %bb.26:
	mov	x0, x20
	mov	w1, #32
	mov	w2, #8
	bl	_write_reg
	tbnz	w0, #31, LBB0_46
; %bb.27:
	mov	w8, #6463
	movk	w8, #1, lsl #16
	add	w9, w8, w21, lsl #13
	add	w8, w8, #1
	sdiv	w21, w9, w8
	ubfx	w2, w21, #8, #8
	mov	x0, x20
	mov	w1, #33
	bl	_write_reg
	tbnz	w0, #31, LBB0_46
; %bb.28:
	and	w2, w21, #0xff
	mov	x0, x20
	mov	w1, #34
	b	LBB0_39
LBB0_29:
	mov	x0, x20
	mov	w1, #9
	mov	w2, #109
LBB0_30:
	bl	_write_reg
	tbnz	w0, #31, LBB0_46
; %bb.31:
	mov	x0, x20
	mov	w1, #32
	mov	w2, #104
	bl	_write_reg
	tbnz	w0, #31, LBB0_46
; %bb.32:
	mov	x0, x20
	mov	w1, #33
	mov	w2, #0
	bl	_write_reg
	tbnz	w0, #31, LBB0_46
; %bb.33:
	mov	x0, x20
	mov	w1, #34
	mov	w2, #2
	b	LBB0_39
LBB0_34:
	mov	x0, x20
	mov	w1, #9
	mov	w2, #77
LBB0_35:
	bl	_write_reg
	tbnz	w0, #31, LBB0_46
; %bb.36:
	mov	x0, x20
	mov	w1, #32
	mov	w2, #40
	bl	_write_reg
	tbnz	w0, #31, LBB0_46
; %bb.37:
	mov	x0, x20
	mov	w1, #33
	mov	w2, #0
	bl	_write_reg
	tbnz	w0, #31, LBB0_46
; %bb.38:
	mov	x0, x20
	mov	w1, #34
	mov	w2, #7
LBB0_39:
	bl	_write_reg
	tbnz	w0, #31, LBB0_46
; %bb.40:
	mov	x0, x20
	mov	w1, #32
	mov	w2, #128
	mov	w3, #128
	bl	_write_regm
	tbnz	w0, #31, LBB0_46
; %bb.41:
	mov	x0, x20
	mov	w1, #3
	mov	w2, #2
	mov	w3, #2
	bl	_write_regm
	tbnz	w0, #31, LBB0_46
; %bb.42:
	mov	x0, x20
	mov	w1, #1
	mov	w2, #4
	bl	_write_reg
	tbnz	w0, #31, LBB0_46
; %bb.43:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #49
	bl	_write_reg
	tbnz	w0, #31, LBB0_46
; %bb.44:
	mov	x0, x20
	mov	w1, #9
	mov	w2, #8
	mov	w3, #8
	bl	_write_regm
	tbnz	w0, #31, LBB0_46
; %bb.45:
	mov	w8, #-1
	str	w8, [x20, #12]
	mov	x0, x20
	mov	w1, #0
	bl	_cam_mode
LBB0_46:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_init
.subsections_via_symbols
