	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p2p_build_prov_disc_resp
_p2p_build_prov_disc_resp:              ## @p2p_build_prov_disc_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -56(%rbp)                 ## 4-byte Spill
	movl	%r8d, -68(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_VENDOR_ELEM_P2P_PD_RESP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_wpabuf_len
	movq	%rax, %rdi
	jmp	LBB0_4
LBB0_3:
	xorl	%edi, %edi
LBB0_4:
	addl	$1000, %edi                     ## imm = 0x3E8
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_wpabuf_alloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_52
## %bb.5:
	movq	_P2P_PROV_DISC_RESP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_p2p_buf_add_public_action_hdr
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_25
## %bb.6:
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, 20(%rax)
	jne	LBB0_25
## %bb.7:
	movq	%rbx, %rdi
	callq	_p2p_buf_add_ie_hdr
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	24(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_P2P_SC_SUCCESS@GOTPCREL(%rip), %r13
	movq	_P2P_SC_SUCCESS_DEFERRED@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%r13)
	je	LBB0_9
## %bb.8:
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	cmpl	%r14d, (%rax)
	jne	LBB0_10
LBB0_9:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
LBB0_10:
	testl	%r14d, %r14d
	jne	LBB0_12
## %bb.11:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	xorl	%r14d, %r14d
	cmpl	$-1, %eax
	cmovnel	%eax, %r14d
LBB0_12:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_p2p_buf_add_status
	movq	_P2P_GROUP_CAPAB_PERSISTENT_GROUP@GOTPCREL(%rip), %rax
	movq	_P2P_GROUP_CAPAB_PERSISTENT_RECONN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	cmpq	$0, 64(%r15)
	movl	$0, %eax
	je	LBB0_14
## %bb.13:
	movq	_P2P_GROUP_CAPAB_CROSS_CONN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_14:
	orl	%eax, %edx
	movq	48(%r15), %rax
	cmpq	$0, 24(%rax)
	movl	$0, %eax
	je	LBB0_16
## %bb.15:
	movq	_P2P_GROUP_CAPAB_INTRA_BSS_DIST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_16:
	orl	%eax, %edx
	movq	_P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	8(%r15), %esi
	movq	%rbx, %rdi
	callq	_p2p_buf_add_capability
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_p2p_buf_add_device_info
	cmpq	$0, 32(%rbp)
	je	LBB0_31
## %bb.17:
	testq	%r12, %r12
	je	LBB0_31
## %bb.18:
	movq	48(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_31
## %bb.19:
	cmpl	(%r13), %r14d
	je	LBB0_21
## %bb.20:
	movq	_P2P_SC_SUCCESS_DEFERRED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_31
LBB0_21:
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	_SSID_MAX_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	movq	%r12, %r14
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	shlq	$2, %r13
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	48(%r15), %rax
	movl	20(%rax), %edi
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movl	(%r14), %esi
	movq	%r12, %r14
	leaq	-112(%rbp), %r10
	movq	32(%rbp), %rdx
	movq	40(%rbp), %rcx
	movq	%r12, %r8
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	pushq	%r13
	pushq	%r10
	callq	*(%rax)
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_30
## %bb.22:
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	-112(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	callq	_p2p_buf_add_persistent_group_info
	movq	%r13, %rdi
	callq	_is_zero_ether_addr
	testl	%eax, %eax
	jne	LBB0_24
## %bb.23:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_p2p_buf_add_intended_addr
LBB0_24:
	movq	%r12, %rsp
	xorl	%r12d, %r12d
	jmp	LBB0_33
LBB0_25:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_27
## %bb.26:
	movq	_P2P_SC_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_49
LBB0_27:
	movq	%rbx, %rdi
	callq	_p2p_buf_add_ie_hdr
	movq	%rax, %r13
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_p2p_buf_add_status
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:
	movl	8(%rax), %edx
	movq	%rbx, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_p2p_buf_add_advertisement_id
LBB0_29:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	jmp	LBB0_48
LBB0_30:
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
	movq	-96(%rbp), %r12                 ## 8-byte Reload
LBB0_31:
	movq	_P2PS_SETUP_GROUP_OWNER@GOTPCREL(%rip), %r14
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	testl	%r13d, (%r14)
	je	LBB0_39
## %bb.32:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_p2ps_add_new_group_info
	movb	$1, %r12b
	testl	%r13d, (%r14)
	je	LBB0_39
LBB0_33:
	movl	60(%r15), %edx
	testl	%edx, %edx
	je	LBB0_38
## %bb.34:
	movl	56(%r15), %ecx
	testl	%ecx, %ecx
	je	LBB0_38
## %bb.35:
	movq	48(%r15), %rax
	movl	8(%rax), %esi
	jmp	LBB0_36
LBB0_38:
	movq	48(%r15), %rax
	movl	16(%rax), %edx
	movl	8(%rax), %esi
	movl	12(%rax), %ecx
LBB0_36:
	movq	%rbx, %rdi
	callq	_p2p_buf_add_operating_channel
	testb	%r12b, %r12b
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_37
LBB0_39:
	movq	_P2PS_SETUP_CLIENT@GOTPCREL(%rip), %rax
	movq	_P2PS_SETUP_GROUP_OWNER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movb	$1, %r14b
	testl	%r13d, %ecx
	jne	LBB0_40
	jmp	LBB0_41
LBB0_37:
	xorl	%r14d, %r14d
LBB0_40:
	movq	48(%r15), %rax
	movl	8(%rax), %esi
	leaq	40(%r15), %rdx
	movq	%rbx, %rdi
	callq	_p2p_buf_add_channel_list
LBB0_41:
	testb	%r14b, %r14b
	je	LBB0_44
## %bb.42:
	testl	%r13d, %r13d
	je	LBB0_44
## %bb.43:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_p2p_buf_add_connection_capability
LBB0_44:
	movl	56(%rbp), %r13d
	movq	48(%rbp), %r12
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edx
	movq	%rbx, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_p2p_buf_add_advertisement_id
	testb	%r14b, %r14b
	je	LBB0_46
## %bb.45:
	movq	_P2PS_SETUP_CLIENT@GOTPCREL(%rip), %rax
	movq	_P2PS_SETUP_GROUP_OWNER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, -52(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_47
LBB0_46:
	movl	32(%r15), %edx
	movl	36(%r15), %esi
	movq	%rbx, %rdi
	callq	_p2p_buf_add_config_timeout
LBB0_47:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %edx
	movl	16(%rax), %esi
	movq	%rbx, %rdi
	callq	_p2p_buf_add_session_id
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%r12, %rdx
	callq	_p2p_buf_add_feature_capability
	movq	%rbx, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
LBB0_48:
	callq	_p2p_buf_update_ie_hdr
LBB0_49:
	movq	%rbx, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_p2p_build_wps_ie_config_methods
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_52
## %bb.50:
	movq	_VENDOR_ELEM_P2P_PD_RESP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_52
## %bb.51:
	movq	%rbx, %rdi
	callq	_wpabuf_put_buf
LBB0_52:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_54
## %bb.53:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_54:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VENDOR_ELEM_P2P_PD_RESP,8,3    ## @VENDOR_ELEM_P2P_PD_RESP
	.comm	_P2P_PROV_DISC_RESP,4,2         ## @P2P_PROV_DISC_RESP
	.comm	_P2P_SC_SUCCESS,4,2             ## @P2P_SC_SUCCESS
	.comm	_P2P_SC_SUCCESS_DEFERRED,4,2    ## @P2P_SC_SUCCESS_DEFERRED
	.comm	_P2P_GROUP_CAPAB_PERSISTENT_GROUP,4,2 ## @P2P_GROUP_CAPAB_PERSISTENT_GROUP
	.comm	_P2P_GROUP_CAPAB_PERSISTENT_RECONN,4,2 ## @P2P_GROUP_CAPAB_PERSISTENT_RECONN
	.comm	_P2P_GROUP_CAPAB_CROSS_CONN,4,2 ## @P2P_GROUP_CAPAB_CROSS_CONN
	.comm	_P2P_GROUP_CAPAB_INTRA_BSS_DIST,4,2 ## @P2P_GROUP_CAPAB_INTRA_BSS_DIST
	.comm	_P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY,4,2 ## @P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY
	.comm	_SSID_MAX_LEN,4,2               ## @SSID_MAX_LEN
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_P2PS_SETUP_GROUP_OWNER,4,2     ## @P2PS_SETUP_GROUP_OWNER
	.comm	_P2PS_SETUP_CLIENT,4,2          ## @P2PS_SETUP_CLIENT
	.no_dead_strip	_p2p_build_prov_disc_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_prov_disc_resp
_p2p_build_prov_disc_resp:              ; @p2p_build_prov_disc_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
	sub	sp, sp, #48
	mov	x22, x5
	mov	x19, x4
	mov	x26, x3
	mov	x23, x2
	mov	x25, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x8, [x0, #16]
Lloh3:
	adrp	x28, _VENDOR_ELEM_P2P_PD_RESP@GOTPAGE
Lloh4:
	ldr	x28, [x28, _VENDOR_ELEM_P2P_PD_RESP@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x9, [x28]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_4
; %bb.2:
	bl	_wpabuf_len
	b	LBB0_4
LBB0_3:
	mov	x0, #0
LBB0_4:
	add	w0, w0, #1000
	bl	_wpabuf_alloc
	mov	x21, x0
	cbz	x0, LBB0_47
; %bb.5:
Lloh5:
	adrp	x8, _P2P_PROV_DISC_RESP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _P2P_PROV_DISC_RESP@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x23
	bl	_p2p_buf_add_public_action_hdr
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_9
; %bb.6:
	ldr	w8, [x8, #20]
	cmp	w8, w22
	b.ne	LBB0_9
; %bb.7:
	mov	x0, x21
	bl	_p2p_buf_add_ie_hdr
	stur	x0, [x29, #-104]                ; 8-byte Folded Spill
	ldr	x23, [x20, #24]
Lloh8:
	adrp	x8, _P2P_SC_SUCCESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _P2P_SC_SUCCESS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _P2P_SC_SUCCESS_DEFERRED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _P2P_SC_SUCCESS_DEFERRED@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w26
	ccmp	w9, w26, #4, ne
	b.ne	LBB0_14
; %bb.8:
	ldr	w24, [x23]
	ldr	x27, [x29, #16]
	cbnz	w26, LBB0_16
	b	LBB0_15
LBB0_9:
	cbnz	w22, LBB0_11
; %bb.10:
Lloh14:
	adrp	x8, _P2P_SC_SUCCESS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _P2P_SC_SUCCESS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w8, w26
	b.eq	LBB0_44
LBB0_11:
	mov	x0, x21
	bl	_p2p_buf_add_ie_hdr
	mov	x23, x0
	mov	x0, x21
	mov	x1, x26
	bl	_p2p_buf_add_status
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_13
; %bb.12:
	ldr	w2, [x8, #8]
	mov	x0, x21
	mov	x1, x22
	bl	_p2p_buf_add_advertisement_id
LBB0_13:
	mov	x0, x21
	mov	x1, x23
	b	LBB0_43
LBB0_14:
	mov	w24, #0
	ldr	x27, [x29, #16]
	cbnz	w26, LBB0_16
LBB0_15:
	ldr	w8, [x23, #4]
	cmn	w8, #1
	csel	w26, wzr, w8, eq
LBB0_16:
	mov	x0, x21
	mov	x1, x26
	bl	_p2p_buf_add_status
Lloh17:
	adrp	x8, _P2P_GROUP_CAPAB_PERSISTENT_GROUP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _P2P_GROUP_CAPAB_PERSISTENT_GROUP@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _P2P_GROUP_CAPAB_PERSISTENT_RECONN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _P2P_GROUP_CAPAB_PERSISTENT_RECONN@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh23:
	adrp	x9, _P2P_GROUP_CAPAB_CROSS_CONN@GOTPAGE
Lloh24:
	ldr	x9, [x9, _P2P_GROUP_CAPAB_CROSS_CONN@GOTPAGEOFF]
	ldr	x10, [x20, #64]
Lloh25:
	ldr	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
	ldr	x9, [x20, #48]
	ldr	x9, [x9, #24]
Lloh26:
	adrp	x10, _P2P_GROUP_CAPAB_INTRA_BSS_DIST@GOTPAGE
Lloh27:
	ldr	x10, [x10, _P2P_GROUP_CAPAB_INTRA_BSS_DIST@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w2, w8, w9
	ldr	w8, [x20, #8]
Lloh29:
	adrp	x9, _P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY@GOTPAGE
Lloh30:
	ldr	x9, [x9, _P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	bic	w1, w8, w9
	mov	x0, x21
	bl	_p2p_buf_add_capability
	mov	x0, x21
	mov	x1, x20
	mov	x2, #0
	bl	_p2p_buf_add_device_info
	cbz	x27, LBB0_26
; %bb.17:
	cbz	x25, LBB0_26
; %bb.18:
	ldr	x8, [x20, #48]
	ldr	x8, [x8]
	cbz	x8, LBB0_26
; %bb.19:
Lloh32:
	adrp	x8, _P2P_SC_SUCCESS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _P2P_SC_SUCCESS@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	cmp	w26, w8
	b.eq	LBB0_21
; %bb.20:
Lloh35:
	adrp	x8, _P2P_SC_SUCCESS_DEFERRED@GOTPAGE
Lloh36:
	ldr	x8, [x8, _P2P_SC_SUCCESS_DEFERRED@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	cmp	w26, w8
	b.ne	LBB0_26
LBB0_21:
	mov	x8, sp
	stur	x8, [x29, #-112]                ; 8-byte Folded Spill
	ldr	x3, [x29, #24]
Lloh38:
	adrp	x8, _SSID_MAX_LEN@GOTPAGE
Lloh39:
	ldr	x8, [x8, _SSID_MAX_LEN@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh41:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh42:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x13, x9, x8
	mov	sp, x13
Lloh43:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh46:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh47:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x7fffffff0
	sub	x26, x9, x12
	mov	sp, x26
	mov	x9, x8
Lloh48:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh49:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x7, x8, x12
	mov	sp, x7
	ldr	x8, [x20, #48]
	ldr	x9, [x8]
	ldr	w0, [x8, #20]
	ldr	w1, [x25]
	sub	x6, x29, #96
	mov	x2, x27
	mov	x27, x13
	mov	x4, x26
	mov	x5, x13
	stur	x7, [x29, #-120]                ; 8-byte Folded Spill
	blr	x9
	cbz	w0, LBB0_25
; %bb.22:
	ldur	x25, [x29, #-112]               ; 8-byte Folded Reload
	ldur	x3, [x29, #-96]
	mov	x0, x21
	mov	x1, x26
	mov	x2, x27
	bl	_p2p_buf_add_persistent_group_info
	ldur	x26, [x29, #-120]               ; 8-byte Folded Reload
	mov	x0, x26
	bl	_is_zero_ether_addr
	cbnz	w0, LBB0_24
; %bb.23:
	mov	x0, x21
	mov	x1, x26
	bl	_p2p_buf_add_intended_addr
LBB0_24:
	mov	sp, x25
	mov	w25, #0
Lloh50:
	adrp	x26, _P2PS_SETUP_GROUP_OWNER@GOTPAGE
Lloh51:
	ldr	x26, [x26, _P2PS_SETUP_GROUP_OWNER@GOTPAGEOFF]
	b	LBB0_29
LBB0_25:
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	mov	sp, x8
LBB0_26:
Lloh52:
	adrp	x26, _P2PS_SETUP_GROUP_OWNER@GOTPAGE
Lloh53:
	ldr	x26, [x26, _P2PS_SETUP_GROUP_OWNER@GOTPAGEOFF]
	ldr	w8, [x26]
	tst	w8, w24
	b.eq	LBB0_34
; %bb.27:
	mov	x0, x20
	mov	x1, x25
	mov	x2, x21
	bl	_p2ps_add_new_group_info
	ldr	w8, [x26]
	tst	w8, w24
	b.eq	LBB0_34
; %bb.28:
	mov	w25, #1
LBB0_29:
	ldr	w2, [x20, #60]
	cbz	w2, LBB0_33
; %bb.30:
	ldr	w3, [x20, #56]
	cbz	w3, LBB0_33
; %bb.31:
	ldr	x8, [x20, #48]
	ldr	w1, [x8, #8]
	mov	x0, x21
	bl	_p2p_buf_add_operating_channel
	tbnz	w25, #0, LBB0_34
LBB0_32:
	mov	w27, #0
	b	LBB0_35
LBB0_33:
	ldr	x8, [x20, #48]
	ldp	w3, w2, [x8, #12]
	ldr	w1, [x8, #8]
	mov	x0, x21
	bl	_p2p_buf_add_operating_channel
	cbz	w25, LBB0_32
LBB0_34:
Lloh54:
	adrp	x8, _P2PS_SETUP_CLIENT@GOTPAGE
Lloh55:
	ldr	x8, [x8, _P2PS_SETUP_CLIENT@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	ldr	w9, [x26]
	orr	w8, w9, w8
	mov	w27, #1
	tst	w8, w24
	b.eq	LBB0_36
LBB0_35:
	ldr	x8, [x20, #48]
	ldr	w1, [x8, #8]
	add	x2, x20, #40
	mov	x0, x21
	bl	_p2p_buf_add_channel_list
LBB0_36:
	ldr	w26, [x29, #40]
	ldr	x25, [x29, #32]
	cbz	w27, LBB0_39
; %bb.37:
	cbz	w24, LBB0_39
; %bb.38:
	mov	x0, x21
	mov	x1, x24
	bl	_p2p_buf_add_connection_capability
LBB0_39:
	ldr	w2, [x23, #8]
	mov	x0, x21
	mov	x1, x22
	bl	_p2p_buf_add_advertisement_id
	cbz	w27, LBB0_41
; %bb.40:
Lloh57:
	adrp	x8, _P2PS_SETUP_CLIENT@GOTPAGE
Lloh58:
	ldr	x8, [x8, _P2PS_SETUP_CLIENT@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
Lloh60:
	adrp	x9, _P2PS_SETUP_GROUP_OWNER@GOTPAGE
Lloh61:
	ldr	x9, [x9, _P2PS_SETUP_GROUP_OWNER@GOTPAGEOFF]
Lloh62:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w24
	b.eq	LBB0_42
LBB0_41:
	ldp	w2, w1, [x20, #32]
	mov	x0, x21
	bl	_p2p_buf_add_config_timeout
LBB0_42:
	ldp	w2, w1, [x23, #12]
	mov	x0, x21
	bl	_p2p_buf_add_session_id
	mov	x0, x21
	mov	x1, x26
	mov	x2, x25
	bl	_p2p_buf_add_feature_capability
	mov	x0, x21
	ldur	x1, [x29, #-104]                ; 8-byte Folded Reload
LBB0_43:
	bl	_p2p_buf_update_ie_hdr
LBB0_44:
	mov	x0, x21
	mov	x1, x19
	bl	_p2p_build_wps_ie_config_methods
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_47
; %bb.45:
	ldr	x9, [x28]
	ldr	x1, [x8, x9, lsl #3]
	cbz	x1, LBB0_47
; %bb.46:
	mov	x0, x21
	bl	_wpabuf_put_buf
LBB0_47:
	ldur	x8, [x29, #-88]
Lloh63:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh64:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh65:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_49
; %bb.48:
	mov	x0, x21
	sub	sp, x29, #80
	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
LBB0_49:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.cfi_endproc
                                        ; -- End function
	.comm	_VENDOR_ELEM_P2P_PD_RESP,8,3    ; @VENDOR_ELEM_P2P_PD_RESP
	.comm	_P2P_PROV_DISC_RESP,4,2         ; @P2P_PROV_DISC_RESP
	.comm	_P2P_SC_SUCCESS,4,2             ; @P2P_SC_SUCCESS
	.comm	_P2P_SC_SUCCESS_DEFERRED,4,2    ; @P2P_SC_SUCCESS_DEFERRED
	.comm	_P2P_GROUP_CAPAB_PERSISTENT_GROUP,4,2 ; @P2P_GROUP_CAPAB_PERSISTENT_GROUP
	.comm	_P2P_GROUP_CAPAB_PERSISTENT_RECONN,4,2 ; @P2P_GROUP_CAPAB_PERSISTENT_RECONN
	.comm	_P2P_GROUP_CAPAB_CROSS_CONN,4,2 ; @P2P_GROUP_CAPAB_CROSS_CONN
	.comm	_P2P_GROUP_CAPAB_INTRA_BSS_DIST,4,2 ; @P2P_GROUP_CAPAB_INTRA_BSS_DIST
	.comm	_P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY,4,2 ; @P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY
	.comm	_SSID_MAX_LEN,4,2               ; @SSID_MAX_LEN
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_P2PS_SETUP_GROUP_OWNER,4,2     ; @P2PS_SETUP_GROUP_OWNER
	.comm	_P2PS_SETUP_CLIENT,4,2          ; @P2PS_SETUP_CLIENT
	.no_dead_strip	_p2p_build_prov_disc_resp
.subsections_via_symbols
