	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1251_cmd_vbm                 ## -- Begin function wl1251_cmd_vbm
	.p2align	4, 0x90
_wl1251_cmd_vbm:                        ## @wl1251_cmd_vbm
	.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	%r8, %r14
	movl	%ecx, %ebx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	_DEBUG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wl1251_debug
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r14, 32(%r15)
	movq	_PARTIAL_VBM_MAX@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	cmpl	%ebx, %edx
	jge	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_wl1251_warning
	movl	(%r14), %ebx
LBB0_4:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	24(%r15), %edi
	movl	%ebx, %edx
	callq	_memcpy
	movq	%r13, 16(%r15)
	leal	3(%rbx), %eax
	cltq
	movq	%rax, 8(%r15)
	addl	$5, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movl	%eax, (%r15)
	movq	_CMD_VBM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	movl	$40, %ecx
	callq	_wl1251_cmd_send
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	callq	_wl1251_error
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movq	%r15, %rdi
	callq	_kfree
	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_CMD,4,2                  ## @DEBUG_CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cmd vbm"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PARTIAL_VBM_MAX,4,2            ## @PARTIAL_VBM_MAX
L_.str.1:                               ## @.str.1
	.asciz	"cmd vbm len is %d B, truncating to %d"

	.comm	_CMD_VBM,4,2                    ## @CMD_VBM
L_.str.2:                               ## @.str.2
	.asciz	"VBM command failed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1251_cmd_vbm                 ; -- Begin function wl1251_cmd_vbm
	.p2align	2
_wl1251_cmd_vbm:                        ; @wl1251_cmd_vbm
	.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	x24, x4
	mov	x21, x3
	mov	x23, x2
	mov	x22, x1
	mov	x20, x0
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	_wl1251_debug
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.1:
	str	x24, [x19, #32]
Lloh8:
	adrp	x24, _PARTIAL_VBM_MAX@GOTPAGE
Lloh9:
	ldr	x24, [x24, _PARTIAL_VBM_MAX@GOTPAGEOFF]
	ldr	w2, [x24]
	cmp	w2, w21
	b.ge	LBB0_3
; %bb.2:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_wl1251_warning
	ldr	w21, [x24]
LBB0_3:
	ldr	w0, [x19, #24]
	mov	x1, x23
	mov	x2, x21
	bl	_memcpy
	add	w8, w21, #3
	sxtw	x8, w8
	stp	x8, x22, [x19, #8]
	add	w0, w21, #5
	bl	_cpu_to_le16
	str	w0, [x19]
Lloh12:
	adrp	x8, _CMD_VBM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CMD_VBM@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	mov	w3, #40
	bl	_wl1251_cmd_send
	mov	x20, x0
	tbz	w0, #31, LBB0_6
; %bb.4:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_wl1251_error
	b	LBB0_6
LBB0_5:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x19
	bl	_kfree
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_CMD,4,2                  ; @DEBUG_CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cmd vbm"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PARTIAL_VBM_MAX,4,2            ; @PARTIAL_VBM_MAX
l_.str.1:                               ; @.str.1
	.asciz	"cmd vbm len is %d B, truncating to %d"

	.comm	_CMD_VBM,4,2                    ; @CMD_VBM
l_.str.2:                               ; @.str.2
	.asciz	"VBM command failed"

.subsections_via_symbols
