	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k4ecgx_probe
_s5k4ecgx_probe:                        ## @s5k4ecgx_probe
	.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, %r14
	movq	(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$72, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r12
	leaq	64(%rax), %rdi
	callq	_mutex_init
	movq	$0, 56(%r12)
	movq	_s5k4ecgx_ops@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_v4l2_i2c_subdev_init
	movl	16(%r12), %edi
	movq	_S5K4ECGX_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_strscpy
	movq	_s5k4ecgx_subdev_internal_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r12)
	movq	_V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r12)
	movq	_MEDIA_PAD_FL_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r12, %rdx
	addq	$48, %rdx
	movl	%eax, 48(%r12)
	movq	_MEDIA_ENT_F_CAM_SENSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_media_entity_pads_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_s5k4ecgx_config_gpios
	testl	%eax, %eax
	je	LBB0_7
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_S5K4ECGX_NUM_SUPPLIES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%esi, %esi
	jle	LBB0_8
## %bb.11:
	movq	_s5k4ecgx_supply_names@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	40(%r12), %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdi,4), %esi
	movl	%esi, (%rdx,%rdi,4)
	incq	%rdi
	movslq	(%rax), %rsi
	cmpq	%rsi, %rdi
	jl	LBB0_12
	jmp	LBB0_13
LBB0_8:
	movq	40(%r12), %rdx
LBB0_13:
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_devm_regulator_bulk_get
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_15
LBB0_16:
	movq	%r12, %rdi
	callq	_s5k4ecgx_init_v4l2_ctrls
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_17
LBB0_15:
	movq	%r12, %rdi
	callq	_s5k4ecgx_free_gpios
LBB0_10:
	movq	%r12, %rdi
	callq	_media_entity_cleanup
	jmp	LBB0_18
LBB0_17:
	movq	_s5k4ecgx_formats@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r12)
	movq	_s5k4ecgx_prev_sizes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"platform data is missing!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_s5k4ecgx_ops,4,2               ## @s5k4ecgx_ops
	.comm	_S5K4ECGX_DRIVER_NAME,4,2       ## @S5K4ECGX_DRIVER_NAME
	.comm	_s5k4ecgx_subdev_internal_ops,4,2 ## @s5k4ecgx_subdev_internal_ops
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ## @V4L2_SUBDEV_FL_HAS_DEVNODE
	.comm	_MEDIA_PAD_FL_SOURCE,4,2        ## @MEDIA_PAD_FL_SOURCE
	.comm	_MEDIA_ENT_F_CAM_SENSOR,4,2     ## @MEDIA_ENT_F_CAM_SENSOR
L_.str.1:                               ## @.str.1
	.asciz	"Failed to set gpios\n"

	.comm	_S5K4ECGX_NUM_SUPPLIES,4,2      ## @S5K4ECGX_NUM_SUPPLIES
	.comm	_s5k4ecgx_supply_names,8,3      ## @s5k4ecgx_supply_names
L_.str.2:                               ## @.str.2
	.asciz	"Failed to get regulators\n"

	.comm	_s5k4ecgx_formats,8,3           ## @s5k4ecgx_formats
	.comm	_s5k4ecgx_prev_sizes,8,3        ## @s5k4ecgx_prev_sizes
	.no_dead_strip	_s5k4ecgx_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5k4ecgx_probe
_s5k4ecgx_probe:                        ; @s5k4ecgx_probe
	.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
	ldr	x21, [x0]
	cbz	x21, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #72
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
	add	x0, x0, #64
	bl	_mutex_init
	str	xzr, [x19, #56]
Lloh3:
	adrp	x2, _s5k4ecgx_ops@GOTPAGE
Lloh4:
	ldr	x2, [x2, _s5k4ecgx_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x20
	bl	_v4l2_i2c_subdev_init
	ldr	w0, [x19, #16]
Lloh5:
	adrp	x8, _S5K4ECGX_DRIVER_NAME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _S5K4ECGX_DRIVER_NAME@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_strscpy
Lloh8:
	adrp	x8, _s5k4ecgx_subdev_internal_ops@GOTPAGE
Lloh9:
	ldr	x8, [x8, _s5k4ecgx_subdev_internal_ops@GOTPAGEOFF]
	str	x8, [x19, #8]
Lloh10:
	adrp	x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
Lloh13:
	adrp	x10, _MEDIA_PAD_FL_SOURCE@GOTPAGE
Lloh14:
	ldr	x10, [x10, _MEDIA_PAD_FL_SOURCE@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	mov	x2, x19
	str	w10, [x2, #48]!
	orr	w8, w9, w8
Lloh16:
	adrp	x9, _MEDIA_ENT_F_CAM_SENSOR@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MEDIA_ENT_F_CAM_SENSOR@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	mov	x0, x19
	mov	w1, #1
	bl	_media_entity_pads_init
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	bl	_s5k4ecgx_config_gpios
	cbz	w0, LBB0_9
; %bb.4:
	mov	x22, x0
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_17
LBB0_5:
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	mov	x0, x22
	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_9:
Lloh27:
	adrp	x8, _S5K4ECGX_NUM_SUPPLIES@GOTPAGE
Lloh28:
	ldr	x8, [x8, _S5K4ECGX_NUM_SUPPLIES@GOTPAGEOFF]
	ldr	w1, [x8]
	cmp	w1, #0
	b.le	LBB0_12
; %bb.10:
	mov	x9, #0
Lloh29:
	adrp	x10, _s5k4ecgx_supply_names@GOTPAGE
Lloh30:
	ldr	x10, [x10, _s5k4ecgx_supply_names@GOTPAGEOFF]
Lloh31:
	ldr	x10, [x10]
	ldr	x2, [x19, #40]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	lsl	x11, x9, #2
	ldr	w12, [x10, x11]
	str	w12, [x2, x11]
	add	x9, x9, #1
	ldrsw	x1, [x8]
	cmp	x9, x1
	b.lt	LBB0_11
	b	LBB0_13
LBB0_12:
	ldr	x2, [x19, #40]
LBB0_13:
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_devm_regulator_bulk_get
	cbz	w0, LBB0_15
; %bb.14:
	mov	x22, x0
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_16
LBB0_15:
	mov	x0, x19
	bl	_s5k4ecgx_init_v4l2_ctrls
	mov	x22, x0
	cbz	w0, LBB0_18
LBB0_16:
	mov	x0, x19
	bl	_s5k4ecgx_free_gpios
LBB0_17:
	mov	x0, x19
	bl	_media_entity_cleanup
	b	LBB0_8
LBB0_18:
Lloh34:
	adrp	x8, _s5k4ecgx_formats@GOTPAGE
Lloh35:
	ldr	x8, [x8, _s5k4ecgx_formats@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
Lloh37:
	adrp	x9, _s5k4ecgx_prev_sizes@GOTPAGE
Lloh38:
	ldr	x9, [x9, _s5k4ecgx_prev_sizes@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #24]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"platform data is missing!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_s5k4ecgx_ops,4,2               ; @s5k4ecgx_ops
	.comm	_S5K4ECGX_DRIVER_NAME,4,2       ; @S5K4ECGX_DRIVER_NAME
	.comm	_s5k4ecgx_subdev_internal_ops,4,2 ; @s5k4ecgx_subdev_internal_ops
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ; @V4L2_SUBDEV_FL_HAS_DEVNODE
	.comm	_MEDIA_PAD_FL_SOURCE,4,2        ; @MEDIA_PAD_FL_SOURCE
	.comm	_MEDIA_ENT_F_CAM_SENSOR,4,2     ; @MEDIA_ENT_F_CAM_SENSOR
l_.str.1:                               ; @.str.1
	.asciz	"Failed to set gpios\n"

	.comm	_S5K4ECGX_NUM_SUPPLIES,4,2      ; @S5K4ECGX_NUM_SUPPLIES
	.comm	_s5k4ecgx_supply_names,8,3      ; @s5k4ecgx_supply_names
l_.str.2:                               ; @.str.2
	.asciz	"Failed to get regulators\n"

	.comm	_s5k4ecgx_formats,8,3           ; @s5k4ecgx_formats
	.comm	_s5k4ecgx_prev_sizes,8,3        ; @s5k4ecgx_prev_sizes
	.no_dead_strip	_s5k4ecgx_probe
.subsections_via_symbols
