	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssp_probe
_ssp_probe:                             ## @ssp_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_ssp_parse_dt
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	_sensorhub_sensor_devs@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	$0, (%rsp)
	movq	%r14, %rdi
	movl	$-1, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mfd_add_devices
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	_SPI_MODE_1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	%r14, %rdi
	callq	_spi_setup
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	_SSP_FW_DL_STATE_NONE@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, (%r13)
	movq	%r14, 32(%r13)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_spi_set_drvdata
	leaq	24(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_init
	movq	_SSP_SENSOR_MAX@GOTPCREL(%rip), %r8
	cmpl	$0, (%r8)
	movq	8(%r13), %rax
	jle	LBB0_9
## %bb.7:
	movq	80(%r13), %rdx
	movq	64(%r13), %rsi
	movq	72(%r13), %rdi
	xorl	%ebx, %ebx
	movq	_SSP_DEFAULT_POLLING_DELAY@GOTPCREL(%rip), %r9
	movq	_SSP_INITIALIZATION_STATE@GOTPCREL(%rip), %r10
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r9), %ecx
	movl	%ecx, (%rax,%rbx,4)
	movq	$0, (%rdx,%rbx,8)
	movq	$0, (%rdi,%rbx,8)
	movl	(%r10), %ecx
	movl	%ecx, (%rsi,%rbx,4)
	incq	%rbx
	movslq	(%r8), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_8
LBB0_9:
	movq	_SSP_BIO_HRM_LIB@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$100, (%rax,%rcx,4)
	movl	$1, 16(%r13)
	leaq	28(%r13), %r12
	movq	%r12, %rdi
	callq	_mutex_init
	leaq	56(%r13), %rdi
	callq	_INIT_LIST_HEAD
	leaq	52(%r13), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	48(%r13), %rdi
	movq	_ssp_wdt_work_func@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	44(%r13), %rdi
	movq	_ssp_refresh_task@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movq	%r13, %rdi
	addq	$40, %rdi
	movq	_ssp_wdt_timer_func@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_timer_setup
	movq	32(%r13), %rax
	movl	4(%rax), %edi
	movq	_ssp_irq_thread_fn@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	L_.str.3(%rip), %r8
	xorl	%esi, %esi
	movq	%r13, %r9
	callq	_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	movl	$0, 20(%r13)
	movq	32(%r13), %rax
	movl	4(%rax), %edi
	callq	_enable_irq_wake
	movq	%r13, %rdi
	callq	_ssp_check_fwbl
	movq	%rax, (%r13)
	cmpq	(%r15), %rax
	jne	LBB0_14
## %bb.12:
	movq	%r13, %rdi
	callq	_ssp_initialize_mcu
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_18
## %bb.13:
	movl	%eax, %r15d
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	%r15d, %ebx
	jmp	LBB0_15
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_17
LBB0_5:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_17
LBB0_10:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_16
LBB0_14:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movq	32(%r13), %rax
	movl	4(%rax), %edi
	movq	%r13, %rsi
	callq	_free_irq
LBB0_16:
	movq	%r12, %rdi
	callq	_mutex_destroy
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_destroy
	leaq	L_.str.7(%rip), %rsi
LBB0_17:
	movq	%r14, %rdi
	callq	_dev_err
LBB0_18:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to find platform data\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_sensorhub_sensor_devs,4,2      ## @sensorhub_sensor_devs
L_.str.1:                               ## @.str.1
	.asciz	"mfd add devices fail\n"

	.comm	_SPI_MODE_1,4,2                 ## @SPI_MODE_1
L_.str.2:                               ## @.str.2
	.asciz	"Failed to setup spi\n"

	.comm	_SSP_FW_DL_STATE_NONE,8,3       ## @SSP_FW_DL_STATE_NONE
	.comm	_SSP_SENSOR_MAX,4,2             ## @SSP_SENSOR_MAX
	.comm	_SSP_DEFAULT_POLLING_DELAY,4,2  ## @SSP_DEFAULT_POLLING_DELAY
	.comm	_SSP_INITIALIZATION_STATE,4,2   ## @SSP_INITIALIZATION_STATE
	.comm	_SSP_BIO_HRM_LIB,8,3            ## @SSP_BIO_HRM_LIB
	.comm	_ssp_wdt_work_func,4,2          ## @ssp_wdt_work_func
	.comm	_ssp_refresh_task,4,2           ## @ssp_refresh_task
	.comm	_ssp_wdt_timer_func,4,2         ## @ssp_wdt_timer_func
	.comm	_ssp_irq_thread_fn,4,2          ## @ssp_irq_thread_fn
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.3:                               ## @.str.3
	.asciz	"SSP_Int"

L_.str.4:                               ## @.str.4
	.asciz	"Irq request fail\n"

L_.str.5:                               ## @.str.5
	.asciz	"Initialize_mcu failed\n"

L_.str.6:                               ## @.str.6
	.asciz	"Firmware version not supported\n"

	.comm	_EPERM,4,2                      ## @EPERM
L_.str.7:                               ## @.str.7
	.asciz	"Probe failed!\n"

	.no_dead_strip	_ssp_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssp_probe
_ssp_probe:                             ; @ssp_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_ssp_parse_dt
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _sensorhub_sensor_devs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sensorhub_sensor_devs@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x19
	mov	w1, #-1
	mov	x2, x21
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_mfd_add_devices
	tbnz	w0, #31, LBB0_11
; %bb.2:
Lloh3:
	adrp	x8, _SPI_MODE_1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPI_MODE_1@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_spi_setup
	tbnz	w0, #31, LBB0_12
; %bb.3:
Lloh6:
	adrp	x24, _SSP_FW_DL_STATE_NONE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _SSP_FW_DL_STATE_NONE@GOTPAGEOFF]
	ldr	x8, [x24]
	str	x8, [x20]
	str	x19, [x20, #32]
	mov	x0, x19
	mov	x1, x20
	bl	_spi_set_drvdata
	add	x21, x20, #24
	mov	x0, x21
	bl	_mutex_init
Lloh8:
	adrp	x9, _SSP_SENSOR_MAX@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SSP_SENSOR_MAX@GOTPAGEOFF]
	ldr	w10, [x9]
	ldr	x8, [x20, #8]
	cmp	w10, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x10, #0
	ldp	x12, x11, [x20, #72]
	ldr	x13, [x20, #64]
Lloh10:
	adrp	x14, _SSP_DEFAULT_POLLING_DELAY@GOTPAGE
Lloh11:
	ldr	x14, [x14, _SSP_DEFAULT_POLLING_DELAY@GOTPAGEOFF]
Lloh12:
	adrp	x15, _SSP_INITIALIZATION_STATE@GOTPAGE
Lloh13:
	ldr	x15, [x15, _SSP_INITIALIZATION_STATE@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w16, [x14]
	lsl	x17, x10, #2
	str	w16, [x8, x17]
	lsl	x16, x10, #3
	str	xzr, [x11, x16]
	str	xzr, [x12, x16]
	ldr	w16, [x15]
	str	w16, [x13, x17]
	add	x10, x10, #1
	ldrsw	x16, [x9]
	cmp	x10, x16
	b.lt	LBB0_5
LBB0_6:
Lloh14:
	adrp	x9, _SSP_BIO_HRM_LIB@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SSP_BIO_HRM_LIB@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	mov	w10, #100
	str	w10, [x8, x9, lsl #2]
	mov	w8, #1
	str	w8, [x20, #16]
	add	x22, x20, #28
	mov	x0, x22
	bl	_mutex_init
	add	x0, x20, #56
	bl	_INIT_LIST_HEAD
	add	x0, x20, #52
	mov	w1, #0
	bl	_atomic_set
	add	x0, x20, #48
Lloh17:
	adrp	x8, _ssp_wdt_work_func@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ssp_wdt_work_func@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x20, #44
Lloh20:
	adrp	x8, _ssp_refresh_task@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ssp_refresh_task@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	add	x0, x20, #40
Lloh23:
	adrp	x8, _ssp_wdt_timer_func@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ssp_wdt_timer_func@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
	ldr	x8, [x20, #32]
	ldr	w0, [x8, #4]
Lloh26:
	adrp	x8, _ssp_irq_thread_fn@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ssp_irq_thread_fn@GOTPAGEOFF]
Lloh28:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh29:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
Lloh31:
	ldr	w8, [x9]
Lloh32:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh33:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh35:
	adrp	x4, l_.str.3@PAGE
Lloh36:
	add	x4, x4, l_.str.3@PAGEOFF
	mov	x1, #0
	mov	x5, x20
	bl	_request_threaded_irq
	tbnz	w0, #31, LBB0_13
; %bb.7:
	str	wzr, [x20, #20]
	ldr	x8, [x20, #32]
	ldr	w0, [x8, #4]
	bl	_enable_irq_wake
	mov	x0, x20
	bl	_ssp_check_fwbl
	str	x0, [x20]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.8:
	mov	x0, x20
	bl	_ssp_initialize_mcu
	tbnz	w0, #31, LBB0_15
; %bb.9:
	mov	w23, #0
	b	LBB0_19
LBB0_10:
Lloh37:
	adrp	x1, l_.str@PAGE
Lloh38:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh39:
	adrp	x8, _ENODEV@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_19
LBB0_11:
	mov	x23, x0
Lloh42:
	adrp	x1, l_.str.1@PAGE
Lloh43:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_12:
	mov	x23, x0
Lloh44:
	adrp	x1, l_.str.2@PAGE
Lloh45:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_13:
	mov	x23, x0
Lloh46:
	adrp	x1, l_.str.4@PAGE
Lloh47:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_17
LBB0_14:
Lloh48:
	adrp	x1, l_.str.6@PAGE
Lloh49:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh50:
	adrp	x8, _EPERM@GOTPAGE
Lloh51:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_16
LBB0_15:
	mov	x23, x0
Lloh53:
	adrp	x1, l_.str.5@PAGE
Lloh54:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_16:
	ldr	x8, [x20, #32]
	ldr	w0, [x8, #4]
	mov	x1, x20
	bl	_free_irq
LBB0_17:
	mov	x0, x22
	bl	_mutex_destroy
	mov	x0, x21
	bl	_mutex_destroy
Lloh55:
	adrp	x1, l_.str.7@PAGE
Lloh56:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_18:
	mov	x0, x19
	bl	_dev_err
LBB0_19:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh30
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to find platform data\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_sensorhub_sensor_devs,4,2      ; @sensorhub_sensor_devs
l_.str.1:                               ; @.str.1
	.asciz	"mfd add devices fail\n"

	.comm	_SPI_MODE_1,4,2                 ; @SPI_MODE_1
l_.str.2:                               ; @.str.2
	.asciz	"Failed to setup spi\n"

	.comm	_SSP_FW_DL_STATE_NONE,8,3       ; @SSP_FW_DL_STATE_NONE
	.comm	_SSP_SENSOR_MAX,4,2             ; @SSP_SENSOR_MAX
	.comm	_SSP_DEFAULT_POLLING_DELAY,4,2  ; @SSP_DEFAULT_POLLING_DELAY
	.comm	_SSP_INITIALIZATION_STATE,4,2   ; @SSP_INITIALIZATION_STATE
	.comm	_SSP_BIO_HRM_LIB,8,3            ; @SSP_BIO_HRM_LIB
	.comm	_ssp_wdt_work_func,4,2          ; @ssp_wdt_work_func
	.comm	_ssp_refresh_task,4,2           ; @ssp_refresh_task
	.comm	_ssp_wdt_timer_func,4,2         ; @ssp_wdt_timer_func
	.comm	_ssp_irq_thread_fn,4,2          ; @ssp_irq_thread_fn
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.3:                               ; @.str.3
	.asciz	"SSP_Int"

l_.str.4:                               ; @.str.4
	.asciz	"Irq request fail\n"

l_.str.5:                               ; @.str.5
	.asciz	"Initialize_mcu failed\n"

l_.str.6:                               ; @.str.6
	.asciz	"Firmware version not supported\n"

	.comm	_EPERM,4,2                      ; @EPERM
l_.str.7:                               ; @.str.7
	.asciz	"Probe failed!\n"

	.no_dead_strip	_ssp_probe
.subsections_via_symbols
