	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_build_wps_ie               ## -- Begin function p2p_build_wps_ie
	.p2align	4, 0x90
_p2p_build_wps_ie:                      ## @p2p_build_wps_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	%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	%ecx, %r13d
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_wpabuf_tailroom
	movl	$-1, %r12d
	cmpl	$6, %eax
	jl	LBB0_29
## %bb.1:
	movq	_WLAN_EID_VENDOR_SPECIFIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_u8
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_wpabuf_put
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_WPS_DEV_OUI_WFA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_be32
	movq	%r14, %rdi
	callq	_wps_build_version
	testq	%rax, %rax
	js	LBB0_29
## %bb.2:
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_wpabuf_tailroom
	cmpl	$5, %eax
	jl	LBB0_29
## %bb.4:
	movq	_ATTR_WPS_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_be16
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_wpabuf_put_be16
	movq	_WPS_STATE_NOT_CONFIGURED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_u8
LBB0_5:
	testl	%r15d, %r15d
	js	LBB0_8
## %bb.6:
	movq	%r14, %rdi
	callq	_wpabuf_tailroom
	cmpl	$6, %eax
	jl	LBB0_29
## %bb.7:
	movq	_ATTR_DEV_PASSWORD_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_be16
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_wpabuf_put_be16
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_wpa_printf
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_wpabuf_put_be16
LBB0_8:
	testl	%r13d, %r13d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	je	LBB0_30
## %bb.9:
	callq	_wpabuf_tailroom
	cmpl	$5, %eax
	jl	LBB0_29
## %bb.10:
	movq	_ATTR_RESPONSE_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_be16
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_wpabuf_put_be16
	movq	_WPS_RESP_ENROLLEE_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_u8
	movq	8(%rbx), %rax
	movl	36(%rax), %esi
	movq	%r14, %rdi
	callq	_wps_build_uuid_e
	testq	%rax, %rax
	js	LBB0_29
## %bb.11:
	movq	_ATTR_MANUFACTURER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rax
	movl	32(%rax), %edx
	movq	%r14, %rdi
	callq	_p2p_add_wps_string
	testq	%rax, %rax
	js	LBB0_29
## %bb.12:
	movq	_ATTR_MODEL_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rax
	movl	28(%rax), %edx
	movq	%r14, %rdi
	callq	_p2p_add_wps_string
	testq	%rax, %rax
	js	LBB0_29
## %bb.13:
	movq	_ATTR_MODEL_NUMBER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rax
	movl	24(%rax), %edx
	movq	%r14, %rdi
	callq	_p2p_add_wps_string
	testq	%rax, %rax
	js	LBB0_29
## %bb.14:
	movq	_ATTR_SERIAL_NUMBER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rax
	movl	20(%rax), %edx
	movq	%r14, %rdi
	callq	_p2p_add_wps_string
	testq	%rax, %rax
	js	LBB0_29
## %bb.15:
	movq	%r14, %rdi
	callq	_wpabuf_tailroom
	movq	_WPS_DEV_TYPE_LEN@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	addl	$4, %ecx
	cmpl	%ecx, %eax
	jl	LBB0_29
## %bb.16:
	movq	_ATTR_PRIMARY_DEV_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_be16
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_be16
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
	movl	16(%rax), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_wpabuf_put_data
	movq	_ATTR_DEV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rax
	movl	12(%rax), %edx
	movq	%r14, %rdi
	callq	_p2p_add_wps_string
	testq	%rax, %rax
	js	LBB0_29
## %bb.17:
	movq	%r14, %rdi
	callq	_wpabuf_tailroom
	cmpl	$6, %eax
	jl	LBB0_29
## %bb.18:
	movq	_ATTR_CONFIG_METHODS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_be16
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_wpabuf_put_be16
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	8(%r15), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_be16
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_wps_build_wfa_ext
	testq	%rax, %rax
	js	LBB0_29
## %bb.19:
	movq	8(%r15), %rax
	cmpl	$0, 4(%rax)
	je	LBB0_22
## %bb.20:
	movq	%r14, %rdi
	callq	_wpabuf_tailroom
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movl	4(%rcx), %ecx
	imull	(%r13), %ecx
	addl	$4, %ecx
	cmpl	%ecx, %eax
	jl	LBB0_29
## %bb.21:
	movq	_ATTR_SECONDARY_DEV_TYPE_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_be16
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
	movl	4(%rax), %esi
	imull	(%r13), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_be16
	movq	8(%rbx), %rax
	movl	4(%rax), %edx
	movl	8(%rax), %esi
	imull	(%r13), %edx
	movq	%r14, %rdi
	callq	_wpabuf_put_data
	jmp	LBB0_22
LBB0_30:
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_wps_build_wfa_ext
	testq	%rax, %rax
	js	LBB0_29
LBB0_22:
	movq	_P2P_MAX_WPS_VENDOR_EXT@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_28
## %bb.23:
	xorl	%ebx, %ebx
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_24 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jge	LBB0_28
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_28
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	%r14, %rdi
	callq	_wpabuf_tailroom
	movl	%eax, %r12d
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_wpabuf_len
	addl	$4, %eax
	cmpl	%eax, %r12d
	jl	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	_ATTR_VENDOR_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_be16
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_wpabuf_len
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_wpabuf_put_be16
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r14, %rdi
	callq	_wpabuf_put_buf
	jmp	LBB0_27
LBB0_28:
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_p2p_buf_update_ie_hdr
	xorl	%r12d, %r12d
LBB0_29:
	movl	%r12d, %eax
	addq	$24, %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	_WPS_DEV_OUI_WFA,4,2            ## @WPS_DEV_OUI_WFA
	.comm	_ATTR_WPS_STATE,4,2             ## @ATTR_WPS_STATE
	.comm	_WPS_STATE_NOT_CONFIGURED,4,2   ## @WPS_STATE_NOT_CONFIGURED
	.comm	_ATTR_DEV_PASSWORD_ID,4,2       ## @ATTR_DEV_PASSWORD_ID
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P2P: WPS IE Device Password ID: %d"

	.comm	_ATTR_RESPONSE_TYPE,4,2         ## @ATTR_RESPONSE_TYPE
	.comm	_WPS_RESP_ENROLLEE_INFO,4,2     ## @WPS_RESP_ENROLLEE_INFO
	.comm	_ATTR_MANUFACTURER,4,2          ## @ATTR_MANUFACTURER
	.comm	_ATTR_MODEL_NAME,4,2            ## @ATTR_MODEL_NAME
	.comm	_ATTR_MODEL_NUMBER,4,2          ## @ATTR_MODEL_NUMBER
	.comm	_ATTR_SERIAL_NUMBER,4,2         ## @ATTR_SERIAL_NUMBER
	.comm	_WPS_DEV_TYPE_LEN,4,2           ## @WPS_DEV_TYPE_LEN
	.comm	_ATTR_PRIMARY_DEV_TYPE,4,2      ## @ATTR_PRIMARY_DEV_TYPE
	.comm	_ATTR_DEV_NAME,4,2              ## @ATTR_DEV_NAME
	.comm	_ATTR_CONFIG_METHODS,4,2        ## @ATTR_CONFIG_METHODS
	.comm	_ATTR_SECONDARY_DEV_TYPE_LIST,4,2 ## @ATTR_SECONDARY_DEV_TYPE_LIST
	.comm	_P2P_MAX_WPS_VENDOR_EXT,4,2     ## @P2P_MAX_WPS_VENDOR_EXT
	.comm	_ATTR_VENDOR_EXT,4,2            ## @ATTR_VENDOR_EXT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_build_wps_ie               ; -- Begin function p2p_build_wps_ie
	.p2align	2
_p2p_build_wps_ie:                      ; @p2p_build_wps_ie
	.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
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_wpabuf_tailroom
	cmp	w0, #6
	b.lt	LBB0_25
; %bb.1:
Lloh0:
	adrp	x8, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpabuf_put_u8
	mov	x0, x19
	mov	w1, #1
	bl	_wpabuf_put
	mov	x21, x0
Lloh3:
	adrp	x8, _WPS_DEV_OUI_WFA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WPS_DEV_OUI_WFA@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpabuf_put_be32
	mov	x0, x19
	bl	_wps_build_version
	tbnz	x0, #63, LBB0_25
; %bb.2:
	cbz	w22, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_wpabuf_tailroom
	cmp	w0, #5
	b.lt	LBB0_25
; %bb.4:
Lloh6:
	adrp	x8, _ATTR_WPS_STATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATTR_WPS_STATE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpabuf_put_be16
	mov	x0, x19
	mov	w1, #1
	bl	_wpabuf_put_be16
Lloh9:
	adrp	x8, _WPS_STATE_NOT_CONFIGURED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WPS_STATE_NOT_CONFIGURED@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpabuf_put_u8
LBB0_5:
	tbnz	w23, #31, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_wpabuf_tailroom
	cmp	w0, #6
	b.lt	LBB0_25
; %bb.7:
Lloh12:
	adrp	x8, _ATTR_DEV_PASSWORD_ID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ATTR_DEV_PASSWORD_ID@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpabuf_put_be16
	mov	x0, x19
	mov	w1, #2
	bl	_wpabuf_put_be16
Lloh15:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_wpa_printf
	mov	x0, x19
	mov	x1, x23
	bl	_wpabuf_put_be16
LBB0_8:
	mov	x0, x19
	cbz	w22, LBB0_22
; %bb.9:
	bl	_wpabuf_tailroom
	cmp	w0, #5
	b.lt	LBB0_25
; %bb.10:
Lloh20:
	adrp	x8, _ATTR_RESPONSE_TYPE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ATTR_RESPONSE_TYPE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpabuf_put_be16
	mov	x0, x19
	mov	w1, #1
	bl	_wpabuf_put_be16
Lloh23:
	adrp	x8, _WPS_RESP_ENROLLEE_INFO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _WPS_RESP_ENROLLEE_INFO@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpabuf_put_u8
	ldr	x8, [x20, #8]
	ldr	w1, [x8, #36]
	mov	x0, x19
	bl	_wps_build_uuid_e
	tbnz	x0, #63, LBB0_25
; %bb.11:
Lloh26:
	adrp	x8, _ATTR_MANUFACTURER@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ATTR_MANUFACTURER@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	ldr	x8, [x20, #8]
	ldr	w2, [x8, #32]
	mov	x0, x19
	bl	_p2p_add_wps_string
	tbnz	x0, #63, LBB0_25
; %bb.12:
Lloh29:
	adrp	x8, _ATTR_MODEL_NAME@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ATTR_MODEL_NAME@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	ldr	x8, [x20, #8]
	ldr	w2, [x8, #28]
	mov	x0, x19
	bl	_p2p_add_wps_string
	tbnz	x0, #63, LBB0_25
; %bb.13:
Lloh32:
	adrp	x8, _ATTR_MODEL_NUMBER@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ATTR_MODEL_NUMBER@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	ldr	x8, [x20, #8]
	ldr	w2, [x8, #24]
	mov	x0, x19
	bl	_p2p_add_wps_string
	tbnz	x0, #63, LBB0_25
; %bb.14:
Lloh35:
	adrp	x8, _ATTR_SERIAL_NUMBER@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ATTR_SERIAL_NUMBER@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	ldr	x8, [x20, #8]
	ldr	w2, [x8, #20]
	mov	x0, x19
	bl	_p2p_add_wps_string
	tbnz	x0, #63, LBB0_25
; %bb.15:
	mov	x0, x19
	bl	_wpabuf_tailroom
Lloh38:
	adrp	x22, _WPS_DEV_TYPE_LEN@GOTPAGE
Lloh39:
	ldr	x22, [x22, _WPS_DEV_TYPE_LEN@GOTPAGEOFF]
	ldr	w8, [x22]
	add	w8, w8, #4
	cmp	w0, w8
	b.lt	LBB0_25
; %bb.16:
Lloh40:
	adrp	x8, _ATTR_PRIMARY_DEV_TYPE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ATTR_PRIMARY_DEV_TYPE@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpabuf_put_be16
	ldr	w1, [x22]
	mov	x0, x19
	bl	_wpabuf_put_be16
	ldr	x8, [x20, #8]
	ldr	w1, [x8, #16]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_wpabuf_put_data
Lloh43:
	adrp	x8, _ATTR_DEV_NAME@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ATTR_DEV_NAME@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	ldr	x8, [x20, #8]
	ldr	w2, [x8, #12]
	mov	x0, x19
	bl	_p2p_add_wps_string
	tbnz	x0, #63, LBB0_25
; %bb.17:
	mov	x0, x19
	bl	_wpabuf_tailroom
	cmp	w0, #6
	b.lt	LBB0_25
; %bb.18:
Lloh46:
	adrp	x8, _ATTR_CONFIG_METHODS@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ATTR_CONFIG_METHODS@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpabuf_put_be16
	mov	x0, x19
	mov	w1, #2
	bl	_wpabuf_put_be16
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpabuf_put_be16
	mov	x0, x19
	mov	w1, #0
	mov	x2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_wps_build_wfa_ext
	tbnz	x0, #63, LBB0_25
; %bb.19:
	ldr	x8, [x20, #8]
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_23
; %bb.20:
	mov	x0, x19
	bl	_wpabuf_tailroom
	ldr	w8, [x22]
	ldr	x9, [x20, #8]
	ldr	w9, [x9, #4]
	orr	w10, wzr, #0x4
	madd	w8, w9, w8, w10
	cmp	w0, w8
	b.lt	LBB0_25
; %bb.21:
Lloh49:
	adrp	x8, _ATTR_SECONDARY_DEV_TYPE_LIST@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ATTR_SECONDARY_DEV_TYPE_LIST@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpabuf_put_be16
	ldr	w8, [x22]
	ldr	x9, [x20, #8]
	ldr	w9, [x9, #4]
	mul	w1, w9, w8
	mov	x0, x19
	bl	_wpabuf_put_be16
	ldr	x8, [x20, #8]
	ldr	w9, [x22]
	ldp	w8, w1, [x8, #4]
	mul	w2, w8, w9
	mov	x0, x19
	bl	_wpabuf_put_data
	b	LBB0_23
LBB0_22:
	mov	w1, #0
	mov	x2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_wps_build_wfa_ext
	tbnz	x0, #63, LBB0_25
LBB0_23:
Lloh52:
	adrp	x23, _P2P_MAX_WPS_VENDOR_EXT@GOTPAGE
Lloh53:
	ldr	x23, [x23, _P2P_MAX_WPS_VENDOR_EXT@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_31
; %bb.24:
	mov	x24, #0
Lloh54:
	adrp	x25, _ATTR_VENDOR_EXT@GOTPAGE
Lloh55:
	ldr	x25, [x25, _ATTR_VENDOR_EXT@GOTPAGEOFF]
	b	LBB0_28
LBB0_25:
	mov	w0, #-1
LBB0_26:
	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
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x23]
	cmp	x24, x8
	b.ge	LBB0_31
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x8, [x8, x24, lsl #3]
	cbz	x8, LBB0_31
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	mov	x0, x19
	bl	_wpabuf_tailroom
	mov	x22, x0
	ldr	x8, [x20]
	ldr	x0, [x8, x24, lsl #3]
	bl	_wpabuf_len
	add	w8, w0, #4
	cmp	w22, w8
	b.lt	LBB0_27
; %bb.30:                               ;   in Loop: Header=BB0_28 Depth=1
	ldr	w1, [x25]
	mov	x0, x19
	bl	_wpabuf_put_be16
	ldr	x8, [x20]
	lsl	x22, x24, #3
	ldr	x0, [x8, x22]
	bl	_wpabuf_len
	mov	x1, x0
	mov	x0, x19
	bl	_wpabuf_put_be16
	ldr	x8, [x20]
	ldr	x1, [x8, x22]
	mov	x0, x19
	bl	_wpabuf_put_buf
	b	LBB0_27
LBB0_31:
	mov	x0, x19
	mov	x1, x21
	bl	_p2p_buf_update_ie_hdr
	mov	w0, #0
	b	LBB0_26
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_EID_VENDOR_SPECIFIC,4,2   ; @WLAN_EID_VENDOR_SPECIFIC
	.comm	_WPS_DEV_OUI_WFA,4,2            ; @WPS_DEV_OUI_WFA
	.comm	_ATTR_WPS_STATE,4,2             ; @ATTR_WPS_STATE
	.comm	_WPS_STATE_NOT_CONFIGURED,4,2   ; @WPS_STATE_NOT_CONFIGURED
	.comm	_ATTR_DEV_PASSWORD_ID,4,2       ; @ATTR_DEV_PASSWORD_ID
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"P2P: WPS IE Device Password ID: %d"

	.comm	_ATTR_RESPONSE_TYPE,4,2         ; @ATTR_RESPONSE_TYPE
	.comm	_WPS_RESP_ENROLLEE_INFO,4,2     ; @WPS_RESP_ENROLLEE_INFO
	.comm	_ATTR_MANUFACTURER,4,2          ; @ATTR_MANUFACTURER
	.comm	_ATTR_MODEL_NAME,4,2            ; @ATTR_MODEL_NAME
	.comm	_ATTR_MODEL_NUMBER,4,2          ; @ATTR_MODEL_NUMBER
	.comm	_ATTR_SERIAL_NUMBER,4,2         ; @ATTR_SERIAL_NUMBER
	.comm	_WPS_DEV_TYPE_LEN,4,2           ; @WPS_DEV_TYPE_LEN
	.comm	_ATTR_PRIMARY_DEV_TYPE,4,2      ; @ATTR_PRIMARY_DEV_TYPE
	.comm	_ATTR_DEV_NAME,4,2              ; @ATTR_DEV_NAME
	.comm	_ATTR_CONFIG_METHODS,4,2        ; @ATTR_CONFIG_METHODS
	.comm	_ATTR_SECONDARY_DEV_TYPE_LIST,4,2 ; @ATTR_SECONDARY_DEV_TYPE_LIST
	.comm	_P2P_MAX_WPS_VENDOR_EXT,4,2     ; @P2P_MAX_WPS_VENDOR_EXT
	.comm	_ATTR_VENDOR_EXT,4,2            ; @ATTR_VENDOR_EXT
.subsections_via_symbols
