	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function et8ek8_g_priv_mem
_et8ek8_g_priv_mem:                     ## @et8ek8_g_priv_mem
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_to_et8ek8_sensor
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_v4l2_get_subdevdata
	movq	%rax, %r15
	movq	_ET8EK8_PRIV_MEM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r14), %rbx
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movq	_PRIV_MEM_WIN_SIZE@GOTPCREL(%rip), %rax
	movq	_ET8EK8_REG_8BIT@GOTPCREL(%rip), %r13
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%rdx, %r14
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movl	(%rax), %ebx
	leaq	(,%rbx,8), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movl	(%r13), %esi
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	shrl	$3, %ecx
	orl	$224, %ecx
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_et8ek8_i2c_write_reg
	testl	%eax, %eax
	js	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	movl	$1000, %ebx                     ## imm = 0x3E8
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %esi
	movq	%r15, %rdi
	movl	$3, %edx
	leaq	-68(%rbp), %rcx
	callq	_et8ek8_i2c_read_reg
	testl	%eax, %eax
	js	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	testb	$8, -68(%rbp)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	decl	%ebx
	jne	LBB0_3
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-52(%rbp), %eax                 ## 4-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	andl	$7, %eax
	movq	%r14, %rdx
	leal	(%r14,%rax), %ecx
	movl	$8, %r14d
	subl	%eax, %r14d
	cmpl	$9, %ecx
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	cmovbl	%edx, %r14d
	movl	4(%r15), %ecx
	movl	%ecx, -80(%rbp)
	movq	$0, -88(%rbp)
	movl	$2, -104(%rbp)
	movq	%r12, -96(%rbp)
	movq	_PRIV_MEM_START_REG@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	movzbl	%al, %ecx
                                        ## kill: def $eax killed $eax killed $rax
	sarl	$8, %eax
	cltq
	movq	%rax, (%r12)
	movq	%rcx, 8(%r12)
	movl	(%r15), %edi
	leaq	-104(%rbp), %rbx
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	testl	%eax, %eax
	js	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_ET8EK8_I2C_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mdelay
	movl	4(%r15), %eax
	movl	%eax, -80(%rbp)
	movl	%r14d, -104(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)
	movq	%r12, -96(%rbp)
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	shll	$3, %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
	movl	(%r15), %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	addl	%r14d, -52(%rbp)                ## 4-byte Folded Spill
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	subl	%r14d, %edx
	movslq	%r14d, %rax
	leaq	(%rbx,%rax,8), %rbx
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	movq	_PRIV_MEM_WIN_SIZE@GOTPCREL(%rip), %rax
	jne	LBB0_1
## %bb.11:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_6:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, %rsp
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_14
## %bb.13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ET8EK8_PRIV_MEM_SIZE,4,2       ## @ET8EK8_PRIV_MEM_SIZE
	.comm	_PRIV_MEM_WIN_SIZE,4,2          ## @PRIV_MEM_WIN_SIZE
	.comm	_ET8EK8_REG_8BIT,4,2            ## @ET8EK8_REG_8BIT
	.comm	_EIO,4,2                        ## @EIO
	.comm	_PRIV_MEM_START_REG,8,3         ## @PRIV_MEM_START_REG
	.comm	_ET8EK8_I2C_DELAY,4,2           ## @ET8EK8_I2C_DELAY
	.comm	_I2C_M_RD,8,3                   ## @I2C_M_RD
	.no_dead_strip	_et8ek8_g_priv_mem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function et8ek8_g_priv_mem
_et8ek8_g_priv_mem:                     ; @et8ek8_g_priv_mem
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #48
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_to_et8ek8_sensor
	mov	x20, x0
	mov	x0, x19
	bl	_v4l2_get_subdevdata
	mov	x19, x0
	mov	w23, #0
Lloh3:
	adrp	x8, _ET8EK8_PRIV_MEM_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ET8EK8_PRIV_MEM_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	ldr	x20, [x20]
Lloh6:
	adrp	x26, _PRIV_MEM_WIN_SIZE@GOTPAGE
Lloh7:
	ldr	x26, [x26, _PRIV_MEM_WIN_SIZE@GOTPAGEOFF]
Lloh8:
	adrp	x27, _ET8EK8_REG_8BIT@GOTPAGE
Lloh9:
	ldr	x27, [x27, _ET8EK8_REG_8BIT@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	mov	x25, sp
	ldr	w28, [x26]
	lsl	x8, x28, #3
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	w1, [x27]
	lsr	w8, w23, #3
	orr	w3, w8, #0xe0
	mov	x0, x19
	mov	w2, #1
	bl	_et8ek8_i2c_write_reg
	tbnz	w0, #31, LBB0_11
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w22, #1000
LBB0_3:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x27]
	sub	x3, x29, #124
	mov	x0, x19
	mov	w2, #3
	bl	_et8ek8_i2c_read_reg
	tbnz	w0, #31, LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	ldurb	w8, [x29, #-124]
	tbz	w8, #3, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=2
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	subs	w22, w22, #1
	b.ne	LBB0_3
	b	LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	and	w8, w23, #0x7
	add	w9, w24, w8
	mov	w10, #8
	sub	w10, w10, w8
	cmp	w9, #8
	csel	w22, w10, w24, hi
	ldr	w9, [x19, #4]
	stur	w9, [x29, #-96]
	mov	w9, #2
	stur	w9, [x29, #-120]
	stp	x21, xzr, [x29, #-112]
Lloh12:
	adrp	x9, _PRIV_MEM_START_REG@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PRIV_MEM_START_REG@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	add	w8, w8, w9
	sbfx	x9, x8, #8, #24
	and	w8, w8, #0xff
	stp	x9, x8, [x21]
	ldr	w0, [x19]
	sub	x1, x29, #120
	mov	w2, #1
	bl	_i2c_transfer
	tbnz	w0, #31, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh15:
	adrp	x8, _ET8EK8_I2C_DELAY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ET8EK8_I2C_DELAY@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_mdelay
	ldr	w8, [x19, #4]
	stur	w8, [x29, #-96]
	stur	w22, [x29, #-120]
Lloh18:
	adrp	x8, _I2C_M_RD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _I2C_M_RD@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	stp	x21, x8, [x29, #-112]
	lsl	w2, w28, #3
	mov	x0, x21
	mov	w1, #0
	bl	_memset
	ldr	w0, [x19]
	sub	x1, x29, #120
	mov	w2, #1
	bl	_i2c_transfer
	tbnz	w0, #31, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_memcpy
	subs	w24, w24, w22
	add	w23, w22, w23
	add	x20, x20, w22, sxtw #3
	mov	sp, x25
	b.ne	LBB0_1
; %bb.9:
	mov	w0, #0
	b	LBB0_12
LBB0_10:
Lloh21:
	adrp	x8, _EIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	mov	sp, x25
LBB0_12:
	ldur	x8, [x29, #-88]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ET8EK8_PRIV_MEM_SIZE,4,2       ; @ET8EK8_PRIV_MEM_SIZE
	.comm	_PRIV_MEM_WIN_SIZE,4,2          ; @PRIV_MEM_WIN_SIZE
	.comm	_ET8EK8_REG_8BIT,4,2            ; @ET8EK8_REG_8BIT
	.comm	_EIO,4,2                        ; @EIO
	.comm	_PRIV_MEM_START_REG,8,3         ; @PRIV_MEM_START_REG
	.comm	_ET8EK8_I2C_DELAY,4,2           ; @ET8EK8_I2C_DELAY
	.comm	_I2C_M_RD,8,3                   ; @I2C_M_RD
	.no_dead_strip	_et8ek8_g_priv_mem
.subsections_via_symbols
