	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p2p_group_encaps_probe_resp
_p2p_group_encaps_probe_resp:           ## @p2p_group_encaps_probe_resp
	.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
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	callq	_wpabuf_len
	leaq	100(%rax), %rdi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_wpabuf_head
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_wpabuf_len
	testq	%rax, %rax
	jle	LBB0_7
## %bb.3:
	leaq	(%r15,%rax,4), %r12
	movq	_P2P_IE_VENDOR_TYPE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rbx
	subq	%r15, %rbx
	sarq	$2, %rbx
	cmpq	$251, %rbx
	movl	$251, %eax
	cmovaeq	%rax, %rbx
	movq	_WLAN_EID_VENDOR_SPECIFIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_u8
	leal	4(%rbx), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_u8
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_be32
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_wpabuf_put_data
	leaq	(%r15,%rbx,4), %r15
	cmpq	%r15, %r12
	ja	LBB0_4
	jmp	LBB0_7
LBB0_6:
	xorl	%r14d, %r14d
LBB0_7:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_EID_VENDOR_SPECIFIC,4,2   ## @WLAN_EID_VENDOR_SPECIFIC
	.comm	_P2P_IE_VENDOR_TYPE,4,2         ## @P2P_IE_VENDOR_TYPE
	.no_dead_strip	_p2p_group_encaps_probe_resp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p2p_group_encaps_probe_resp
_p2p_group_encaps_probe_resp:           ; @p2p_group_encaps_probe_resp
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	bl	_wpabuf_len
	add	x0, x0, #100
	bl	_wpabuf_alloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.2:
	mov	x0, x21
	bl	_wpabuf_head
	mov	x20, x0
	mov	x0, x21
	bl	_wpabuf_len
	cmp	x0, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w22, #251
Lloh0:
	adrp	x23, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGE
Lloh1:
	ldr	x23, [x23, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGEOFF]
Lloh2:
	adrp	x24, _P2P_IE_VENDOR_TYPE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _P2P_IE_VENDOR_TYPE@GOTPAGEOFF]
	add	x25, x20, x0, lsl #2
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	x8, x25, x20
	asr	x8, x8, #2
	cmp	x8, #251
	csel	x21, x8, x22, lo
	ldr	w1, [x23]
	mov	x0, x19
	bl	_wpabuf_put_u8
	add	w1, w21, #4
	mov	x0, x19
	bl	_wpabuf_put_u8
	ldr	w1, [x24]
	mov	x0, x19
	bl	_wpabuf_put_be32
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_wpabuf_put_data
	add	x20, x20, x21, lsl #2
	cmp	x25, x20
	b.hi	LBB0_4
	b	LBB0_6
LBB0_5:
	mov	x19, #0
LBB0_6:
	mov	x0, x19
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_EID_VENDOR_SPECIFIC,4,2   ; @WLAN_EID_VENDOR_SPECIFIC
	.comm	_P2P_IE_VENDOR_TYPE,4,2         ; @P2P_IE_VENDOR_TYPE
	.no_dead_strip	_p2p_group_encaps_probe_resp
.subsections_via_symbols
