	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_bss
_check_bss:                             ## @check_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	16(%rsi), %rdi
	movl	(%rdi), %ebx
	movl	12(%rsi), %esi
	callq	_ieee80211_chan2ieee
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_isclr
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_1
LBB0_14:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	(%r15), %rcx
	movq	_IEEE80211_M_IBSS@GOTPCREL(%rip), %rdx
	movl	(%r12), %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.2:
	movq	_IEEE80211_CAPINFO_IBSS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_5
	jmp	LBB0_14
LBB0_3:
	movq	_IEEE80211_CAPINFO_ESS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
LBB0_5:
	movq	_IEEE80211_F_PRIVACY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_IEEE80211_CAPINFO_PRIVACY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%edx, 8(%r15)
	je	LBB0_7
## %bb.6:
	testl	%eax, %ecx
	jne	LBB0_8
	jmp	LBB0_14
LBB0_7:
	testl	%eax, %ecx
	jne	LBB0_14
LBB0_8:
	movq	_IEEE80211_F_JOIN@GOTPCREL(%rip), %rax
	movq	_IEEE80211_F_DONEGO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	leaq	8(%r12), %rsi
	movq	_IEEE80211_F_DOFRATE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r12, %rdi
	callq	_ieee80211_fix_rate
	movq	_IEEE80211_RATE_BASIC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_14
## %bb.9:
	movq	16(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.10:
	movl	28(%r15), %edx
	movq	%r12, %rdi
	callq	_match_ssid
	testl	%eax, %eax
	je	LBB0_14
LBB0_11:
	movq	_IEEE80211_F_DESBSSID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	je	LBB0_13
## %bb.12:
	movl	24(%r15), %edi
	movl	4(%r12), %esi
	callq	_IEEE80211_ADDR_EQ
	testl	%eax, %eax
	je	LBB0_14
LBB0_13:
	movl	$1, %r14d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_M_IBSS,8,3           ## @IEEE80211_M_IBSS
	.comm	_IEEE80211_CAPINFO_IBSS,4,2     ## @IEEE80211_CAPINFO_IBSS
	.comm	_IEEE80211_CAPINFO_ESS,4,2      ## @IEEE80211_CAPINFO_ESS
	.comm	_IEEE80211_F_PRIVACY,4,2        ## @IEEE80211_F_PRIVACY
	.comm	_IEEE80211_CAPINFO_PRIVACY,4,2  ## @IEEE80211_CAPINFO_PRIVACY
	.comm	_IEEE80211_F_JOIN,4,2           ## @IEEE80211_F_JOIN
	.comm	_IEEE80211_F_DONEGO,4,2         ## @IEEE80211_F_DONEGO
	.comm	_IEEE80211_F_DOFRATE,4,2        ## @IEEE80211_F_DOFRATE
	.comm	_IEEE80211_RATE_BASIC,4,2       ## @IEEE80211_RATE_BASIC
	.comm	_IEEE80211_F_DESBSSID,4,2       ## @IEEE80211_F_DESBSSID
	.no_dead_strip	_check_bss
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_bss
_check_bss:                             ; @check_bss
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x1, #16]
	ldr	w21, [x0]
	ldr	w1, [x1, #12]
	bl	_ieee80211_chan2ieee
	mov	x1, x0
	mov	x0, x21
	bl	_isclr
	cbz	x0, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x9, [x20]
Lloh0:
	adrp	x8, _IEEE80211_M_IBSS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_M_IBSS@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
	ldr	w8, [x19]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.4:
Lloh3:
	adrp	x9, _IEEE80211_CAPINFO_IBSS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_CAPINFO_IBSS@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x9, _IEEE80211_CAPINFO_ESS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IEEE80211_CAPINFO_ESS@GOTPAGEOFF]
LBB0_6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.7:
	ldr	w9, [x20, #8]
Lloh7:
	adrp	x10, _IEEE80211_F_PRIVACY@GOTPAGE
Lloh8:
	ldr	x10, [x10, _IEEE80211_F_PRIVACY@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
Lloh10:
	adrp	x11, _IEEE80211_CAPINFO_PRIVACY@GOTPAGE
Lloh11:
	ldr	x11, [x11, _IEEE80211_CAPINFO_PRIVACY@GOTPAGEOFF]
Lloh12:
	ldr	w11, [x11]
	and	w8, w11, w8
	tst	w10, w9
	b.eq	LBB0_9
; %bb.8:
	cbnz	w8, LBB0_10
	b	LBB0_1
LBB0_9:
	cbnz	w8, LBB0_1
LBB0_10:
	add	x1, x19, #8
Lloh13:
	adrp	x8, _IEEE80211_F_JOIN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IEEE80211_F_JOIN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _IEEE80211_F_DONEGO@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IEEE80211_F_DONEGO@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh19:
	adrp	x9, _IEEE80211_F_DOFRATE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IEEE80211_F_DOFRATE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_ieee80211_fix_rate
Lloh22:
	adrp	x8, _IEEE80211_RATE_BASIC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IEEE80211_RATE_BASIC@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_1
; %bb.11:
	ldr	x1, [x20, #16]
	cbz	x1, LBB0_13
; %bb.12:
	ldr	w2, [x20, #28]
	mov	x0, x19
	bl	_match_ssid
	cbz	w0, LBB0_2
LBB0_13:
	ldr	w8, [x20, #8]
Lloh25:
	adrp	x9, _IEEE80211_F_DESBSSID@GOTPAGE
Lloh26:
	ldr	x9, [x9, _IEEE80211_F_DESBSSID@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.14:
	ldr	w0, [x20, #24]
	ldr	w1, [x19, #4]
	bl	_IEEE80211_ADDR_EQ
	cbz	w0, LBB0_2
LBB0_15:
	mov	w0, #1
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_M_IBSS,8,3           ; @IEEE80211_M_IBSS
	.comm	_IEEE80211_CAPINFO_IBSS,4,2     ; @IEEE80211_CAPINFO_IBSS
	.comm	_IEEE80211_CAPINFO_ESS,4,2      ; @IEEE80211_CAPINFO_ESS
	.comm	_IEEE80211_F_PRIVACY,4,2        ; @IEEE80211_F_PRIVACY
	.comm	_IEEE80211_CAPINFO_PRIVACY,4,2  ; @IEEE80211_CAPINFO_PRIVACY
	.comm	_IEEE80211_F_JOIN,4,2           ; @IEEE80211_F_JOIN
	.comm	_IEEE80211_F_DONEGO,4,2         ; @IEEE80211_F_DONEGO
	.comm	_IEEE80211_F_DOFRATE,4,2        ; @IEEE80211_F_DOFRATE
	.comm	_IEEE80211_RATE_BASIC,4,2       ; @IEEE80211_RATE_BASIC
	.comm	_IEEE80211_F_DESBSSID,4,2       ; @IEEE80211_F_DESBSSID
	.no_dead_strip	_check_bss
.subsections_via_symbols
