	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_group_info_parse           ## -- Begin function p2p_group_info_parse
	.p2align	4, 0x90
_p2p_group_info_parse:                  ## @p2p_group_info_parse
	.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, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_os_memset
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.1:
	leaq	(%rbx,%r14,4), %rdx
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, %rbx
	jae	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%rbx), %rax
	addq	$4, %rbx
	movq	%rdx, %rcx
	subq	%rbx, %rcx
	sarq	$2, %rcx
	cmpq	%rax, %rcx
	jl	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	movq	_ETH_ALEN@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %r15
	leal	(%r15,%r15), %ecx
	addl	$12, %ecx
	cmpl	%ecx, %eax
	jl	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rcx
	movq	8(%r12), %r12
	leaq	(%rbx,%rax,4), %r13
	leaq	(%rcx,%rcx,8), %r14
	movq	%rbx, (%r12,%r14,8)
	leaq	(%rbx,%r15,4), %rbx
	movq	%rbx, 8(%r12,%r14,8)
	leaq	(%rbx,%r15,4), %rdi
	addq	$4, %rdi
	movl	(%rbx,%r15,4), %eax
	movl	%eax, 64(%r12,%r14,8)
	callq	_WPA_GET_BE16
	movq	%rax, 56(%r12,%r14,8)
	leaq	(%rbx,%r15,4), %rax
	addq	$12, %rax
	movq	%rax, 16(%r12,%r14,8)
	leaq	48(%rbx,%r15,4), %rax
	movslq	44(%rbx,%r15,4), %rdx
	leaq	(,%rdx,8), %rcx
	movq	%r13, %rsi
	subq	%rax, %rsi
	sarq	$2, %rsi
	cmpq	%rcx, %rsi
	jl	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, 24(%r12,%r14,8)
	movq	%rax, 32(%r12,%r14,8)
	leaq	(%rax,%rcx,4), %rbx
	movq	%r13, %rax
	subq	%rbx, %rax
	cmpq	$16, %rax
	jl	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_WPA_GET_BE16
	movq	_ATTR_DEV_NAME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	8(%rbx), %rdi
	callq	_WPA_GET_BE16
	addq	$16, %rbx
	movslq	%eax, %rcx
	movq	%r13, %rdx
	subq	%rbx, %rdx
	sarq	$2, %rdx
	cmpq	%rdx, %rcx
	jg	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_WPS_DEV_NAME_MAX_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%eax, %ecx
	cmovll	%ecx, %eax
	movq	%rbx, 40(%r12,%r14,8)
	movl	%eax, 48(%r12,%r14,8)
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rax
	incq	%rax
	movq	%rax, (%r12)
	movq	%r13, %rbx
	movq	_P2P_MAX_GROUP_ENTRIES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	jne	LBB0_2
	jmp	LBB0_11
LBB0_10:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_11:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_ATTR_DEV_NAME,8,3              ## @ATTR_DEV_NAME
	.comm	_WPS_DEV_NAME_MAX_LEN,4,2       ## @WPS_DEV_NAME_MAX_LEN
	.comm	_P2P_MAX_GROUP_ENTRIES,8,3      ## @P2P_MAX_GROUP_ENTRIES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_group_info_parse           ; -- Begin function p2p_group_info_parse
	.p2align	2
_p2p_group_info_parse:                  ; @p2p_group_info_parse
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x2
	mov	w1, #0
	mov	w2, #16
	bl	_os_memset
	cbz	x20, LBB0_11
; %bb.1:
Lloh0:
	adrp	x22, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ETH_ALEN@GOTPAGEOFF]
	mov	w24, #72
	add	x21, x20, x21, lsl #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x20, x21
	b.hs	LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrsw	x8, [x20], #4
	sub	x9, x21, x20
	cmp	x8, x9, asr #2
	b.gt	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrsw	x9, [x22]
	lsl	w10, w9, #1
	add	w10, w10, #12
	cmp	w8, w10
	b.lt	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	x25, x28, [x19]
	add	x27, x20, x8, lsl #2
	madd	x26, x25, x24, x28
	lsl	x8, x9, #2
	add	x9, x20, x8
	add	x23, x9, x8
	stp	x20, x9, [x26]
	add	x0, x23, #4
	ldr	w8, [x23]
	str	w8, [x26, #64]
	bl	_WPA_GET_BE16
	str	x0, [x26, #56]
	add	x8, x23, #12
	str	x8, [x26, #16]
	add	x8, x23, #48
	ldrsw	x10, [x23, #44]
	lsl	x9, x10, #3
	sub	x11, x27, x8
	cmp	x9, x11, asr #2
	b.gt	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	madd	x11, x25, x24, x28
	str	w10, [x11, #24]
	str	x8, [x11, #32]
	add	x20, x8, x9, lsl #2
	sub	x8, x27, x20
	cmp	x8, #16
	b.lt	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_WPA_GET_BE16
Lloh2:
	adrp	x8, _ATTR_DEV_NAME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ATTR_DEV_NAME@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x20, #8
	bl	_WPA_GET_BE16
	add	x8, x20, #16
	sxtw	x9, w0
	sub	x10, x27, x8
	cmp	x9, x10, asr #2
	b.gt	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh5:
	adrp	x9, _WPS_DEV_NAME_MAX_LEN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WPS_DEV_NAME_MAX_LEN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w9, w0
	csel	w9, w9, w0, lt
	madd	x10, x25, x24, x28
	str	x8, [x10, #40]
	str	w9, [x10, #48]
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
Lloh8:
	adrp	x9, _P2P_MAX_GROUP_ENTRIES@GOTPAGE
Lloh9:
	ldr	x9, [x9, _P2P_MAX_GROUP_ENTRIES@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	mov	x20, x27
	cmp	x8, x9
	b.ne	LBB0_2
LBB0_10:
	mov	w0, #-1
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_ATTR_DEV_NAME,8,3              ; @ATTR_DEV_NAME
	.comm	_WPS_DEV_NAME_MAX_LEN,4,2       ; @WPS_DEV_NAME_MAX_LEN
	.comm	_P2P_MAX_GROUP_ENTRIES,8,3      ; @P2P_MAX_GROUP_ENTRIES
.subsections_via_symbols
