	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wnm_nei_rep_add_bss
_wnm_nei_rep_add_bss:                   ## @wnm_nei_rep_add_bss
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	_WLAN_EID_HT_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_wpa_bss_get_ie
	xorl	%r15d, %r15d
	testq	%rax, %rax
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.1:
	cmpl	$2, 4(%rax)
	jl	LBB0_4
## %bb.2:
	movq	%rax, %rbx
	addq	$8, %rbx
	movl	8(%rax), %eax
	movq	_HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE@GOTPCREL(%rip), %rcx
	movl	$1, %r14d
	testl	%eax, (%rcx)
	jne	LBB0_5
## %bb.3:
	movq	_HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	xorl	%r14d, %r14d
	negl	%eax
	sbbl	%r14d, %r14d
	jmp	LBB0_5
LBB0_4:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
LBB0_5:
	movq	_WLAN_EID_VHT_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_wpa_bss_get_ie
	testq	%rax, %rax
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.6:
	cmpl	$0, 4(%rax)
	jle	LBB0_9
## %bb.7:
	movq	%rax, %r12
	addq	$8, %r12
	movl	8(%rax), %eax
	movq	_CHANWIDTH_80MHZ@GOTPCREL(%rip), %rcx
	movq	_CHANWIDTH_160MHZ@GOTPCREL(%rip), %rdx
	movq	_CHANWIDTH_80P80MHZ@GOTPCREL(%rip), %rsi
	xorl	%r15d, %r15d
	cmpl	(%rsi), %eax
	cmovel	%eax, %r15d
	cmpl	(%rdx), %eax
	cmovel	%eax, %r15d
	cmpl	(%rcx), %eax
	cmovel	%eax, %r15d
	jmp	LBB0_11
LBB0_9:
	xorl	%r15d, %r15d
LBB0_10:
	xorl	%r12d, %r12d
LBB0_11:
	movl	4(%r13), %edi
	leaq	-52(%rbp), %rcx
	leaq	-48(%rbp), %r8
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_ieee80211_freq_to_channel_ext
	movq	_NUM_HOSTAPD_MODES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_15
LBB0_13:
	movl	4(%r13), %edi
	xorl	%esi, %esi
	testq	%rbx, %rbx
	setne	%sil
	xorl	%edx, %edx
	testq	%r12, %r12
	setne	%dl
	callq	_ieee80211_get_phy_type
	movl	%eax, %ebx
	movq	_PHY_TYPE_UNSPECIFIED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_16
## %bb.14:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_15:
	callq	_wpa_printf
	movl	$-2, %eax
	jmp	LBB0_17
LBB0_16:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_wnm_get_bss_info
	movl	(%r13), %esi
	movl	-52(%rbp), %ecx
	movl	-48(%rbp), %r8d
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, (%rsp)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	movl	%ebx, %r9d
	callq	_wnm_add_nei_rep
LBB0_17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_EID_HT_OPERATION,4,2      ## @WLAN_EID_HT_OPERATION
	.comm	_HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE,4,2 ## @HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE
	.comm	_HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW,4,2 ## @HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW
	.comm	_WLAN_EID_VHT_OPERATION,4,2     ## @WLAN_EID_VHT_OPERATION
	.comm	_CHANWIDTH_80MHZ,4,2            ## @CHANWIDTH_80MHZ
	.comm	_CHANWIDTH_160MHZ,4,2           ## @CHANWIDTH_160MHZ
	.comm	_CHANWIDTH_80P80MHZ,4,2         ## @CHANWIDTH_80P80MHZ
	.comm	_NUM_HOSTAPD_MODES,8,3          ## @NUM_HOSTAPD_MODES
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WNM: Cannot determine operating class and channel"

	.comm	_PHY_TYPE_UNSPECIFIED,4,2       ## @PHY_TYPE_UNSPECIFIED
L_.str.1:                               ## @.str.1
	.asciz	"WNM: Cannot determine BSS phy type for Neighbor Report"

	.no_dead_strip	_wnm_nei_rep_add_bss
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wnm_nei_rep_add_bss
_wnm_nei_rep_add_bss:                   ; @wnm_nei_rep_add_bss
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _WLAN_EID_HT_OPERATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_EID_HT_OPERATION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_wpa_bss_get_ie
	mov	x23, x0
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x23, #4]
	cmp	w8, #2
	b.lt	LBB0_5
; %bb.2:
	ldr	w8, [x23, #8]!
Lloh3:
	adrp	x9, _HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	mov	w24, #1
	b	LBB0_7
LBB0_4:
	mov	w24, #0
	b	LBB0_7
LBB0_5:
	mov	w24, #0
	mov	x23, #0
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x9, _HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	csetm	w24, ne
LBB0_7:
Lloh9:
	adrp	x8, _WLAN_EID_VHT_OPERATION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WLAN_EID_VHT_OPERATION@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_wpa_bss_get_ie
	mov	x25, x0
	cbz	x0, LBB0_10
; %bb.8:
	ldr	w8, [x25, #4]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:
	ldr	w8, [x25, #8]!
Lloh12:
	adrp	x9, _CHANWIDTH_80MHZ@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CHANWIDTH_80MHZ@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _CHANWIDTH_160MHZ@GOTPAGE
Lloh16:
	ldr	x10, [x10, _CHANWIDTH_160MHZ@GOTPAGEOFF]
Lloh17:
	adrp	x11, _CHANWIDTH_80P80MHZ@GOTPAGE
Lloh18:
	ldr	x11, [x11, _CHANWIDTH_80P80MHZ@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
Lloh20:
	ldr	w11, [x11]
	cmp	w8, w11
	ccmp	w8, w10, #4, ne
	ccmp	w8, w9, #4, ne
	csel	w2, w8, wzr, eq
	b	LBB0_12
LBB0_10:
	mov	w2, #0
	b	LBB0_12
LBB0_11:
	mov	w2, #0
	mov	x25, #0
LBB0_12:
	ldr	w0, [x21, #4]
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x1, x24
	bl	_ieee80211_freq_to_channel_ext
Lloh21:
	adrp	x8, _NUM_HOSTAPD_MODES@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NUM_HOSTAPD_MODES@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.13:
Lloh24:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_16
LBB0_14:
	ldr	w0, [x21, #4]
	cmp	x23, #0
	cset	w1, ne
	cmp	x25, #0
	cset	w2, ne
	bl	_ieee80211_get_phy_type
Lloh29:
	adrp	x8, _PHY_TYPE_UNSPECIFIED@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PHY_TYPE_UNSPECIFIED@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_17
; %bb.15:
Lloh32:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
Lloh35:
	adrp	x1, l_.str.1@PAGE
Lloh36:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_16:
	bl	_wpa_printf
	mov	w0, #-2
	b	LBB0_18
LBB0_17:
	mov	x23, x0
	mov	x0, x22
	mov	x1, x21
	bl	_wnm_get_bss_info
	mov	x2, x0
	ldr	w1, [x21]
	ldp	w4, w3, [sp, #8]
	mov	x0, x20
	mov	x5, x23
	mov	x6, x19
	bl	_wnm_add_nei_rep
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_EID_HT_OPERATION,4,2      ; @WLAN_EID_HT_OPERATION
	.comm	_HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE,4,2 ; @HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE
	.comm	_HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW,4,2 ; @HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW
	.comm	_WLAN_EID_VHT_OPERATION,4,2     ; @WLAN_EID_VHT_OPERATION
	.comm	_CHANWIDTH_80MHZ,4,2            ; @CHANWIDTH_80MHZ
	.comm	_CHANWIDTH_160MHZ,4,2           ; @CHANWIDTH_160MHZ
	.comm	_CHANWIDTH_80P80MHZ,4,2         ; @CHANWIDTH_80P80MHZ
	.comm	_NUM_HOSTAPD_MODES,8,3          ; @NUM_HOSTAPD_MODES
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WNM: Cannot determine operating class and channel"

	.comm	_PHY_TYPE_UNSPECIFIED,4,2       ; @PHY_TYPE_UNSPECIFIED
l_.str.1:                               ; @.str.1
	.asciz	"WNM: Cannot determine BSS phy type for Neighbor Report"

	.no_dead_strip	_wnm_nei_rep_add_bss
.subsections_via_symbols
