	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vimc_ent_sd_register           ## -- Begin function vimc_ent_sd_register
	.p2align	4, 0x90
_vimc_ent_sd_register:                  ## @vimc_ent_sd_register
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	32(%rbp), %r15
	movq	24(%rbp), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %rsi
	movl	%r9d, %edi
	callq	_vimc_pads_init
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.9:
	movl	(%r14), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, 8(%r14)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_v4l2_subdev_init
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 40(%rbx)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%rbx)
	movq	_vimc_ent_sd_mops@GOTPCREL(%rip), %rax
	movq	%rax, (%rbx)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movl	32(%rbx), %edi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_strscpy
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_v4l2_set_subdevdata
	movq	_V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPCREL(%rip), %rcx
	movl	16(%rbx), %eax
	orl	(%rcx), %eax
	movl	%eax, 16(%rbx)
	cmpq	$0, 24(%rbx)
	je	LBB0_3
## %bb.2:
	movq	_V4L2_SUBDEV_FL_HAS_EVENTS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 16(%rbx)
LBB0_3:
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_media_entity_pads_init
	movl	%eax, %r13d
	testl	%eax, %eax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_7
## %bb.4:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_v4l2_device_register_subdev
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %r13d
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_media_entity_cleanup
LBB0_7:
	movl	(%r14), %edi
	callq	_vimc_pads_cleanup
LBB0_8:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_vimc_ent_sd_mops,4,2           ## @vimc_ent_sd_mops
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ## @V4L2_SUBDEV_FL_HAS_DEVNODE
	.comm	_V4L2_SUBDEV_FL_HAS_EVENTS,4,2  ## @V4L2_SUBDEV_FL_HAS_EVENTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: subdev register failed (err=%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vimc_ent_sd_register           ; -- Begin function vimc_ent_sd_register
	.p2align	2
_vimc_ent_sd_register:                  ; @vimc_ent_sd_register
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x24, x7
	mov	x23, x5
	mov	x25, x4
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x26, [x29, #16]
	mov	x0, x5
	mov	x1, x6
	bl	_vimc_pads_init
	str	w0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
	str	x20, [x19, #8]
	mov	x0, x20
	mov	x1, x26
	bl	_v4l2_subdev_init
	str	x24, [x20, #40]
	str	w25, [x20, #8]
Lloh0:
	adrp	x8, _vimc_ent_sd_mops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vimc_ent_sd_mops@GOTPAGEOFF]
	str	x8, [x20]
Lloh2:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x20, #36]
	ldr	w0, [x20, #32]
	mov	x1, x21
	mov	w2, #4
	bl	_strscpy
	mov	x0, x20
	mov	x1, x19
	bl	_v4l2_set_subdevdata
Lloh5:
	adrp	x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x20, #16]
	orr	w8, w9, w8
	str	w8, [x20, #16]
	ldr	x9, [x20, #24]
	cbz	x9, LBB0_4
; %bb.3:
Lloh8:
	adrp	x9, _V4L2_SUBDEV_FL_HAS_EVENTS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _V4L2_SUBDEV_FL_HAS_EVENTS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20, #16]
LBB0_4:
	ldr	w2, [x19]
	mov	x0, x20
	mov	x1, x23
	bl	_media_entity_pads_init
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.5:
	mov	x0, x22
	mov	x1, x20
	bl	_v4l2_device_register_subdev
	mov	x23, x0
	cbz	w0, LBB0_8
; %bb.6:
	ldr	w0, [x22]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x23
	bl	_dev_err
	mov	x0, x20
	bl	_media_entity_cleanup
LBB0_7:
	ldr	w0, [x19]
	bl	_vimc_pads_cleanup
LBB0_8:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_vimc_ent_sd_mops,4,2           ; @vimc_ent_sd_mops
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ; @V4L2_SUBDEV_FL_HAS_DEVNODE
	.comm	_V4L2_SUBDEV_FL_HAS_EVENTS,4,2  ; @V4L2_SUBDEV_FL_HAS_EVENTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: subdev register failed (err=%d)\n"

.subsections_via_symbols
