	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function et8ek8_registered
_et8ek8_registered:                     ## @et8ek8_registered
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_to_et8ek8_sensor
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_dev_dbg
	movq	_dev_attr_priv_mem@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_create_file
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_6
LBB0_2:
	movq	%rbx, %rdi
	callq	_et8ek8_dev_init
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	callq	_et8ek8_init_controls
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_5:
	movq	_dev_attr_priv_mem@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_remove_file
LBB0_6:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	___et8ek8_get_pad_format
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"registered!"

	.comm	_dev_attr_priv_mem,4,2          ## @dev_attr_priv_mem
L_.str.1:                               ## @.str.1
	.asciz	"could not register sysfs entry\n"

L_.str.2:                               ## @.str.2
	.asciz	"controls initialization failed\n"

	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.no_dead_strip	_et8ek8_registered
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function et8ek8_registered
_et8ek8_registered:                     ; @et8ek8_registered
	.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	x22, x0
	bl	_to_et8ek8_sensor
	mov	x20, x0
	mov	x0, x22
	bl	_v4l2_get_subdevdata
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh2:
	adrp	x1, _dev_attr_priv_mem@GOTPAGE
Lloh3:
	ldr	x1, [x1, _dev_attr_priv_mem@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_6
LBB0_2:
	mov	x0, x22
	bl	_et8ek8_dev_init
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_et8ek8_init_controls
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.4:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_5:
Lloh8:
	adrp	x1, _dev_attr_priv_mem@GOTPAGE
Lloh9:
	ldr	x1, [x1, _dev_attr_priv_mem@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_remove_file
LBB0_6:
	mov	x0, x21
	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
LBB0_7:
Lloh10:
	adrp	x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, #0
	mov	w2, #0
	bl	___et8ek8_get_pad_format
	b	LBB0_6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"registered!"

	.comm	_dev_attr_priv_mem,4,2          ; @dev_attr_priv_mem
l_.str.1:                               ; @.str.1
	.asciz	"could not register sysfs entry\n"

l_.str.2:                               ; @.str.2
	.asciz	"controls initialization failed\n"

	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.no_dead_strip	_et8ek8_registered
.subsections_via_symbols
