	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wil_cfg80211_mgmt_tx           ## -- Begin function wil_cfg80211_mgmt_tx
	.p2align	4, 0x90
_wil_cfg80211_mgmt_tx:                  ## @wil_cfg80211_mgmt_tx
	.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
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	(%rdx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	32(%rdx), %r15
	callq	_wiphy_to_wil
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_wdev_to_vif
	movq	%rax, %r12
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rax), %edx
	jmp	LBB0_3
LBB0_2:
	movl	$-1, %edx
LBB0_3:
	movl	8(%rbx), %r8d
	movl	24(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_wil_dbg_misc
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movslq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.5:
	movq	(%r13), %rax
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_11
## %bb.6:
	movq	(%r12), %rdx
	cmpq	%rcx, %rdx
	je	LBB0_10
## %bb.7:
	cmpl	$0, 24(%rbx)
	je	LBB0_19
## %bb.8:
	movl	8(%rbx), %r8d
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_wmi_mgmt_tx_ext
	jmp	LBB0_13
LBB0_9:
	movq	(%r13), %rax
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
LBB0_10:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str.2(%rip), %rsi
LBB0_12:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_wil_dbg_misc
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_wmi_mgmt_tx
LBB0_13:
	movl	%eax, %ebx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	xorl	%r8d, %r8d
	testl	%eax, %eax
	sete	%r8b
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	movl	(%rax), %eax
	addl	%ebx, %eax
	cmovel	%esi, %ebx
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.14:
	movl	(%rcx), %esi
LBB0_15:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r13, %rdi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_cfg80211_mgmt_tx_status
	jmp	LBB0_18
LBB0_16:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_wil_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_17:
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_wil_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mgmt_tx: channel %d offchan %d, wait %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"invalid channel\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
L_.str.2:                               ## @.str.2
	.asciz	"send WMI_SW_TX_REQ_CMDID on non-AP interfaces\n"

L_.str.3:                               ## @.str.3
	.asciz	"send WMI_SW_TX_REQ_CMDID for on-channel\n"

L_.str.4:                               ## @.str.4
	.asciz	"invalid channel params: current %d requested %d, off-channel not allowed\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wil_cfg80211_mgmt_tx           ; -- Begin function wil_cfg80211_mgmt_tx
	.p2align	2
_wil_cfg80211_mgmt_tx:                  ; @wil_cfg80211_mgmt_tx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x22, x3
	mov	x25, x2
	mov	x21, x1
	ldr	x19, [x2, #32]
	ldr	x20, [x2]
	bl	_wiphy_to_wil
	mov	x23, x0
	mov	x1, x21
	bl	_wdev_to_vif
	mov	x24, x0
	ldr	x8, [x25, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x8]
	b	LBB0_3
LBB0_2:
	mov	w8, #-1
LBB0_3:
	ldr	w9, [x25, #24]
	ldr	w10, [x25, #8]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_wil_dbg_misc
	ldr	x8, [x25, #16]
	cbz	x8, LBB0_9
; %bb.4:
	ldrsw	x3, [x8]
	cbz	w3, LBB0_17
; %bb.5:
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.6:
	ldr	x8, [x24]
	cmp	x8, x3
	b.eq	LBB0_10
; %bb.7:
	ldr	w9, [x25, #24]
	cbz	w9, LBB0_20
; %bb.8:
	ldr	w4, [x25, #8]
	mov	x0, x24
	mov	x1, x19
	mov	x2, x20
	bl	_wmi_mgmt_tx_ext
	b	LBB0_13
LBB0_9:
	ldr	x8, [x21]
Lloh5:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
LBB0_10:
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_12:
	mov	x0, x23
	bl	_wil_dbg_misc
	mov	x0, x24
	mov	x1, x19
	mov	x2, x20
	bl	_wmi_mgmt_tx
LBB0_13:
	cmp	w0, #0
	cset	w4, eq
Lloh12:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmn	w0, w8
	csel	w23, wzr, w0, eq
	cbz	x22, LBB0_15
; %bb.14:
	ldr	w1, [x22]
	b	LBB0_16
LBB0_15:
	mov	w1, #0
LBB0_16:
Lloh15:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh17:
	ldr	w5, [x8]
	mov	x0, x21
	mov	x2, x19
	mov	x3, x20
	bl	_cfg80211_mgmt_tx_status
	b	LBB0_19
LBB0_17:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_wil_err
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_19:
	mov	x0, x23
	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
	add	sp, sp, #112
	ret
LBB0_20:
	stp	x8, x3, [sp]
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x23
	bl	_wil_err
Lloh24:
	adrp	x8, _EBUSY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_18
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mgmt_tx: channel %d offchan %d, wait %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"invalid channel\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
l_.str.2:                               ; @.str.2
	.asciz	"send WMI_SW_TX_REQ_CMDID on non-AP interfaces\n"

l_.str.3:                               ; @.str.3
	.asciz	"send WMI_SW_TX_REQ_CMDID for on-channel\n"

l_.str.4:                               ; @.str.4
	.asciz	"invalid channel params: current %d requested %d, off-channel not allowed\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
