	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_scan_result_compar
_wpa_scan_result_compar:                ## @wpa_scan_result_compar
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	movq	(%rsi), %r15
	movq	_WPA_IE_VENDOR_TYPE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_wpa_scan_get_vendor_ie
	movb	$1, %bl
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_WLAN_EID_RSN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wpa_scan_get_ie
	testq	%rax, %rax
	setne	%bl
LBB0_2:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_wpa_scan_get_vendor_ie
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	movq	_WLAN_EID_RSN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_wpa_scan_get_ie
	testq	%rax, %rax
	sete	%al
LBB0_5:
	movl	%eax, %ecx
	orb	%bl, %cl
	movl	$1, %r12d
	cmpb	$1, %cl
	jne	LBB0_27
## %bb.6:
	testb	%bl, %al
	je	LBB0_8
## %bb.7:
	movl	$-1, %r12d
LBB0_27:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_IEEE80211_CAP_PRIVACY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%r15), %ecx
	testl	%eax, (%r14)
	je	LBB0_9
## %bb.10:
	movl	$-1, %r12d
	testl	%eax, %ecx
	jne	LBB0_11
	jmp	LBB0_27
LBB0_9:
	testl	%eax, %ecx
	jne	LBB0_27
LBB0_11:
	movl	4(%r15), %eax
	andl	4(%r14), %eax
	movq	_WPA_SCAN_LEVEL_DBM@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.12:
	movl	8(%r14), %r13d
	movq	_GREAT_SNR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r13d
	movl	%eax, %ecx
	cmovll	%r13d, %ecx
	movl	8(%r15), %r12d
	cmpl	%eax, %r12d
	cmovll	%r12d, %eax
	testl	%ecx, %ecx
	jne	LBB0_15
	jmp	LBB0_20
LBB0_13:
	movl	12(%r14), %ecx
	movl	12(%r15), %eax
	movl	%ecx, %r13d
	movl	%eax, %r12d
	testl	%ecx, %ecx
	je	LBB0_20
LBB0_15:
	testl	%eax, %eax
	je	LBB0_20
## %bb.16:
	subl	%ecx, %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovsl	%eax, %ecx
	cmpl	$6, %ecx
	ja	LBB0_20
## %bb.17:
	movq	16(%r14), %rax
	movq	16(%r15), %rdx
	cmpq	%rdx, %rax
	jne	LBB0_18
## %bb.19:
	cmpl	$5, %ecx
	jb	LBB0_23
LBB0_20:
	movl	24(%r14), %eax
	testl	%eax, %eax
	je	LBB0_25
## %bb.21:
	movl	24(%r15), %ecx
	testl	%ecx, %ecx
	je	LBB0_25
## %bb.22:
	subl	%eax, %ecx
	movl	%ecx, %eax
	negl	%eax
	cmovsl	%ecx, %eax
	cmpl	$9, %eax
	ja	LBB0_25
LBB0_23:
	movl	28(%r14), %edi
	callq	_IS_5GHZ
	movl	%eax, %ebx
	movl	28(%r15), %edi
	callq	_IS_5GHZ
	cmpl	%eax, %ebx
	jne	LBB0_24
LBB0_25:
	subl	%r13d, %r12d
	jne	LBB0_27
## %bb.26:
	movl	24(%r15), %r12d
	subl	24(%r14), %r12d
	jmp	LBB0_27
LBB0_18:
	subl	%eax, %edx
	movl	%edx, %r12d
	jmp	LBB0_27
LBB0_24:
	movl	28(%r14), %edi
	callq	_IS_5GHZ
	xorl	%r12d, %r12d
	negl	%eax
	sbbl	%r12d, %r12d
	orl	$1, %r12d
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_IE_VENDOR_TYPE,4,2         ## @WPA_IE_VENDOR_TYPE
	.comm	_WLAN_EID_RSN,4,2               ## @WLAN_EID_RSN
	.comm	_IEEE80211_CAP_PRIVACY,4,2      ## @IEEE80211_CAP_PRIVACY
	.comm	_WPA_SCAN_LEVEL_DBM,4,2         ## @WPA_SCAN_LEVEL_DBM
	.comm	_GREAT_SNR,4,2                  ## @GREAT_SNR
	.no_dead_strip	_wpa_scan_result_compar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_scan_result_compar
_wpa_scan_result_compar:                ; @wpa_scan_result_compar
	.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	x19, [x0]
	ldr	x20, [x1]
Lloh0:
	adrp	x22, _WPA_IE_VENDOR_TYPE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _WPA_IE_VENDOR_TYPE@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_wpa_scan_get_vendor_ie
	cbz	x0, LBB0_2
; %bb.1:
	mov	w21, #1
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _WLAN_EID_RSN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WLAN_EID_RSN@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpa_scan_get_ie
	cmp	x0, #0
	cset	w21, ne
LBB0_3:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_wpa_scan_get_vendor_ie
	cbz	x0, LBB0_5
; %bb.4:
	mov	w8, #0
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _WLAN_EID_RSN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WLAN_EID_RSN@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_wpa_scan_get_ie
	cmp	x0, #0
	cset	w8, eq
LBB0_6:
	orr	w9, w8, w21
	cmp	w9, #1
	b.ne	LBB0_12
; %bb.7:
	and	w8, w8, w21
	tbz	w8, #0, LBB0_9
LBB0_8:
	mov	w0, #-1
	b	LBB0_13
LBB0_9:
	ldr	w9, [x19]
Lloh8:
	adrp	x8, _IEEE80211_CAP_PRIVACY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IEEE80211_CAP_PRIVACY@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x8]
	ldr	w8, [x20]
	and	w8, w8, w10
	tst	w10, w9
	b.eq	LBB0_11
; %bb.10:
	cbnz	w8, LBB0_14
	b	LBB0_8
LBB0_11:
	cbz	w8, LBB0_14
LBB0_12:
	mov	w0, #1
LBB0_13:
	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
LBB0_14:
	ldr	w8, [x19, #4]
	ldr	w9, [x20, #4]
	and	w8, w9, w8
Lloh11:
	adrp	x9, _WPA_SCAN_LEVEL_DBM@GOTPAGE
Lloh12:
	ldr	x9, [x9, _WPA_SCAN_LEVEL_DBM@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w8, w9
	b.eq	LBB0_16
; %bb.15:
	ldr	w22, [x19, #8]
Lloh14:
	adrp	x8, _GREAT_SNR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GREAT_SNR@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x8]
	cmp	w22, w9
	csel	w8, w22, w9, lt
	ldr	w23, [x20, #8]
	cmp	w23, w9
	csel	w9, w23, w9, lt
	b	LBB0_17
LBB0_16:
	ldr	w8, [x19, #12]
	ldr	w9, [x20, #12]
	mov	x22, x8
	mov	x23, x9
LBB0_17:
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	b.eq	LBB0_21
; %bb.18:
	subs	w8, w9, w8
	cneg	w8, w8, mi
	cmp	w8, #6
	b.hi	LBB0_21
; %bb.19:
	ldr	x9, [x19, #16]
	ldr	x10, [x20, #16]
	cmp	x9, x10
	b.ne	LBB0_27
; %bb.20:
	cmp	w8, #5
	b.lo	LBB0_24
LBB0_21:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_25
; %bb.22:
	ldr	w9, [x20, #24]
	cbz	w9, LBB0_25
; %bb.23:
	subs	w8, w9, w8
	cneg	w8, w8, mi
	cmp	w8, #9
	b.hi	LBB0_25
LBB0_24:
	ldr	w0, [x19, #28]
	bl	_IS_5GHZ
	mov	x21, x0
	ldr	w0, [x20, #28]
	bl	_IS_5GHZ
	cmp	w21, w0
	b.ne	LBB0_28
LBB0_25:
	subs	w0, w23, w22
	b.ne	LBB0_13
; %bb.26:
	ldr	w8, [x20, #24]
	ldr	w9, [x19, #24]
	sub	w0, w8, w9
	b	LBB0_13
LBB0_27:
	sub	w0, w10, w9
	b	LBB0_13
LBB0_28:
	ldr	w0, [x19, #28]
	bl	_IS_5GHZ
	cmp	w0, #0
	mov	w8, #1
	cneg	w0, w8, ne
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_IE_VENDOR_TYPE,4,2         ; @WPA_IE_VENDOR_TYPE
	.comm	_WLAN_EID_RSN,4,2               ; @WLAN_EID_RSN
	.comm	_IEEE80211_CAP_PRIVACY,4,2      ; @IEEE80211_CAP_PRIVACY
	.comm	_WPA_SCAN_LEVEL_DBM,4,2         ; @WPA_SCAN_LEVEL_DBM
	.comm	_GREAT_SNR,4,2                  ; @GREAT_SNR
	.no_dead_strip	_wpa_scan_result_compar
.subsections_via_symbols
