	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_ie_encapsulate             ## -- Begin function wps_ie_encapsulate
	.p2align	4, 0x90
_wps_ie_encapsulate:                    ## @wps_ie_encapsulate
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_wpabuf_len
                                        ## kill: def $eax killed $eax def $rax
	leal	100(%rax), %edi
	callq	_wpabuf_alloc
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_wpabuf_head
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_wpabuf_len
	testl	%eax, %eax
	jle	LBB0_4
## %bb.2:
	cltq
	leaq	(%r12,%rax,4), %r13
	movq	_WPS_DEV_OUI_WFA@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rbx
	subq	%r12, %rbx
	sarq	$2, %rbx
	cmpq	$251, %rbx
	movl	$251, %eax
	cmovaeq	%rax, %rbx
	movq	_WLAN_EID_VENDOR_SPECIFIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_wpabuf_put_u8
	leal	4(%rbx), %esi
	movq	%r15, %rdi
	callq	_wpabuf_put_u8
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_wpabuf_put_be32
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_wpabuf_put_data
	leaq	(%r12,%rbx,4), %r12
	cmpq	%r12, %r13
	ja	LBB0_3
LBB0_4:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_wpabuf_free
	movq	%r15, %rax
	addq	$8, %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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_ie_encapsulate             ; -- Begin function wps_ie_encapsulate
	.p2align	2
_wps_ie_encapsulate:                    ; @wps_ie_encapsulate
	.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	x19, x0
	bl	_wpabuf_len
	add	w0, w0, #100
	bl	_wpabuf_alloc
	mov	x20, x0
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_wpabuf_head
	mov	x21, x0
	mov	x0, x19
	bl	_wpabuf_len
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	mov	w23, #251
Lloh0:
	adrp	x24, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGE
Lloh1:
	ldr	x24, [x24, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGEOFF]
Lloh2:
	adrp	x25, _WPS_DEV_OUI_WFA@GOTPAGE
Lloh3:
	ldr	x25, [x25, _WPS_DEV_OUI_WFA@GOTPAGEOFF]
	add	x26, x21, w0, sxtw #2
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	x8, x26, x21
	asr	x8, x8, #2
	cmp	x8, #251
	csel	x22, x8, x23, lo
	ldr	w1, [x24]
	mov	x0, x20
	bl	_wpabuf_put_u8
	add	w1, w22, #4
	mov	x0, x20
	bl	_wpabuf_put_u8
	ldr	w1, [x25]
	mov	x0, x20
	bl	_wpabuf_put_be32
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_wpabuf_put_data
	add	x21, x21, x22, lsl #2
	cmp	x26, x21
	b.hi	LBB0_3
LBB0_4:
	mov	x0, x19
	bl	_wpabuf_free
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.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
.subsections_via_symbols
