	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_set_wapi_ie
_mwifiex_set_wapi_ie:                   ## @mwifiex_set_wapi_ie
	.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	%rdi, %r15
	testl	%edx, %edx
	je	LBB0_5
## %bb.1:
	movl	%edx, %ebx
	cmpl	$9, %edx
	jb	LBB0_3
## %bb.2:
	movl	16(%r15), %edi
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movl	$-1, %r14d
	jmp	LBB0_6
LBB0_5:
	movq	(%r15), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	$0, 8(%r15)
	movl	16(%r15), %edi
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %rax
	movq	(%rax), %r8
	leaq	L_.str.2(%rip), %rdx
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movl	$0, 12(%r15)
	jmp	LBB0_6
LBB0_3:
	movq	(%r15), %rdi
	movl	%ebx, %edx
	callq	_memcpy
	movl	%ebx, 8(%r15)
	movl	16(%r15), %edi
	movq	_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %rax
	movq	(%rax), %r8
	leaq	L_.str.1(%rip), %rdx
	xorl	%r14d, %r14d
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_WLAN_EID_BSS_AC_ACCESS_DELAY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movl	$1, 12(%r15)
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"info: failed to copy WAPI IE, too big\n"

	.comm	_CMD,4,2                        ## @CMD
L_.str.1:                               ## @.str.1
	.asciz	"cmd: Set wapi_ie_len=%d IE=%#x\n"

	.comm	_WLAN_EID_BSS_AC_ACCESS_DELAY,8,3 ## @WLAN_EID_BSS_AC_ACCESS_DELAY
	.comm	_INFO,4,2                       ## @INFO
L_.str.2:                               ## @.str.2
	.asciz	"info: Reset wapi_ie_len=%d IE=%#x\n"

	.no_dead_strip	_mwifiex_set_wapi_ie
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_set_wapi_ie
_mwifiex_set_wapi_ie:                   ; @mwifiex_set_wapi_ie
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cbz	w2, LBB0_3
; %bb.1:
	mov	x20, x2
	cmp	w2, #9
	b.lo	LBB0_4
; %bb.2:
	ldr	w0, [x19, #16]
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_mwifiex_dbg
	mov	w0, #-1
	b	LBB0_7
LBB0_3:
	ldr	x0, [x19]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	str	wzr, [x19, #8]
	ldr	w0, [x19, #16]
Lloh5:
	adrp	x8, _INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	stp	xzr, x8, [sp]
Lloh8:
	adrp	x2, l_.str.2@PAGE
Lloh9:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_mwifiex_dbg
	mov	w0, #0
	str	wzr, [x19, #12]
	b	LBB0_7
LBB0_4:
	ldr	x0, [x19]
	mov	x2, x20
	bl	_memcpy
	str	w20, [x19, #8]
	ldr	w0, [x19, #16]
Lloh10:
	adrp	x8, _CMD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CMD@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	stp	x20, x8, [sp]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_mwifiex_dbg
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _WLAN_EID_BSS_AC_ACCESS_DELAY@GOTPAGE
Lloh16:
	ldr	x9, [x9, _WLAN_EID_BSS_AC_ACCESS_DELAY@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19, #12]
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"info: failed to copy WAPI IE, too big\n"

	.comm	_CMD,4,2                        ; @CMD
l_.str.1:                               ; @.str.1
	.asciz	"cmd: Set wapi_ie_len=%d IE=%#x\n"

	.comm	_WLAN_EID_BSS_AC_ACCESS_DELAY,8,3 ; @WLAN_EID_BSS_AC_ACCESS_DELAY
	.comm	_INFO,4,2                       ; @INFO
l_.str.2:                               ; @.str.2
	.asciz	"info: Reset wapi_ie_len=%d IE=%#x\n"

	.no_dead_strip	_mwifiex_set_wapi_ie
.subsections_via_symbols
