	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_uap_bss_wpa
_mwifiex_uap_bss_wpa:                   ## @mwifiex_uap_bss_wpa
	.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	%rsi, %r13
	movq	%rdi, %r15
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rdx), %r12d
	movq	(%rdi), %rbx
	movq	_TLV_TYPE_UAP_AKMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 24(%rbx)
	movl	$28, %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%rbx)
	movl	(%r13), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%rbx)
	movl	4(%r13), %edi
	callq	_cpu_to_le16
	movq	%rax, (%rbx)
	movq	_VALID_CIPHER_BITMAP@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, 8(%r13)
	je	LBB0_1
## %bb.2:
	movq	_TLV_TYPE_PWK_CIPHER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 152(%rbx)
	movl	$28, %edi
	callq	_cpu_to_le16
	movq	%rax, 144(%rbx)
	movq	_PROTOCOL_WPA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 136(%rbx)
	movl	8(%r13), %eax
	movl	%eax, 128(%rbx)
	addl	$64, %r12d
	addq	$256, %rbx                      ## imm = 0x100
	movl	(%r14), %eax
	testl	%eax, 12(%r13)
	je	LBB0_5
LBB0_4:
	movq	_TLV_TYPE_PWK_CIPHER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 24(%rbx)
	movl	$28, %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%rbx)
	movq	_PROTOCOL_WPA2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%rbx)
	movl	12(%r13), %eax
	movl	%eax, (%rbx)
	addl	$32, %r12d
	subq	$-128, %rbx
	movl	(%r14), %eax
LBB0_5:
	testl	%eax, 16(%r13)
	je	LBB0_7
## %bb.6:
	movq	_TLV_TYPE_GWK_CIPHER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%rbx)
	movl	$20, %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%rbx)
	movl	16(%r13), %eax
	movl	%eax, (%rbx)
	addl	$24, %r12d
	addq	$96, %rbx
LBB0_7:
	cmpl	$0, 20(%r13)
	je	LBB0_9
## %bb.8:
	movq	_TLV_TYPE_UAP_WPA_PASSPHRASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%rbx)
	movl	20(%r13), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%rbx)
	movl	(%rbx), %edi
	movl	20(%r13), %edx
	movl	24(%r13), %esi
	callq	_memcpy
	movslq	20(%r13), %rax
	leaq	4(%rax), %rcx
	addl	%ecx, %r12d
	leaq	(%rbx,%rax,4), %rbx
	addq	$16, %rbx
LBB0_9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, (%rax)
	movq	%rbx, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	addl	$32, %r12d
	subq	$-128, %rbx
	testl	%eax, 12(%r13)
	jne	LBB0_4
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_TLV_TYPE_UAP_AKMP,4,2          ## @TLV_TYPE_UAP_AKMP
	.comm	_VALID_CIPHER_BITMAP,4,2        ## @VALID_CIPHER_BITMAP
	.comm	_TLV_TYPE_PWK_CIPHER,4,2        ## @TLV_TYPE_PWK_CIPHER
	.comm	_PROTOCOL_WPA,4,2               ## @PROTOCOL_WPA
	.comm	_PROTOCOL_WPA2,4,2              ## @PROTOCOL_WPA2
	.comm	_TLV_TYPE_GWK_CIPHER,4,2        ## @TLV_TYPE_GWK_CIPHER
	.comm	_TLV_TYPE_UAP_WPA_PASSPHRASE,4,2 ## @TLV_TYPE_UAP_WPA_PASSPHRASE
	.no_dead_strip	_mwifiex_uap_bss_wpa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_uap_bss_wpa
_mwifiex_uap_bss_wpa:                   ; @mwifiex_uap_bss_wpa
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w22, [x2]
	ldr	x23, [x0]
Lloh0:
	adrp	x8, _TLV_TYPE_UAP_AKMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TLV_TYPE_UAP_AKMP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x23, #24]
	mov	w0, #28
	bl	_cpu_to_le16
	str	x0, [x23, #16]
	ldr	w0, [x21]
	bl	_cpu_to_le16
	str	x0, [x23, #8]
	ldr	w0, [x21, #4]
	bl	_cpu_to_le16
	str	x0, [x23]
	ldr	w9, [x21, #8]
Lloh3:
	adrp	x24, _VALID_CIPHER_BITMAP@GOTPAGE
Lloh4:
	ldr	x24, [x24, _VALID_CIPHER_BITMAP@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh5:
	adrp	x25, _TLV_TYPE_PWK_CIPHER@GOTPAGE
Lloh6:
	ldr	x25, [x25, _TLV_TYPE_PWK_CIPHER@GOTPAGEOFF]
	tst	w8, w9
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x25]
	bl	_cpu_to_le16
	str	x0, [x23, #152]
	mov	w0, #28
	bl	_cpu_to_le16
	str	x0, [x23, #144]
Lloh7:
	adrp	x8, _PROTOCOL_WPA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PROTOCOL_WPA@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x23, #136]
	ldr	w8, [x21, #8]
	str	w8, [x23, #128]
	add	w22, w22, #64
	add	x23, x23, #256
	ldr	w8, [x24]
	b	LBB0_3
LBB0_2:
	add	w22, w22, #32
	add	x23, x23, #128
LBB0_3:
	ldr	w9, [x21, #12]
	tst	w8, w9
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x25]
	bl	_cpu_to_le16
	str	x0, [x23, #24]
	mov	w0, #28
	bl	_cpu_to_le16
	str	x0, [x23, #16]
Lloh10:
	adrp	x8, _PROTOCOL_WPA2@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PROTOCOL_WPA2@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x23, #8]
	ldr	w8, [x21, #12]
	str	w8, [x23], #128
	add	w22, w22, #32
	ldr	w8, [x24]
LBB0_5:
	ldr	w9, [x21, #16]
	tst	w8, w9
	b.eq	LBB0_7
; %bb.6:
Lloh13:
	adrp	x8, _TLV_TYPE_GWK_CIPHER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TLV_TYPE_GWK_CIPHER@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x23, #16]
	mov	w0, #20
	bl	_cpu_to_le16
	str	x0, [x23, #8]
	ldr	w8, [x21, #16]
	str	w8, [x23], #96
	add	w22, w22, #24
LBB0_7:
	ldr	w8, [x21, #20]
	cbz	w8, LBB0_9
; %bb.8:
Lloh16:
	adrp	x8, _TLV_TYPE_UAP_WPA_PASSPHRASE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TLV_TYPE_UAP_WPA_PASSPHRASE@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x23, #16]
	ldr	w0, [x21, #20]
	bl	_cpu_to_le16
	str	x0, [x23, #8]
	ldr	w0, [x23]
	ldp	w2, w1, [x21, #20]
	bl	_memcpy
	ldrsw	x8, [x21, #20]
	add	x8, x8, #4
	add	w22, w22, w8
	add	x23, x23, x8, lsl #2
LBB0_9:
	str	w22, [x19]
	str	x23, [x20]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_TLV_TYPE_UAP_AKMP,4,2          ; @TLV_TYPE_UAP_AKMP
	.comm	_VALID_CIPHER_BITMAP,4,2        ; @VALID_CIPHER_BITMAP
	.comm	_TLV_TYPE_PWK_CIPHER,4,2        ; @TLV_TYPE_PWK_CIPHER
	.comm	_PROTOCOL_WPA,4,2               ; @PROTOCOL_WPA
	.comm	_PROTOCOL_WPA2,4,2              ; @PROTOCOL_WPA2
	.comm	_TLV_TYPE_GWK_CIPHER,4,2        ; @TLV_TYPE_GWK_CIPHER
	.comm	_TLV_TYPE_UAP_WPA_PASSPHRASE,4,2 ; @TLV_TYPE_UAP_WPA_PASSPHRASE
	.no_dead_strip	_mwifiex_uap_bss_wpa
.subsections_via_symbols
