	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_parse_vendor_ext
_wps_parse_vendor_ext:                  ## @wps_parse_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$2, %edx
	jg	LBB0_2
## %bb.1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_9
LBB0_2:
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_WPA_GET_BE24
	cmpl	$128, %eax
	jne	LBB0_3
## %bb.10:
	addq	$12, %r15
	addl	$-3, %ebx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wps_parse_vendor_ext_wfa       ## TAILCALL
LBB0_3:
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_WPS_MAX_VENDOR_EXT_LEN@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jge	LBB0_5
## %bb.4:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	jmp	LBB0_7
LBB0_5:
	movslq	(%r14), %rax
	movq	_MAX_WPS_PARSE_VENDOR_EXT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpl	%edx, %eax
	jge	LBB0_6
## %bb.8:
	movq	16(%r14), %rcx
	movq	%r15, (%rcx,%rax,8)
	movq	8(%r14), %rcx
	movl	%ebx, (%rcx,%rax,4)
	incl	(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_7:
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS: Skip invalid Vendor Extension"

	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.1:                               ## @.str.1
	.asciz	"WPS: Unknown Vendor Extension (Vendor ID %u)"

	.comm	_WPS_MAX_VENDOR_EXT_LEN,4,2     ## @WPS_MAX_VENDOR_EXT_LEN
L_.str.2:                               ## @.str.2
	.asciz	"WPS: Too long Vendor Extension (%u)"

	.comm	_MAX_WPS_PARSE_VENDOR_EXT,4,2   ## @MAX_WPS_PARSE_VENDOR_EXT
L_.str.3:                               ## @.str.3
	.asciz	"WPS: Skipped Vendor Extension attribute (max %d vendor extensions)"

	.no_dead_strip	_wps_parse_vendor_ext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wps_parse_vendor_ext
_wps_parse_vendor_ext:                  ; @wps_parse_vendor_ext
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	cmp	w2, #2
	b.gt	LBB0_2
; %bb.1:
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, #0
	b	LBB0_10
LBB0_2:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_WPA_GET_BE24
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #128
	b.ne	LBB0_4
; %bb.3:
	add	x1, x21, #12
	sub	w2, w19, #3
	mov	x0, x20
	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
	add	sp, sp, #64
	b	_wps_parse_vendor_ext_wfa
LBB0_4:
Lloh5:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	x0, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_wpa_printf
Lloh10:
	adrp	x8, _WPS_MAX_VENDOR_EXT_LEN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WPS_MAX_VENDOR_EXT_LEN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ge	LBB0_6
; %bb.5:
Lloh13:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_6:
	ldrsw	x8, [x20]
Lloh18:
	adrp	x9, _MAX_WPS_PARSE_VENDOR_EXT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MAX_WPS_PARSE_VENDOR_EXT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_8
; %bb.7:
	mov	w0, #0
	ldr	x9, [x20, #16]
	str	x21, [x9, x8, lsl #3]
	ldr	x9, [x20, #8]
	str	w19, [x9, x8, lsl #2]
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	b	LBB0_10
LBB0_8:
Lloh21:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	str	x9, [sp]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_9:
	bl	_wpa_printf
	mov	w0, #-1
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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS: Skip invalid Vendor Extension"

	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.1:                               ; @.str.1
	.asciz	"WPS: Unknown Vendor Extension (Vendor ID %u)"

	.comm	_WPS_MAX_VENDOR_EXT_LEN,4,2     ; @WPS_MAX_VENDOR_EXT_LEN
l_.str.2:                               ; @.str.2
	.asciz	"WPS: Too long Vendor Extension (%u)"

	.comm	_MAX_WPS_PARSE_VENDOR_EXT,4,2   ; @MAX_WPS_PARSE_VENDOR_EXT
l_.str.3:                               ; @.str.3
	.asciz	"WPS: Skipped Vendor Extension attribute (max %d vendor extensions)"

	.no_dead_strip	_wps_parse_vendor_ext
.subsections_via_symbols
