	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssp_enable_sensor              ## -- Begin function ssp_enable_sensor
	.p2align	4, 0x90
_ssp_enable_sensor:                     ## @ssp_enable_sensor
	.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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	%edx, %edi
	callq	_cpu_to_le32
	movq	%rax, -48(%rbp)
	movq	48(%rbx), %rax
	movl	%r15d, %r13d
	movl	(%rax,%r13,4), %edi
	callq	_cpu_to_le32
	movq	%rax, -56(%rbp)
	movq	40(%rbx), %rax
	movl	(%rax,%r13,4), %eax
	movl	%eax, -64(%rbp)
	movq	(%rbx), %rax
	movl	(%rax,%r13,4), %ecx
	leal	-129(%rcx), %edx
	cmpl	$2, %edx
	jae	LBB0_1
## %bb.4:
	movq	_SSP_MSG2SSP_INST_BYPASS_SENSOR_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r15d, %edx
	movl	$24, %r8d
	callq	_ssp_send_instruction
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movl	%r15d, %edi
	callq	_BIT
	orl	%eax, 32(%rbx)
	movq	(%rbx), %rax
	movl	$128, (%rax,%r13,4)
	jmp	LBB0_8
LBB0_1:
	cmpl	$128, %ecx
	jne	LBB0_7
## %bb.2:
	movq	_SSP_MSG2SSP_INST_CHANGE_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r15d, %edx
	movl	$24, %r8d
	callq	_ssp_send_instruction
	testl	%eax, %eax
	jns	LBB0_8
## %bb.3:
	movl	%eax, %r12d
	movq	24(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_10
LBB0_7:
	movl	$130, (%rax,%r13,4)
LBB0_8:
	movq	16(%rbx), %rax
	movl	%r14d, (%rax,%r13,4)
	leaq	8(%rbx), %rdi
	callq	_atomic_inc_return
	xorl	%r12d, %r12d
	cmpl	$1, %eax
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_ssp_enable_wdt_timer
	jmp	LBB0_10
LBB0_5:
	movl	%eax, %r12d
	movq	24(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_SSP_NO_SENSOR_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, (%rcx,%r13,4)
LBB0_10:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSP_MSG2SSP_INST_BYPASS_SENSOR_ADD,4,2 ## @SSP_MSG2SSP_INST_BYPASS_SENSOR_ADD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enabling sensor failed\n"

	.comm	_SSP_NO_SENSOR_STATE,4,2        ## @SSP_NO_SENSOR_STATE
	.comm	_SSP_MSG2SSP_INST_CHANGE_DELAY,4,2 ## @SSP_MSG2SSP_INST_CHANGE_DELAY
L_.str.1:                               ## @.str.1
	.asciz	"Changing sensor delay failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssp_enable_sensor              ; -- Begin function ssp_enable_sensor
	.p2align	2
_ssp_enable_sensor:                     ; @ssp_enable_sensor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x2
	bl	_cpu_to_le32
	str	x0, [sp, #24]
	ldr	x8, [x19, #48]
	mov	w23, w21
	lsl	x22, x23, #2
	ldr	w0, [x8, x22]
	bl	_cpu_to_le32
	str	x0, [sp, #16]
	ldr	x8, [x19, #40]
	ldr	w8, [x8, x22]
	str	w8, [sp, #8]
	ldr	x8, [x19]
	ldr	w9, [x8, x22]
	sub	w10, w9, #129
	cmp	w10, #2
	b.hs	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _SSP_MSG2SSP_INST_BYPASS_SENSOR_ADD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSP_MSG2SSP_INST_BYPASS_SENSOR_ADD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x0, x19
	mov	x2, x21
	mov	w4, #24
	bl	_ssp_send_instruction
	tbnz	w0, #31, LBB0_12
; %bb.2:
	mov	x0, x21
	bl	_BIT
	ldr	w8, [x19, #32]
	orr	w8, w8, w0
	str	w8, [x19, #32]
	ldr	x8, [x19]
	mov	w9, #128
	b	LBB0_7
LBB0_3:
	cmp	w9, #128
	b.ne	LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _SSP_MSG2SSP_INST_CHANGE_DELAY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSP_MSG2SSP_INST_CHANGE_DELAY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x0, x19
	mov	x2, x21
	mov	w4, #24
	bl	_ssp_send_instruction
	tbz	w0, #31, LBB0_8
; %bb.5:
	mov	x22, x0
	ldr	x0, [x19, #24]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_11
LBB0_6:
	mov	w9, #130
LBB0_7:
	str	w9, [x8, x23, lsl #2]
LBB0_8:
	ldr	x8, [x19, #16]
	str	w20, [x8, x23, lsl #2]
	add	x0, x19, #8
	bl	_atomic_inc_return
	cmp	w0, #1
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_ssp_enable_wdt_timer
LBB0_10:
	mov	w22, #0
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
	mov	x22, x0
	ldr	x0, [x19, #24]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh10:
	adrp	x8, _SSP_NO_SENSOR_STATE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SSP_NO_SENSOR_STATE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9, x23, lsl #2]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SSP_MSG2SSP_INST_BYPASS_SENSOR_ADD,4,2 ; @SSP_MSG2SSP_INST_BYPASS_SENSOR_ADD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enabling sensor failed\n"

	.comm	_SSP_NO_SENSOR_STATE,4,2        ; @SSP_NO_SENSOR_STATE
	.comm	_SSP_MSG2SSP_INST_CHANGE_DELAY,4,2 ; @SSP_MSG2SSP_INST_CHANGE_DELAY
l_.str.1:                               ; @.str.1
	.asciz	"Changing sensor delay failed\n"

.subsections_via_symbols
