	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mb86a20s_read_signal_strength
_mb86a20s_read_signal_strength:         ## @mb86a20s_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	%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	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dprintk
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*%rax
LBB0_2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	$4095, %r15d                    ## imm = 0xFFF
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %r14d
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %eax
	subl	%r14d, %eax
	cmpl	$3, %eax
	jbe	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r15,%r14), %ebx
	movl	%ebx, %r13d
	shrl	%r13d
	movq	%r12, %rdi
	movl	$4, %esi
	movl	$31, %edx
	callq	_mb86a20s_writereg
	shrl	$9, %ebx
	movq	%r12, %rdi
	movl	$5, %esi
	movl	%ebx, %edx
	callq	_mb86a20s_writereg
	movq	%r12, %rdi
	movl	$4, %esi
	movl	$32, %edx
	callq	_mb86a20s_writereg
	movq	%r12, %rdi
	movl	$4, %esi
	movl	%r13d, %edx
	callq	_mb86a20s_writereg
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_mb86a20s_readreg
	testb	$8, %al
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %r15d
	jmp	LBB0_6
LBB0_7:
	addl	%r14d, %r15d
	shrl	%r15d
	movl	%r15d, %esi
	shll	$16, %esi
	subl	%r15d, %esi
	imulq	$1048833, %rsi, %rax            ## imm = 0x100101
	shrq	$32, %rax
	subl	%eax, %esi
	shrl	%esi
	addl	%eax, %esi
	shrl	$11, %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%esi, (%rax)
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_dprintk
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	$1, %esi
	callq	*%rax
LBB0_9:
	xorl	%eax, %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	"\n"

L_.str.1:                               ## @.str.1
	.asciz	"signal strength = %d\n"

	.no_dead_strip	_mb86a20s_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 mb86a20s_read_signal_strength
_mb86a20s_read_signal_strength:         ; @mb86a20s_read_signal_strength
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	blr	x8
LBB0_2:
	mov	w23, #0
	mov	w24, #4095
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w25, w24, w23
	lsr	w22, w25, #1
	mov	x0, x21
	mov	w1, #4
	mov	w2, #31
	bl	_mb86a20s_writereg
	lsr	w2, w25, #9
	mov	x0, x21
	mov	w1, #5
	bl	_mb86a20s_writereg
	mov	x0, x21
	mov	w1, #4
	mov	w2, #32
	bl	_mb86a20s_writereg
	mov	x0, x21
	mov	w1, #4
	mov	x2, x22
	bl	_mb86a20s_writereg
	mov	x0, x21
	mov	w1, #2
	bl	_mb86a20s_readreg
	tst	w0, #0x8
	csel	w23, w23, w22, eq
	csel	w24, w22, w24, eq
	sub	w8, w24, w23
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.4:
	add	w8, w24, w23
	lsr	w8, w8, #1
	lsl	w9, w8, #16
	mov	w10, #257
	movk	w10, #16, lsl #16
	sub	w8, w9, w8
	umull	x9, w8, w10
	lsr	x9, x9, #32
	sub	w8, w8, w9
	add	w8, w9, w8, lsr #1
	lsr	w8, w8, #11
	str	w8, [x20]
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #1
	blr	x8
LBB0_6:
	mov	w0, #0
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

l_.str.1:                               ; @.str.1
	.asciz	"signal strength = %d\n"

	.no_dead_strip	_mb86a20s_read_signal_strength
.subsections_via_symbols
