	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_wow_suspend_vif
_ath6kl_wow_suspend_vif:                ## @ath6kl_wow_suspend_vif
	.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
	movq	%rdx, %r12
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %r14
	movq	_MAX_IP_ADDRS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_NETDEV_MCAST_ALL_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%r13), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
LBB0_1:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_WOW_MAX_FILTERS_PER_LIST@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	movq	_WOW_LIST_ID@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movl	8(%r13), %esi
	movl	(%r12), %edx
	movq	%rbx, %rcx
	callq	_ath6kl_wmi_del_wow_pattern_cmd
	incq	%rbx
	cmpq	(%r15), %rbx
	jl	LBB0_3
LBB0_4:
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.5:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_ath6kl_wow_usr
	jmp	LBB0_11
LBB0_6:
	movq	_ATH6KL_FW_CAPABILITY_WOW_MULTICAST_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r14), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	movq	16(%r13), %rax
	movl	(%rax), %edi
	movl	8(%r13), %esi
	xorl	%edx, %edx
	callq	_ath6kl_wmi_mcast_filter_cmd
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_1
LBB0_8:
	movq	(%r13), %rax
	movq	_AP_NETWORK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ath6kl_wow_ap
	jmp	LBB0_11
LBB0_10:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ath6kl_wow_sta
LBB0_11:
	movl	%eax, %r15d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_14
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_30
## %bb.13:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	12(%r13), %edi
	callq	_netif_stop_queue
	movq	(%r13), %rax
	movq	_AP_NETWORK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
LBB0_15:
	movl	12(%r13), %edi
	callq	___in_dev_get_rtnl
	testq	%rax, %rax
	je	LBB0_26
## %bb.16:
	movl	(%rax), %edi
	callq	_rtnl_dereference
	movq	%rax, %r15
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	shll	$2, %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
	testq	%r15, %r15
	setne	%al
	movq	_MAX_IP_ADDRS@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_21
## %bb.17:
	testq	%r15, %r15
	je	LBB0_21
## %bb.18:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%r15), %eax
	movl	%eax, -4(%r12,%rbx,4)
	movl	(%r15), %edi
	callq	_rtnl_dereference
	movq	%rax, %r15
	movq	_MAX_IP_ADDRS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	testq	%r15, %r15
	setne	%al
	cmpq	%rcx, %rbx
	jge	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	incq	%rbx
	testq	%r15, %r15
	jne	LBB0_19
LBB0_21:
	testb	%al, %al
	je	LBB0_27
## %bb.22:
	leaq	L_.str(%rip), %rdi
	callq	_ath6kl_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_12
LBB0_23:
	movl	(%r14), %edi
	movl	8(%r13), %esi
	movq	_ATH6KL_MAX_WOW_LISTEN_INTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	xorl	%ecx, %ecx
	callq	_ath6kl_wmi_listeninterval_cmd
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.24:
	movslq	(%rbx), %rax
	leaq	(%rax,%rax,4), %rax
	leaq	(%rax,%rax,2), %rdx
	movq	_ATH6KL_MAX_BMISS_TIME@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rdx, %rax
	cmovlq	%rax, %rdx
	movl	(%r14), %edi
	movl	8(%r13), %esi
	xorl	%ecx, %ecx
	callq	_ath6kl_wmi_bmisstime_cmd
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.25:
	movl	(%r14), %edi
	movl	8(%r13), %esi
	movl	$65535, %edx                    ## imm = 0xFFFF
	xorl	%ecx, %ecx
	movl	$65535, %r8d                    ## imm = 0xFFFF
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	callq	_ath6kl_wmi_scanparams_cmd
	addq	$48, %rsp
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_15
LBB0_27:
	movl	(%r14), %edi
	movl	8(%r13), %esi
	movl	(%r12), %edx
	movl	4(%r12), %ecx
	callq	_ath6kl_wmi_set_ip_cmd
	testl	%eax, %eax
	je	LBB0_26
## %bb.28:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rdi
	callq	_ath6kl_err
	jmp	LBB0_12
LBB0_26:
	xorl	%r15d, %r15d
	jmp	LBB0_12
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_IP_ADDRS,4,2               ## @MAX_IP_ADDRS
	.comm	_NETDEV_MCAST_ALL_ON,4,2        ## @NETDEV_MCAST_ALL_ON
	.comm	_ATH6KL_FW_CAPABILITY_WOW_MULTICAST_FILTER,4,2 ## @ATH6KL_FW_CAPABILITY_WOW_MULTICAST_FILTER
	.comm	_WOW_MAX_FILTERS_PER_LIST,8,3   ## @WOW_MAX_FILTERS_PER_LIST
	.comm	_WOW_LIST_ID,4,2                ## @WOW_LIST_ID
	.comm	_AP_NETWORK,8,3                 ## @AP_NETWORK
	.comm	_ATH6KL_MAX_WOW_LISTEN_INTL,4,2 ## @ATH6KL_MAX_WOW_LISTEN_INTL
	.comm	_ATH6KL_MAX_BMISS_TIME,8,3      ## @ATH6KL_MAX_BMISS_TIME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"total IP addr count is exceeding fw limit\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"fail to setup ip for arp agent\n"

	.no_dead_strip	_ath6kl_wow_suspend_vif
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_wow_suspend_vif
_ath6kl_wow_suspend_vif:                ; @ath6kl_wow_suspend_vif
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x20, [x0, #16]
Lloh3:
	adrp	x25, _MAX_IP_ADDRS@GOTPAGE
Lloh4:
	ldr	x25, [x25, _MAX_IP_ADDRS@GOTPAGEOFF]
	ldr	w26, [x25]
	lsl	x8, x26, #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	x21, x9, x8
	mov	sp, x21
Lloh7:
	adrp	x8, _NETDEV_MCAST_ALL_ON@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NETDEV_MCAST_ALL_ON@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	add	x1, x19, #24
	bl	_test_bit
	cbz	x0, LBB0_6
LBB0_1:
Lloh10:
	adrp	x27, _WOW_MAX_FILTERS_PER_LIST@GOTPAGE
Lloh11:
	ldr	x27, [x27, _WOW_MAX_FILTERS_PER_LIST@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x24, #0
Lloh12:
	adrp	x28, _WOW_LIST_ID@GOTPAGE
Lloh13:
	ldr	x28, [x28, _WOW_LIST_ID@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	ldr	w1, [x19, #8]
	ldr	w2, [x28]
	mov	x3, x24
	bl	_ath6kl_wmi_del_wow_pattern_cmd
	add	x24, x24, #1
	ldr	x8, [x27]
	cmp	x24, x8
	b.lt	LBB0_3
LBB0_4:
	cbz	x23, LBB0_8
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	mov	x3, x22
	bl	_ath6kl_wow_usr
	mov	x24, x0
	cbnz	w0, LBB0_25
	b	LBB0_11
LBB0_6:
Lloh14:
	adrp	x8, _ATH6KL_FW_CAPABILITY_WOW_MULTICAST_FILTER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ATH6KL_FW_CAPABILITY_WOW_MULTICAST_FILTER@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	x1, [x20, #8]
	bl	_test_bit
	cbz	x0, LBB0_1
; %bb.7:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
	mov	w2, #0
	bl	_ath6kl_wmi_mcast_filter_cmd
	mov	x24, x0
	cbnz	w0, LBB0_25
	b	LBB0_1
LBB0_8:
	ldr	x8, [x19]
Lloh17:
	adrp	x9, _AP_NETWORK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AP_NETWORK@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	mov	x0, x20
	mov	x1, x19
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	bl	_ath6kl_wow_ap
	mov	x24, x0
	cbnz	w0, LBB0_25
	b	LBB0_11
LBB0_10:
	bl	_ath6kl_wow_sta
	mov	x24, x0
	cbnz	w0, LBB0_25
LBB0_11:
	ldr	w0, [x19, #12]
	bl	_netif_stop_queue
	ldr	x8, [x19]
Lloh20:
	adrp	x9, _AP_NETWORK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _AP_NETWORK@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
LBB0_12:
	ldr	w0, [x19, #12]
	bl	___in_dev_get_rtnl
	cbz	x0, LBB0_22
; %bb.13:
	ldr	w0, [x0]
	bl	_rtnl_dereference
	mov	x22, x0
	lsl	w2, w26, #2
	mov	x0, x21
	mov	w1, #0
	bl	_memset
	ldr	w9, [x25]
	cmp	x22, #0
	cset	w8, ne
	cmp	w9, #1
	b.lt	LBB0_17
; %bb.14:
	cbz	x22, LBB0_17
; %bb.15:
	mov	x23, #0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22, #4]
	str	w8, [x21, x23, lsl #2]
	ldr	w0, [x22]
	bl	_rtnl_dereference
	mov	x22, x0
	add	x23, x23, #1
	ldrsw	x9, [x25]
	cmp	x0, #0
	cset	w8, ne
	cmp	x23, x9
	ccmp	x0, #0, #4, lt
	b.ne	LBB0_16
LBB0_17:
	cbz	w8, LBB0_23
; %bb.18:
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ath6kl_err
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_25
LBB0_19:
	ldr	w0, [x20]
	ldr	w1, [x19, #8]
Lloh28:
	adrp	x22, _ATH6KL_MAX_WOW_LISTEN_INTL@GOTPAGE
Lloh29:
	ldr	x22, [x22, _ATH6KL_MAX_WOW_LISTEN_INTL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w3, #0
	bl	_ath6kl_wmi_listeninterval_cmd
	mov	x24, x0
	cbnz	w0, LBB0_25
; %bb.20:
	ldrsw	x8, [x22]
	lsl	x9, x8, #4
Lloh30:
	adrp	x10, _ATH6KL_MAX_BMISS_TIME@GOTPAGE
Lloh31:
	ldr	x10, [x10, _ATH6KL_MAX_BMISS_TIME@GOTPAGEOFF]
Lloh32:
	ldr	x10, [x10]
	sub	x8, x9, x8
	cmp	x10, x8
	csel	x2, x10, x8, lt
	ldr	w0, [x20]
	ldr	w1, [x19, #8]
	mov	w3, #0
	bl	_ath6kl_wmi_bmisstime_cmd
	mov	x24, x0
	cbnz	w0, LBB0_25
; %bb.21:
	ldr	w0, [x20]
	ldr	w1, [x19, #8]
	stp	xzr, xzr, [sp, #-16]!
	mov	w2, #65535
	mov	w3, #0
	mov	w4, #65535
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_ath6kl_wmi_scanparams_cmd
	add	sp, sp, #16
	mov	x24, x0
	cbnz	w0, LBB0_25
	b	LBB0_12
LBB0_22:
	mov	w24, #0
	b	LBB0_25
LBB0_23:
	ldr	w0, [x20]
	ldr	w1, [x19, #8]
	ldp	w2, w3, [x21]
	bl	_ath6kl_wmi_set_ip_cmd
	mov	x24, x0
	cbz	w0, LBB0_25
; %bb.24:
Lloh33:
	adrp	x0, l_.str.1@PAGE
Lloh34:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ath6kl_err
LBB0_25:
	ldur	x8, [x29, #-88]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.26:
	mov	x0, x24
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_IP_ADDRS,4,2               ; @MAX_IP_ADDRS
	.comm	_NETDEV_MCAST_ALL_ON,4,2        ; @NETDEV_MCAST_ALL_ON
	.comm	_ATH6KL_FW_CAPABILITY_WOW_MULTICAST_FILTER,4,2 ; @ATH6KL_FW_CAPABILITY_WOW_MULTICAST_FILTER
	.comm	_WOW_MAX_FILTERS_PER_LIST,8,3   ; @WOW_MAX_FILTERS_PER_LIST
	.comm	_WOW_LIST_ID,4,2                ; @WOW_LIST_ID
	.comm	_AP_NETWORK,8,3                 ; @AP_NETWORK
	.comm	_ATH6KL_MAX_WOW_LISTEN_INTL,4,2 ; @ATH6KL_MAX_WOW_LISTEN_INTL
	.comm	_ATH6KL_MAX_BMISS_TIME,8,3      ; @ATH6KL_MAX_BMISS_TIME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"total IP addr count is exceeding fw limit\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"fail to setup ip for arp agent\n"

	.no_dead_strip	_ath6kl_wow_suspend_vif
.subsections_via_symbols
