	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_sake_parse_attributes      ## -- Begin function eap_sake_parse_attributes
	.p2align	4, 0x90
_eap_sake_parse_attributes:             ## @eap_sake_parse_attributes
	.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
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_os_memset
	testq	%r12, %r12
	jle	LBB0_12
## %bb.1:
	leaq	(%rbx,%r12,4), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rax
	subq	%rbx, %rax
	cmpq	$7, %rax
	jle	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rbx), %edx
	cmpl	$1, %edx
	jle	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rbx,%rdx,4), %rax
	cmpq	%r12, %rax
	ja	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %esi
	addl	$-2, %edx
	leaq	8(%rbx), %rcx
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_eap_sake_parse_add_attr
	testq	%rax, %rax
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	4(%rbx), %rax
	leaq	(%rbx,%rax,4), %rbx
	cmpq	%r12, %rbx
	jb	LBB0_2
	jmp	LBB0_12
LBB0_7:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_10
LBB0_8:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_11
LBB0_9:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_10:
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_11:
	movl	$-1, %r14d
LBB0_12:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	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	"EAP-SAKE: Too short attribute"

L_.str.1:                               ## @.str.1
	.asciz	"EAP-SAKE: Invalid attribute length (%d)"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-SAKE: Attribute underflow"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_sake_parse_attributes      ; -- Begin function eap_sake_parse_attributes
	.p2align	2
_eap_sake_parse_attributes:             ; @eap_sake_parse_attributes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x2
	mov	w1, #0
	mov	w2, #4
	bl	_os_memset
	cmp	x21, #1
	b.lt	LBB0_7
; %bb.1:
	add	x21, x20, x21, lsl #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	x8, x21, x20
	cmp	x8, #7
	b.le	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.le	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x20, x8, lsl #2
	cmp	x9, x21
	b.hi	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x3, x20
	ldr	w1, [x3], #8
	sub	w2, w8, #2
	mov	x0, x19
	bl	_eap_sake_parse_add_attr
	cbnz	x0, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrsw	x8, [x20, #4]
	add	x20, x20, x8, lsl #2
	cmp	x20, x21
	b.lo	LBB0_2
LBB0_7:
	mov	w0, #0
	b	LBB0_13
LBB0_8:
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh5:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh10:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	bl	_wpa_printf
LBB0_12:
	mov	w0, #-1
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-SAKE: Too short attribute"

l_.str.1:                               ; @.str.1
	.asciz	"EAP-SAKE: Invalid attribute length (%d)"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-SAKE: Attribute underflow"

.subsections_via_symbols
