	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_write_rsn_ie               ## -- Begin function wpa_write_rsn_ie
	.p2align	4, 0x90
_wpa_write_rsn_ie:                      ## @wpa_write_rsn_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_WLAN_EID_RSN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rsi)
	movq	8(%rsi), %rdi
	movq	_RSN_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WPA_PUT_LE16
	movq	_WPA_PROTO_RSN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_wpa_cipher_to_suite
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	24(%r12), %rdi
	movq	%rax, %rsi
	callq	_RSN_SELECTOR_PUT
	movq	_RSN_SELECTOR_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	leaq	(%r12,%rbx,4), %rdi
	addq	$32, %rdi
	movl	4(%r15), %esi
	callq	_rsn_cipher_put_suites
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%rbx,4), %rdi
	addq	$24, %rdi
	movq	_RSN_SELECTOR_LEN@GOTPCREL(%rip), %r14
	movslq	(%r14), %rcx
	movslq	%eax, %rdx
	imulq	%rcx, %rdx
	leaq	(%rdi,%rdx,4), %rbx
	addq	$8, %rbx
	movl	%eax, %esi
	callq	_WPA_PUT_LE16
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%rbx), %r13
	movl	8(%r15), %edx
	movq	_WPA_KEY_MGMT_IEEE8021X@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	movq	%r14, %rbx
	je	LBB0_5
## %bb.6:
	movq	_RSN_AUTH_KEY_MGMT_UNSPEC_802_1X@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_RSN_SELECTOR_PUT
	movslq	(%rbx), %rax
	leaq	(%r13,%rax,4), %r13
	movl	8(%r15), %edx
	movl	$1, %r14d
	jmp	LBB0_7
LBB0_1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_21
LBB0_3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_21
LBB0_5:
	xorl	%r14d, %r14d
LBB0_7:
	movq	_WPA_KEY_MGMT_PSK@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_9
## %bb.8:
	movq	_RSN_AUTH_KEY_MGMT_PSK_OVER_802_1X@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_RSN_SELECTOR_PUT
	movslq	(%rbx), %rax
	leaq	(%r13,%rax,4), %r13
	incl	%r14d
	movl	8(%r15), %edx
LBB0_9:
	movq	_WPA_KEY_MGMT_IEEE8021X_SUITE_B@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_11
## %bb.10:
	movq	_RSN_AUTH_KEY_MGMT_802_1X_SUITE_B@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_RSN_SELECTOR_PUT
	movslq	(%rbx), %rax
	leaq	(%r13,%rax,4), %r13
	incl	%r14d
	movl	8(%r15), %edx
LBB0_11:
	movq	_WPA_KEY_MGMT_IEEE8021X_SUITE_B_192@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_19
## %bb.12:
	movq	_RSN_AUTH_KEY_MGMT_802_1X_SUITE_B_192@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_RSN_SELECTOR_PUT
	movslq	(%rbx), %rax
	leaq	(%r13,%rax,4), %r13
	incl	%r14d
	jmp	LBB0_13
LBB0_19:
	testl	%r14d, %r14d
	je	LBB0_20
LBB0_13:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_WPA_PUT_LE16
	xorl	%eax, %eax
	cmpq	$0, 48(%r15)
	movl	$0, %ecx
	je	LBB0_15
## %bb.14:
	movq	_WPA_CAPABILITY_PREAUTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_15:
	movq	_RSN_NUM_REPLAY_COUNTERS_16@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	shll	$2, %esi
	cmpq	$0, 40(%r15)
	cmovel	%eax, %esi
	orl	%ecx, %esi
	movq	%r13, %rdi
	callq	_WPA_PUT_LE16
	leaq	8(%r13), %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.16:
	movq	_PMKID_LEN@GOTPCREL(%rip), %r14
	movslq	(%r14), %rcx
	addq	$2, %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r12,%rax,4), %rdx
	subq	%rdi, %rdx
	sarq	$2, %rdx
	movl	$-1, %eax
	cmpq	%rcx, %rdx
	jl	LBB0_22
## %bb.17:
	movl	$1, %esi
	callq	_WPA_PUT_LE16
	leaq	16(%r13), %rdi
	movl	(%r14), %edx
	movq	%rbx, %rsi
	callq	_os_memcpy
	movslq	(%r14), %rax
	leaq	16(,%rax,4), %rdi
	addq	%r13, %rdi
LBB0_18:
	subq	%r12, %rdi
	shrq	$2, %rdi
	leal	-2(%rdi), %eax
	movl	%eax, (%r12)
	movl	%edi, %eax
	jmp	LBB0_22
LBB0_20:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_21:
	callq	_wpa_printf
	movl	$-1, %eax
LBB0_22:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_EID_RSN,4,2               ## @WLAN_EID_RSN
	.comm	_RSN_VERSION,4,2                ## @RSN_VERSION
	.comm	_WPA_PROTO_RSN,4,2              ## @WPA_PROTO_RSN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid group cipher (%d)."

	.comm	_RSN_SELECTOR_LEN,4,2           ## @RSN_SELECTOR_LEN
L_.str.1:                               ## @.str.1
	.asciz	"Invalid pairwise cipher (%d)."

	.comm	_WPA_KEY_MGMT_IEEE8021X,4,2     ## @WPA_KEY_MGMT_IEEE8021X
	.comm	_RSN_AUTH_KEY_MGMT_UNSPEC_802_1X,8,3 ## @RSN_AUTH_KEY_MGMT_UNSPEC_802_1X
	.comm	_WPA_KEY_MGMT_PSK,4,2           ## @WPA_KEY_MGMT_PSK
	.comm	_RSN_AUTH_KEY_MGMT_PSK_OVER_802_1X,8,3 ## @RSN_AUTH_KEY_MGMT_PSK_OVER_802_1X
	.comm	_WPA_KEY_MGMT_IEEE8021X_SUITE_B,4,2 ## @WPA_KEY_MGMT_IEEE8021X_SUITE_B
	.comm	_RSN_AUTH_KEY_MGMT_802_1X_SUITE_B,8,3 ## @RSN_AUTH_KEY_MGMT_802_1X_SUITE_B
	.comm	_WPA_KEY_MGMT_IEEE8021X_SUITE_B_192,4,2 ## @WPA_KEY_MGMT_IEEE8021X_SUITE_B_192
	.comm	_RSN_AUTH_KEY_MGMT_802_1X_SUITE_B_192,8,3 ## @RSN_AUTH_KEY_MGMT_802_1X_SUITE_B_192
L_.str.2:                               ## @.str.2
	.asciz	"Invalid key management type (%d)."

	.comm	_WPA_CAPABILITY_PREAUTH,4,2     ## @WPA_CAPABILITY_PREAUTH
	.comm	_RSN_NUM_REPLAY_COUNTERS_16,4,2 ## @RSN_NUM_REPLAY_COUNTERS_16
	.comm	_PMKID_LEN,4,2                  ## @PMKID_LEN
	.comm	_MGMT_FRAME_PROTECTION_REQUIRED,8,3 ## @MGMT_FRAME_PROTECTION_REQUIRED
	.comm	_NO_MGMT_FRAME_PROTECTION,8,3   ## @NO_MGMT_FRAME_PROTECTION
	.comm	_RSN_AUTH_KEY_MGMT_802_1X_SHA256,8,3 ## @RSN_AUTH_KEY_MGMT_802_1X_SHA256
	.comm	_RSN_AUTH_KEY_MGMT_DPP,8,3      ## @RSN_AUTH_KEY_MGMT_DPP
	.comm	_RSN_AUTH_KEY_MGMT_FILS_SHA256,8,3 ## @RSN_AUTH_KEY_MGMT_FILS_SHA256
	.comm	_RSN_AUTH_KEY_MGMT_FILS_SHA384,8,3 ## @RSN_AUTH_KEY_MGMT_FILS_SHA384
	.comm	_RSN_AUTH_KEY_MGMT_FT_802_1X,8,3 ## @RSN_AUTH_KEY_MGMT_FT_802_1X
	.comm	_RSN_AUTH_KEY_MGMT_FT_802_1X_SHA384,8,3 ## @RSN_AUTH_KEY_MGMT_FT_802_1X_SHA384
	.comm	_RSN_AUTH_KEY_MGMT_FT_FILS_SHA256,8,3 ## @RSN_AUTH_KEY_MGMT_FT_FILS_SHA256
	.comm	_RSN_AUTH_KEY_MGMT_FT_FILS_SHA384,8,3 ## @RSN_AUTH_KEY_MGMT_FT_FILS_SHA384
	.comm	_RSN_AUTH_KEY_MGMT_FT_PSK,8,3   ## @RSN_AUTH_KEY_MGMT_FT_PSK
	.comm	_RSN_AUTH_KEY_MGMT_FT_SAE,8,3   ## @RSN_AUTH_KEY_MGMT_FT_SAE
	.comm	_RSN_AUTH_KEY_MGMT_OSEN,8,3     ## @RSN_AUTH_KEY_MGMT_OSEN
	.comm	_RSN_AUTH_KEY_MGMT_OWE,8,3      ## @RSN_AUTH_KEY_MGMT_OWE
	.comm	_RSN_AUTH_KEY_MGMT_PSK_SHA256,8,3 ## @RSN_AUTH_KEY_MGMT_PSK_SHA256
	.comm	_RSN_AUTH_KEY_MGMT_SAE,8,3      ## @RSN_AUTH_KEY_MGMT_SAE
	.comm	_RSN_CIPHER_SUITE_AES_128_CMAC,8,3 ## @RSN_CIPHER_SUITE_AES_128_CMAC
	.comm	_RSN_CIPHER_SUITE_BIP_CMAC_256,8,3 ## @RSN_CIPHER_SUITE_BIP_CMAC_256
	.comm	_RSN_CIPHER_SUITE_BIP_GMAC_128,8,3 ## @RSN_CIPHER_SUITE_BIP_GMAC_128
	.comm	_RSN_CIPHER_SUITE_BIP_GMAC_256,8,3 ## @RSN_CIPHER_SUITE_BIP_GMAC_256
	.comm	_WPA_CAPABILITY_MFPC,4,2        ## @WPA_CAPABILITY_MFPC
	.comm	_WPA_CAPABILITY_MFPR,4,2        ## @WPA_CAPABILITY_MFPR
	.comm	_WPA_CAPABILITY_OCVC,4,2        ## @WPA_CAPABILITY_OCVC
	.comm	_WPA_KEY_MGMT_DPP,4,2           ## @WPA_KEY_MGMT_DPP
	.comm	_WPA_KEY_MGMT_FILS_SHA256,4,2   ## @WPA_KEY_MGMT_FILS_SHA256
	.comm	_WPA_KEY_MGMT_FILS_SHA384,4,2   ## @WPA_KEY_MGMT_FILS_SHA384
	.comm	_WPA_KEY_MGMT_FT_FILS_SHA256,4,2 ## @WPA_KEY_MGMT_FT_FILS_SHA256
	.comm	_WPA_KEY_MGMT_FT_FILS_SHA384,4,2 ## @WPA_KEY_MGMT_FT_FILS_SHA384
	.comm	_WPA_KEY_MGMT_FT_IEEE8021X,4,2  ## @WPA_KEY_MGMT_FT_IEEE8021X
	.comm	_WPA_KEY_MGMT_FT_IEEE8021X_SHA384,4,2 ## @WPA_KEY_MGMT_FT_IEEE8021X_SHA384
	.comm	_WPA_KEY_MGMT_FT_PSK,4,2        ## @WPA_KEY_MGMT_FT_PSK
	.comm	_WPA_KEY_MGMT_FT_SAE,4,2        ## @WPA_KEY_MGMT_FT_SAE
	.comm	_WPA_KEY_MGMT_IEEE8021X_SHA256,4,2 ## @WPA_KEY_MGMT_IEEE8021X_SHA256
	.comm	_WPA_KEY_MGMT_OSEN,4,2          ## @WPA_KEY_MGMT_OSEN
	.comm	_WPA_KEY_MGMT_OWE,4,2           ## @WPA_KEY_MGMT_OWE
	.comm	_WPA_KEY_MGMT_PSK_SHA256,4,2    ## @WPA_KEY_MGMT_PSK_SHA256
	.comm	_WPA_KEY_MGMT_SAE,4,2           ## @WPA_KEY_MGMT_SAE
	.comm	_rsn_testing,8,3                ## @rsn_testing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_write_rsn_ie               ; -- Begin function wpa_write_rsn_ie
	.p2align	2
_wpa_write_rsn_ie:                      ; @wpa_write_rsn_ie
	.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	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _WLAN_EID_RSN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_EID_RSN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1, #16]
	ldr	x0, [x1, #8]
Lloh3:
	adrp	x8, _RSN_VERSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RSN_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_WPA_PUT_LE16
Lloh6:
	adrp	x8, _WPA_PROTO_RSN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WPA_PROTO_RSN@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	_wpa_cipher_to_suite
	cbz	x0, LBB0_4
; %bb.1:
	mov	x1, x0
	add	x23, x19, #24
	mov	x0, x23
	bl	_RSN_SELECTOR_PUT
Lloh9:
	adrp	x26, _RSN_SELECTOR_LEN@GOTPAGE
Lloh10:
	ldr	x26, [x26, _RSN_SELECTOR_LEN@GOTPAGEOFF]
	ldrsw	x8, [x26]
	add	x23, x23, x8, lsl #2
	add	x24, x23, #8
	ldr	w1, [x22, #4]
	mov	x0, x24
	bl	_rsn_cipher_put_suites
	cbz	w0, LBB0_5
; %bb.2:
	mov	x1, x0
	ldr	w8, [x26]
	mul	w8, w8, w0
	add	x24, x24, w8, sxtw #2
	mov	x0, x23
	bl	_WPA_PUT_LE16
	add	x23, x24, #8
	ldr	w2, [x22, #8]
Lloh11:
	adrp	x8, _WPA_KEY_MGMT_IEEE8021X@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WPA_KEY_MGMT_IEEE8021X@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_6
; %bb.3:
Lloh14:
	adrp	x8, _RSN_AUTH_KEY_MGMT_UNSPEC_802_1X@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RSN_AUTH_KEY_MGMT_UNSPEC_802_1X@GOTPAGEOFF]
Lloh16:
	ldr	x1, [x8]
	mov	x0, x23
	bl	_RSN_SELECTOR_PUT
	ldrsw	x8, [x26]
	add	x23, x23, x8, lsl #2
	ldr	w2, [x22, #8]
	mov	w25, #1
	b	LBB0_7
LBB0_4:
Lloh17:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	w2, [x22]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_19
LBB0_5:
Lloh22:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldr	w2, [x22, #4]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_19
LBB0_6:
	mov	w25, #0
LBB0_7:
Lloh27:
	adrp	x8, _WPA_KEY_MGMT_PSK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _WPA_KEY_MGMT_PSK@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_9
; %bb.8:
Lloh30:
	adrp	x8, _RSN_AUTH_KEY_MGMT_PSK_OVER_802_1X@GOTPAGE
Lloh31:
	ldr	x8, [x8, _RSN_AUTH_KEY_MGMT_PSK_OVER_802_1X@GOTPAGEOFF]
Lloh32:
	ldr	x1, [x8]
	mov	x0, x23
	bl	_RSN_SELECTOR_PUT
	ldrsw	x8, [x26]
	add	x23, x23, x8, lsl #2
	add	w25, w25, #1
	ldr	w2, [x22, #8]
LBB0_9:
Lloh33:
	adrp	x8, _WPA_KEY_MGMT_IEEE8021X_SUITE_B@GOTPAGE
Lloh34:
	ldr	x8, [x8, _WPA_KEY_MGMT_IEEE8021X_SUITE_B@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_11
; %bb.10:
Lloh36:
	adrp	x8, _RSN_AUTH_KEY_MGMT_802_1X_SUITE_B@GOTPAGE
Lloh37:
	ldr	x8, [x8, _RSN_AUTH_KEY_MGMT_802_1X_SUITE_B@GOTPAGEOFF]
Lloh38:
	ldr	x1, [x8]
	mov	x0, x23
	bl	_RSN_SELECTOR_PUT
	ldrsw	x8, [x26]
	add	x23, x23, x8, lsl #2
	add	w25, w25, #1
	ldr	w2, [x22, #8]
LBB0_11:
Lloh39:
	adrp	x8, _WPA_KEY_MGMT_IEEE8021X_SUITE_B_192@GOTPAGE
Lloh40:
	ldr	x8, [x8, _WPA_KEY_MGMT_IEEE8021X_SUITE_B_192@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_13
; %bb.12:
Lloh42:
	adrp	x8, _RSN_AUTH_KEY_MGMT_802_1X_SUITE_B_192@GOTPAGE
Lloh43:
	ldr	x8, [x8, _RSN_AUTH_KEY_MGMT_802_1X_SUITE_B_192@GOTPAGEOFF]
Lloh44:
	ldr	x1, [x8]
	mov	x0, x23
	bl	_RSN_SELECTOR_PUT
	ldrsw	x8, [x26]
	add	x23, x23, x8, lsl #2
	add	w25, w25, #1
	b	LBB0_14
LBB0_13:
	cbz	w25, LBB0_18
LBB0_14:
	mov	x0, x24
	mov	x1, x25
	bl	_WPA_PUT_LE16
Lloh45:
	adrp	x8, _WPA_CAPABILITY_PREAUTH@GOTPAGE
Lloh46:
	ldr	x8, [x8, _WPA_CAPABILITY_PREAUTH@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	ldp	x10, x9, [x22, #40]
	cmp	x9, #0
Lloh48:
	adrp	x9, _RSN_NUM_REPLAY_COUNTERS_16@GOTPAGE
Lloh49:
	ldr	x9, [x9, _RSN_NUM_REPLAY_COUNTERS_16@GOTPAGEOFF]
	csel	w8, wzr, w8, eq
Lloh50:
	ldr	w9, [x9]
	lsl	w9, w9, #2
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w1, w9, w8
	mov	x0, x23
	bl	_WPA_PUT_LE16
	add	x0, x23, #8
	cbz	x20, LBB0_17
; %bb.15:
Lloh51:
	adrp	x22, _PMKID_LEN@GOTPAGE
Lloh52:
	ldr	x22, [x22, _PMKID_LEN@GOTPAGEOFF]
	ldrsw	x8, [x22]
	add	x8, x8, #2
	add	x9, x19, x21, lsl #2
	sub	x9, x9, x0
	cmp	x8, x9, asr #2
	b.gt	LBB0_20
; %bb.16:
	mov	w1, #1
	bl	_WPA_PUT_LE16
	add	x21, x23, #16
	ldr	w2, [x22]
	mov	x0, x21
	mov	x1, x20
	bl	_os_memcpy
	ldrsw	x8, [x22]
	add	x0, x21, x8, lsl #2
LBB0_17:
	sub	x8, x0, x19
	lsr	x0, x8, #2
	sub	w8, w0, #2
	str	w8, [x19]
	b	LBB0_21
LBB0_18:
Lloh53:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh54:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
Lloh56:
	adrp	x1, l_.str.2@PAGE
Lloh57:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_19:
	bl	_wpa_printf
LBB0_20:
	mov	w0, #-1
LBB0_21:
                                        ; kill: def $w0 killed $w0 killed $x0
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_EID_RSN,4,2               ; @WLAN_EID_RSN
	.comm	_RSN_VERSION,4,2                ; @RSN_VERSION
	.comm	_WPA_PROTO_RSN,4,2              ; @WPA_PROTO_RSN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid group cipher (%d)."

	.comm	_RSN_SELECTOR_LEN,4,2           ; @RSN_SELECTOR_LEN
l_.str.1:                               ; @.str.1
	.asciz	"Invalid pairwise cipher (%d)."

	.comm	_WPA_KEY_MGMT_IEEE8021X,4,2     ; @WPA_KEY_MGMT_IEEE8021X
	.comm	_RSN_AUTH_KEY_MGMT_UNSPEC_802_1X,8,3 ; @RSN_AUTH_KEY_MGMT_UNSPEC_802_1X
	.comm	_WPA_KEY_MGMT_PSK,4,2           ; @WPA_KEY_MGMT_PSK
	.comm	_RSN_AUTH_KEY_MGMT_PSK_OVER_802_1X,8,3 ; @RSN_AUTH_KEY_MGMT_PSK_OVER_802_1X
	.comm	_WPA_KEY_MGMT_IEEE8021X_SUITE_B,4,2 ; @WPA_KEY_MGMT_IEEE8021X_SUITE_B
	.comm	_RSN_AUTH_KEY_MGMT_802_1X_SUITE_B,8,3 ; @RSN_AUTH_KEY_MGMT_802_1X_SUITE_B
	.comm	_WPA_KEY_MGMT_IEEE8021X_SUITE_B_192,4,2 ; @WPA_KEY_MGMT_IEEE8021X_SUITE_B_192
	.comm	_RSN_AUTH_KEY_MGMT_802_1X_SUITE_B_192,8,3 ; @RSN_AUTH_KEY_MGMT_802_1X_SUITE_B_192
l_.str.2:                               ; @.str.2
	.asciz	"Invalid key management type (%d)."

	.comm	_WPA_CAPABILITY_PREAUTH,4,2     ; @WPA_CAPABILITY_PREAUTH
	.comm	_RSN_NUM_REPLAY_COUNTERS_16,4,2 ; @RSN_NUM_REPLAY_COUNTERS_16
	.comm	_PMKID_LEN,4,2                  ; @PMKID_LEN
	.comm	_MGMT_FRAME_PROTECTION_REQUIRED,8,3 ; @MGMT_FRAME_PROTECTION_REQUIRED
	.comm	_NO_MGMT_FRAME_PROTECTION,8,3   ; @NO_MGMT_FRAME_PROTECTION
	.comm	_RSN_AUTH_KEY_MGMT_802_1X_SHA256,8,3 ; @RSN_AUTH_KEY_MGMT_802_1X_SHA256
	.comm	_RSN_AUTH_KEY_MGMT_DPP,8,3      ; @RSN_AUTH_KEY_MGMT_DPP
	.comm	_RSN_AUTH_KEY_MGMT_FILS_SHA256,8,3 ; @RSN_AUTH_KEY_MGMT_FILS_SHA256
	.comm	_RSN_AUTH_KEY_MGMT_FILS_SHA384,8,3 ; @RSN_AUTH_KEY_MGMT_FILS_SHA384
	.comm	_RSN_AUTH_KEY_MGMT_FT_802_1X,8,3 ; @RSN_AUTH_KEY_MGMT_FT_802_1X
	.comm	_RSN_AUTH_KEY_MGMT_FT_802_1X_SHA384,8,3 ; @RSN_AUTH_KEY_MGMT_FT_802_1X_SHA384
	.comm	_RSN_AUTH_KEY_MGMT_FT_FILS_SHA256,8,3 ; @RSN_AUTH_KEY_MGMT_FT_FILS_SHA256
	.comm	_RSN_AUTH_KEY_MGMT_FT_FILS_SHA384,8,3 ; @RSN_AUTH_KEY_MGMT_FT_FILS_SHA384
	.comm	_RSN_AUTH_KEY_MGMT_FT_PSK,8,3   ; @RSN_AUTH_KEY_MGMT_FT_PSK
	.comm	_RSN_AUTH_KEY_MGMT_FT_SAE,8,3   ; @RSN_AUTH_KEY_MGMT_FT_SAE
	.comm	_RSN_AUTH_KEY_MGMT_OSEN,8,3     ; @RSN_AUTH_KEY_MGMT_OSEN
	.comm	_RSN_AUTH_KEY_MGMT_OWE,8,3      ; @RSN_AUTH_KEY_MGMT_OWE
	.comm	_RSN_AUTH_KEY_MGMT_PSK_SHA256,8,3 ; @RSN_AUTH_KEY_MGMT_PSK_SHA256
	.comm	_RSN_AUTH_KEY_MGMT_SAE,8,3      ; @RSN_AUTH_KEY_MGMT_SAE
	.comm	_RSN_CIPHER_SUITE_AES_128_CMAC,8,3 ; @RSN_CIPHER_SUITE_AES_128_CMAC
	.comm	_RSN_CIPHER_SUITE_BIP_CMAC_256,8,3 ; @RSN_CIPHER_SUITE_BIP_CMAC_256
	.comm	_RSN_CIPHER_SUITE_BIP_GMAC_128,8,3 ; @RSN_CIPHER_SUITE_BIP_GMAC_128
	.comm	_RSN_CIPHER_SUITE_BIP_GMAC_256,8,3 ; @RSN_CIPHER_SUITE_BIP_GMAC_256
	.comm	_WPA_CAPABILITY_MFPC,4,2        ; @WPA_CAPABILITY_MFPC
	.comm	_WPA_CAPABILITY_MFPR,4,2        ; @WPA_CAPABILITY_MFPR
	.comm	_WPA_CAPABILITY_OCVC,4,2        ; @WPA_CAPABILITY_OCVC
	.comm	_WPA_KEY_MGMT_DPP,4,2           ; @WPA_KEY_MGMT_DPP
	.comm	_WPA_KEY_MGMT_FILS_SHA256,4,2   ; @WPA_KEY_MGMT_FILS_SHA256
	.comm	_WPA_KEY_MGMT_FILS_SHA384,4,2   ; @WPA_KEY_MGMT_FILS_SHA384
	.comm	_WPA_KEY_MGMT_FT_FILS_SHA256,4,2 ; @WPA_KEY_MGMT_FT_FILS_SHA256
	.comm	_WPA_KEY_MGMT_FT_FILS_SHA384,4,2 ; @WPA_KEY_MGMT_FT_FILS_SHA384
	.comm	_WPA_KEY_MGMT_FT_IEEE8021X,4,2  ; @WPA_KEY_MGMT_FT_IEEE8021X
	.comm	_WPA_KEY_MGMT_FT_IEEE8021X_SHA384,4,2 ; @WPA_KEY_MGMT_FT_IEEE8021X_SHA384
	.comm	_WPA_KEY_MGMT_FT_PSK,4,2        ; @WPA_KEY_MGMT_FT_PSK
	.comm	_WPA_KEY_MGMT_FT_SAE,4,2        ; @WPA_KEY_MGMT_FT_SAE
	.comm	_WPA_KEY_MGMT_IEEE8021X_SHA256,4,2 ; @WPA_KEY_MGMT_IEEE8021X_SHA256
	.comm	_WPA_KEY_MGMT_OSEN,4,2          ; @WPA_KEY_MGMT_OSEN
	.comm	_WPA_KEY_MGMT_OWE,4,2           ; @WPA_KEY_MGMT_OWE
	.comm	_WPA_KEY_MGMT_PSK_SHA256,4,2    ; @WPA_KEY_MGMT_PSK_SHA256
	.comm	_WPA_KEY_MGMT_SAE,4,2           ; @WPA_KEY_MGMT_SAE
	.comm	_rsn_testing,8,3                ; @rsn_testing
.subsections_via_symbols
