	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k5baf_configure_subdevs
_s5k5baf_configure_subdevs:             ## @s5k5baf_configure_subdevs
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_s5k5baf_cis_subdev_ops@GOTPCREL(%rip), %rsi
	callq	_v4l2_subdev_init
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_v4l2_set_subdevdata
	movl	(%rbx), %r15d
	movl	8(%r14), %edi
	callq	_i2c_adapter_id
	movl	(%r14), %r8d
	leaq	L_.str(%rip), %rdx
	movl	%r15d, %edi
	movl	$4, %esi
	movl	%eax, %ecx
	callq	_snprintf
	movq	_s5k5baf_cis_subdev_internal_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	_V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
	movq	_MEDIA_PAD_FL_SOURCE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	72(%rbx), %rdx
	movq	%rax, 72(%rbx)
	movq	_MEDIA_ENT_F_CAM_SENSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	4(%rbx), %r15
	movl	%eax, 4(%rbx)
	movq	_NUM_CIS_PADS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_media_entity_pads_init
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	leaq	40(%rbx), %r12
	movq	_s5k5baf_subdev_ops@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_v4l2_i2c_subdev_init
	movl	40(%rbx), %r13d
	movl	8(%r14), %edi
	callq	_i2c_adapter_id
	movl	(%r14), %r8d
	leaq	L_.str.1(%rip), %rdx
	movl	%r13d, %edi
	movl	$4, %esi
	movl	%eax, %ecx
	callq	_snprintf
	movq	_s5k5baf_subdev_internal_ops@GOTPCREL(%rip), %rax
	movq	%rax, 56(%rbx)
	movq	_V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 48(%rbx)
	movq	_MEDIA_PAD_FL_SINK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	32(%rbx), %rdx
	movq	_PAD_CIS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rdx,%rcx,8)
	movq	_MEDIA_PAD_FL_SOURCE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PAD_OUT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rdx,%rcx,8)
	movq	_MEDIA_ENT_F_V4L2_SUBDEV_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	addq	$44, %rbx
	movq	_NUM_ISP_PADS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_media_entity_pads_init
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_media_entity_cleanup
	jmp	LBB0_5
LBB0_1:
	movl	%eax, %r13d
	movq	%rbx, %r12
LBB0_5:
	addq	$4, %r14
	movl	(%r12), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_6
LBB0_3:
	xorl	%r13d, %r13d
LBB0_6:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_s5k5baf_cis_subdev_ops,4,2     ## @s5k5baf_cis_subdev_ops
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"S5K5BAF-CIS %d-%04x"

	.comm	_s5k5baf_cis_subdev_internal_ops,4,2 ## @s5k5baf_cis_subdev_internal_ops
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ## @V4L2_SUBDEV_FL_HAS_DEVNODE
	.comm	_MEDIA_PAD_FL_SOURCE,8,3        ## @MEDIA_PAD_FL_SOURCE
	.comm	_MEDIA_ENT_F_CAM_SENSOR,4,2     ## @MEDIA_ENT_F_CAM_SENSOR
	.comm	_NUM_CIS_PADS,4,2               ## @NUM_CIS_PADS
	.comm	_s5k5baf_subdev_ops,4,2         ## @s5k5baf_subdev_ops
L_.str.1:                               ## @.str.1
	.asciz	"S5K5BAF-ISP %d-%04x"

	.comm	_s5k5baf_subdev_internal_ops,4,2 ## @s5k5baf_subdev_internal_ops
	.comm	_MEDIA_PAD_FL_SINK,8,3          ## @MEDIA_PAD_FL_SINK
	.comm	_PAD_CIS,8,3                    ## @PAD_CIS
	.comm	_PAD_OUT,8,3                    ## @PAD_OUT
	.comm	_MEDIA_ENT_F_V4L2_SUBDEV_UNKNOWN,4,2 ## @MEDIA_ENT_F_V4L2_SUBDEV_UNKNOWN
	.comm	_NUM_ISP_PADS,4,2               ## @NUM_ISP_PADS
L_.str.2:                               ## @.str.2
	.asciz	"cannot init media entity %s\n"

	.no_dead_strip	_s5k5baf_configure_subdevs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5k5baf_configure_subdevs
_s5k5baf_configure_subdevs:             ; @s5k5baf_configure_subdevs
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x1, _s5k5baf_cis_subdev_ops@GOTPAGE
Lloh1:
	ldr	x1, [x1, _s5k5baf_cis_subdev_ops@GOTPAGEOFF]
	bl	_v4l2_subdev_init
Lloh2:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	mov	x0, x20
	mov	x1, x20
	bl	_v4l2_set_subdevdata
	ldr	w21, [x20]
	ldr	w0, [x19, #8]
	bl	_i2c_adapter_id
	mov	x3, x0
	ldr	w4, [x19]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	w1, #4
	bl	_snprintf
Lloh7:
	adrp	x8, _s5k5baf_cis_subdev_internal_ops@GOTPAGE
Lloh8:
	ldr	x8, [x8, _s5k5baf_cis_subdev_internal_ops@GOTPAGEOFF]
	str	x8, [x20, #16]
Lloh9:
	adrp	x25, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGE
Lloh10:
	ldr	x25, [x25, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGEOFF]
	ldr	w8, [x25]
	ldr	w9, [x20, #8]
	orr	w8, w9, w8
	str	w8, [x20, #8]
Lloh11:
	adrp	x24, _MEDIA_PAD_FL_SOURCE@GOTPAGE
Lloh12:
	ldr	x24, [x24, _MEDIA_PAD_FL_SOURCE@GOTPAGEOFF]
	ldr	x8, [x24]
	mov	x2, x20
	str	x8, [x2, #72]!
Lloh13:
	adrp	x8, _MEDIA_ENT_F_CAM_SENSOR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MEDIA_ENT_F_CAM_SENSOR@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	mov	x21, x20
	str	w8, [x21, #4]!
Lloh16:
	adrp	x8, _NUM_CIS_PADS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NUM_CIS_PADS@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_media_entity_pads_init
	tbnz	w0, #31, LBB0_3
; %bb.1:
	add	x22, x20, #40
Lloh19:
	adrp	x2, _s5k5baf_subdev_ops@GOTPAGE
Lloh20:
	ldr	x2, [x2, _s5k5baf_subdev_ops@GOTPAGEOFF]
	mov	x0, x22
	mov	x1, x19
	bl	_v4l2_i2c_subdev_init
	ldr	w23, [x20, #40]
	ldr	w0, [x19, #8]
	bl	_i2c_adapter_id
	mov	x3, x0
	ldr	w4, [x19]
Lloh21:
	adrp	x2, l_.str.1@PAGE
Lloh22:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	w1, #4
	bl	_snprintf
Lloh23:
	adrp	x8, _s5k5baf_subdev_internal_ops@GOTPAGE
Lloh24:
	ldr	x8, [x8, _s5k5baf_subdev_internal_ops@GOTPAGEOFF]
Lloh25:
	adrp	x9, _MEDIA_ENT_F_V4L2_SUBDEV_UNKNOWN@GOTPAGE
Lloh26:
	ldr	x9, [x9, _MEDIA_ENT_F_V4L2_SUBDEV_UNKNOWN@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	str	w9, [x20, #44]!
	stur	x8, [x20, #12]
	ldr	w8, [x25]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #4]
Lloh28:
	adrp	x8, _MEDIA_PAD_FL_SINK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MEDIA_PAD_FL_SINK@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	ldur	x2, [x20, #-12]
Lloh31:
	adrp	x9, _PAD_CIS@GOTPAGE
Lloh32:
	ldr	x9, [x9, _PAD_CIS@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	str	x8, [x2, x9, lsl #3]
	ldr	x8, [x24]
Lloh34:
	adrp	x9, _PAD_OUT@GOTPAGE
Lloh35:
	ldr	x9, [x9, _PAD_OUT@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	str	x8, [x2, x9, lsl #3]
Lloh37:
	adrp	x8, _NUM_ISP_PADS@GOTPAGE
Lloh38:
	ldr	x8, [x8, _NUM_ISP_PADS@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_media_entity_pads_init
	mov	x23, x0
	cbz	w0, LBB0_5
; %bb.2:
	mov	x0, x21
	bl	_media_entity_cleanup
	mov	x20, x22
	b	LBB0_4
LBB0_3:
	mov	x23, x0
LBB0_4:
	add	x0, x19, #4
	ldr	w2, [x20]
Lloh40:
	adrp	x1, l_.str.2@PAGE
Lloh41:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
LBB0_5:
	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	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_s5k5baf_cis_subdev_ops,4,2     ; @s5k5baf_cis_subdev_ops
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"S5K5BAF-CIS %d-%04x"

	.comm	_s5k5baf_cis_subdev_internal_ops,4,2 ; @s5k5baf_cis_subdev_internal_ops
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ; @V4L2_SUBDEV_FL_HAS_DEVNODE
	.comm	_MEDIA_PAD_FL_SOURCE,8,3        ; @MEDIA_PAD_FL_SOURCE
	.comm	_MEDIA_ENT_F_CAM_SENSOR,4,2     ; @MEDIA_ENT_F_CAM_SENSOR
	.comm	_NUM_CIS_PADS,4,2               ; @NUM_CIS_PADS
	.comm	_s5k5baf_subdev_ops,4,2         ; @s5k5baf_subdev_ops
l_.str.1:                               ; @.str.1
	.asciz	"S5K5BAF-ISP %d-%04x"

	.comm	_s5k5baf_subdev_internal_ops,4,2 ; @s5k5baf_subdev_internal_ops
	.comm	_MEDIA_PAD_FL_SINK,8,3          ; @MEDIA_PAD_FL_SINK
	.comm	_PAD_CIS,8,3                    ; @PAD_CIS
	.comm	_PAD_OUT,8,3                    ; @PAD_OUT
	.comm	_MEDIA_ENT_F_V4L2_SUBDEV_UNKNOWN,4,2 ; @MEDIA_ENT_F_V4L2_SUBDEV_UNKNOWN
	.comm	_NUM_ISP_PADS,4,2               ; @NUM_ISP_PADS
l_.str.2:                               ; @.str.2
	.asciz	"cannot init media entity %s\n"

	.no_dead_strip	_s5k5baf_configure_subdevs
.subsections_via_symbols
