	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_calculate_summary_state  ## -- Begin function ath9k_calculate_summary_state
	.p2align	4, 0x90
_ath9k_calculate_summary_state:         ## @ath9k_calculate_summary_state
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movq	%r12, %rdi
	callq	_ath9k_hw_common
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ath_chanctx_check_active
	cmpq	%r13, 32(%rbx)
	jne	LBB0_32
## %bb.1:
	movq	%r15, %r14
	movq	%rbx, %rdi
	callq	_ath9k_ps_wakeup
	leaq	-136(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ath9k_calculate_iter_data
	cmpq	$0, -48(%rbp)
	je	LBB0_3
## %bb.2:
	movl	8(%r14), %edi
	movl	-52(%rbp), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
LBB0_3:
	movl	(%r14), %edi
	movl	-56(%rbp), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	%r14, %rdi
	callq	_ath_hw_setbssidmask
	cmpl	$0, -136(%rbp)
	jle	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_ath9k_hw_set_tsfadjust
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_5:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_ath9k_hw_set_tsfadjust
	cmpl	$0, -132(%rbp)
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_ath9k_beacon_ensure_primary_slot
LBB0_7:
	cmpq	$0, -128(%rbp)
	je	LBB0_9
## %bb.8:
	movq	_NL80211_IFTYPE_MESH_POINT@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_9:
	cmpq	$0, -64(%rbp)
	je	LBB0_11
## %bb.10:
	movq	_NL80211_IFTYPE_OCB@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_11:
	cmpq	$0, -72(%rbp)
	je	LBB0_13
## %bb.12:
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_13:
	cmpq	$0, -120(%rbp)
	je	LBB0_15
## %bb.14:
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_15:
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rax
LBB0_16:
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movq	%r12, %rdi
	callq	_ath9k_hw_setopmode
	movl	$0, (%r13)
	movq	-120(%rbp), %rcx
	addq	-112(%rbp), %rcx
	movq	_ATH9K_INT_TSFOOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	-128(%rbp), %rcx
	jle	LBB0_18
## %bb.17:
	orl	%eax, 16(%r12)
	jmp	LBB0_21
LBB0_18:
	notl	%eax
	andl	%eax, 16(%r12)
	cmpl	$1, -136(%rbp)
	jne	LBB0_21
## %bb.19:
	cmpl	$0, -132(%rbp)
	je	LBB0_21
## %bb.20:
	movl	$1, (%r13)
LBB0_21:
	movq	(%r12), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.22:
	movq	-104(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_24
## %bb.23:
	xorl	%edx, %edx
	cmpq	8(%r13), %rsi
	setne	%dl
	movq	%rsi, -96(%rbp)
	movl	$1, -132(%rbp)
	movq	%rbx, %rdi
	callq	_ath9k_set_assoc_state
	movq	-104(%rbp), %rax
	movq	%rax, 8(%r13)
	jmp	LBB0_26
LBB0_24:
	movq	$0, 8(%r13)
	movl	4(%r14), %edi
	callq	_eth_zero_addr
	movq	$0, 16(%r14)
	movq	8(%rbx), %rdi
	callq	_ath9k_hw_write_associd
	movq	8(%rbx), %rdi
	callq	_ath9k_hw_mci_is_enabled
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_ath9k_mci_update_wlan_channels
LBB0_26:
	movl	-80(%rbp), %eax
	movl	%eax, (%rbx)
	movq	-96(%rbp), %rsi
	movl	-132(%rbp), %edx
	movq	%rbx, %rdi
	callq	_ath9k_beacon_config
	movq	%r12, %rdi
	callq	_ath9k_hw_set_interrupts
	movq	-88(%rbp), %rax
	cmpq	%rax, 8(%r12)
	je	LBB0_28
## %bb.27:
	movq	%rax, 8(%r12)
	movq	%r12, %rdi
	callq	_ath9k_hw_init_global_settings
LBB0_28:
	addq	$12, %r15
	cmpq	$0, -104(%rbp)
	movq	_ATH_OP_PRIM_STA_VIF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	je	LBB0_30
## %bb.29:
	callq	_set_bit
	jmp	LBB0_31
LBB0_30:
	callq	_clear_bit
LBB0_31:
	movq	_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %ecx
	movl	(%r14), %r9d
	movl	4(%r14), %r8d
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_ath_dbg
	movq	%rbx, %rdi
	callq	_ath9k_ps_restore
LBB0_32:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_MESH_POINT,8,3  ## @NL80211_IFTYPE_MESH_POINT
	.comm	_NL80211_IFTYPE_OCB,8,3         ## @NL80211_IFTYPE_OCB
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_ATH9K_INT_TSFOOR,4,2           ## @ATH9K_INT_TSFOOR
	.comm	_ATH_OP_PRIM_STA_VIF,4,2        ## @ATH_OP_PRIM_STA_VIF
	.comm	_CONFIG,4,2                     ## @CONFIG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"macaddr: %pM, bssid: %pM, bssidmask: %pM\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_calculate_summary_state  ; -- Begin function ath9k_calculate_summary_state
	.p2align	2
_ath9k_calculate_summary_state:         ; @ath9k_calculate_summary_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x22, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
	mov	x0, x21
	bl	_ath9k_hw_common
	mov	x20, x0
	mov	x0, x19
	mov	x1, x22
	bl	_ath_chanctx_check_active
	ldr	x8, [x19, #32]
	cmp	x8, x22
	b.ne	LBB0_29
; %bb.1:
	mov	x0, x19
	bl	_ath9k_ps_wakeup
	mov	x2, sp
	mov	x0, x19
	mov	x1, x22
	bl	_ath9k_calculate_iter_data
	ldr	x8, [sp, #88]
Lloh0:
	adrp	x23, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ETH_ALEN@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x20, #8]
	ldr	w1, [sp, #84]
	ldr	w2, [x23]
	bl	_memcpy
LBB0_3:
	ldr	w0, [x20]
	ldr	w1, [sp, #80]
	ldr	w2, [x23]
	bl	_memcpy
	mov	x0, x20
	bl	_ath_hw_setbssidmask
	ldr	w8, [sp]
Lloh2:
	adrp	x23, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh3:
	ldr	x23, [x23, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
	mov	x0, x21
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	w1, #1
	bl	_ath9k_hw_set_tsfadjust
LBB0_5:
Lloh4:
	adrp	x8, _NL80211_IFTYPE_AP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NL80211_IFTYPE_AP@GOTPAGEOFF]
	b	LBB0_12
LBB0_6:
	mov	w1, #0
	bl	_ath9k_hw_set_tsfadjust
	ldr	w8, [sp, #4]
	cbz	w8, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_ath9k_beacon_ensure_primary_slot
LBB0_8:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_10
; %bb.9:
Lloh6:
	adrp	x8, _NL80211_IFTYPE_MESH_POINT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NL80211_IFTYPE_MESH_POINT@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
	ldr	x8, [sp, #72]
	cbz	x8, LBB0_30
; %bb.11:
Lloh8:
	adrp	x8, _NL80211_IFTYPE_OCB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NL80211_IFTYPE_OCB@GOTPAGEOFF]
LBB0_12:
	ldr	x8, [x8]
LBB0_13:
	str	x8, [x21]
	mov	x0, x21
	bl	_ath9k_hw_setopmode
	str	wzr, [x22]
	ldp	x9, x8, [sp, #16]
	ldr	x10, [sp, #8]
	add	x8, x9, x8
	add	x9, x8, x10
Lloh10:
	adrp	x8, _ATH9K_INT_TSFOOR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ATH9K_INT_TSFOOR@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	x9, #1
	b.lt	LBB0_15
; %bb.14:
	ldr	w9, [x21, #16]
	orr	w8, w9, w8
	str	w8, [x21, #16]
	b	LBB0_18
LBB0_15:
	ldr	w9, [x21, #16]
	bic	w8, w9, w8
	str	w8, [x21, #16]
	ldr	w8, [sp]
	cmp	w8, #1
	b.ne	LBB0_18
; %bb.16:
	ldr	w8, [sp, #4]
	cbz	w8, LBB0_18
; %bb.17:
	mov	w8, #1
	str	w8, [x22]
LBB0_18:
	ldr	x8, [x21]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.19:
	ldr	x1, [sp, #32]
	cbz	x1, LBB0_21
; %bb.20:
	ldr	x8, [x22, #8]
	cmp	x1, x8
	cset	w2, ne
	str	x1, [sp, #40]
	mov	w8, #1
	str	w8, [sp, #4]
	mov	x0, x19
	bl	_ath9k_set_assoc_state
	ldr	x8, [sp, #32]
	str	x8, [x22, #8]
	b	LBB0_23
LBB0_21:
	str	xzr, [x22, #8]
	ldr	w0, [x20, #4]
	bl	_eth_zero_addr
	str	xzr, [x20, #16]
	ldr	x0, [x19, #8]
	bl	_ath9k_hw_write_associd
	ldr	x0, [x19, #8]
	bl	_ath9k_hw_mci_is_enabled
	cbz	x0, LBB0_23
; %bb.22:
	mov	x0, x19
	mov	w1, #1
	bl	_ath9k_mci_update_wlan_channels
LBB0_23:
	ldr	w8, [sp, #56]
	str	w8, [x19]
	ldr	x1, [sp, #40]
	ldr	w2, [sp, #4]
	mov	x0, x19
	bl	_ath9k_beacon_config
	mov	x0, x21
	bl	_ath9k_hw_set_interrupts
	ldr	x9, [x21, #8]
	ldr	x8, [sp, #48]
	cmp	x9, x8
	b.eq	LBB0_25
; %bb.24:
	str	x8, [x21, #8]
	mov	x0, x21
	bl	_ath9k_hw_init_global_settings
LBB0_25:
	ldr	x8, [sp, #32]
Lloh13:
	adrp	x9, _ATH_OP_PRIM_STA_VIF@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ATH_OP_PRIM_STA_VIF@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x9]
	add	x1, x20, #12
	cbz	x8, LBB0_27
; %bb.26:
	bl	_set_bit
	b	LBB0_28
LBB0_27:
	bl	_clear_bit
LBB0_28:
Lloh16:
	adrp	x8, _CONFIG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CONFIG@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldp	w4, w3, [x20, #4]
	ldr	w5, [x20]
Lloh19:
	adrp	x2, l_.str@PAGE
Lloh20:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ath_dbg
	mov	x0, x19
	bl	_ath9k_ps_restore
LBB0_29:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_30:
	ldr	x8, [sp, #64]
	cbnz	x8, LBB0_5
; %bb.31:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_33
; %bb.32:
Lloh21:
	adrp	x8, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
	b	LBB0_12
LBB0_33:
	ldr	x8, [x23]
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_MESH_POINT,8,3  ; @NL80211_IFTYPE_MESH_POINT
	.comm	_NL80211_IFTYPE_OCB,8,3         ; @NL80211_IFTYPE_OCB
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_ATH9K_INT_TSFOOR,4,2           ; @ATH9K_INT_TSFOOR
	.comm	_ATH_OP_PRIM_STA_VIF,4,2        ; @ATH_OP_PRIM_STA_VIF
	.comm	_CONFIG,4,2                     ; @CONFIG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"macaddr: %pM, bssid: %pM, bssidmask: %pM\n"

.subsections_via_symbols
