	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_parse_p2p_ie               ## -- Begin function p2p_parse_p2p_ie
	.p2align	4, 0x90
_p2p_parse_p2p_ie:                      ## @p2p_parse_p2p_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	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	callq	_wpabuf_head_u8
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_wpabuf_len
	cltq
	leaq	(%rbx,%rax,4), %r12
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, %rbx
	jae	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rax
	subq	%rbx, %rax
	cmpq	$11, %rax
	jle	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	4(%rbx), %rdi
	movl	(%rbx), %r15d
	callq	_WPA_GET_LE16
	movl	%eax, %r13d
	addq	$12, %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_wpa_printf
	movslq	%r13d, %r14
	subq	%rbx, %r12
	sarq	$2, %r12
	cmpq	%r14, %r12
	jl	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_p2p_parse_attribute
	leaq	(%rbx,%r14,4), %rbx
	testq	%rax, %rax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_1
	jmp	LBB0_8
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_4:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_8
LBB0_6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdx
	movl	%r12d, %ecx
	callq	_wpa_hexdump
LBB0_8:
	movl	$-1, %eax
LBB0_9:
	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	"P2P: Parsing P2P IE"

L_.str.1:                               ## @.str.1
	.asciz	"P2P: Invalid P2P attribute"

L_.str.2:                               ## @.str.2
	.asciz	"P2P: Attribute %d length %u"

L_.str.3:                               ## @.str.3
	.asciz	"P2P: Attribute underflow (len=%u left=%d)"

	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.4:                               ## @.str.4
	.asciz	"P2P: Data"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_parse_p2p_ie               ; -- Begin function p2p_parse_p2p_ie
	.p2align	2
_p2p_parse_p2p_ie:                      ; @p2p_parse_p2p_ie
	.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, x1
	mov	x21, x0
	bl	_wpabuf_head_u8
	mov	x19, x0
	mov	x0, x21
	bl	_wpabuf_len
	add	x25, x19, w0, sxtw #2
Lloh0:
	adrp	x24, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
Lloh4:
	adrp	x21, l_.str.2@PAGE
Lloh5:
	add	x21, x21, l_.str.2@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x19, x25
	b.hs	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	x8, x25, x19
	cmp	x8, #11
	b.le	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x0, x19, #4
	ldr	w22, [x19], #12
	bl	_WPA_GET_LE16
	mov	x23, x0
	ldr	w0, [x24]
	stp	x22, x23, [sp]
	mov	x1, x21
	bl	_wpa_printf
	sxtw	x23, w23
	sub	x8, x25, x19
	cmp	x23, x8, asr #2
	b.gt	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x22
	mov	x1, x19
	mov	x2, x23
	mov	x3, x20
	bl	_p2p_parse_attribute
	add	x19, x19, x23, lsl #2
	cbz	x0, LBB0_1
	b	LBB0_8
LBB0_5:
	mov	w0, #0
	b	LBB0_9
LBB0_6:
	ldr	w0, [x24]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	b	LBB0_8
LBB0_7:
	asr	x20, x8, #2
	ldr	w0, [x24]
	stp	x23, x20, [sp]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
Lloh10:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	bl	_wpa_hexdump
LBB0_8:
	mov	w0, #-1
LBB0_9:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"P2P: Parsing P2P IE"

l_.str.1:                               ; @.str.1
	.asciz	"P2P: Invalid P2P attribute"

l_.str.2:                               ; @.str.2
	.asciz	"P2P: Attribute %d length %u"

l_.str.3:                               ; @.str.3
	.asciz	"P2P: Attribute underflow (len=%u left=%d)"

	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.4:                               ; @.str.4
	.asciz	"P2P: Data"

.subsections_via_symbols
