	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m5mols_probe
_m5mols_probe:                          ## @m5mols_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	%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	%rdi, %r12
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	movl	(%rbx), %edi
	callq	_gpio_is_valid
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	cmpl	$0, 8(%r12)
	je	LBB0_8
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movq	%rax, %r14
	movq	%rbx, 56(%rax)
	movl	16(%rbx), %eax
	movl	%eax, 48(%r14)
	cmpq	$0, 8(%rbx)
	jne	LBB0_13
## %bb.5:
	movq	_GPIOF_OUT_INIT_LOW@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_6:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
LBB0_9:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_10:
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_13:
	movq	_GPIOF_OUT_INIT_HIGH@GOTPCREL(%rip), %rax
LBB0_14:
	movq	(%rax), %rdx
	movl	(%rbx), %esi
	leaq	L_.str.3(%rip), %rcx
	movq	%r12, %rdi
	callq	_devm_gpio_request_one
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_18
LBB0_16:
	movq	_supplies@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_ARRAY_SIZE
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_devm_regulator_bulk_get
	testl	%eax, %eax
	je	LBB0_19
## %bb.17:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
LBB0_18:
	movq	%r12, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_11
LBB0_19:
	leaq	24(%r14), %r15
	movq	_m5mols_ops@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_v4l2_i2c_subdev_init
	movl	44(%r14), %edi
	movq	_MODULE_NAME@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$4, %edx
	callq	_strscpy
	movq	_V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 40(%r14)
	movq	_m5mols_subdev_internal_ops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r14)
	movq	_MEDIA_PAD_FL_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	20(%r14), %rdx
	movl	%eax, 20(%r14)
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_media_entity_pads_init
	testl	%eax, %eax
	js	LBB0_22
## %bb.20:
	movq	_MEDIA_ENT_F_CAM_SENSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	leaq	16(%r14), %rdi
	callq	_init_waitqueue_head
	movq	%r14, %rdi
	addq	$12, %rdi
	callq	_mutex_init
	movl	8(%r12), %esi
	movq	_m5mols_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r13), %r8d
	movq	%r12, %rdi
	movq	%r15, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_23
## %bb.21:
	movl	%eax, %r13d
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_27
LBB0_22:
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_23:
	movq	_M5MOLS_RESTYPE_MONITOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_m5mols_default_ffmt@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%rcx), %rcx
	movq	(%r14), %rdx
	movq	%rcx, (%rdx)
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movq	(%r14), %rcx
	movq	%rax, 8(%rcx)
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_m5mols_sensor_power
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_27
## %bb.24:
	movq	%r15, %rdi
	callq	_m5mols_fw_start
	testl	%eax, %eax
	jne	LBB0_26
## %bb.25:
	movq	%r15, %rdi
	callq	_m5mols_init_controls
LBB0_26:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_m5mols_sensor_power
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_11
LBB0_27:
	movq	%r15, %rdi
	callq	_media_entity_cleanup
	movl	%r13d, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No platform data\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"No valid RESET GPIO specified\n"

L_.str.2:                               ## @.str.2
	.asciz	"Interrupt not assigned\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GPIOF_OUT_INIT_HIGH,8,3        ## @GPIOF_OUT_INIT_HIGH
	.comm	_GPIOF_OUT_INIT_LOW,8,3         ## @GPIOF_OUT_INIT_LOW
L_.str.3:                               ## @.str.3
	.asciz	"M5MOLS_NRST"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to request gpio: %d\n"

	.comm	_supplies,4,2                   ## @supplies
L_.str.5:                               ## @.str.5
	.asciz	"Failed to get regulators: %d\n"

	.comm	_m5mols_ops,4,2                 ## @m5mols_ops
	.comm	_MODULE_NAME,4,2                ## @MODULE_NAME
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ## @V4L2_SUBDEV_FL_HAS_DEVNODE
	.comm	_m5mols_subdev_internal_ops,4,2 ## @m5mols_subdev_internal_ops
	.comm	_MEDIA_PAD_FL_SOURCE,4,2        ## @MEDIA_PAD_FL_SOURCE
	.comm	_MEDIA_ENT_F_CAM_SENSOR,4,2     ## @MEDIA_ENT_F_CAM_SENSOR
	.comm	_m5mols_irq_handler,4,2         ## @m5mols_irq_handler
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
L_.str.6:                               ## @.str.6
	.asciz	"Interrupt request failed: %d\n"

	.comm	_M5MOLS_RESTYPE_MONITOR,4,2     ## @M5MOLS_RESTYPE_MONITOR
	.comm	_m5mols_default_ffmt,8,3        ## @m5mols_default_ffmt
	.no_dead_strip	_m5mols_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m5mols_probe
_m5mols_probe:                          ; @m5mols_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldr	x21, [x0]
	cbz	x21, LBB0_6
; %bb.1:
	ldr	w0, [x21]
	bl	_gpio_is_valid
	cbz	w0, LBB0_7
; %bb.2:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_8
; %bb.3:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_12
; %bb.4:
	mov	x20, x0
	str	x21, [x0, #56]
	ldr	w8, [x21, #16]
	str	w8, [x0, #48]
	ldr	x8, [x21, #8]
Lloh3:
	adrp	x9, _GPIOF_OUT_INIT_HIGH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GPIOF_OUT_INIT_HIGH@GOTPAGEOFF]
Lloh5:
	adrp	x10, _GPIOF_OUT_INIT_LOW@GOTPAGE
Lloh6:
	ldr	x10, [x10, _GPIOF_OUT_INIT_LOW@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	x2, [x8]
	ldr	w1, [x21]
Lloh7:
	adrp	x3, l_.str.3@PAGE
Lloh8:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_devm_gpio_request_one
	cbz	w0, LBB0_13
; %bb.5:
	mov	x22, x0
	str	x22, [sp]
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_11
LBB0_6:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_dev_err
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_11:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
LBB0_12:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
LBB0_13:
Lloh21:
	adrp	x21, _supplies@GOTPAGE
Lloh22:
	ldr	x21, [x21, _supplies@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_ARRAY_SIZE
	mov	x1, x0
	ldr	w2, [x21]
	mov	x0, x19
	bl	_devm_regulator_bulk_get
	cbz	w0, LBB0_15
; %bb.14:
	mov	x22, x0
	str	x22, [sp]
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_11
LBB0_15:
	add	x21, x20, #24
Lloh25:
	adrp	x2, _m5mols_ops@GOTPAGE
Lloh26:
	ldr	x2, [x2, _m5mols_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x19
	bl	_v4l2_i2c_subdev_init
	ldr	w0, [x20, #44]
Lloh27:
	adrp	x23, _MODULE_NAME@GOTPAGE
Lloh28:
	ldr	x23, [x23, _MODULE_NAME@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w2, #4
	bl	_strscpy
Lloh29:
	adrp	x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _MEDIA_PAD_FL_SOURCE@GOTPAGE
Lloh33:
	ldr	x9, [x9, _MEDIA_PAD_FL_SOURCE@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	mov	x2, x20
	str	w9, [x2, #20]!
	ldr	w9, [x2, #20]
	orr	w8, w9, w8
	str	w8, [x2, #20]
Lloh35:
	adrp	x8, _m5mols_subdev_internal_ops@GOTPAGE
Lloh36:
	ldr	x8, [x8, _m5mols_subdev_internal_ops@GOTPAGEOFF]
	stur	x8, [x2, #12]
	mov	x0, x21
	mov	w1, #1
	bl	_media_entity_pads_init
	tbnz	w0, #31, LBB0_18
; %bb.16:
Lloh37:
	adrp	x8, _MEDIA_ENT_F_CAM_SENSOR@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MEDIA_ENT_F_CAM_SENSOR@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	add	x0, x20, #16
	bl	_init_waitqueue_head
	add	x0, x20, #12
	bl	_mutex_init
Lloh40:
	adrp	x8, _m5mols_irq_handler@GOTPAGE
Lloh41:
	ldr	x8, [x8, _m5mols_irq_handler@GOTPAGEOFF]
	ldr	w1, [x19, #8]
Lloh42:
	ldr	w2, [x8]
Lloh43:
	adrp	x8, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh44:
	ldr	x8, [x8, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh45:
	ldr	w3, [x8]
	ldr	w4, [x23]
	mov	x0, x19
	mov	x5, x21
	bl	_devm_request_irq
	cbz	w0, LBB0_19
; %bb.17:
	mov	x22, x0
	str	x22, [sp]
Lloh46:
	adrp	x1, l_.str.6@PAGE
Lloh47:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_23
LBB0_18:
	mov	x22, x0
	b	LBB0_11
LBB0_19:
Lloh48:
	adrp	x8, _M5MOLS_RESTYPE_MONITOR@GOTPAGE
Lloh49:
	ldr	x8, [x8, _M5MOLS_RESTYPE_MONITOR@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	str	w8, [x20, #8]
Lloh51:
	adrp	x8, _m5mols_default_ffmt@GOTPAGE
Lloh52:
	ldr	x8, [x8, _m5mols_default_ffmt@GOTPAGEOFF]
	ldr	x9, [x8]
	ldr	x9, [x9]
	ldr	x10, [x20]
	str	x9, [x10]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	ldr	x9, [x20]
	str	x8, [x9, #8]
	mov	x0, x20
	mov	w1, #1
	bl	_m5mols_sensor_power
	mov	x22, x0
	cbnz	w0, LBB0_23
; %bb.20:
	mov	x0, x21
	bl	_m5mols_fw_start
	cbnz	w0, LBB0_22
; %bb.21:
	mov	x0, x21
	bl	_m5mols_init_controls
LBB0_22:
	mov	x0, x20
	mov	w1, #0
	bl	_m5mols_sensor_power
	mov	x22, x0
	cbz	w0, LBB0_11
LBB0_23:
	mov	x0, x21
	bl	_media_entity_cleanup
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No platform data\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"No valid RESET GPIO specified\n"

l_.str.2:                               ; @.str.2
	.asciz	"Interrupt not assigned\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GPIOF_OUT_INIT_HIGH,8,3        ; @GPIOF_OUT_INIT_HIGH
	.comm	_GPIOF_OUT_INIT_LOW,8,3         ; @GPIOF_OUT_INIT_LOW
l_.str.3:                               ; @.str.3
	.asciz	"M5MOLS_NRST"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to request gpio: %d\n"

	.comm	_supplies,4,2                   ; @supplies
l_.str.5:                               ; @.str.5
	.asciz	"Failed to get regulators: %d\n"

	.comm	_m5mols_ops,4,2                 ; @m5mols_ops
	.comm	_MODULE_NAME,4,2                ; @MODULE_NAME
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ; @V4L2_SUBDEV_FL_HAS_DEVNODE
	.comm	_m5mols_subdev_internal_ops,4,2 ; @m5mols_subdev_internal_ops
	.comm	_MEDIA_PAD_FL_SOURCE,4,2        ; @MEDIA_PAD_FL_SOURCE
	.comm	_MEDIA_ENT_F_CAM_SENSOR,4,2     ; @MEDIA_ENT_F_CAM_SENSOR
	.comm	_m5mols_irq_handler,4,2         ; @m5mols_irq_handler
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
l_.str.6:                               ; @.str.6
	.asciz	"Interrupt request failed: %d\n"

	.comm	_M5MOLS_RESTYPE_MONITOR,4,2     ; @M5MOLS_RESTYPE_MONITOR
	.comm	_m5mols_default_ffmt,8,3        ; @m5mols_default_ffmt
	.no_dead_strip	_m5mols_probe
.subsections_via_symbols
