	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_parse_kde_ies              ## -- Begin function wpa_parse_kde_ies
	.p2align	4, 0x90
_wpa_parse_kde_ies:                     ## @wpa_parse_kde_ies
	.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	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%r15d, %r15d
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_os_memset
	cmpq	$2, %rbx
	jl	LBB0_17
## %bb.1:
	leaq	(%r14,%rbx,4), %r15
	movq	%r14, %rax
	leaq	-4(%r15), %r14
	movq	_WLAN_EID_RSN@GOTPCREL(%rip), %r12
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, (%r13)
	movl	%eax, 8(%r13)
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	4(%rbx), %rax
	leaq	(%rbx,%rax,4), %rbx
	addq	$8, %rbx
	movq	%r15, %rax
	subq	%rbx, %rax
	movq	%rax, %rsi
	sarq	$2, %rsi
	cmpq	$4, %rax
	jle	LBB0_16
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edx
	cmpl	$221, %edx
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r14, %rbx
	je	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rbx), %ecx
	testl	%ecx, %ecx
	jne	LBB0_6
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rbx), %ecx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	2(%rcx), %eax
	movslq	%eax, %rdi
	cmpq	%rdi, %rsi
	jl	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	(%r12), %edx
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_WLAN_EID_VENDOR_SPECIFIC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_wpa_parse_generic
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	je	LBB0_15
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_wpa_hexdump
	jmp	LBB0_15
LBB0_16:
	xorl	%r15d, %r15d
	jmp	LBB0_17
LBB0_7:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	subq	%r14, %rbx
	shrq	$2, %rbx
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%ebx, %r8d
	callq	_wpa_printf
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_wpa_hexdump_key
	movl	$-1, %r15d
	jmp	LBB0_17
LBB0_12:
	movl	%eax, %r15d
LBB0_17:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPA: EAPOL-Key Key Data underflow (ie=%d len=%d pos=%d)"

L_.str.1:                               ## @.str.1
	.asciz	"WPA: Key Data"

	.comm	_WLAN_EID_RSN,4,2               ## @WLAN_EID_RSN
	.comm	_WLAN_EID_VENDOR_SPECIFIC,4,2   ## @WLAN_EID_VENDOR_SPECIFIC
L_.str.2:                               ## @.str.2
	.asciz	"WPA: Unrecognized EAPOL-Key Key Data IE"

	.comm	_WLAN_EID_FAST_BSS_TRANSITION,4,2 ## @WLAN_EID_FAST_BSS_TRANSITION
	.comm	_WLAN_EID_MOBILITY_DOMAIN,4,2   ## @WLAN_EID_MOBILITY_DOMAIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_parse_kde_ies              ; -- Begin function wpa_parse_kde_ies
	.p2align	2
_wpa_parse_kde_ies:                     ; @wpa_parse_kde_ies
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x2
	mov	w1, #0
	mov	w2, #48
	bl	_os_memset
	mov	w0, #0
	cmp	x19, #2
	b.lt	LBB0_16
; %bb.1:
	add	x22, x20, x19, lsl #2
	sub	x26, x22, #4
Lloh0:
	adrp	x27, _WLAN_EID_RSN@GOTPAGE
Lloh1:
	ldr	x27, [x27, _WLAN_EID_RSN@GOTPAGEOFF]
Lloh2:
	adrp	x28, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGE
Lloh3:
	ldr	x28, [x28, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGEOFF]
Lloh4:
	adrp	x25, _MSG_DEBUG@GOTPAGE
Lloh5:
	ldr	x25, [x25, _MSG_DEBUG@GOTPAGEOFF]
Lloh6:
	adrp	x24, l_.str.2@PAGE
Lloh7:
	add	x24, x24, l_.str.2@PAGEOFF
	mov	x9, x19
	mov	x23, x20
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x23, [x21]
	str	w8, [x21, #8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x8, [x23, #4]
	add	x8, x23, x8, lsl #2
	add	x23, x8, #8
	sub	x8, x22, x23
	asr	x9, x8, #2
	cmp	x8, #4
	b.le	LBB0_14
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x23]
	cmp	w2, #221
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x23, x26
	b.eq	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w3, [x23, #4]
	cbnz	w3, LBB0_8
	b	LBB0_14
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w3, [x23, #4]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w3, #2
	cmp	x9, w8, sxtw
	b.lt	LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x27]
	cmp	w2, w9
	b.eq	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x28]
	cmp	w2, w9
	b.ne	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_wpa_parse_generic
	tbnz	w0, #31, LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	cbz	w0, LBB0_3
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x25]
	mov	x1, x24
	mov	x2, x23
	mov	x3, x8
	bl	_wpa_hexdump
	b	LBB0_3
LBB0_14:
	mov	w0, #0
	b	LBB0_16
LBB0_15:
	ldr	w0, [x25]
	sub	x8, x23, x20
	lsr	x4, x8, #2
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_wpa_printf
	ldr	w0, [x25]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_wpa_hexdump_key
	mov	w0, #-1
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPA: EAPOL-Key Key Data underflow (ie=%d len=%d pos=%d)"

l_.str.1:                               ; @.str.1
	.asciz	"WPA: Key Data"

	.comm	_WLAN_EID_RSN,4,2               ; @WLAN_EID_RSN
	.comm	_WLAN_EID_VENDOR_SPECIFIC,4,2   ; @WLAN_EID_VENDOR_SPECIFIC
l_.str.2:                               ; @.str.2
	.asciz	"WPA: Unrecognized EAPOL-Key Key Data IE"

	.comm	_WLAN_EID_FAST_BSS_TRANSITION,4,2 ; @WLAN_EID_FAST_BSS_TRANSITION
	.comm	_WLAN_EID_MOBILITY_DOMAIN,4,2   ; @WLAN_EID_MOBILITY_DOMAIN
.subsections_via_symbols
