	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lgdt3306a_read_signal_strength
_lgdt3306a_read_signal_strength:        ## @lgdt3306a_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, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movq	$0, (%rsi)
	movl	(%r12), %eax
	leal	-129(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_1
## %bb.3:
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	movl	$166, %esi
	callq	_lgdt3306a_read_reg
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_lg_chkerr
	testq	%rax, %rax
	jne	LBB0_11
## %bb.4:
	testb	$4, -44(%rbp)
	movl	$2200, %eax                     ## imm = 0x898
	movl	$2800, %r13d                    ## imm = 0xAF0
	cmovel	%eax, %r13d
	jmp	LBB0_5
LBB0_1:
	movl	$1600, %r13d                    ## imm = 0x640
	cmpl	$128, %eax
	jne	LBB0_2
LBB0_5:
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	*(%rbx)
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_lg_chkerr
	testq	%rax, %rax
	jne	LBB0_11
## %bb.6:
	movl	4(%r12), %eax
	leal	-100(%r13), %ecx
	cmpl	%ecx, %eax
	jle	LBB0_7
## %bb.8:
	movl	$42597, %esi                    ## imm = 0xA665
	subl	%r13d, %eax
	jle	LBB0_10
## %bb.9:
	cltq
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$36, %rax
	addl	%ecx, %eax
	cmpl	$22, %eax
	movl	$22, %ecx
	cmovll	%eax, %ecx
	movl	%ecx, %eax
	shll	$16, %eax
	subl	%ecx, %eax
	addl	$5111730, %eax                  ## imm = 0x4DFFB2
	cltq
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	movslq	%eax, %rsi
	jmp	LBB0_10
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_11
LBB0_7:
	xorl	%esi, %esi
LBB0_10:
	movq	%rsi, (%r14)
	leaq	L_.str(%rip), %rdi
	callq	_dbg_info
LBB0_11:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"strength=%u\n"

	.no_dead_strip	_lgdt3306a_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 lgdt3306a_read_signal_strength
_lgdt3306a_read_signal_strength:        ; @lgdt3306a_read_signal_strength
	.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	x19, x1
	mov	x22, x0
	ldr	x21, [x0, #8]
	str	xzr, [x1]
	ldr	w8, [x21]
	sub	w9, w8, #129
	cmp	w9, #3
	b.hs	LBB0_3
; %bb.1:
	add	x2, sp, #12
	mov	x0, x21
	mov	w1, #166
	bl	_lgdt3306a_read_reg
	mov	x20, x0
	bl	_lg_chkerr
	cbnz	x0, LBB0_13
; %bb.2:
	ldrb	w8, [sp, #12]
	tst	w8, #0x4
	mov	w8, #2800
	mov	w9, #2200
	csel	w23, w9, w8, eq
	b	LBB0_5
LBB0_3:
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.4:
	mov	w23, #1600
LBB0_5:
	ldr	x8, [x22]
	mov	x1, sp
	mov	x0, x22
	blr	x8
	mov	x20, x0
	bl	_lg_chkerr
	cbnz	x0, LBB0_13
; %bb.6:
	ldr	w8, [x21, #4]
	sub	w9, w23, #100
	cmp	w8, w9
	b.le	LBB0_10
; %bb.7:
	subs	w8, w8, w23
	b.le	LBB0_11
; %bb.8:
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x8, w8, w9
	lsr	x10, x8, #63
	asr	x8, x8, #36
	add	w8, w8, w10
	mov	w10, #22
	cmp	w8, #22
	csel	w8, w8, w10, lt
	lsl	w10, w8, #16
	sub	w8, w10, w8
	add	w8, w8, #1247, lsl #12          ; =5107712
	add	w8, w8, #4018
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w9
	sxtw	x1, w8
	b	LBB0_12
LBB0_9:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_13
LBB0_10:
	mov	x1, #0
	b	LBB0_12
LBB0_11:
	mov	w1, #42597
LBB0_12:
	str	x1, [x19]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg_info
LBB0_13:
	mov	x0, x20
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"strength=%u\n"

	.no_dead_strip	_lgdt3306a_read_signal_strength
.subsections_via_symbols
