	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1271_tm_detect_fem
_wl1271_tm_detect_fem:                  ## @wl1271_tm_detect_fem
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_PLT_FEM_DETECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wl1271_plt_start
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	$4, %edi
	callq	_nla_total_size
	movq	8(%r14), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_cfg80211_testmode_alloc_reply_skb
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %rbx
	movq	_WL1271_TM_ATTR_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	4(%r14), %rcx
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_nla_put
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	callq	_kfree_skb
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_7:
	callq	_cfg80211_testmode_reply
	movl	%eax, %ebx
LBB0_8:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	callq	_wl1271_plt_stop
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PLT_FEM_DETECT,4,2             ## @PLT_FEM_DETECT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WL1271_TM_ATTR_DATA,4,2        ## @WL1271_TM_ATTR_DATA
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.no_dead_strip	_wl1271_tm_detect_fem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1271_tm_detect_fem
_wl1271_tm_detect_fem:                  ; @wl1271_tm_detect_fem
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _PLT_FEM_DETECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PLT_FEM_DETECT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_wl1271_plt_start
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_mutex_lock
	mov	w0, #4
	bl	_nla_total_size
	mov	x1, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_cfg80211_testmode_alloc_reply_skb
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
Lloh3:
	adrp	x8, _WL1271_TM_ATTR_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WL1271_TM_ATTR_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x3, x19, #4
	mov	w2, #4
	bl	_nla_put
	cbz	x0, LBB0_7
; %bb.3:
	mov	x0, x20
	bl	_kfree_skb
Lloh6:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	mov	x20, x0
	b	LBB0_9
LBB0_5:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_7:
	mov	x0, x20
	bl	_cfg80211_testmode_reply
	mov	x20, x0
LBB0_8:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x19
	bl	_wl1271_plt_stop
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PLT_FEM_DETECT,4,2             ; @PLT_FEM_DETECT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WL1271_TM_ATTR_DATA,4,2        ; @WL1271_TM_ATTR_DATA
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.no_dead_strip	_wl1271_tm_detect_fem
.subsections_via_symbols
