	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_wow_sta
_ath6kl_wow_sta:                        ## @ath6kl_wow_sta
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rsi), %r12
	movq	_ETH_ALEN@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%rbx, %rdi
	callq	_eth_broadcast_addr
	movl	(%r14), %edi
	movl	(%r15), %esi
	movq	_WOW_LIST_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %ecx
	movq	(%r12), %r9
	subq	$8, %rsp
	xorl	%r8d, %r8d
	pushq	%rbx
	callq	_ath6kl_wmi_add_wow_pattern_cmd
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_7
LBB0_2:
	movl	8(%r12), %eax
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	_WOW_LIST_ID@GOTPCREL(%rip), %r13
	je	LBB0_3
LBB0_5:
	movl	(%r14), %edi
	movl	(%r15), %esi
	movl	(%r13), %edx
	subq	$8, %rsp
	leaq	_ath6kl_wow_sta.discvr_mask(%rip), %rax
	leaq	_ath6kl_wow_sta.discvr_pattern(%rip), %r9
	movl	$16, %ecx
	movl	$38, %r8d
	pushq	%rax
	callq	_ath6kl_wmi_add_wow_pattern_cmd
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
LBB0_7:
	callq	_ath6kl_err
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.9:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_IFF_MULTICAST@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.4:
	movq	%r12, %rdi
	callq	_netdev_mc_count
	testq	%rax, %rax
	jg	LBB0_5
	jmp	LBB0_8
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @ath6kl_wow_sta.discvr_pattern
_ath6kl_wow_sta.discvr_pattern:
	.long	224                             ## 0xe0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	248                             ## 0xf8

	.p2align	4                               ## @ath6kl_wow_sta.discvr_mask
_ath6kl_wow_sta.discvr_mask:
	.long	240                             ## 0xf0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	248                             ## 0xf8

	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_WOW_LIST_ID,4,2                ## @WOW_LIST_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to add WOW unicast pattern\n"

	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_IFF_MULTICAST,4,2              ## @IFF_MULTICAST
L_.str.1:                               ## @.str.1
	.asciz	"failed to add WOW mDNS/SSDP/LLMNR pattern\n"

	.no_dead_strip	_ath6kl_wow_sta
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_wow_sta
_ath6kl_wow_sta:                        ; @ath6kl_wow_sta
	.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
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x21, [x1, #8]
Lloh3:
	adrp	x24, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ETH_ALEN@GOTPAGEOFF]
	ldr	w8, [x24]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	mov	x0, x22
	bl	_eth_broadcast_addr
	ldr	w0, [x20]
	ldr	w1, [x19]
Lloh7:
	adrp	x23, _WOW_LIST_ID@GOTPAGE
Lloh8:
	ldr	x23, [x23, _WOW_LIST_ID@GOTPAGEOFF]
	ldr	w2, [x23]
	ldr	w3, [x24]
	ldr	x5, [x21]
	mov	w4, #0
	mov	x6, x22
	bl	_ath6kl_wmi_add_wow_pattern_cmd
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_5
LBB0_2:
	ldr	w8, [x21, #8]
Lloh11:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_3:
	ldr	w0, [x20]
	ldr	w1, [x19]
	ldr	w2, [x23]
Lloh14:
	adrp	x5, _ath6kl_wow_sta.discvr_pattern@PAGE
Lloh15:
	add	x5, x5, _ath6kl_wow_sta.discvr_pattern@PAGEOFF
Lloh16:
	adrp	x6, _ath6kl_wow_sta.discvr_mask@PAGE
Lloh17:
	add	x6, x6, _ath6kl_wow_sta.discvr_mask@PAGEOFF
	mov	w3, #16
	mov	w4, #38
	bl	_ath6kl_wmi_add_wow_pattern_cmd
	mov	x22, x0
	cbz	w0, LBB0_6
; %bb.4:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	bl	_ath6kl_err
LBB0_6:
	ldur	x8, [x29, #-56]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.7:
	mov	x0, x22
	sub	sp, x29, #48
	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_8:
Lloh23:
	adrp	x9, _IFF_MULTICAST@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IFF_MULTICAST@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x21
	bl	_netdev_mc_count
	cmp	x0, #1
	b.ge	LBB0_3
LBB0_10:
	mov	w22, #0
	b	LBB0_6
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @ath6kl_wow_sta.discvr_pattern
_ath6kl_wow_sta.discvr_pattern:
	.long	224                             ; 0xe0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	248                             ; 0xf8

	.p2align	2                               ; @ath6kl_wow_sta.discvr_mask
_ath6kl_wow_sta.discvr_mask:
	.long	240                             ; 0xf0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	248                             ; 0xf8

	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_WOW_LIST_ID,4,2                ; @WOW_LIST_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to add WOW unicast pattern\n"

	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_IFF_MULTICAST,4,2              ; @IFF_MULTICAST
l_.str.1:                               ; @.str.1
	.asciz	"failed to add WOW mDNS/SSDP/LLMNR pattern\n"

	.no_dead_strip	_ath6kl_wow_sta
.subsections_via_symbols
