	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p2p_build_invitation_resp
_p2p_build_invitation_resp:             ## @p2p_build_invitation_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movl	$1000, %edi                     ## imm = 0x3E8
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_VENDOR_ELEM_P2P_INV_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	$1000, %edi                     ## imm = 0x3E8
LBB0_3:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_wpabuf_alloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:
	movq	_P2P_INVITATION_RESP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_p2p_buf_add_public_action_hdr
	movq	%rbx, %rdi
	callq	_p2p_buf_add_ie_hdr
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_p2p_buf_add_status
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_p2p_buf_add_config_timeout
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.5:
	movl	16(%rbp), %ecx
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.6:
	movq	16(%r14), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_p2p_buf_add_operating_channel
LBB0_7:
	movq	24(%rbp), %r15
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_p2p_buf_add_group_bssid
LBB0_9:
	testq	%r15, %r15
	je	LBB0_11
## %bb.10:
	movq	16(%r14), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_p2p_buf_add_channel_list
LBB0_11:
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_p2p_buf_update_ie_hdr
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	_VENDOR_ELEM_P2P_INV_RESP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	callq	_wpabuf_put_buf
LBB0_14:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VENDOR_ELEM_P2P_INV_RESP,8,3   ## @VENDOR_ELEM_P2P_INV_RESP
	.comm	_P2P_INVITATION_RESP,4,2        ## @P2P_INVITATION_RESP
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.no_dead_strip	_p2p_build_invitation_resp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p2p_build_invitation_resp
_p2p_build_invitation_resp:             ; @p2p_build_invitation_resp
	.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	x20, x7
	mov	x23, x6
	mov	x24, x5
	mov	x22, x4
	mov	x25, x3
	mov	x26, x2
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x27, _VENDOR_ELEM_P2P_INV_RESP@GOTPAGE
Lloh1:
	ldr	x27, [x27, _VENDOR_ELEM_P2P_INV_RESP@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x9, [x27]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_wpabuf_len
	add	w0, w0, #1000
	b	LBB0_4
LBB0_3:
	mov	w0, #1000
LBB0_4:
	bl	_wpabuf_alloc
	mov	x21, x0
	cbz	x0, LBB0_15
; %bb.5:
Lloh2:
	adrp	x8, _P2P_INVITATION_RESP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _P2P_INVITATION_RESP@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x26
	bl	_p2p_buf_add_public_action_hdr
	mov	x0, x21
	bl	_p2p_buf_add_ie_hdr
	mov	x26, x0
	mov	x0, x21
	mov	x1, x25
	bl	_p2p_buf_add_status
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	bl	_p2p_buf_add_config_timeout
	cbz	w24, LBB0_8
; %bb.6:
	cbz	w23, LBB0_8
; %bb.7:
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x24
	mov	x3, x23
	bl	_p2p_buf_add_operating_channel
LBB0_8:
	cbz	x22, LBB0_10
; %bb.9:
	mov	x0, x21
	mov	x1, x22
	bl	_p2p_buf_add_group_bssid
LBB0_10:
	cbz	x20, LBB0_12
; %bb.11:
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x20
	bl	_p2p_buf_add_channel_list
LBB0_12:
	mov	x0, x21
	mov	x1, x26
	bl	_p2p_buf_update_ie_hdr
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_15
; %bb.13:
	ldr	x9, [x27]
	ldr	x1, [x8, x9, lsl #3]
	cbz	x1, LBB0_15
; %bb.14:
	mov	x0, x21
	bl	_wpabuf_put_buf
LBB0_15:
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_VENDOR_ELEM_P2P_INV_RESP,8,3   ; @VENDOR_ELEM_P2P_INV_RESP
	.comm	_P2P_INVITATION_RESP,4,2        ; @P2P_INVITATION_RESP
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.no_dead_strip	_p2p_build_invitation_resp
.subsections_via_symbols
