	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_mac_update_vif_chan
_ath10k_mac_update_vif_chan:            ## @ath10k_mac_update_vif_chan
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	addq	$16, %rdi
	callq	_lockdep_assert_held
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_ath10k_monitor_stop
LBB0_2:
	testl	%r15d, %r15d
	jle	LBB0_22
## %bb.3:
	movq	%rbx, %r13
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, %eax
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$24, %r15
	cmpq	%r15, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%r15), %rax
	movq	8(%r14,%r15), %rcx
	movq	(%rcx), %r12
	movq	_ATH10K_DBG_MAC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r12), %ecx
	movq	16(%r14,%r15), %rdx
	movq	8(%rdx), %rdi
	movl	(%rdi), %r8d
	movq	8(%rax), %rdi
	movl	(%rdi), %r9d
	movl	(%rdx), %ebx
	movl	(%rax), %eax
	movq	%r13, %rdi
	leaq	L_.str(%rip), %rdx
	pushq	%rax
	pushq	%rbx
	callq	_ath10k_dbg
	addq	$16, %rsp
	xorl	%edi, %edi
	cmpl	$0, 20(%r12)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edi, %edi
	cmpl	$0, 16(%r12)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_ath10k_wmi_vdev_down
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r12), %edx
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_ath10k_warn
	jmp	LBB0_8
LBB0_9:
	movq	%r13, %rbx
	movq	%r13, %rdi
	callq	_spin_lock_bh
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_ath10k_mac_update_rx_channel
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	leaq	L_.str.5(%rip), %r13
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r12), %edx
	movq	%rbx, %rdi
	leaq	L_.str.4(%rip), %rsi
LBB0_20:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_ath10k_warn
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_10 Depth=1
	addq	$24, %r15
	cmpq	%r15, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_23
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14,%r15), %rax
	movq	(%rax), %r12
	xorl	%edi, %edi
	cmpl	$0, 20(%r12)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_21
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%edi, %edi
	cmpl	$0, 16(%r12)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_21
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r12, %rdi
	callq	_ath10k_mac_setup_bcn_tmpl
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ath10k_warn
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r12, %rdi
	callq	_ath10k_mac_setup_prb_tmpl
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ath10k_warn
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r14,%r15), %rsi
	movq	%r12, %rdi
	callq	_ath10k_vdev_restart
	testl	%eax, %eax
	jne	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	12(%r12), %edi
	movl	8(%r12), %edx
	movl	(%r12), %esi
	movl	4(%r12), %ecx
	callq	_ath10k_wmi_vdev_up
	testl	%eax, %eax
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	jmp	LBB0_20
LBB0_22:
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	callq	_ath10k_mac_update_rx_channel
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
LBB0_23:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath10k_monitor_recalc          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_DBG_MAC,4,2             ## @ATH10K_DBG_MAC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac chanctx switch vdev_id %i freq %hu->%hu width %d->%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to down vdev %d: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to update bcn tmpl during csa: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to update prb tmpl during csa: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to restart vdev %d: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"failed to bring vdev up %d: %d\n"

	.no_dead_strip	_ath10k_mac_update_vif_chan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_mac_update_vif_chan
_ath10k_mac_update_vif_chan:            ; @ath10k_mac_update_vif_chan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	add	x0, x0, #16
	bl	_lockdep_assert_held
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_ath10k_monitor_stop
LBB0_2:
	cmp	w21, #1
	b.lt	LBB0_22
; %bb.3:
	mov	x24, #0
	mov	w25, w21
	add	x8, x25, w21, uxtw #1
	lsl	x26, x8, #3
Lloh0:
	adrp	x27, _ATH10K_DBG_MAC@GOTPAGE
Lloh1:
	ldr	x27, [x27, _ATH10K_DBG_MAC@GOTPAGEOFF]
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
Lloh4:
	adrp	x23, l_.str.1@PAGE
Lloh5:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #24
	cmp	x26, x24
	b.eq	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x20, x24
	ldp	x10, x9, [x8]
	ldr	x28, [x9]
	ldr	w1, [x27]
	ldr	w3, [x28]
	ldr	x8, [x8, #16]
	ldr	x9, [x8, #8]
	ldr	w4, [x9]
	ldr	x9, [x10, #8]
	ldr	w5, [x9]
	ldr	w6, [x8]
	ldr	w7, [x10]
	mov	x0, x19
	mov	x2, x22
	bl	_ath10k_dbg
	ldr	w8, [x28, #20]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x28, #16]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x28]
	mov	x0, x19
	bl	_ath10k_wmi_vdev_down
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w2, [x28]
	str	x0, [sp]
	mov	x0, x19
	mov	x1, x23
	bl	_ath10k_warn
	b	LBB0_4
LBB0_9:
	mov	x0, x19
	bl	_spin_lock_bh
	mov	x0, x19
	mov	x1, #0
	mov	x2, x20
	mov	x3, x21
	bl	_ath10k_mac_update_rx_channel
	mov	x0, x19
	bl	_spin_unlock_bh
	add	x26, x20, #8
Lloh6:
	adrp	x20, l_.str.5@PAGE
Lloh7:
	add	x20, x20, l_.str.5@PAGEOFF
Lloh8:
	adrp	x21, l_.str.4@PAGE
Lloh9:
	add	x21, x21, l_.str.4@PAGEOFF
Lloh10:
	adrp	x22, l_.str.3@PAGE
Lloh11:
	add	x22, x22, l_.str.3@PAGEOFF
Lloh12:
	adrp	x23, l_.str.2@PAGE
Lloh13:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w2, [x24]
	str	x0, [sp]
	mov	x0, x19
	mov	x1, x21
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	bl	_ath10k_warn
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x26, x26, #24
	subs	x25, x25, #1
	b.eq	LBB0_23
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	ldr	x24, [x8]
	ldr	w8, [x24, #20]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x24, #16]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x24
	bl	_ath10k_mac_setup_bcn_tmpl
	cbz	w0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	bl	_ath10k_warn
LBB0_17:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x24
	bl	_ath10k_mac_setup_prb_tmpl
	cbz	w0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_ath10k_warn
LBB0_19:                                ;   in Loop: Header=BB0_13 Depth=1
	ldur	x1, [x26, #-8]
	mov	x0, x24
	bl	_ath10k_vdev_restart
                                        ; kill: def $w0 killed $w0 def $x0
	cbnz	w0, LBB0_10
; %bb.20:                               ;   in Loop: Header=BB0_13 Depth=1
	ldp	w2, w0, [x24, #8]
	ldp	w1, w3, [x24]
	bl	_ath10k_wmi_vdev_up
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_12
; %bb.21:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w2, [x24]
	str	x0, [sp]
	mov	x0, x19
	mov	x1, x20
	b	LBB0_11
LBB0_22:
	mov	x0, x19
	bl	_spin_lock_bh
	mov	x0, x19
	mov	x1, #0
	mov	x2, x20
	mov	x3, x21
	bl	_ath10k_mac_update_rx_channel
	mov	x0, x19
	bl	_spin_unlock_bh
LBB0_23:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ath10k_monitor_recalc
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_DBG_MAC,4,2             ; @ATH10K_DBG_MAC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac chanctx switch vdev_id %i freq %hu->%hu width %d->%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to down vdev %d: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to update bcn tmpl during csa: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to update prb tmpl during csa: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to restart vdev %d: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"failed to bring vdev up %d: %d\n"

	.no_dead_strip	_ath10k_mac_update_vif_chan
.subsections_via_symbols
