	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_parse_generic
_wpa_parse_generic:                     ## @wpa_parse_generic
	.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
	movl	4(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_16
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	cmpl	$6, %eax
	jl	LBB0_6
## %bb.2:
	leaq	8(%r15), %rdi
	callq	_RSN_SELECTOR_GET
	movq	_WPA_OUI_TYPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	_WPA_SELECTOR_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpl	$1, 8(%r15,%rax,4)
	jne	LBB0_5
## %bb.4:
	cmpl	$0, 12(%r15,%rax,4)
	je	LBB0_21
LBB0_5:
	movl	4(%r15), %eax
LBB0_6:
	cmpl	$4, %eax
	jl	LBB0_9
## %bb.7:
	leaq	8(%r15), %rdi
	callq	_WPA_GET_BE32
	movq	_OSEN_IE_VENDOR_TYPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	%r15, 16(%r14)
	movl	4(%r15), %eax
	addl	$2, %eax
	movl	%eax, 24(%r14)
	jmp	LBB0_22
LBB0_9:
	movq	_RSN_SELECTOR_LEN@GOTPCREL(%rip), %r13
	movslq	(%r13), %rcx
	movq	%rcx, %rax
	incq	%rax
	subq	%r15, %rbx
	sarq	$2, %rbx
	cmpq	%rax, %rbx
	jle	LBB0_13
## %bb.10:
	movq	_PMKID_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ecx, %eax
	cmpl	%eax, 4(%r15)
	jl	LBB0_13
## %bb.11:
	leaq	8(%r15), %rbx
	movq	%rbx, %rdi
	callq	_RSN_SELECTOR_GET
	movq	_RSN_KEY_DATA_PMKID@GOTPCREL(%rip), %rdx
	movl	(%r13), %ecx
	cmpq	(%rdx), %rax
	jne	LBB0_13
## %bb.12:
	movslq	%ecx, %rax
	leaq	(%rbx,%rax,4), %rax
	movq	%rax, 32(%r14)
	jmp	LBB0_22
LBB0_13:
	movl	4(%r15), %eax
	addl	$2, %ecx
	cmpl	%ecx, %eax
	jle	LBB0_18
## %bb.14:
	leaq	8(%r15), %rbx
	movq	%rbx, %rdi
	callq	_RSN_SELECTOR_GET
	movq	_RSN_KEY_DATA_GROUPKEY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.15:
	movslq	(%r13), %rax
	leaq	(%rbx,%rax,4), %rcx
	movq	%rcx, 40(%r14)
	movl	4(%r15), %ecx
	subl	%eax, %ecx
	movl	%ecx, 48(%r14)
	jmp	LBB0_22
LBB0_16:
	movl	$1, %ebx
	jmp	LBB0_23
LBB0_17:
	movl	4(%r15), %eax
	movl	(%r13), %ecx
	addl	$2, %ecx
LBB0_18:
	xorl	%ebx, %ebx
	cmpl	%ecx, %eax
	jle	LBB0_23
## %bb.19:
	leaq	8(%r15), %r12
	movq	%r12, %rdi
	callq	_RSN_SELECTOR_GET
	movq	_RSN_KEY_DATA_MAC_ADDR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.20:
	movslq	(%r13), %rax
	leaq	(%r12,%rax,4), %rcx
	movq	%rcx, 56(%r14)
	movl	4(%r15), %ecx
	subl	%eax, %ecx
	movl	%ecx, 64(%r14)
	jmp	LBB0_23
LBB0_21:
	movq	%r15, (%r14)
	movl	4(%r15), %eax
	addl	$2, %eax
	movl	%eax, 8(%r14)
LBB0_22:
	xorl	%ebx, %ebx
LBB0_23:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_OUI_TYPE,8,3               ## @WPA_OUI_TYPE
	.comm	_WPA_SELECTOR_LEN,4,2           ## @WPA_SELECTOR_LEN
	.comm	_OSEN_IE_VENDOR_TYPE,8,3        ## @OSEN_IE_VENDOR_TYPE
	.comm	_RSN_SELECTOR_LEN,4,2           ## @RSN_SELECTOR_LEN
	.comm	_PMKID_LEN,4,2                  ## @PMKID_LEN
	.comm	_RSN_KEY_DATA_PMKID,8,3         ## @RSN_KEY_DATA_PMKID
	.comm	_RSN_KEY_DATA_GROUPKEY,8,3      ## @RSN_KEY_DATA_GROUPKEY
	.comm	_RSN_KEY_DATA_MAC_ADDR,8,3      ## @RSN_KEY_DATA_MAC_ADDR
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.comm	_RSN_KEY_DATA_IGTK,8,3          ## @RSN_KEY_DATA_IGTK
	.comm	_RSN_KEY_DATA_OCI,8,3           ## @RSN_KEY_DATA_OCI
	.comm	_WFA_KEY_DATA_IP_ADDR_ALLOC,8,3 ## @WFA_KEY_DATA_IP_ADDR_ALLOC
	.comm	_WFA_KEY_DATA_IP_ADDR_REQ,8,3   ## @WFA_KEY_DATA_IP_ADDR_REQ
	.no_dead_strip	_wpa_parse_generic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_parse_generic
_wpa_parse_generic:                     ; @wpa_parse_generic
	.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
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_16
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	cmp	w8, #6
	b.lt	LBB0_6
; %bb.2:
	add	x0, x20, #8
	bl	_RSN_SELECTOR_GET
Lloh0:
	adrp	x8, _WPA_OUI_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WPA_OUI_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _WPA_SELECTOR_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WPA_SELECTOR_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w9, w8, #2
	ldr	w9, [x20, w9, sxtw #2]
	cmp	w9, #1
	b.ne	LBB0_5
; %bb.4:
	add	w8, w8, #3
	ldr	w8, [x20, w8, sxtw #2]
	cbz	w8, LBB0_23
LBB0_5:
	ldr	w8, [x20, #4]
LBB0_6:
	cmp	w8, #4
	b.lt	LBB0_9
; %bb.7:
	add	x0, x20, #8
	bl	_WPA_GET_BE32
Lloh6:
	adrp	x8, _OSEN_IE_VENDOR_TYPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OSEN_IE_VENDOR_TYPE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.8:
	mov	w0, #0
	str	x20, [x19, #16]
	ldr	w8, [x20, #4]
	add	w8, w8, #2
	str	w8, [x19, #24]
	b	LBB0_22
LBB0_9:
Lloh9:
	adrp	x22, _RSN_SELECTOR_LEN@GOTPAGE
Lloh10:
	ldr	x22, [x22, _RSN_SELECTOR_LEN@GOTPAGEOFF]
	ldrsw	x8, [x22]
	add	x9, x8, #1
	sub	x10, x21, x20
	cmp	x9, x10, asr #2
	b.ge	LBB0_13
; %bb.10:
	ldr	w9, [x20, #4]
Lloh11:
	adrp	x10, _PMKID_LEN@GOTPAGE
Lloh12:
	ldr	x10, [x10, _PMKID_LEN@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	add	w10, w10, w8
	cmp	w9, w10
	b.lt	LBB0_13
; %bb.11:
	add	x21, x20, #8
	mov	x0, x21
	bl	_RSN_SELECTOR_GET
Lloh14:
	adrp	x8, _RSN_KEY_DATA_PMKID@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RSN_KEY_DATA_PMKID@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x8]
	ldr	w8, [x22]
	cmp	x0, x9
	b.ne	LBB0_13
; %bb.12:
	mov	w0, #0
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	sxtw	x8, w8
	add	x8, x21, x8, lsl #2
	str	x8, [x19, #32]
	b	LBB0_22
LBB0_13:
	ldr	w9, [x20, #4]
	add	w8, w8, #2
	cmp	w9, w8
	b.le	LBB0_18
; %bb.14:
	add	x21, x20, #8
	mov	x0, x21
	bl	_RSN_SELECTOR_GET
Lloh17:
	adrp	x8, _RSN_KEY_DATA_GROUPKEY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RSN_KEY_DATA_GROUPKEY@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.15:
	mov	w0, #0
	ldrsw	x8, [x22]
	add	x9, x21, x8, lsl #2
	str	x9, [x19, #40]
	ldr	w9, [x20, #4]
	sub	w8, w9, w8
	str	w8, [x19, #48]
	b	LBB0_22
LBB0_16:
	mov	w0, #1
	b	LBB0_22
LBB0_17:
	ldr	w9, [x20, #4]
	ldr	w8, [x22]
	add	w8, w8, #2
LBB0_18:
	cmp	w9, w8
	b.le	LBB0_21
; %bb.19:
	add	x21, x20, #8
	mov	x0, x21
	bl	_RSN_SELECTOR_GET
Lloh20:
	adrp	x8, _RSN_KEY_DATA_MAC_ADDR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RSN_KEY_DATA_MAC_ADDR@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_21
; %bb.20:
	mov	w0, #0
	ldrsw	x8, [x22]
	add	x9, x21, x8, lsl #2
	str	x9, [x19, #56]
	ldr	w9, [x20, #4]
	sub	w8, w9, w8
	str	w8, [x19, #64]
	b	LBB0_22
LBB0_21:
	mov	w0, #0
LBB0_22:
	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
LBB0_23:
	mov	w0, #0
	str	x20, [x19]
	ldr	w8, [x20, #4]
	add	w8, w8, #2
	str	w8, [x19, #8]
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_OUI_TYPE,8,3               ; @WPA_OUI_TYPE
	.comm	_WPA_SELECTOR_LEN,4,2           ; @WPA_SELECTOR_LEN
	.comm	_OSEN_IE_VENDOR_TYPE,8,3        ; @OSEN_IE_VENDOR_TYPE
	.comm	_RSN_SELECTOR_LEN,4,2           ; @RSN_SELECTOR_LEN
	.comm	_PMKID_LEN,4,2                  ; @PMKID_LEN
	.comm	_RSN_KEY_DATA_PMKID,8,3         ; @RSN_KEY_DATA_PMKID
	.comm	_RSN_KEY_DATA_GROUPKEY,8,3      ; @RSN_KEY_DATA_GROUPKEY
	.comm	_RSN_KEY_DATA_MAC_ADDR,8,3      ; @RSN_KEY_DATA_MAC_ADDR
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.comm	_RSN_KEY_DATA_IGTK,8,3          ; @RSN_KEY_DATA_IGTK
	.comm	_RSN_KEY_DATA_OCI,8,3           ; @RSN_KEY_DATA_OCI
	.comm	_WFA_KEY_DATA_IP_ADDR_ALLOC,8,3 ; @WFA_KEY_DATA_IP_ADDR_ALLOC
	.comm	_WFA_KEY_DATA_IP_ADDR_REQ,8,3   ; @WFA_KEY_DATA_IP_ADDR_REQ
	.no_dead_strip	_wpa_parse_generic
.subsections_via_symbols
