	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1271_tm_cmd_interrogate
_wl1271_tm_cmd_interrogate:             ## @wl1271_tm_cmd_interrogate
	.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	%rsi, %rbx
	movq	%rdi, %r12
	movq	_DEBUG_TESTMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wl1271_debug
	movq	_WL1271_TM_ATTR_IE_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	callq	_nla_get_u8
	movl	%eax, %r13d
	leaq	8(%r12), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%r12), %rax
	movq	_WLCORE_STATE_ON@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_4:
	movl	12(%r12), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r15
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	%rax, %rdx
	movl	$4, %ecx
	movl	$4, %r8d
	callq	_wl1271_cmd_interrogate
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movq	16(%r12), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	callq	_cfg80211_testmode_alloc_reply_skb
	testq	%rax, %rax
	je	LBB0_11
## %bb.13:
	movq	%rax, %rbx
	movq	_WL1271_TM_ATTR_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	movq	%r15, %rcx
	callq	_nla_put
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	callq	_kfree_skb
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_5:
	movl	%eax, %ebx
	movl	12(%r12), %edi
	callq	_pm_runtime_put_noidle
	jmp	LBB0_18
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_9:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_wl1271_warning
	jmp	LBB0_16
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_12:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_15:
	callq	_cfg80211_testmode_reply
	movl	%eax, %ebx
LBB0_16:
	movq	%r15, %rdi
	callq	_kfree
LBB0_17:
	movl	12(%r12), %edi
	callq	_pm_runtime_mark_last_busy
	movl	12(%r12), %edi
	callq	_pm_runtime_put_autosuspend
LBB0_18:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_TESTMODE,4,2             ## @DEBUG_TESTMODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"testmode cmd interrogate"

	.comm	_WL1271_TM_ATTR_IE_ID,8,3       ## @WL1271_TM_ATTR_IE_ID
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WLCORE_STATE_ON,8,3            ## @WLCORE_STATE_ON
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"testmode cmd interrogate failed: %d"

	.comm	_WL1271_TM_ATTR_DATA,4,2        ## @WL1271_TM_ATTR_DATA
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.no_dead_strip	_wl1271_tm_cmd_interrogate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1271_tm_cmd_interrogate
_wl1271_tm_cmd_interrogate:             ; @wl1271_tm_cmd_interrogate
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _DEBUG_TESTMODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG_TESTMODE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl1271_debug
Lloh5:
	adrp	x8, _WL1271_TM_ATTR_IE_ID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WL1271_TM_ATTR_IE_ID@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x0, [x19, x8, lsl #3]
	cbz	x0, LBB0_3
; %bb.1:
	bl	_nla_get_u8
	mov	x23, x0
	add	x19, x20, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
Lloh8:
	adrp	x9, _WLCORE_STATE_ON@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WLCORE_STATE_ON@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.2:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_18
LBB0_3:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_19
LBB0_4:
	ldr	w0, [x20, #12]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_10
; %bb.5:
Lloh17:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.6:
	mov	x21, x0
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	mov	w3, #4
	mov	w4, #4
	bl	_wl1271_cmd_interrogate
	tbnz	w0, #31, LBB0_12
; %bb.7:
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	mov	w1, #4
	bl	_cfg80211_testmode_alloc_reply_skb
	cbz	x0, LBB0_13
; %bb.8:
	mov	x22, x0
Lloh20:
	adrp	x8, _WL1271_TM_ATTR_DATA@GOTPAGE
Lloh21:
	ldr	x8, [x8, _WL1271_TM_ATTR_DATA@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	w2, #4
	mov	x3, x21
	bl	_nla_put
	cbz	x0, LBB0_15
; %bb.9:
	mov	x0, x22
	bl	_kfree_skb
Lloh23:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
	b	LBB0_14
LBB0_10:
	mov	x22, x0
	ldr	w0, [x20, #12]
	bl	_pm_runtime_put_noidle
	b	LBB0_18
LBB0_11:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_17
LBB0_12:
	mov	x22, x0
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_wl1271_warning
	b	LBB0_16
LBB0_13:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_16
LBB0_15:
	mov	x0, x22
	bl	_cfg80211_testmode_reply
	mov	x22, x0
LBB0_16:
	mov	x0, x21
	bl	_kfree
LBB0_17:
	ldr	w0, [x20, #12]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x20, #12]
	bl	_pm_runtime_put_autosuspend
LBB0_18:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_19:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_TESTMODE,4,2             ; @DEBUG_TESTMODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"testmode cmd interrogate"

	.comm	_WL1271_TM_ATTR_IE_ID,8,3       ; @WL1271_TM_ATTR_IE_ID
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WLCORE_STATE_ON,8,3            ; @WLCORE_STATE_ON
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"testmode cmd interrogate failed: %d"

	.comm	_WL1271_TM_ATTR_DATA,4,2        ; @WL1271_TM_ATTR_DATA
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.no_dead_strip	_wl1271_tm_cmd_interrogate
.subsections_via_symbols
