	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1271_tm_cmd_configure
_wl1271_tm_cmd_configure:               ## @wl1271_tm_cmd_configure
	.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, %r14
	movq	_DEBUG_TESTMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wl1271_debug
	movq	_WL1271_TM_ATTR_DATA@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	cmpq	$0, (%rbx,%rax,8)
	je	LBB0_1
## %bb.3:
	movq	_WL1271_TM_ATTR_IE_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.4:
	callq	_nla_get_u8
	movl	%eax, %r15d
	movq	(%r13), %rax
	movq	(%rbx,%rax,8), %rdi
	callq	_nla_data
	movq	%rax, %r12
	movq	(%r13), %rax
	movq	(%rbx,%rax,8), %rdi
	callq	_nla_len
	cmpl	$5, %eax
	jb	LBB0_6
## %bb.5:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_wl1271_cmd_configure
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	testl	%ebx, %ebx
	jns	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_wl1271_warning
	movl	%ebx, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_TESTMODE,4,2             ## @DEBUG_TESTMODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"testmode cmd configure"

	.comm	_WL1271_TM_ATTR_DATA,8,3        ## @WL1271_TM_ATTR_DATA
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WL1271_TM_ATTR_IE_ID,8,3       ## @WL1271_TM_ATTR_IE_ID
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
L_.str.1:                               ## @.str.1
	.asciz	"testmode cmd configure failed: %d"

	.no_dead_strip	_wl1271_tm_cmd_configure
.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_configure
_wl1271_tm_cmd_configure:               ; @wl1271_tm_cmd_configure
	.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	x20, x1
	mov	x19, 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	x23, _WL1271_TM_ATTR_DATA@GOTPAGE
Lloh6:
	ldr	x23, [x23, _WL1271_TM_ATTR_DATA@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x8, [x20, x8, lsl #3]
	cbz	x8, LBB0_4
; %bb.1:
Lloh7:
	adrp	x8, _WL1271_TM_ATTR_IE_ID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WL1271_TM_ATTR_IE_ID@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	x0, [x20, x8, lsl #3]
	cbz	x0, LBB0_4
; %bb.2:
	bl	_nla_get_u8
	mov	x21, x0
	ldr	x8, [x23]
	ldr	x0, [x20, x8, lsl #3]
	bl	_nla_data
	mov	x22, x0
	ldr	x8, [x23]
	ldr	x0, [x20, x8, lsl #3]
	bl	_nla_len
	cmp	w0, #5
	b.lo	LBB0_7
; %bb.3:
Lloh10:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x20
	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
LBB0_7:
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x20
	bl	_wl1271_cmd_configure
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_unlock
	tbnz	w20, #31, LBB0_9
; %bb.8:
	mov	w20, #0
	b	LBB0_6
LBB0_9:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_wl1271_warning
	b	LBB0_6
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_TESTMODE,4,2             ; @DEBUG_TESTMODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"testmode cmd configure"

	.comm	_WL1271_TM_ATTR_DATA,8,3        ; @WL1271_TM_ATTR_DATA
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WL1271_TM_ATTR_IE_ID,8,3       ; @WL1271_TM_ATTR_IE_ID
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
l_.str.1:                               ; @.str.1
	.asciz	"testmode cmd configure failed: %d"

	.no_dead_strip	_wl1271_tm_cmd_configure
.subsections_via_symbols
