	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s921_read_signal_strength
_s921_read_signal_strength:             ## @s921_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
	movq	(%rdi), %rbx
	leaq	-20(%rbp), %rsi
	callq	_s921_read_status
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	_FE_HAS_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-20(%rbp), %eax
	movl	$65535, %esi                    ## imm = 0xFFFF
	cmovel	%eax, %esi
	movl	%esi, (%r14)
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_s921_readreg
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_dprintk
	movq	%rbx, %rdi
	movl	$128, %esi
	callq	_s921_readreg
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_dprintk
	movq	%rbx, %rdi
	movl	$50, %esi
	callq	_s921_readreg
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_dprintk
	xorl	%eax, %eax
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FE_HAS_LOCK,4,2                ## @FE_HAS_LOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"strength = 0x%04x\n"

L_.str.1:                               ## @.str.1
	.asciz	"status 0x01: %02x\n"

L_.str.2:                               ## @.str.2
	.asciz	"status 0x80: %02x\n"

L_.str.3:                               ## @.str.3
	.asciz	"status 0x32: %02x\n"

	.no_dead_strip	_s921_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 s921_read_signal_strength
_s921_read_signal_strength:             ; @s921_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	x20, x1
	ldr	x19, [x0]
	add	x1, sp, #12
	bl	_s921_read_status
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _FE_HAS_LOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FE_HAS_LOCK@GOTPAGEOFF]
	ldr	w9, [sp, #12]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w9
	mov	w8, #65535
	csel	w1, wzr, w8, eq
	str	w1, [x20]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	mov	x0, x19
	mov	w1, #1
	bl	_s921_readreg
	mov	x1, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
	mov	x0, x19
	mov	w1, #128
	bl	_s921_readreg
	mov	x1, x0
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dprintk
	mov	x0, x19
	mov	w1, #50
	bl	_s921_readreg
	mov	x1, x0
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_dprintk
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FE_HAS_LOCK,4,2                ; @FE_HAS_LOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"strength = 0x%04x\n"

l_.str.1:                               ; @.str.1
	.asciz	"status 0x01: %02x\n"

l_.str.2:                               ; @.str.2
	.asciz	"status 0x80: %02x\n"

l_.str.3:                               ; @.str.3
	.asciz	"status 0x32: %02x\n"

	.no_dead_strip	_s921_read_signal_strength
.subsections_via_symbols
