	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_mac_op_assign_vif_chanctx
_ath10k_mac_op_assign_vif_chanctx:      ## @ath10k_mac_op_assign_vif_chanctx
	.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
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	(%rdi), %r14
	movq	16(%rsi), %r15
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_ATH10K_DBG_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %r8d
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	callq	_ath10k_dbg
	movl	(%r15), %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_20
LBB0_2:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ath10k_vdev_start
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r13d
	movl	8(%r15), %edx
	movl	8(%r12), %ecx
	movq	(%rbx), %rax
	movl	(%rax), %r8d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r13d, %r9d
	xorl	%eax, %eax
	callq	_ath10k_warn
	jmp	LBB0_19
LBB0_4:
	movl	$1, (%r15)
	movq	%r15, %rdi
	callq	_ath10k_mac_vif_setup_ps
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %r13d
	movl	8(%r15), %edx
	leaq	L_.str.2(%rip), %rsi
LBB0_6:
	movq	%r14, %rdi
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_ath10k_warn
LBB0_18:
	movq	%r15, %rdi
	callq	_ath10k_vdev_stop
	movl	$0, (%r15)
	movq	%r15, %rdi
	callq	_ath10k_mac_vif_setup_ps
LBB0_19:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_20:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%r12), %rax
	movq	_NL80211_IFTYPE_MONITOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.8:
	movl	8(%r15), %esi
	movl	8(%r12), %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ath10k_wmi_vdev_up
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r13d
	movl	8(%r15), %edx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_6
LBB0_10:
	movl	$1, 4(%r15)
LBB0_11:
	movq	%r15, %rdi
	callq	_ath10k_mac_can_set_cts_prot
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	%r15, %rdi
	callq	_ath10k_mac_set_cts_prot
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	8(%r15), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_ath10k_warn
LBB0_14:
	movq	%r14, %rdi
	callq	_ath10k_peer_stats_enabled
	testq	%rax, %rax
	je	LBB0_21
## %bb.15:
	cmpq	$0, 8(%r14)
	je	LBB0_21
## %bb.16:
	movq	_ATH10K_PKTLOG_PEER_STATS@GOTPCREL(%rip), %rax
	movl	4(%r14), %esi
	orl	(%rax), %esi
	movl	%esi, 4(%r14)
	movq	%r14, %rdi
	callq	_ath10k_wmi_pdev_pktlog_enable
	testl	%eax, %eax
	je	LBB0_21
## %bb.17:
	movl	%eax, %r13d
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ath10k_warn
	jmp	LBB0_18
LBB0_21:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%r13d, %r13d
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_DBG_MAC,4,2             ## @ATH10K_DBG_MAC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac chanctx assign ptr %pK vdev_id %i\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.1:                               ## @.str.1
	.asciz	"failed to start vdev %i addr %pM on freq %d: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to update vdev %i ps: %d\n"

	.comm	_NL80211_IFTYPE_MONITOR,8,3     ## @NL80211_IFTYPE_MONITOR
L_.str.3:                               ## @.str.3
	.asciz	"failed to up monitor vdev %i: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to set cts protection for vdev %d: %d\n"

	.comm	_ATH10K_PKTLOG_PEER_STATS,4,2   ## @ATH10K_PKTLOG_PEER_STATS
L_.str.5:                               ## @.str.5
	.asciz	"failed to enable pktlog %d\n"

	.no_dead_strip	_ath10k_mac_op_assign_vif_chanctx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_mac_op_assign_vif_chanctx
_ath10k_mac_op_assign_vif_chanctx:      ; @ath10k_mac_op_assign_vif_chanctx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x23, x2
	mov	x22, x1
	ldr	x19, [x0]
	ldr	x20, [x1, #16]
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x8, _ATH10K_DBG_MAC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH10K_DBG_MAC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w4, [x20, #8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x23
	bl	_ath10k_dbg
	ldr	w0, [x20]
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_mutex_unlock
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_2:
	mov	x0, x20
	mov	x1, x23
	bl	_ath10k_vdev_start
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
	ldr	w2, [x20, #8]
	ldr	x8, [x23]
	ldr	w9, [x22, #8]
	ldr	w8, [x8]
	stp	x8, x21, [sp, #8]
	str	x9, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
	b	LBB0_8
LBB0_4:
	mov	w8, #1
	str	w8, [x20]
	mov	x0, x20
	bl	_ath10k_mac_vif_setup_ps
	cbz	w0, LBB0_10
; %bb.5:
	mov	x21, x0
	ldr	w2, [x20, #8]
	str	x21, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_ath10k_warn
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
LBB0_7:
	mov	x0, x20
	bl	_ath10k_vdev_stop
	str	wzr, [x20]
	mov	x0, x20
	bl	_ath10k_mac_vif_setup_ps
LBB0_8:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_9:
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
LBB0_10:
	ldr	x8, [x22]
Lloh12:
	adrp	x9, _NL80211_IFTYPE_MONITOR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NL80211_IFTYPE_MONITOR@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.11:
	ldr	w1, [x20, #8]
	ldr	w3, [x22, #8]
	mov	x0, x19
	mov	w2, #0
	bl	_ath10k_wmi_vdev_up
	cbz	w0, LBB0_13
; %bb.12:
	mov	x21, x0
	ldr	w2, [x20, #8]
	str	x21, [sp]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_13:
	mov	w8, #1
	str	w8, [x20, #4]
LBB0_14:
	mov	x0, x20
	bl	_ath10k_mac_can_set_cts_prot
	cbz	x0, LBB0_17
; %bb.15:
	mov	x0, x20
	bl	_ath10k_mac_set_cts_prot
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_17
; %bb.16:
	ldr	w2, [x20, #8]
	str	x0, [sp]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
LBB0_17:
	mov	x0, x19
	bl	_ath10k_peer_stats_enabled
	cbz	x0, LBB0_21
; %bb.18:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_21
; %bb.19:
Lloh19:
	adrp	x8, _ATH10K_PKTLOG_PEER_STATS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ATH10K_PKTLOG_PEER_STATS@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w1, w9, w8
	str	w1, [x19, #4]
	mov	x0, x19
	bl	_ath10k_wmi_pdev_pktlog_enable
	cbz	w0, LBB0_21
; %bb.20:
	mov	x21, x0
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_ath10k_warn
	b	LBB0_7
LBB0_21:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w21, #0
	b	LBB0_9
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_DBG_MAC,4,2             ; @ATH10K_DBG_MAC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac chanctx assign ptr %pK vdev_id %i\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.1:                               ; @.str.1
	.asciz	"failed to start vdev %i addr %pM on freq %d: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to update vdev %i ps: %d\n"

	.comm	_NL80211_IFTYPE_MONITOR,8,3     ; @NL80211_IFTYPE_MONITOR
l_.str.3:                               ; @.str.3
	.asciz	"failed to up monitor vdev %i: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to set cts protection for vdev %d: %d\n"

	.comm	_ATH10K_PKTLOG_PEER_STATS,4,2   ; @ATH10K_PKTLOG_PEER_STATS
l_.str.5:                               ; @.str.5
	.asciz	"failed to enable pktlog %d\n"

	.no_dead_strip	_ath10k_mac_op_assign_vif_chanctx
.subsections_via_symbols
