	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl12xx_cmd_remove_peer         ## -- Begin function wl12xx_cmd_remove_peer
	.p2align	4, 0x90
_wl12xx_cmd_remove_peer:                ## @wl12xx_cmd_remove_peer
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	$0, -36(%rbp)
	movq	_DEBUG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wl1271_debug
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r12, 24(%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	movl	(%r15), %eax
	movl	%eax, (%rbx)
	movq	_CMD_REMOVE_PEER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movl	$32, %ecx
	xorl	%r8d, %r8d
	callq	_wl1271_cmd_send
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	(%r14), %rax
	movq	_WLCORE_EVENT_PEER_REMOVE_COMPLETE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_wl12xx_queue_recovery_work
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_3:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rdi
	callq	_wl1271_error
LBB0_6:
	movl	%r12d, %r15d
LBB0_7:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_8:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_CMD,4,2                  ## @DEBUG_CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cmd remove peer %d"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CMD_REMOVE_PEER,4,2            ## @CMD_REMOVE_PEER
L_.str.1:                               ## @.str.1
	.asciz	"failed to initiate cmd remove peer"

	.comm	_WLCORE_EVENT_PEER_REMOVE_COMPLETE,4,2 ## @WLCORE_EVENT_PEER_REMOVE_COMPLETE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl12xx_cmd_remove_peer         ; -- Begin function wl12xx_cmd_remove_peer
	.p2align	2
_wl12xx_cmd_remove_peer:                ; @wl12xx_cmd_remove_peer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _DEBUG_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl1271_debug
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	stp	xzr, x22, [x0, #16]
	str	xzr, [x0, #8]
	ldr	w8, [x21]
	str	w8, [x0]
Lloh8:
	adrp	x8, _CMD_REMOVE_PEER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CMD_REMOVE_PEER@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #32
	mov	w4, #0
	bl	_wl1271_cmd_send
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _WLCORE_EVENT_PEER_REMOVE_COMPLETE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _WLCORE_EVENT_PEER_REMOVE_COMPLETE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_wl12xx_queue_recovery_work
	b	LBB0_6
LBB0_4:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_5:
	mov	x21, x0
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_wl1271_error
LBB0_6:
	mov	x0, x20
	bl	_kfree
LBB0_7:
	mov	x0, x21
	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
	add	sp, sp, #64
	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 AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_CMD,4,2                  ; @DEBUG_CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cmd remove peer %d"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CMD_REMOVE_PEER,4,2            ; @CMD_REMOVE_PEER
l_.str.1:                               ; @.str.1
	.asciz	"failed to initiate cmd remove peer"

	.comm	_WLCORE_EVENT_PEER_REMOVE_COMPLETE,4,2 ; @WLCORE_EVENT_PEER_REMOVE_COMPLETE
.subsections_via_symbols
