	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mb86a16_read_signal_strength
_mb86a16_read_signal_strength:          ## @mb86a16_read_signal_strength
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	$0, -20(%rbp)
	movq	(%rdi), %rdi
	movl	$0, (%rsi)
	movq	_MB86A16_AGCM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_mb86a16_read
	cmpl	$2, %eax
	jne	LBB0_1
## %bb.2:
	movl	$255, %eax
	subl	-20(%rbp), %eax
	imull	$100, %eax, %eax
	leal	255(%rax), %r8d
	testl	%eax, %eax
	cmovnsl	%eax, %r8d
	sarl	$8, %r8d
	movl	%r8d, (%r14)
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MB86A16_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	xorl	%ebx, %ebx
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movl	$65280, %eax                    ## imm = 0xFF00
	addl	-20(%rbp), %eax
	movl	%eax, (%r14)
	jmp	LBB0_3
LBB0_1:
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MB86A16_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	xorl	%ebx, %ebx
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MB86A16_AGCM,4,2               ## @MB86A16_AGCM
	.comm	_verbose,4,2                    ## @verbose
	.comm	_MB86A16_ERROR,4,2              ## @MB86A16_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I2C transfer error"

	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.comm	_MB86A16_DEBUG,4,2              ## @MB86A16_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"Signal strength=[%d %%]"

	.no_dead_strip	_mb86a16_read_signal_strength
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mb86a16_read_signal_strength
_mb86a16_read_signal_strength:          ; @mb86a16_read_signal_strength
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	str	wzr, [sp, #12]
	ldr	x0, [x0]
	str	wzr, [x1]
Lloh0:
	adrp	x8, _MB86A16_AGCM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MB86A16_AGCM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_mb86a16_read
	cmp	w0, #2
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [sp, #12]
	mov	w9, #255
	sub	w8, w9, w8
	mov	w9, #100
	mul	w8, w8, w9
	add	w9, w8, #255
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #8
	str	w8, [x19]
Lloh3:
	adrp	x9, _verbose@GOTPAGE
Lloh4:
	ldr	x9, [x9, _verbose@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x9]
Lloh6:
	adrp	x9, _MB86A16_DEBUG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MB86A16_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh9:
	adrp	x3, l_.str.1@PAGE
Lloh10:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	mov	w0, #0
	ldr	w8, [sp, #12]
	mov	w9, #65280
	add	w8, w8, w9
	str	w8, [x19]
	b	LBB0_3
LBB0_2:
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
Lloh19:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MB86A16_AGCM,4,2               ; @MB86A16_AGCM
	.comm	_verbose,4,2                    ; @verbose
	.comm	_MB86A16_ERROR,4,2              ; @MB86A16_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I2C transfer error"

	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.comm	_MB86A16_DEBUG,4,2              ; @MB86A16_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"Signal strength=[%d %%]"

	.no_dead_strip	_mb86a16_read_signal_strength
.subsections_via_symbols
