	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostapd_wps_set_vendor_ext
_hostapd_wps_set_vendor_ext:            ## @hostapd_wps_set_vendor_ext
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MAX_WPS_VENDOR_EXTENSIONS@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_8
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_wpabuf_free
	movq	(%r15), %rax
	movq	$0, (%rax,%rbx,8)
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_wpabuf_dup
	movq	(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	(%r15), %rax
	cmpq	$0, (%rax,%rbx,8)
	jne	LBB0_7
## %bb.4:
	movl	$-1, %r14d
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.5:
	movq	-8(%rax,%rbx,8), %rdi
	callq	_wpabuf_free
	cmpq	$2, %rbx
	jb	LBB0_9
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	-16(%rax,%rbx,8), %rdi
	callq	_wpabuf_free
	decq	%rbx
	cmpq	$1, %rbx
	jg	LBB0_6
	jmp	LBB0_9
LBB0_8:
	xorl	%r14d, %r14d
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_WPS_VENDOR_EXTENSIONS,4,2  ## @MAX_WPS_VENDOR_EXTENSIONS
	.no_dead_strip	_hostapd_wps_set_vendor_ext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hostapd_wps_set_vendor_ext
_hostapd_wps_set_vendor_ext:            ; @hostapd_wps_set_vendor_ext
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x22, _MAX_WPS_VENDOR_EXTENSIONS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAX_WPS_VENDOR_EXTENSIONS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x21, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x22]
	cmp	x21, x8
	b.ge	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	lsl	x23, x21, #3
	ldr	x0, [x8, x23]
	bl	_wpabuf_free
	ldr	x8, [x19]
	str	xzr, [x8, x23]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x0, [x8, x23]
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_wpabuf_dup
	ldr	x8, [x19]
	str	x0, [x8, x23]
	ldr	x8, [x19]
	ldr	x9, [x8, x23]
	cbnz	x9, LBB0_2
; %bb.5:
	cbz	w21, LBB0_8
; %bb.6:
	add	x8, x8, x21, lsl #3
	ldur	x0, [x8, #-8]
	bl	_wpabuf_free
	cmp	x21, #2
	b.lo	LBB0_8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x8, x8, x21, lsl #3
	ldur	x0, [x8, #-16]
	bl	_wpabuf_free
	sub	x21, x21, #1
	cmp	x21, #1
	b.gt	LBB0_7
LBB0_8:
	mov	w0, #-1
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_WPS_VENDOR_EXTENSIONS,4,2  ; @MAX_WPS_VENDOR_EXTENSIONS
	.no_dead_strip	_hostapd_wps_set_vendor_ext
.subsections_via_symbols
