	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpp_check_attrs                ## -- Begin function dpp_check_attrs
	.p2align	4, 0x90
_dpp_check_attrs:                       ## @dpp_check_attrs
	.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	%rdi, %rbx
	leaq	(%rdi,%rsi,4), %r13
	cmpq	$4, %rsi
	jl	LBB0_1
## %bb.2:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_WPA_GET_LE16
	movl	%eax, %r15d
	leaq	8(%rbx), %rdi
	callq	_WPA_GET_LE16
	movl	%eax, %r12d
	addq	$16, %rbx
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_wpa_printf
	movslq	%r12d, %rax
	movq	%r13, %rcx
	subq	%rbx, %rcx
	sarq	$2, %rcx
	cmpq	%rax, %rcx
	jl	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r14d, %r14d
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r14d, %r14d
	movq	_DPP_ATTR_WRAPPED_DATA@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	sete	%r14b
	leaq	(%rbx,%rax,4), %rbx
	movq	%r13, %rdx
	subq	%rbx, %rdx
	cmpq	$12, %rdx
	jg	LBB0_3
## %bb.9:
	cmpq	%rbx, %r13
	je	LBB0_10
LBB0_11:
	shrq	$2, %rdx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_12
LBB0_1:
	movq	%rsi, %rdx
	shlq	$2, %rdx
	cmpq	%rbx, %r13
	jne	LBB0_11
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_4:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_7:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_5:
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_12:
	movl	$-1, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DPP: Attribute ID %04x len %u"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"DPP: Truncated message - not enough room for the attribute - dropped"

L_.str.2:                               ## @.str.2
	.asciz	"DPP: An unexpected attribute included after the Wrapped Data attribute"

	.comm	_DPP_ATTR_WRAPPED_DATA,4,2      ## @DPP_ATTR_WRAPPED_DATA
L_.str.3:                               ## @.str.3
	.asciz	"DPP: Unexpected octets (%d) after the last attribute"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpp_check_attrs                ; -- Begin function dpp_check_attrs
	.p2align	2
_dpp_check_attrs:                       ; @dpp_check_attrs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x0
	lsl	x8, x1, #2
	add	x23, x0, x8
	cmp	x1, #4
	b.lt	LBB0_5
; %bb.1:
	mov	w26, #0
Lloh0:
	adrp	x24, _MSG_MSGDUMP@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh2:
	adrp	x25, _DPP_ATTR_WRAPPED_DATA@GOTPAGE
Lloh3:
	ldr	x25, [x25, _DPP_ATTR_WRAPPED_DATA@GOTPAGEOFF]
Lloh4:
	adrp	x19, l_.str@PAGE
Lloh5:
	add	x19, x19, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_WPA_GET_LE16
	mov	x21, x0
	add	x0, x20, #8
	bl	_WPA_GET_LE16
	mov	x22, x0
	add	x20, x20, #16
	ldr	w0, [x24]
	stp	x21, x22, [sp]
	mov	x1, x19
	bl	_wpa_printf
	sxtw	x8, w22
	sub	x9, x23, x20
	cmp	x8, x9, asr #2
	b.gt	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbnz	w26, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x25]
	cmp	w21, w9
	cset	w26, eq
	add	x20, x20, x8, lsl #2
	sub	x8, x23, x20
	cmp	x8, #12
	b.gt	LBB0_2
LBB0_5:
	cmp	x23, x20
	b.eq	LBB0_7
; %bb.6:
	lsr	x8, x8, #2
Lloh6:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_7:
	mov	w0, #0
	b	LBB0_11
LBB0_8:
Lloh11:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh16:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	bl	_wpa_printf
	mov	w0, #-1
LBB0_11:
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DPP: Attribute ID %04x len %u"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"DPP: Truncated message - not enough room for the attribute - dropped"

l_.str.2:                               ; @.str.2
	.asciz	"DPP: An unexpected attribute included after the Wrapped Data attribute"

	.comm	_DPP_ATTR_WRAPPED_DATA,4,2      ; @DPP_ATTR_WRAPPED_DATA
l_.str.3:                               ; @.str.3
	.asciz	"DPP: Unexpected octets (%d) after the last attribute"

.subsections_via_symbols
