	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_group_assoc_resp_ie        ## -- Begin function p2p_group_assoc_resp_ie
	.p2align	4, 0x90
_p2p_group_assoc_resp_ie:               ## @p2p_group_assoc_resp_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movl	$20, %edi
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_VENDOR_ELEM_P2P_ASSOC_RESP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %rdi
	callq	_wpabuf_len
	movq	%rax, %rdi
	addl	$20, %edi
LBB0_3:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_wpabuf_alloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	(%r15), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_VENDOR_ELEM_P2P_ASSOC_RESP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_wpabuf_put_buf
LBB0_7:
	movq	%rbx, %rdi
	callq	_p2p_buf_add_ie_hdr
	movq	%rax, %r15
	movq	_P2P_SC_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_p2p_buf_add_status
LBB0_9:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_p2p_buf_update_ie_hdr
LBB0_10:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VENDOR_ELEM_P2P_ASSOC_RESP,8,3 ## @VENDOR_ELEM_P2P_ASSOC_RESP
	.comm	_P2P_SC_SUCCESS,4,2             ## @P2P_SC_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_group_assoc_resp_ie        ; -- Begin function p2p_group_assoc_resp_ie
	.p2align	2
_p2p_group_assoc_resp_ie:               ; @p2p_group_assoc_resp_ie
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x22, _VENDOR_ELEM_P2P_ASSOC_RESP@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VENDOR_ELEM_P2P_ASSOC_RESP@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x9, [x22]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_wpabuf_len
	add	w0, w0, #20
	b	LBB0_4
LBB0_3:
	mov	w0, #20
LBB0_4:
	bl	_wpabuf_alloc
	mov	x20, x0
	cbz	x0, LBB0_11
; %bb.5:
	ldr	x8, [x21]
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	x9, [x22]
	ldr	x1, [x8, x9, lsl #3]
	cbz	x1, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_wpabuf_put_buf
LBB0_8:
	mov	x0, x20
	bl	_p2p_buf_add_ie_hdr
	mov	x21, x0
Lloh2:
	adrp	x8, _P2P_SC_SUCCESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _P2P_SC_SUCCESS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w19
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x20
	mov	x1, x19
	bl	_p2p_buf_add_status
LBB0_10:
	mov	x0, x20
	mov	x1, x21
	bl	_p2p_buf_update_ie_hdr
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_VENDOR_ELEM_P2P_ASSOC_RESP,8,3 ; @VENDOR_ELEM_P2P_ASSOC_RESP
	.comm	_P2P_SC_SUCCESS,4,2             ; @P2P_SC_SUCCESS
.subsections_via_symbols
