	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_tm_event_wmi            ## -- Begin function ath10k_tm_event_wmi
	.p2align	4, 0x90
_ath10k_tm_event_wmi:                   ## @ath10k_tm_event_wmi
	.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
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	_ATH10K_DBG_TESTMODE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	8(%rdx), %r9
	leaq	L_.str(%rip), %rdx
	movl	%r12d, %ecx
	movq	%rbx, %r8
	callq	_ath10k_dbg
	movl	(%r14), %esi
	movl	(%rbx), %r8d
	movq	8(%rbx), %r9
	leaq	L_.str.1(%rip), %rcx
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_ath10k_dbg_dump
	movq	%r15, %rdi
	callq	_spin_lock_bh
	cmpl	$0, 16(%r15)
	je	LBB0_12
## %bb.1:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rsi
	addq	$8, %rsi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_cfg80211_testmode_alloc_event_skb
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movq	_ATH10K_TM_ATTR_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ATH10K_TM_CMD_WMI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_nla_put_u32
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ath10k_warn
	jmp	LBB0_11
LBB0_6:
	movq	_ATH10K_TM_ATTR_WMI_CMDID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_nla_put_u32
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_5
LBB0_8:
	movq	_ATH10K_TM_ATTR_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rdx
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	callq	_nla_put
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.5(%rip), %rsi
LBB0_5:
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ath10k_warn
	movq	%r14, %rdi
	callq	_kfree_skb
LBB0_11:
	movl	$1, %r14d
LBB0_12:
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_cfg80211_testmode_event
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_DBG_TESTMODE,4,2        ## @ATH10K_DBG_TESTMODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"testmode event wmi cmd_id %d skb %pK skb->len %d\n"

L_.str.1:                               ## @.str.1
	.space	1

	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.2:                               ## @.str.2
	.asciz	"failed to allocate skb for testmode wmi event\n"

	.comm	_ATH10K_TM_ATTR_CMD,4,2         ## @ATH10K_TM_ATTR_CMD
	.comm	_ATH10K_TM_CMD_WMI,4,2          ## @ATH10K_TM_CMD_WMI
L_.str.3:                               ## @.str.3
	.asciz	"failed to to put testmode wmi event cmd attribute: %d\n"

	.comm	_ATH10K_TM_ATTR_WMI_CMDID,4,2   ## @ATH10K_TM_ATTR_WMI_CMDID
L_.str.4:                               ## @.str.4
	.asciz	"failed to to put testmode wmi even cmd_id: %d\n"

	.comm	_ATH10K_TM_ATTR_DATA,4,2        ## @ATH10K_TM_ATTR_DATA
L_.str.5:                               ## @.str.5
	.asciz	"failed to copy skb to testmode wmi event: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_tm_event_wmi            ; -- Begin function ath10k_tm_event_wmi
	.p2align	2
_ath10k_tm_event_wmi:                   ; @ath10k_tm_event_wmi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _ATH10K_DBG_TESTMODE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ATH10K_DBG_TESTMODE@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	x5, [x2, #8]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x22
	mov	x4, x20
	bl	_ath10k_dbg
	ldr	w1, [x21]
	ldr	w4, [x20]
	ldr	x5, [x20, #8]
Lloh4:
	adrp	x3, l_.str.1@PAGE
Lloh5:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	bl	_ath10k_dbg_dump
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	x8, [x20, #8]
	add	x1, x8, #8
Lloh6:
	adrp	x23, _GFP_ATOMIC@GOTPAGE
Lloh7:
	ldr	x23, [x23, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_cfg80211_testmode_alloc_event_skb
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
Lloh8:
	adrp	x8, _ATH10K_TM_ATTR_CMD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATH10K_TM_ATTR_CMD@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _ATH10K_TM_CMD_WMI@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ATH10K_TM_CMD_WMI@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_nla_put_u32
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_6
; %bb.3:
	str	x0, [sp]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_4:
	mov	w20, #0
	b	LBB0_12
LBB0_5:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
	b	LBB0_11
LBB0_6:
Lloh18:
	adrp	x8, _ATH10K_TM_ATTR_WMI_CMDID@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ATH10K_TM_ATTR_WMI_CMDID@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x22
	bl	_nla_put_u32
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_8
; %bb.7:
	str	x0, [sp]
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_10
LBB0_8:
Lloh23:
	adrp	x8, _ATH10K_TM_ATTR_DATA@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ATH10K_TM_ATTR_DATA@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	x2, [x20, #8]
	ldr	w3, [x20]
	mov	x0, x21
	bl	_nla_put
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_13
; %bb.9:
	str	x0, [sp]
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_ath10k_warn
	mov	x0, x21
	bl	_kfree_skb
LBB0_11:
	mov	w20, #1
LBB0_12:
	mov	x0, x19
	bl	_spin_unlock_bh
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
	ldr	w1, [x23]
	mov	x0, x21
	bl	_cfg80211_testmode_event
	b	LBB0_11
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_DBG_TESTMODE,4,2        ; @ATH10K_DBG_TESTMODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"testmode event wmi cmd_id %d skb %pK skb->len %d\n"

l_.str.1:                               ; @.str.1
	.space	1

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.2:                               ; @.str.2
	.asciz	"failed to allocate skb for testmode wmi event\n"

	.comm	_ATH10K_TM_ATTR_CMD,4,2         ; @ATH10K_TM_ATTR_CMD
	.comm	_ATH10K_TM_CMD_WMI,4,2          ; @ATH10K_TM_CMD_WMI
l_.str.3:                               ; @.str.3
	.asciz	"failed to to put testmode wmi event cmd attribute: %d\n"

	.comm	_ATH10K_TM_ATTR_WMI_CMDID,4,2   ; @ATH10K_TM_ATTR_WMI_CMDID
l_.str.4:                               ; @.str.4
	.asciz	"failed to to put testmode wmi even cmd_id: %d\n"

	.comm	_ATH10K_TM_ATTR_DATA,4,2        ; @ATH10K_TM_ATTR_DATA
l_.str.5:                               ; @.str.5
	.asciz	"failed to copy skb to testmode wmi event: %d\n"

.subsections_via_symbols
