	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_build_assoc_resp_ie        ## -- Begin function wps_build_assoc_resp_ie
	.p2align	4, 0x90
_wps_build_assoc_resp_ie:               ## @wps_build_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movl	$100, %edi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	_WLAN_EID_VENDOR_SPECIFIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wpabuf_put_u8
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_wpabuf_put
	movq	%rax, %r14
	movq	_WPS_DEV_OUI_WFA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wpabuf_put_be32
	movq	%rbx, %rdi
	callq	_wps_build_version
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	_WPS_RESP_AP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wps_build_resp_type
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_wps_build_wfa_ext
	testq	%rax, %rax
	je	LBB0_7
LBB0_4:
	movq	%rbx, %rdi
	callq	_wpabuf_free
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	callq	_wpabuf_len
	addq	$-2, %rax
	movq	%rax, (%r14)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS: Building WPS IE for (Re)Association Response"

	.comm	_WLAN_EID_VENDOR_SPECIFIC,4,2   ## @WLAN_EID_VENDOR_SPECIFIC
	.comm	_WPS_DEV_OUI_WFA,4,2            ## @WPS_DEV_OUI_WFA
	.comm	_WPS_RESP_AP,4,2                ## @WPS_RESP_AP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_build_assoc_resp_ie        ; -- Begin function wps_build_assoc_resp_ie
	.p2align	2
_wps_build_assoc_resp_ie:               ; @wps_build_assoc_resp_ie
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w0, #100
	bl	_wpabuf_alloc
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.1:
Lloh5:
	adrp	x8, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpabuf_put_u8
	mov	x0, x19
	mov	w1, #1
	bl	_wpabuf_put
	mov	x20, x0
Lloh8:
	adrp	x8, _WPS_DEV_OUI_WFA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WPS_DEV_OUI_WFA@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpabuf_put_be32
	mov	x0, x19
	bl	_wps_build_version
	cbnz	x0, LBB0_4
; %bb.2:
Lloh11:
	adrp	x8, _WPS_RESP_AP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WPS_RESP_AP@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wps_build_resp_type
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	mov	x2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_wps_build_wfa_ext
	cbz	x0, LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_wpabuf_free
	mov	x19, #0
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x19
	bl	_wpabuf_len
	sub	x8, x0, #2
	str	x8, [x20]
	b	LBB0_5
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS: Building WPS IE for (Re)Association Response"

	.comm	_WLAN_EID_VENDOR_SPECIFIC,4,2   ; @WLAN_EID_VENDOR_SPECIFIC
	.comm	_WPS_DEV_OUI_WFA,4,2            ; @WPS_DEV_OUI_WFA
	.comm	_WPS_RESP_AP,4,2                ; @WPS_RESP_AP
.subsections_via_symbols
