	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k6a3_probe
_s5k6a3_probe:                          ## @s5k6a3_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	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$80, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	leaq	72(%rax), %rdi
	callq	_mutex_init
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	xorl	%edi, %edi
	movl	%ecx, (%rbx)
	subl	(%rax), %edi
	callq	_ERR_PTR
	movl	%eax, 60(%rbx)
	movq	%r14, 64(%rbx)
	movq	_S5K6A3_CLK_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movl	%eax, 60(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movl	60(%rbx), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_4
LBB0_5:
	movl	(%r14), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_of_get_gpio_flags
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_gpio_is_valid
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	movq	_GPIOF_OUT_INIT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_S5K6A3_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_devm_gpio_request_one
	testl	%eax, %eax
	js	LBB0_12
## %bb.7:
	movl	%r15d, (%rbx)
	movl	(%r14), %edi
	leaq	56(%rbx), %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_S5K6A3_DEFAULT_CLK_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, (%r15)
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
LBB0_9:
	movq	_S5K6A3_NUM_SUPPLIES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%esi, %esi
	jle	LBB0_13
## %bb.10:
	movq	_s5k6a3_supply_names@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	48(%rbx), %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_11:                                ## =>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_11
	jmp	LBB0_14
LBB0_13:
	movq	48(%rbx), %rdx
LBB0_14:
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_devm_regulator_bulk_get
	testl	%eax, %eax
	js	LBB0_12
## %bb.15:
	leaq	24(%rbx), %r12
	movq	_s5k6a3_subdev_ops@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_v4l2_i2c_subdev_init
	movq	_V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 40(%rbx)
	movq	_s5k6a3_sd_internal_ops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movq	_s5k6a3_formats@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_S5K6A3_DEFAULT_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_S5K6A3_DEFAULT_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_MEDIA_ENT_F_CAM_SENSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_MEDIA_PAD_FL_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, %rdx
	addq	$4, %rdx
	movl	%eax, 4(%rbx)
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_media_entity_pads_init
	testl	%eax, %eax
	js	LBB0_12
## %bb.16:
	movq	%r14, %rdi
	callq	_pm_runtime_no_callbacks
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	movq	%r12, %rdi
	callq	_v4l2_async_register_subdev
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_4
## %bb.17:
	movq	%r14, %rdi
	callq	_pm_runtime_disable
	movq	%r12, %rdi
	callq	_media_entity_cleanup
	jmp	LBB0_4
LBB0_12:
	movl	%eax, %r15d
LBB0_4:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_S5K6A3_CLK_NAME,4,2            ## @S5K6A3_CLK_NAME
	.comm	_GPIOF_OUT_INIT_LOW,4,2         ## @GPIOF_OUT_INIT_LOW
	.comm	_S5K6A3_DRV_NAME,4,2            ## @S5K6A3_DRV_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clock-frequency"

	.comm	_S5K6A3_DEFAULT_CLK_FREQ,4,2    ## @S5K6A3_DEFAULT_CLK_FREQ
L_.str.1:                               ## @.str.1
	.asciz	"using default %u Hz clock frequency\n"

	.comm	_S5K6A3_NUM_SUPPLIES,4,2        ## @S5K6A3_NUM_SUPPLIES
	.comm	_s5k6a3_supply_names,8,3        ## @s5k6a3_supply_names
	.comm	_s5k6a3_subdev_ops,4,2          ## @s5k6a3_subdev_ops
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ## @V4L2_SUBDEV_FL_HAS_DEVNODE
	.comm	_s5k6a3_sd_internal_ops,4,2     ## @s5k6a3_sd_internal_ops
	.comm	_s5k6a3_formats,8,3             ## @s5k6a3_formats
	.comm	_S5K6A3_DEFAULT_WIDTH,4,2       ## @S5K6A3_DEFAULT_WIDTH
	.comm	_S5K6A3_DEFAULT_HEIGHT,4,2      ## @S5K6A3_DEFAULT_HEIGHT
	.comm	_MEDIA_ENT_F_CAM_SENSOR,4,2     ## @MEDIA_ENT_F_CAM_SENSOR
	.comm	_MEDIA_PAD_FL_SOURCE,4,2        ## @MEDIA_PAD_FL_SOURCE
	.no_dead_strip	_s5k6a3_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5k6a3_probe
_s5k6a3_probe:                          ; @s5k6a3_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	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #80
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	add	x0, x0, #72
	bl	_mutex_init
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	ldr	w9, [x8]
	neg	w9, w9
	str	w9, [x20]
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	str	w0, [x20, #60]
	str	x19, [x20, #64]
Lloh5:
	adrp	x8, _S5K6A3_CLK_NAME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _S5K6A3_CLK_NAME@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_devm_clk_get
	str	w0, [x20, #60]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x20, #60]
	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
	b	_PTR_ERR
LBB0_3:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_17
LBB0_4:
	ldr	w0, [x19]
	mov	w1, #0
	mov	x2, #0
	bl	_of_get_gpio_flags
	mov	x22, x0
	bl	_gpio_is_valid
	cbz	w0, LBB0_17
; %bb.5:
Lloh11:
	adrp	x8, _GPIOF_OUT_INIT_LOW@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GPIOF_OUT_INIT_LOW@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _S5K6A3_DRV_NAME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _S5K6A3_DRV_NAME@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_devm_gpio_request_one
	tbnz	w0, #31, LBB0_16
; %bb.6:
	mov	x21, x20
	str	w22, [x21], #56
	ldr	w0, [x19]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_of_property_read_u32
	cbz	x0, LBB0_8
; %bb.7:
Lloh19:
	adrp	x8, _S5K6A3_DEFAULT_CLK_FREQ@GOTPAGE
Lloh20:
	ldr	x8, [x8, _S5K6A3_DEFAULT_CLK_FREQ@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	str	w2, [x21]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_8:
Lloh24:
	adrp	x8, _S5K6A3_NUM_SUPPLIES@GOTPAGE
Lloh25:
	ldr	x8, [x8, _S5K6A3_NUM_SUPPLIES@GOTPAGEOFF]
	ldr	w1, [x8]
	cmp	w1, #0
	b.le	LBB0_11
; %bb.9:
	mov	x9, #0
Lloh26:
	adrp	x10, _s5k6a3_supply_names@GOTPAGE
Lloh27:
	ldr	x10, [x10, _s5k6a3_supply_names@GOTPAGEOFF]
Lloh28:
	ldr	x10, [x10]
	ldr	x2, [x20, #48]
LBB0_10:                                ; =>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_10
	b	LBB0_12
LBB0_11:
	ldr	x2, [x20, #48]
LBB0_12:
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_devm_regulator_bulk_get
	tbnz	w0, #31, LBB0_16
; %bb.13:
	add	x21, x20, #24
Lloh29:
	adrp	x2, _s5k6a3_subdev_ops@GOTPAGE
Lloh30:
	ldr	x2, [x2, _s5k6a3_subdev_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x19
	bl	_v4l2_i2c_subdev_init
Lloh31:
	adrp	x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGEOFF]
Lloh33:
	adrp	x9, _MEDIA_PAD_FL_SOURCE@GOTPAGE
Lloh34:
	ldr	x9, [x9, _MEDIA_PAD_FL_SOURCE@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	mov	x2, x20
	str	w9, [x2, #4]!
Lloh36:
	ldr	w8, [x8]
	ldr	w9, [x2, #36]
	orr	w8, w9, w8
	str	w8, [x2, #36]
Lloh37:
	adrp	x8, _s5k6a3_sd_internal_ops@GOTPAGE
Lloh38:
	ldr	x8, [x8, _s5k6a3_sd_internal_ops@GOTPAGEOFF]
	stur	x8, [x2, #28]
Lloh39:
	adrp	x8, _s5k6a3_formats@GOTPAGE
Lloh40:
	ldr	x8, [x8, _s5k6a3_formats@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w8, [x2, #12]
Lloh42:
	adrp	x8, _S5K6A3_DEFAULT_WIDTH@GOTPAGE
Lloh43:
	ldr	x8, [x8, _S5K6A3_DEFAULT_WIDTH@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
Lloh45:
	adrp	x9, _S5K6A3_DEFAULT_HEIGHT@GOTPAGE
Lloh46:
	ldr	x9, [x9, _S5K6A3_DEFAULT_HEIGHT@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	stp	w9, w8, [x2, #4]
Lloh48:
	adrp	x8, _MEDIA_ENT_F_CAM_SENSOR@GOTPAGE
Lloh49:
	ldr	x8, [x8, _MEDIA_ENT_F_CAM_SENSOR@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	mov	x0, x21
	mov	w1, #1
	bl	_media_entity_pads_init
	tbnz	w0, #31, LBB0_16
; %bb.14:
	mov	x0, x19
	bl	_pm_runtime_no_callbacks
	mov	x0, x19
	bl	_pm_runtime_enable
	mov	x0, x21
	bl	_v4l2_async_register_subdev
	mov	x22, x0
	tbz	w0, #31, LBB0_17
; %bb.15:
	mov	x0, x19
	bl	_pm_runtime_disable
	mov	x0, x21
	bl	_media_entity_cleanup
	b	LBB0_17
LBB0_16:
	mov	x22, x0
LBB0_17:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh36
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_S5K6A3_CLK_NAME,4,2            ; @S5K6A3_CLK_NAME
	.comm	_GPIOF_OUT_INIT_LOW,4,2         ; @GPIOF_OUT_INIT_LOW
	.comm	_S5K6A3_DRV_NAME,4,2            ; @S5K6A3_DRV_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clock-frequency"

	.comm	_S5K6A3_DEFAULT_CLK_FREQ,4,2    ; @S5K6A3_DEFAULT_CLK_FREQ
l_.str.1:                               ; @.str.1
	.asciz	"using default %u Hz clock frequency\n"

	.comm	_S5K6A3_NUM_SUPPLIES,4,2        ; @S5K6A3_NUM_SUPPLIES
	.comm	_s5k6a3_supply_names,8,3        ; @s5k6a3_supply_names
	.comm	_s5k6a3_subdev_ops,4,2          ; @s5k6a3_subdev_ops
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ; @V4L2_SUBDEV_FL_HAS_DEVNODE
	.comm	_s5k6a3_sd_internal_ops,4,2     ; @s5k6a3_sd_internal_ops
	.comm	_s5k6a3_formats,8,3             ; @s5k6a3_formats
	.comm	_S5K6A3_DEFAULT_WIDTH,4,2       ; @S5K6A3_DEFAULT_WIDTH
	.comm	_S5K6A3_DEFAULT_HEIGHT,4,2      ; @S5K6A3_DEFAULT_HEIGHT
	.comm	_MEDIA_ENT_F_CAM_SENSOR,4,2     ; @MEDIA_ENT_F_CAM_SENSOR
	.comm	_MEDIA_PAD_FL_SOURCE,4,2        ; @MEDIA_PAD_FL_SOURCE
	.no_dead_strip	_s5k6a3_probe
.subsections_via_symbols
