	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlcore_cmd_send_failsafe
_wlcore_cmd_send_failsafe:              ## @wlcore_cmd_send_failsafe
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%rdi, %r14
	movq	%r9, -32(%rbp)
	callq	___wlcore_cmd_send
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movq	_CMD_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orq	%r15, %rax
	movq	%rax, -32(%rbp)
	movq	_MAX_COMMAND_STATUS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_3
## %bb.2:
	leaq	-32(%rbp), %rsi
	movl	%ebx, %edi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_5
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_wl1271_error
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movq	%r14, %rdi
	callq	_wl12xx_queue_recovery_work
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_STATUS_SUCCESS,4,2         ## @CMD_STATUS_SUCCESS
	.comm	_MAX_COMMAND_STATUS,4,2         ## @MAX_COMMAND_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"command execute failure %d"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_wlcore_cmd_send_failsafe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlcore_cmd_send_failsafe
_wlcore_cmd_send_failsafe:              ; @wlcore_cmd_send_failsafe
	.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	x21, x5
	mov	x19, x0
	str	x5, [sp, #8]
	bl	___wlcore_cmd_send
	mov	x20, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _CMD_STATUS_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_STATUS_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_BIT
	orr	x8, x0, x21
	str	x8, [sp, #8]
Lloh3:
	adrp	x8, _MAX_COMMAND_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_COMMAND_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ge	LBB0_3
; %bb.2:
	add	x1, sp, #8
	mov	x0, x20
	bl	_test_bit
	cbnz	w0, LBB0_5
LBB0_3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_wl1271_error
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x19
	bl	_wl12xx_queue_recovery_work
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_STATUS_SUCCESS,4,2         ; @CMD_STATUS_SUCCESS
	.comm	_MAX_COMMAND_STATUS,4,2         ; @MAX_COMMAND_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"command execute failure %d"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_wlcore_cmd_send_failsafe
.subsections_via_symbols
