	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_rssi_postprocess
_b43_rssi_postprocess:                  ## @b43_rssi_postprocess
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	movl	8(%rdi), %eax
	cmpl	$8288, %eax                     ## imm = 0x2060
	je	LBB0_10
## %bb.1:
	cmpl	$8272, %eax                     ## imm = 0x2050
	jne	LBB0_11
## %bb.2:
	movl	%r8d, %r14d
	testl	%edx, %edx
	je	LBB0_6
## %bb.3:
	leal	-256(%rsi), %eax
	cmpl	$127, %esi
	cmovlel	%esi, %eax
	leal	(%rax,%rax,8), %ecx
	leal	(%rax,%rcx,8), %edx
	leal	(%rax,%rcx,8), %eax
	addl	$63, %eax
	testl	%edx, %edx
	cmovnsl	%edx, %eax
	sarl	$6, %eax
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.4:
	addl	$25, %eax
	jmp	LBB0_14
LBB0_10:
	leal	-256(%rsi), %eax
	cmpl	$127, %esi
	cmovlel	%esi, %eax
	jmp	LBB0_14
LBB0_11:
	imull	$103, %esi, %eax
	leal	-1133(%rax), %edx
	addl	$-1070, %eax                    ## imm = 0xFBD2
	testl	%edx, %edx
	cmovnsl	%edx, %eax
	sarl	$6, %eax
	testl	%ecx, %ecx
	je	LBB0_13
## %bb.12:
	addl	$-109, %eax
	jmp	LBB0_14
LBB0_6:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_B43_BFL_RSSI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.8:
	movq	16(%rbx), %r15
	cmpl	$63, %esi
	movl	$63, %r12d
	cmovll	%esi, %r12d
	movl	12(%rbx), %eax
	movq	_B43_PHYTYPE_G@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setne	%dil
	callq	_B43_WARN_ON
	movq	(%r15), %rax
	movslq	%r12d, %rcx
	movl	(%rax,%rcx,4), %esi
	movl	$-57, %eax
	movl	$-131, %ecx
	jmp	LBB0_9
LBB0_13:
	addl	$-83, %eax
	jmp	LBB0_14
LBB0_5:
	addl	$-3, %eax
	jmp	LBB0_14
LBB0_7:
	movl	$-68, %eax
	movl	$-149, %ecx
LBB0_9:
	movl	$31, %edx
	subl	%esi, %edx
	imull	%ecx, %edx
	leal	127(%rdx), %ecx
	testl	%edx, %edx
	cmovnsl	%edx, %ecx
	sarl	$7, %ecx
	movl	12(%rbx), %edx
	movq	_B43_PHYTYPE_G@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	leal	(%rcx,%rax), %edx
	leal	25(%rcx,%rax), %eax
	cmovnel	%edx, %eax
	testl	%r14d, %r14d
	cmovel	%edx, %eax
LBB0_14:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_BFL_RSSI,4,2               ## @B43_BFL_RSSI
	.comm	_B43_PHYTYPE_G,4,2              ## @B43_PHYTYPE_G
	.no_dead_strip	_b43_rssi_postprocess
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_rssi_postprocess
_b43_rssi_postprocess:                  ; @b43_rssi_postprocess
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x0, #8]
	mov	w9, #8288
	cmp	w8, w9
	b.eq	LBB0_5
; %bb.1:
	mov	w9, #8272
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.2:
	mov	x19, x4
	cbz	w2, LBB0_8
; %bb.3:
	sub	w8, w1, #256
	cmp	w1, #127
	csel	w8, w8, w1, gt
	mov	w9, #73
	mul	w8, w8, w9
	add	w9, w8, #63
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #6
	cbz	w19, LBB0_11
; %bb.4:
	add	w0, w8, #25
	b	LBB0_14
LBB0_5:
	sub	w8, w1, #256
	cmp	w1, #127
	csel	w0, w8, w1, gt
	b	LBB0_14
LBB0_6:
	mov	w8, #103
	mul	w8, w1, w8
	sub	w9, w8, #1133
	sub	w8, w8, #1070
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w8, w8, #6
	cbz	w3, LBB0_10
; %bb.7:
	sub	w0, w8, #109
	b	LBB0_14
LBB0_8:
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _B43_BFL_RSSI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _B43_BFL_RSSI@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x21, _B43_PHYTYPE_G@GOTPAGE
Lloh4:
	ldr	x21, [x21, _B43_PHYTYPE_G@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.9:
	ldr	x22, [x20, #16]
	mov	w8, #63
	cmp	w1, #63
	csel	w23, w1, w8, lt
	ldr	w8, [x20, #12]
	ldr	w9, [x21]
	cmp	w8, w9
	cset	w0, ne
	bl	_B43_WARN_ON
	ldr	x8, [x22]
	ldr	w1, [x8, w23, sxtw #2]
	mov	w8, #-57
	mov	w9, #-131
	b	LBB0_13
LBB0_10:
	sub	w0, w8, #83
	b	LBB0_14
LBB0_11:
	sub	w0, w8, #3
	b	LBB0_14
LBB0_12:
	mov	w8, #-68
	mov	w9, #-149
LBB0_13:
	mov	w10, #31
	sub	w10, w10, w1
	mul	w9, w10, w9
	add	w10, w9, #127
	cmp	w9, #0
	csel	w9, w10, w9, lt
	add	w8, w8, w9, asr #7
	ldr	w9, [x20, #12]
	ldr	w10, [x21]
	cmp	w9, w10
	ccmp	w19, #0, #4, eq
	add	w9, w8, #25
	csel	w0, w9, w8, ne
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_BFL_RSSI,4,2               ; @B43_BFL_RSSI
	.comm	_B43_PHYTYPE_G,4,2              ; @B43_PHYTYPE_G
	.no_dead_strip	_b43_rssi_postprocess
.subsections_via_symbols
