	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function signal_det
_signal_det:                            ## @signal_det
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	cmpb	$46, (%rdx)
	jb	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movl	$2, %esi
	jmp	LBB0_3
LBB0_2:
	movq	%r12, %rdi
	movl	$3, %esi
LBB0_3:
	movl	$1, %edx
	movl	$2, %ecx
	callq	_CNTM_set
	testq	%rax, %rax
	js	LBB0_11
## %bb.4:
	imull	$98, %r15d, %eax
	cltq
	imulq	$1374389535, %rax, %rbx         ## imm = 0x51EB851F
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$37, %rbx
	addl	%eax, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_smrt_info_get
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_smrt_set
	movq	%r12, %rdi
	callq	_srst
	movl	$10, %edi
	callq	_msleep_interruptible
	leaq	-35(%rbp), %rdx
	movq	%r12, %rdi
	movl	$55, %esi
	callq	_mb86a16_read
	cmpl	$2, %eax
	jne	LBB0_13
## %bb.5:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_smrt_info_get
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_smrt_set
	movq	%r12, %rdi
	callq	_srst
	movl	$10, %edi
	callq	_msleep_interruptible
	leaq	-34(%rbp), %rdx
	movq	%r12, %rdi
	movl	$55, %esi
	callq	_mb86a16_read
	cmpl	$2, %eax
	jne	LBB0_13
## %bb.6:
	imull	$102, %r15d, %eax
	cltq
	imulq	$1374389535, %rax, %rbx         ## imm = 0x51EB851F
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$37, %rbx
	addl	%eax, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_smrt_info_get
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_smrt_set
	movq	%r12, %rdi
	callq	_srst
	movl	$10, %edi
	callq	_msleep_interruptible
	leaq	-33(%rbp), %rdx
	movq	%r12, %rdi
	movl	$55, %esi
	callq	_mb86a16_read
	cmpl	$2, %eax
	jne	LBB0_13
## %bb.7:
	movb	-34(%rbp), %al
	movzbl	-35(%rbp), %ecx
	imull	$112, %ecx, %ecx
	shrl	$2, %ecx
	imull	$5243, %ecx, %edx               ## imm = 0x147B
	shrl	$17, %edx
	movzbl	%al, %ecx
	cmpw	%cx, %dx
	jae	LBB0_9
## %bb.8:
	movzbl	-33(%rbp), %edx
	imull	$112, %edx, %edx
	shrl	$2, %edx
	imull	$5243, %edx, %edx               ## imm = 0x147B
	shrl	$17, %edx
	movl	$1, %ebx
	cmpw	%cx, %dx
	jb	LBB0_10
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movb	%al, (%r14)
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$2, %ecx
	callq	_CNTM_set
	testq	%rax, %rax
	jns	LBB0_12
LBB0_11:
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MB86A16_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movl	$1, %edx
	callq	_dprintk
	movl	$-1, %ebx
	jmp	LBB0_12
LBB0_13:
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MB86A16_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %edx
	callq	_dprintk
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbose,4,2                    ## @verbose
	.comm	_MB86A16_ERROR,4,2              ## @MB86A16_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CNTM set Error"

L_.str.1:                               ## @.str.1
	.asciz	"I2C transfer error"

	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.no_dead_strip	_signal_det
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function signal_det
_signal_det:                            ; @signal_det
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldrb	w8, [x2]
	cmp	w8, #46
	b.lo	LBB0_2
; %bb.1:
	mov	w1, #2
	b	LBB0_3
LBB0_2:
	mov	w1, #3
LBB0_3:
	mov	w2, #1
	mov	w3, #2
	bl	_CNTM_set
	tbnz	x0, #63, LBB0_13
; %bb.4:
	mov	w8, #98
	mul	w8, w21, w8
	mov	w23, #34079
	movk	w23, #20971, lsl #16
	smull	x8, w8, w23
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w22, w8, w9
	mov	x0, x19
	mov	x1, x22
	bl	_smrt_info_get
	mov	x0, x19
	mov	x1, x22
	bl	_smrt_set
	mov	x0, x19
	bl	_srst
	mov	w0, #10
	bl	_msleep_interruptible
	add	x22, sp, #13
	add	x2, sp, #13
	mov	x0, x19
	mov	w1, #55
	bl	_mb86a16_read
	cmp	w0, #2
	b.ne	LBB0_10
; %bb.5:
	mov	x0, x19
	mov	x1, x21
	bl	_smrt_info_get
	mov	x0, x19
	mov	x1, x21
	bl	_smrt_set
	mov	x0, x19
	bl	_srst
	mov	w0, #10
	bl	_msleep_interruptible
	add	x2, x22, #1
	mov	x0, x19
	mov	w1, #55
	bl	_mb86a16_read
	cmp	w0, #2
	b.ne	LBB0_10
; %bb.6:
	mov	w8, #102
	mul	w8, w21, w8
	smull	x8, w8, w23
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w21, w8, w9
	mov	x0, x19
	mov	x1, x21
	bl	_smrt_info_get
	mov	x0, x19
	mov	x1, x21
	bl	_smrt_set
	mov	x0, x19
	bl	_srst
	mov	w0, #10
	bl	_msleep_interruptible
	add	x8, sp, #13
	add	x2, x8, #2
	mov	x0, x19
	mov	w1, #55
	bl	_mb86a16_read
	cmp	w0, #2
	b.ne	LBB0_10
; %bb.7:
	ldrb	w8, [sp, #14]
	ldrb	w10, [sp, #13]
	mov	w9, #112
	mul	w11, w10, w9
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	umull	x11, w11, w10
	lsr	x11, x11, #37
	cmp	w11, w8
	b.hs	LBB0_11
; %bb.8:
	ldrb	w11, [sp, #15]
	mul	w9, w11, w9
	umull	x9, w9, w10
	lsr	x9, x9, #37
	cmp	w9, w8
	b.hs	LBB0_11
; %bb.9:
	mov	w21, #1
	b	LBB0_12
LBB0_10:
Lloh0:
	adrp	x8, _verbose@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _MB86A16_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MB86A16_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x3, l_.str.1@PAGE
Lloh7:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w2, #1
	bl	_dprintk
Lloh8:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_14
LBB0_11:
	mov	w21, #0
LBB0_12:
	strb	w8, [x20]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	mov	w3, #2
	bl	_CNTM_set
	tbz	x0, #63, LBB0_14
LBB0_13:
Lloh11:
	adrp	x8, _verbose@GOTPAGE
Lloh12:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _MB86A16_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MB86A16_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x3, l_.str@PAGE
Lloh18:
	add	x3, x3, l_.str@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	mov	w21, #-1
LBB0_14:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_verbose,4,2                    ; @verbose
	.comm	_MB86A16_ERROR,4,2              ; @MB86A16_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CNTM set Error"

l_.str.1:                               ; @.str.1
	.asciz	"I2C transfer error"

	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.no_dead_strip	_signal_det
.subsections_via_symbols
