	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_uap_prepare_cmd        ## -- Begin function mwifiex_uap_prepare_cmd
	.p2align	4, 0x90
_mwifiex_uap_prepare_cmd:               ## @mwifiex_uap_prepare_cmd
	.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
	movl	%esi, %eax
	leal	-128(%rax), %esi
	cmpl	$6, %esi
	ja	LBB0_6
## %bb.1:
	movq	%r9, %r14
	leaq	LJTI0_0(%rip), %rbx
	movslq	(%rbx,%rsi,4), %rsi
	addq	%rbx, %rsi
	jmpq	*%rsi
LBB0_7:
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r14)
	movq	_S_DS_GEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, (%r14)
	jmp	LBB0_8
LBB0_6:
	movl	(%rdi), %edi
	movq	_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movl	%eax, %ecx
	callq	_mwifiex_dbg
	movl	$-1, %eax
	jmp	LBB0_9
LBB0_2:
	movq	%r14, %rdi
	movl	%edx, %esi
	movl	%ecx, %edx
	movq	%r8, %rcx
	callq	_mwifiex_cmd_uap_sys_config
	jmp	LBB0_4
LBB0_3:
	movq	%r14, %rsi
	movq	%r8, %rdx
	callq	_mwifiex_cmd_uap_sta_deauth
	jmp	LBB0_4
LBB0_5:
	movq	%r14, %rsi
	movq	%r8, %rdx
	callq	_mwifiex_cmd_issue_chan_report_request
LBB0_4:
	movl	%eax, %ecx
	movl	$-1, %eax
	testl	%ecx, %ecx
	jne	LBB0_9
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_S_DS_GEN,4,2                   ## @S_DS_GEN
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PREP_CMD: unknown cmd %#x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_uap_prepare_cmd        ; -- Begin function mwifiex_uap_prepare_cmd
	.p2align	2
_mwifiex_uap_prepare_cmd:               ; @mwifiex_uap_prepare_cmd
	.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	x8, x1
	sub	w9, w1, #128
	cmp	w9, #6
	b.hi	LBB0_4
; %bb.1:
	mov	x19, x5
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	mov	x0, x8
	bl	_cpu_to_le16
	str	x0, [x19, #8]
Lloh2:
	adrp	x8, _S_DS_GEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _S_DS_GEN@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x19]
LBB0_3:
	mov	w0, #0
	b	LBB0_9
LBB0_4:
	ldr	w0, [x0]
Lloh5:
	adrp	x9, _ERROR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x8
	bl	_mwifiex_dbg
	mov	w0, #-1
	b	LBB0_9
LBB0_5:
	mov	x0, x19
	mov	x1, x2
	mov	x2, x3
	mov	x3, x4
	bl	_mwifiex_cmd_uap_sys_config
	cbnz	w0, LBB0_8
	b	LBB0_3
LBB0_6:
	mov	x1, x19
	mov	x2, x4
	bl	_mwifiex_cmd_uap_sta_deauth
	cbnz	w0, LBB0_8
	b	LBB0_3
LBB0_7:
	mov	x1, x19
	mov	x2, x4
	bl	_mwifiex_cmd_issue_chan_report_request
	cbz	w0, LBB0_3
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_S_DS_GEN,4,2                   ; @S_DS_GEN
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PREP_CMD: unknown cmd %#x\n"

.subsections_via_symbols
