	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_parse_ies                  ## -- Begin function p2p_parse_ies
	.p2align	4, 0x90
_p2p_parse_ies:                         ## @p2p_parse_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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	-56(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_ieee802_11_parse_elems
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, 40(%rbx)
LBB0_2:
	movq	-40(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	addq	$-2, %rax
	movq	%rax, 32(%rbx)
LBB0_4:
	movq	_WPS_DEV_OUI_WFA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ieee802_11_vendor_ie_concat
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_p2p_parse_wps_ie
	testq	%rax, %rax
	jne	LBB0_6
LBB0_7:
	movq	_P2P_IE_VENDOR_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ieee802_11_vendor_ie_concat
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_p2p_parse_p2p_ie
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	16(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.10:
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_hexdump_buf
LBB0_6:
	movq	%rbx, %rdi
	callq	_p2p_parse_free
	movl	$-1, %eax
	jmp	LBB0_12
LBB0_11:
	movl	-52(%rbp), %eax
	movl	%eax, 4(%rbx)
	movl	-56(%rbp), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WPS_DEV_OUI_WFA,4,2            ## @WPS_DEV_OUI_WFA
	.comm	_P2P_IE_VENDOR_TYPE,4,2         ## @P2P_IE_VENDOR_TYPE
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P2P: Failed to parse P2P IE data"

	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.1:                               ## @.str.1
	.asciz	"P2P: P2P IE data"

	.comm	_WFD_IE_VENDOR_TYPE,4,2         ## @WFD_IE_VENDOR_TYPE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_parse_ies                  ; -- Begin function p2p_parse_ies
	.p2align	2
_p2p_parse_ies:                         ; @p2p_parse_ies
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x21, x0
	mov	x2, sp
	mov	w3, #0
	bl	_ieee802_11_parse_elems
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_2
; %bb.1:
	str	x8, [x19, #40]
LBB0_2:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_4
; %bb.3:
	sub	x8, x8, #2
	str	x8, [x19, #32]
LBB0_4:
Lloh0:
	adrp	x8, _WPS_DEV_OUI_WFA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WPS_DEV_OUI_WFA@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_ieee802_11_vendor_ie_concat
	str	x0, [x19, #24]
	cbz	x0, LBB0_6
; %bb.5:
	mov	x1, x19
	bl	_p2p_parse_wps_ie
	cbnz	x0, LBB0_10
LBB0_6:
Lloh3:
	adrp	x8, _P2P_IE_VENDOR_TYPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _P2P_IE_VENDOR_TYPE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_ieee802_11_vendor_ie_concat
	str	x0, [x19, #16]
	cbz	x0, LBB0_11
; %bb.7:
	mov	x1, x19
	bl	_p2p_parse_p2p_ie
	cbz	x0, LBB0_11
; %bb.8:
Lloh6:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	x2, [x19, #16]
	cbz	x2, LBB0_10
; %bb.9:
Lloh11:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_hexdump_buf
LBB0_10:
	mov	x0, x19
	bl	_p2p_parse_free
	mov	w0, #-1
	b	LBB0_12
LBB0_11:
	mov	w0, #0
	ldr	d0, [sp]
	str	d0, [x19]
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_WPS_DEV_OUI_WFA,4,2            ; @WPS_DEV_OUI_WFA
	.comm	_P2P_IE_VENDOR_TYPE,4,2         ; @P2P_IE_VENDOR_TYPE
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"P2P: Failed to parse P2P IE data"

	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.1:                               ; @.str.1
	.asciz	"P2P: P2P IE data"

	.comm	_WFD_IE_VENDOR_TYPE,4,2         ; @WFD_IE_VENDOR_TYPE
.subsections_via_symbols
