	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib9000_read_signal_strength
_dib9000_read_signal_strength:          ## @dib9000_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, %rbx
	movq	(%rdi), %r14
	movq	16(%r14), %r15
	movq	%r14, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	$0, (%rbx)
	movq	_MAX_NUMBER_OF_FRONTENDS@GOTPCREL(%rip), %r13
	cmpq	$2, (%r13)
	jb	LBB0_6
## %bb.3:
	movl	$1, %r15d
	movl	$65535, %r12d                   ## imm = 0xFFFF
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%r15,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	-44(%rbp), %rsi
	callq	*(%rdi)
	movl	-44(%rbp), %eax
	movl	(%rbx), %ecx
	movl	$65535, %edx                    ## imm = 0xFFFF
	subl	%ecx, %edx
	addl	%eax, %ecx
	cmpl	%edx, %eax
	cmovgl	%r12d, %ecx
	movl	%ecx, (%rbx)
	incq	%r15
	cmpq	(%r13), %r15
	jb	LBB0_4
LBB0_6:
	leaq	4(%r14), %r12
	movq	%r12, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	js	LBB0_7
## %bb.9:
	movq	_FE_SYNC_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_dib9000_fw_memmbx_sync
	testq	%rax, %rax
	js	LBB0_10
## %bb.11:
	movq	_FE_MM_R_FE_MONITOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	movl	$32, %ecx
	callq	_dib9000_risc_mem_read
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	16(%r15), %edx
	movl	$65535, %eax                    ## imm = 0xFFFF
	subl	%edx, %eax
	movl	%eax, -44(%rbp)
	movl	(%rbx), %ecx
	cmpl	%edx, %ecx
	jle	LBB0_13
## %bb.12:
	movl	$65535, (%rbx)                  ## imm = 0xFFFF
	jmp	LBB0_14
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	movq	_EINTR@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	movq	_EINTR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_10:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_13:
	addl	%eax, %ecx
	movl	%ecx, (%rbx)
LBB0_14:
	xorl	%ebx, %ebx
LBB0_15:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_16:
	movl	%ebx, %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	"could not get the lock\n"

	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_MAX_NUMBER_OF_FRONTENDS,8,3    ## @MAX_NUMBER_OF_FRONTENDS
	.comm	_FE_SYNC_CHANNEL,4,2            ## @FE_SYNC_CHANNEL
	.comm	_EIO,4,2                        ## @EIO
	.comm	_FE_MM_R_FE_MONITOR,4,2         ## @FE_MM_R_FE_MONITOR
	.no_dead_strip	_dib9000_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 dib9000_read_signal_strength
_dib9000_read_signal_strength:          ; @dib9000_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	x20, x1
	ldr	x19, [x0]
	ldr	x21, [x19, #16]
	mov	x0, x19
	bl	_mutex_lock_interruptible
	tbnz	x0, #63, LBB0_9
; %bb.1:
	str	wzr, [x20]
Lloh0:
	adrp	x22, _MAX_NUMBER_OF_FRONTENDS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAX_NUMBER_OF_FRONTENDS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, #2
	b.lo	LBB0_5
; %bb.2:
	mov	w23, #1
	mov	w24, #65535
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x23, lsl #3]
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x0]
	add	x1, sp, #12
	blr	x8
	ldr	w8, [sp, #12]
	ldr	w9, [x20]
	add	w10, w9, w8
	sub	w9, w24, w9
	cmp	w8, w9
	csel	w8, w24, w10, gt
	str	w8, [x20]
	add	x23, x23, #1
	ldr	x8, [x22]
	cmp	x23, x8
	b.lo	LBB0_3
LBB0_5:
	add	x22, x19, #4
	mov	x0, x22
	bl	_mutex_lock_interruptible
	tbnz	x0, #63, LBB0_10
; %bb.6:
Lloh2:
	adrp	x8, _FE_SYNC_CHANNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FE_SYNC_CHANNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dib9000_fw_memmbx_sync
	tbnz	x0, #63, LBB0_11
; %bb.7:
Lloh5:
	adrp	x8, _FE_MM_R_FE_MONITOR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FE_MM_R_FE_MONITOR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	mov	w3, #32
	bl	_dib9000_risc_mem_read
	mov	x0, x22
	bl	_mutex_unlock
	ldr	w11, [x21, #16]
	mov	w8, #65535
	sub	w9, w8, w11
	str	w9, [sp, #12]
	ldr	w10, [x20]
	cmp	w10, w11
	b.le	LBB0_13
; %bb.8:
	mov	w21, #0
	b	LBB0_14
LBB0_9:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
Lloh10:
	adrp	x8, _EINTR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_16
LBB0_10:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
Lloh15:
	adrp	x8, _EINTR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
	mov	x0, x22
	bl	_mutex_unlock
Lloh17:
	adrp	x8, _EIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_15
LBB0_13:
	mov	w21, #0
	add	w8, w10, w9
LBB0_14:
	str	w8, [x20]
LBB0_15:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_16:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not get the lock\n"

	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_MAX_NUMBER_OF_FRONTENDS,8,3    ; @MAX_NUMBER_OF_FRONTENDS
	.comm	_FE_SYNC_CHANNEL,4,2            ; @FE_SYNC_CHANNEL
	.comm	_EIO,4,2                        ; @EIO
	.comm	_FE_MM_R_FE_MONITOR,4,2         ; @FE_MM_R_FE_MONITOR
	.no_dead_strip	_dib9000_read_signal_strength
.subsections_via_symbols
