	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_append_rsn_ie_wpa_wpa2
_mwifiex_append_rsn_ie_wpa_wpa2:        ## @mwifiex_append_rsn_ie_wpa_wpa2
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	movq	%rsi, %r12
	movq	(%rsi), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.2:
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_le16_to_cpu
	movzbl	%al, %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%rbx)
	movq	(%r14), %rax
	movl	8(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_le16_to_cpu
	movzbl	%al, %edi
	callq	_cpu_to_le16
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_le16_to_cpu
	movl	%eax, %ecx
	movl	$-1, %eax
	cmpl	$6, %ecx
	ja	LBB0_4
## %bb.3:
	movl	16(%rbx), %r15d
	movq	(%r14), %r14
	addq	$16, %r14
	movq	(%rbx), %rdi
	callq	_le16_to_cpu
	movl	%r15d, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_memcpy
	movq	(%rbx), %rdi
	callq	_le16_to_cpu
	addl	$16, %eax
	movslq	%eax, %rcx
	shlq	$2, %rcx
	addq	%rcx, (%r12)
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mwifiex_append_rsn_ie_wpa_wpa2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_append_rsn_ie_wpa_wpa2
_mwifiex_append_rsn_ie_wpa_wpa2:        ; @mwifiex_append_rsn_ie_wpa_wpa2
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	cbz	x1, LBB0_4
; %bb.1:
	mov	x19, x1
	ldr	x22, [x1]
	cbz	x22, LBB0_4
; %bb.2:
	mov	x20, x0
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x22, #8]
	bl	_le16_to_cpu
	and	w0, w0, #0xff
	bl	_cpu_to_le16
	str	x0, [x22, #8]
	ldr	x8, [x20]
	ldr	w0, [x8, #8]
	bl	_cpu_to_le16
	str	x0, [x22]
	bl	_le16_to_cpu
	and	w0, w0, #0xff
	bl	_cpu_to_le16
	str	x0, [x22]
	bl	_le16_to_cpu
	cmp	w0, #6
	b.hi	LBB0_5
; %bb.3:
	ldr	w21, [x22, #16]
	ldr	x8, [x20]
	add	x20, x8, #16
	ldr	x0, [x22]
	bl	_le16_to_cpu
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_memcpy
	ldr	x0, [x22]
	bl	_le16_to_cpu
	add	w0, w0, #16
	ldr	x8, [x19]
	add	x8, x8, w0, sxtw #2
	str	x8, [x19]
	b	LBB0_6
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mwifiex_append_rsn_ie_wpa_wpa2
.subsections_via_symbols
