	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_handle_mgmt_packet
_ipw_handle_mgmt_packet:                ## @ipw_handle_mgmt_packet
	.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	%rdx, %r12
	movq	%rdi, %r15
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r13
	movq	16(%r13), %r14
	movq	_IPW_RX_FRAME_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	addq	%r14, %rbx
	movq	8(%rdi), %rdi
	movq	%rbx, %rsi
	callq	_libipw_rx_mgt
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	_IW_MODE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movl	8(%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, %rdi
	callq	_WLAN_FC_GET_STYPE
	movq	_IEEE80211_STYPE_PROBE_RESP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movl	8(%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, %rdi
	callq	_WLAN_FC_GET_STYPE
	movq	_IEEE80211_STYPE_BEACON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_3:
	movl	4(%rbx), %edi
	movl	16(%r15), %esi
	callq	_ether_addr_equal
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_ipw_add_station
LBB0_5:
	movq	_CFG_NET_STATS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdi
	callq	_IPW_DEBUG_HC
	movl	(%r14), %edi
	callq	_le16_to_cpu
	movq	_IPW_RX_FRAME_SIZE@GOTPCREL(%rip), %rbx
	addq	(%rbx), %rax
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_skb_put
	movq	(%rbx), %rsi
	movq	%r13, %rdi
	callq	_skb_pull
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_skb_push
	movl	%eax, %edi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	8(%r15), %rax
	movl	8(%rax), %eax
	movl	%eax, 12(%r13)
	movq	%r13, %rdi
	callq	_skb_reset_mac_header
	movq	_PACKET_OTHERHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	_ETH_P_80211_STATS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be16
	movl	%eax, 4(%r13)
	movl	(%r13), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r13, %rdi
	callq	_netif_rx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPW_RX_FRAME_SIZE,8,3          ## @IPW_RX_FRAME_SIZE
	.comm	_IW_MODE_ADHOC,8,3              ## @IW_MODE_ADHOC
	.comm	_IEEE80211_STYPE_PROBE_RESP,8,3 ## @IEEE80211_STYPE_PROBE_RESP
	.comm	_IEEE80211_STYPE_BEACON,8,3     ## @IEEE80211_STYPE_BEACON
	.comm	_CFG_NET_STATS,4,2              ## @CFG_NET_STATS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sending stat packet\n"

	.comm	_PACKET_OTHERHOST,4,2           ## @PACKET_OTHERHOST
	.comm	_ETH_P_80211_STATS,4,2          ## @ETH_P_80211_STATS
	.no_dead_strip	_ipw_handle_mgmt_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw_handle_mgmt_packet
_ipw_handle_mgmt_packet:                ; @ipw_handle_mgmt_packet
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x20, [x1]
	ldr	x25, [x20, #16]
Lloh0:
	adrp	x24, _IPW_RX_FRAME_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IPW_RX_FRAME_SIZE@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x23, x8, x25
	ldr	x0, [x0, #8]
	mov	x1, x23
	bl	_libipw_rx_mgt
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _IW_MODE_ADHOC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IW_MODE_ADHOC@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	ldr	w0, [x23, #8]
	bl	_le16_to_cpu
	bl	_WLAN_FC_GET_STYPE
Lloh5:
	adrp	x8, _IEEE80211_STYPE_PROBE_RESP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IEEE80211_STYPE_PROBE_RESP@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x23, #8]
	bl	_le16_to_cpu
	bl	_WLAN_FC_GET_STYPE
Lloh8:
	adrp	x8, _IEEE80211_STYPE_BEACON@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IEEE80211_STYPE_BEACON@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
LBB0_3:
	ldr	w0, [x23, #4]
	ldr	w1, [x21, #16]
	bl	_ether_addr_equal
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w1, [x23]
	mov	x0, x21
	bl	_ipw_add_station
LBB0_5:
	ldr	w8, [x21]
Lloh11:
	adrp	x9, _CFG_NET_STATS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CFG_NET_STATS@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_HC
	ldr	w0, [x25]
	bl	_le16_to_cpu
	ldr	x8, [x24]
	add	x1, x8, x0
	mov	x0, x20
	bl	_skb_put
	ldr	x1, [x24]
	mov	x0, x20
	bl	_skb_pull
	mov	x0, x20
	mov	w1, #4
	bl	_skb_push
	mov	x1, x22
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x21, #8]
	ldr	w8, [x8, #8]
	str	w8, [x20, #12]
	mov	x0, x20
	bl	_skb_reset_mac_header
Lloh16:
	adrp	x8, _PACKET_OTHERHOST@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PACKET_OTHERHOST@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x20, #8]
Lloh19:
	adrp	x8, _ETH_P_80211_STATS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ETH_P_80211_STATS@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_cpu_to_be16
	str	w0, [x20, #4]
	ldr	w0, [x20]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x20
	bl	_netif_rx
	str	xzr, [x19]
LBB0_7:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_IPW_RX_FRAME_SIZE,8,3          ; @IPW_RX_FRAME_SIZE
	.comm	_IW_MODE_ADHOC,8,3              ; @IW_MODE_ADHOC
	.comm	_IEEE80211_STYPE_PROBE_RESP,8,3 ; @IEEE80211_STYPE_PROBE_RESP
	.comm	_IEEE80211_STYPE_BEACON,8,3     ; @IEEE80211_STYPE_BEACON
	.comm	_CFG_NET_STATS,4,2              ; @CFG_NET_STATS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sending stat packet\n"

	.comm	_PACKET_OTHERHOST,4,2           ; @PACKET_OTHERHOST
	.comm	_ETH_P_80211_STATS,4,2          ; @ETH_P_80211_STATS
	.no_dead_strip	_ipw_handle_mgmt_packet
.subsections_via_symbols
