	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_hw_reset_opmode
_ath9k_hw_reset_opmode:                 ## @ath9k_hw_reset_opmode
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_ath9k_hw_common
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_ENABLE_REGWRITE_BUFFER
	movq	_AR_STA_ID1@GOTPCREL(%rip), %rax
	movq	_AR_STA_ID1_RTS_USE_DEF@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r15d
	orl	(%rbx), %r15d
	movl	(%rax), %esi
	movq	_AR_STA_ID1_SADH_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	notl	%ecx
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_REG_RMW
	movq	%r12, %rdi
	callq	_ath_hw_setbssidmask
	movq	_AR_DEF_ANTENNA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_REG_WRITE
	movq	%rbx, %rdi
	callq	_ath9k_hw_write_associd
	movq	_AR_ISR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_REG_WRITE
	movq	_AR_RSSI_THR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INIT_RSSI_THR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_REG_WRITE
	movq	%rbx, %rdi
	callq	_REGWRITE_BUFFER_FLUSH
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath9k_hw_set_operating_mode    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_STA_ID1,4,2                 ## @AR_STA_ID1
	.comm	_AR_STA_ID1_RTS_USE_DEF,4,2     ## @AR_STA_ID1_RTS_USE_DEF
	.comm	_AR_STA_ID1_SADH_MASK,4,2       ## @AR_STA_ID1_SADH_MASK
	.comm	_AR_DEF_ANTENNA,4,2             ## @AR_DEF_ANTENNA
	.comm	_AR_ISR,4,2                     ## @AR_ISR
	.comm	_AR_RSSI_THR,4,2                ## @AR_RSSI_THR
	.comm	_INIT_RSSI_THR,4,2              ## @INIT_RSSI_THR
	.no_dead_strip	_ath9k_hw_reset_opmode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_hw_reset_opmode
_ath9k_hw_reset_opmode:                 ; @ath9k_hw_reset_opmode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_ath9k_hw_common
	mov	x22, x0
	mov	x0, x19
	bl	_ENABLE_REGWRITE_BUFFER
Lloh0:
	adrp	x8, _AR_STA_ID1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR_STA_ID1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _AR_STA_ID1_RTS_USE_DEF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR_STA_ID1_RTS_USE_DEF@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w8, w8, w21
	ldr	w9, [x19]
	orr	w2, w8, w9
Lloh6:
	adrp	x8, _AR_STA_ID1_SADH_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AR_STA_ID1_SADH_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mvn	w3, w8
	mov	x0, x19
	bl	_REG_RMW
	mov	x0, x22
	bl	_ath_hw_setbssidmask
Lloh9:
	adrp	x8, _AR_DEF_ANTENNA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AR_DEF_ANTENNA@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_REG_WRITE
	mov	x0, x19
	bl	_ath9k_hw_write_associd
Lloh12:
	adrp	x8, _AR_ISR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AR_ISR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_REG_WRITE
Lloh15:
	adrp	x8, _AR_RSSI_THR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AR_RSSI_THR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _INIT_RSSI_THR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _INIT_RSSI_THR@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_WRITE
	mov	x0, x19
	bl	_REGWRITE_BUFFER_FLUSH
	ldr	w1, [x19, #4]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ath9k_hw_set_operating_mode
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_STA_ID1,4,2                 ; @AR_STA_ID1
	.comm	_AR_STA_ID1_RTS_USE_DEF,4,2     ; @AR_STA_ID1_RTS_USE_DEF
	.comm	_AR_STA_ID1_SADH_MASK,4,2       ; @AR_STA_ID1_SADH_MASK
	.comm	_AR_DEF_ANTENNA,4,2             ; @AR_DEF_ANTENNA
	.comm	_AR_ISR,4,2                     ; @AR_ISR
	.comm	_AR_RSSI_THR,4,2                ; @AR_RSSI_THR
	.comm	_INIT_RSSI_THR,4,2              ; @INIT_RSSI_THR
	.no_dead_strip	_ath9k_hw_reset_opmode
.subsections_via_symbols
