	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostap_rx_frame_wds
_hostap_rx_frame_wds:                   ## @hostap_rx_frame_wds
	.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
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_IEEE80211_FCTL_TODS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_IEEE80211_FCTL_FROMDS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	%eax, %esi
	movl	%ebx, %edx
	notl	%edx
	testl	%edx, %esi
	je	LBB0_3
## %bb.1:
	movq	(%r12), %rsi
	movq	_IW_MODE_MASTER@GOTPCREL(%rip), %rdx
	xorl	%r13d, %r13d
	cmpq	(%rdx), %rsi
	jne	LBB0_24
## %bb.2:
	andl	%ebx, %eax
	je	LBB0_24
LBB0_3:
	movq	%rcx, %r15
	movq	(%r14), %rdi
	movq	24(%r12), %rax
	movl	4(%rax), %esi
	callq	_ether_addr_equal
	testl	%eax, %eax
	je	LBB0_4
LBB0_11:
	movl	8(%r14), %esi
	movq	%r12, %rdi
	callq	_prism2_rx_get_wds
	movq	%r15, %rcx
	movq	%rax, (%r15)
	testq	%rax, %rax
	movq	_IEEE80211_FCTL_FROMDS@GOTPCREL(%rip), %rdx
	je	LBB0_12
LBB0_20:
	xorl	%r13d, %r13d
	testl	%ebx, (%rdx)
	jne	LBB0_24
## %bb.21:
	movq	16(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.22:
	movl	8(%r14), %esi
	callq	_hostap_is_sta_assoc
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	$0, (%r15)
	jmp	LBB0_24
LBB0_4:
	movq	(%r14), %r8
	cmpl	$255, (%r8)
	jne	LBB0_10
## %bb.5:
	cmpl	$255, 4(%r8)
	jne	LBB0_10
## %bb.6:
	cmpl	$255, 8(%r8)
	jne	LBB0_10
## %bb.7:
	cmpl	$255, 12(%r8)
	jne	LBB0_10
## %bb.8:
	cmpl	$255, 16(%r8)
	jne	LBB0_10
## %bb.9:
	cmpl	$255, 20(%r8)
	je	LBB0_11
LBB0_10:
	movq	_DEBUG_EXTRA2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%r12), %rax
	movl	(%rax), %edx
	movq	_IEEE80211_FCTL_FROMDS@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_PDEBUG
	movl	$-1, %r13d
LBB0_24:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%r13d, %r13d
	testl	%ebx, (%rdx)
	je	LBB0_24
## %bb.13:
	movq	(%r12), %rax
	movq	_IW_MODE_INFRA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.14:
	movq	_HOSTAP_WDS_AP_CLIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r12)
	je	LBB0_16
## %bb.15:
	movl	8(%r14), %edi
	movl	32(%r12), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcmp
	movq	_IEEE80211_FCTL_FROMDS@GOTPCREL(%rip), %rdx
	testq	%rax, %rax
	je	LBB0_19
LBB0_16:
	movq	_DEBUG_EXTRA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%r12), %rax
	movl	(%rax), %edx
	movslq	8(%r14), %rcx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_PDEBUG
	movq	16(%r12), %rax
	movl	$-1, %r13d
	testq	%rax, %rax
	je	LBB0_24
## %bb.17:
	cmpq	$0, (%rax)
	je	LBB0_24
## %bb.18:
	movl	8(%r14), %esi
	movq	_WDS_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_hostap_wds_link_oper
	jmp	LBB0_24
LBB0_19:
	movq	%r15, %rcx
	cmpq	$0, (%r15)
	jne	LBB0_20
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_FCTL_TODS,4,2        ## @IEEE80211_FCTL_TODS
	.comm	_IEEE80211_FCTL_FROMDS,4,2      ## @IEEE80211_FCTL_FROMDS
	.comm	_IW_MODE_MASTER,8,3             ## @IW_MODE_MASTER
	.comm	_DEBUG_EXTRA2,4,2               ## @DEBUG_EXTRA2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: received WDS frame with not own or broadcast %s=%pM\n"

L_.str.1:                               ## @.str.1
	.asciz	"RA"

L_.str.2:                               ## @.str.2
	.asciz	"BSSID"

	.comm	_IW_MODE_INFRA,8,3              ## @IW_MODE_INFRA
	.comm	_HOSTAP_WDS_AP_CLIENT,4,2       ## @HOSTAP_WDS_AP_CLIENT
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_DEBUG_EXTRA,4,2                ## @DEBUG_EXTRA
L_.str.3:                               ## @.str.3
	.asciz	"%s: received WDS[4 addr] frame from unknown TA=%pM\n"

	.comm	_WDS_ADD,4,2                    ## @WDS_ADD
	.no_dead_strip	_hostap_rx_frame_wds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hostap_rx_frame_wds
_hostap_rx_frame_wds:                   ; @hostap_rx_frame_wds
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _IEEE80211_FCTL_TODS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_FCTL_TODS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x23, _IEEE80211_FCTL_FROMDS@GOTPAGE
Lloh4:
	ldr	x23, [x23, _IEEE80211_FCTL_FROMDS@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w9, w9, w8
	bics	wzr, w9, w2
	b.eq	LBB0_2
; %bb.1:
	ldr	x9, [x19]
Lloh5:
	adrp	x10, _IW_MODE_MASTER@GOTPAGE
Lloh6:
	ldr	x10, [x10, _IW_MODE_MASTER@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	and	w8, w8, w22
	cmp	x9, x10
	ccmp	w8, #0, #4, eq
	b.eq	LBB0_24
LBB0_2:
	ldr	x0, [x20]
	ldr	x8, [x19, #24]
	ldr	w1, [x8, #4]
	bl	_ether_addr_equal
	cbz	w0, LBB0_8
LBB0_3:
	ldr	w1, [x20, #8]
	mov	x0, x19
	bl	_prism2_rx_get_wds
	str	x0, [x21]
	cbz	x0, LBB0_16
LBB0_4:
	ldr	w8, [x23]
	tst	w8, w22
	b.ne	LBB0_24
; %bb.5:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_25
; %bb.6:
	ldr	w1, [x20, #8]
	bl	_hostap_is_sta_assoc
	cbz	x0, LBB0_25
; %bb.7:
	mov	w0, #0
	str	xzr, [x21]
	b	LBB0_25
LBB0_8:
	ldr	x8, [x20]
	ldr	w9, [x8]
	cmp	w9, #255
	b.ne	LBB0_14
; %bb.9:
	ldr	w9, [x8, #4]
	cmp	w9, #255
	b.ne	LBB0_14
; %bb.10:
	ldr	w9, [x8, #8]
	cmp	w9, #255
	b.ne	LBB0_14
; %bb.11:
	ldr	w9, [x8, #12]
	cmp	w9, #255
	b.ne	LBB0_14
; %bb.12:
	ldr	w9, [x8, #16]
	cmp	w9, #255
	b.ne	LBB0_14
; %bb.13:
	ldr	w9, [x8, #20]
	cmp	w9, #255
	b.eq	LBB0_3
LBB0_14:
Lloh8:
	adrp	x9, _DEBUG_EXTRA2@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DEBUG_EXTRA2@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x9]
	ldr	x9, [x19, #24]
	ldr	w2, [x9]
	ldr	w9, [x23]
Lloh11:
	adrp	x10, l_.str.1@PAGE
Lloh12:
	add	x10, x10, l_.str.1@PAGEOFF
Lloh13:
	adrp	x11, l_.str.2@PAGE
Lloh14:
	add	x11, x11, l_.str.2@PAGEOFF
	tst	w9, w22
	csel	x3, x11, x10, eq
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PDEBUG
LBB0_15:
	mov	w0, #-1
	b	LBB0_25
LBB0_16:
	ldr	w8, [x23]
	tst	w8, w22
	b.eq	LBB0_24
; %bb.17:
	ldr	x8, [x19]
Lloh17:
	adrp	x9, _IW_MODE_INFRA@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IW_MODE_INFRA@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.18:
	ldr	w8, [x19, #8]
Lloh20:
	adrp	x9, _HOSTAP_WDS_AP_CLIENT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _HOSTAP_WDS_AP_CLIENT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.19:
	ldr	w0, [x20, #8]
	ldr	w1, [x19, #32]
Lloh23:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	bl	_memcmp
	cbz	x0, LBB0_23
LBB0_20:
Lloh26:
	adrp	x8, _DEBUG_EXTRA@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DEBUG_EXTRA@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	ldr	x8, [x19, #24]
	ldr	w2, [x8]
	ldrsw	x3, [x20, #8]
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_PDEBUG
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_15
; %bb.21:
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.22:
	ldr	w1, [x20, #8]
Lloh31:
	adrp	x8, _WDS_ADD@GOTPAGE
Lloh32:
	ldr	x8, [x8, _WDS_ADD@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_hostap_wds_link_oper
	b	LBB0_15
LBB0_23:
	ldr	x8, [x21]
	cbnz	x8, LBB0_4
LBB0_24:
	mov	w0, #0
LBB0_25:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_FCTL_TODS,4,2        ; @IEEE80211_FCTL_TODS
	.comm	_IEEE80211_FCTL_FROMDS,4,2      ; @IEEE80211_FCTL_FROMDS
	.comm	_IW_MODE_MASTER,8,3             ; @IW_MODE_MASTER
	.comm	_DEBUG_EXTRA2,4,2               ; @DEBUG_EXTRA2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: received WDS frame with not own or broadcast %s=%pM\n"

l_.str.1:                               ; @.str.1
	.asciz	"RA"

l_.str.2:                               ; @.str.2
	.asciz	"BSSID"

	.comm	_IW_MODE_INFRA,8,3              ; @IW_MODE_INFRA
	.comm	_HOSTAP_WDS_AP_CLIENT,4,2       ; @HOSTAP_WDS_AP_CLIENT
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_DEBUG_EXTRA,4,2                ; @DEBUG_EXTRA
l_.str.3:                               ; @.str.3
	.asciz	"%s: received WDS[4 addr] frame from unknown TA=%pM\n"

	.comm	_WDS_ADD,4,2                    ; @WDS_ADD
	.no_dead_strip	_hostap_rx_frame_wds
.subsections_via_symbols
