	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scan_snr                       ## -- Begin function scan_snr
	.p2align	4, 0x90
_scan_snr:                              ## @scan_snr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movq	_WPA_SCAN_NOISE_INVALID@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.1:
	movl	32(%rbx), %edi
	callq	_IS_5GHZ
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	_DEFAULT_NOISE_FLOOR_2GHZ@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_DEFAULT_NOISE_FLOOR_5GHZ@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movl	(%rbx), %eax
LBB0_5:
	movq	_WPA_SCAN_LEVEL_DBM@GOTPCREL(%rip), %rdx
	movq	8(%rbx), %rcx
	testl	%eax, (%rdx)
	je	LBB0_7
## %bb.6:
	subq	24(%rbx), %rcx
LBB0_7:
	movq	%rcx, 16(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_SCAN_NOISE_INVALID,4,2     ## @WPA_SCAN_NOISE_INVALID
	.comm	_DEFAULT_NOISE_FLOOR_5GHZ,8,3   ## @DEFAULT_NOISE_FLOOR_5GHZ
	.comm	_DEFAULT_NOISE_FLOOR_2GHZ,8,3   ## @DEFAULT_NOISE_FLOOR_2GHZ
	.comm	_WPA_SCAN_LEVEL_DBM,4,2         ## @WPA_SCAN_LEVEL_DBM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scan_snr                       ; -- Begin function scan_snr
	.p2align	2
_scan_snr:                              ; @scan_snr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _WPA_SCAN_NOISE_INVALID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WPA_SCAN_NOISE_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19, #32]
	bl	_IS_5GHZ
Lloh3:
	adrp	x8, _DEFAULT_NOISE_FLOOR_5GHZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEFAULT_NOISE_FLOOR_5GHZ@GOTPAGEOFF]
Lloh5:
	adrp	x9, _DEFAULT_NOISE_FLOOR_2GHZ@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DEFAULT_NOISE_FLOOR_2GHZ@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	x8, [x8]
	str	x8, [x19, #24]
	ldr	w8, [x19]
LBB0_2:
Lloh7:
	adrp	x9, _WPA_SCAN_LEVEL_DBM@GOTPAGE
Lloh8:
	ldr	x9, [x9, _WPA_SCAN_LEVEL_DBM@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x9]
	ldr	x9, [x19, #8]
	tst	w10, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x19, #24]
	sub	x9, x9, x8
LBB0_4:
	str	x9, [x19, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_SCAN_NOISE_INVALID,4,2     ; @WPA_SCAN_NOISE_INVALID
	.comm	_DEFAULT_NOISE_FLOOR_5GHZ,8,3   ; @DEFAULT_NOISE_FLOOR_5GHZ
	.comm	_DEFAULT_NOISE_FLOOR_2GHZ,8,3   ; @DEFAULT_NOISE_FLOOR_2GHZ
	.comm	_WPA_SCAN_LEVEL_DBM,4,2         ; @WPA_SCAN_LEVEL_DBM
.subsections_via_symbols
