	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_set_assoc_state
_ath9k_set_assoc_state:                 ## @ath9k_set_assoc_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	8(%rdi), %rdi
	callq	_ath9k_hw_common
	movq	%rax, %r15
	movq	8(%r14), %rbx
	movq	_ATH_OP_PRIM_STA_VIF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%r15), %rsi
	callq	_set_bit
	movl	(%r15), %edi
	movl	4(%rbx), %esi
	callq	_ether_addr_copy
	movl	(%rbx), %eax
	movl	%eax, 16(%r15)
	movq	8(%r13), %rdi
	callq	_ath9k_hw_write_associd
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.1:
	movq	_ATH_RSSI_DUMMY_MARKER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movq	8(%r13), %rcx
	movq	%rax, (%rcx)
	leaq	16(%r13), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	_PS_BEACON_SYNC@GOTPCREL(%rip), %rax
	movq	_PS_WAIT_FOR_BEACON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%r13)
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
LBB0_2:
	movq	8(%r13), %rdi
	callq	_ath9k_hw_mci_is_enabled
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_ath9k_mci_update_wlan_channels
LBB0_4:
	movq	_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	movl	(%r15), %r8d
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH_OP_PRIM_STA_VIF,4,2        ## @ATH_OP_PRIM_STA_VIF
	.comm	_ATH_RSSI_DUMMY_MARKER,8,3      ## @ATH_RSSI_DUMMY_MARKER
	.comm	_PS_BEACON_SYNC,4,2             ## @PS_BEACON_SYNC
	.comm	_PS_WAIT_FOR_BEACON,4,2         ## @PS_WAIT_FOR_BEACON
	.comm	_CONFIG,4,2                     ## @CONFIG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Primary Station interface: %pM, BSSID: %pM\n"

	.no_dead_strip	_ath9k_set_assoc_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_set_assoc_state
_ath9k_set_assoc_state:                 ; @ath9k_set_assoc_state
	.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
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x0, [x0, #8]
	bl	_ath9k_hw_common
	mov	x20, x0
	ldr	x23, [x19, #8]
Lloh0:
	adrp	x8, _ATH_OP_PRIM_STA_VIF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH_OP_PRIM_STA_VIF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x20, #20
	bl	_set_bit
	ldr	w0, [x20]
	ldr	w1, [x23, #4]
	bl	_ether_addr_copy
	ldr	w8, [x23]
	str	w8, [x20, #16]
	ldr	x0, [x21, #8]
	bl	_ath9k_hw_write_associd
	cbz	w22, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ATH_RSSI_DUMMY_MARKER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH_RSSI_DUMMY_MARKER@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x20, #8]
	ldr	x9, [x21, #8]
	str	x8, [x9]
	add	x22, x21, #16
	mov	x0, x22
	bl	_spin_lock_irqsave
Lloh6:
	adrp	x8, _PS_BEACON_SYNC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PS_BEACON_SYNC@GOTPAGEOFF]
Lloh8:
	adrp	x9, _PS_WAIT_FOR_BEACON@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PS_WAIT_FOR_BEACON@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x21]
	orr	w8, w8, w9
	str	w8, [x21]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
LBB0_2:
	ldr	x0, [x21, #8]
	bl	_ath9k_hw_mci_is_enabled
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x21
	mov	w1, #0
	bl	_ath9k_mci_update_wlan_channels
LBB0_4:
Lloh12:
	adrp	x8, _CONFIG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CONFIG@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w3, [x19]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	ldr	w4, [x20]
	mov	x0, x20
	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
	b	_ath_dbg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH_OP_PRIM_STA_VIF,4,2        ; @ATH_OP_PRIM_STA_VIF
	.comm	_ATH_RSSI_DUMMY_MARKER,8,3      ; @ATH_RSSI_DUMMY_MARKER
	.comm	_PS_BEACON_SYNC,4,2             ; @PS_BEACON_SYNC
	.comm	_PS_WAIT_FOR_BEACON,4,2         ; @PS_WAIT_FOR_BEACON
	.comm	_CONFIG,4,2                     ; @CONFIG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Primary Station interface: %pM, BSSID: %pM\n"

	.no_dead_strip	_ath9k_set_assoc_state
.subsections_via_symbols
