	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function wps_attr_parse_tests
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_wps_attr_parse_tests:                  ## @wps_attr_parse_tests
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_wps_attr_parse_test_cases@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_19
## %bb.1:
	movl	$12, %r14d
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_5
LBB0_2:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	-80(%rbp), %eax
	movq	_MAX_CRED_COUNT@GOTPCREL(%rip), %rcx
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	(%rcx), %eax
	movl	$-1, %eax
	cmovnel	%eax, %r15d
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_wpabuf_free
	incq	%r12
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$16, %r14
	cmpq	%rax, %r12
	jae	LBB0_19
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %r13
	movl	(%r13,%r14), %edi
	movq	%r14, %rbx
	callq	_os_strlen
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %r15
	movq	%r15, %rdi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_18
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r13,%rbx), %r14d
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%rax, %r12
	callq	_wpabuf_put
	movl	%r14d, %edi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_hexstr2bin
	testq	%rax, %rax
	js	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	leaq	-112(%rbp), %rsi
	callq	_wps_parse_msg
	cmpq	-12(%r13,%rbx), %rax
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movq	%rbx, %r14
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13,%r14), %ecx
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %r15d
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	-4(%r13,%r14), %eax
	decl	%eax
	cmpl	$5, %eax
	movq	_wps_attr_parse_test_cases@GOTPCREL(%rip), %rbx
	ja	LBB0_4
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$1, -72(%rbp)
	movl	$0, %eax
	sbbl	%eax, %eax
	cmpl	$1, -76(%rbp)
	movl	$0, %ecx
	sbbl	%ecx, %ecx
	orl	%r15d, %ecx
	orl	%eax, %ecx
	movl	%ecx, %r15d
	jmp	LBB0_4
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$1, -84(%rbp)
	movl	$0, %eax
	sbbl	%eax, %eax
	orl	%eax, %r15d
	jmp	LBB0_4
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-88(%rbp), %eax
	movq	_MAX_REQ_DEV_TYPE_COUNT@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-92(%rbp), %eax
	movq	_MAX_WPS_PARSE_VENDOR_EXT@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movdqu	-108(%rbp), %xmm0
	pcmpeqd	LCPI0_0(%rip), %xmm0
	movmskps	%xmm0, %eax
	cmpl	$1, -112(%rbp)
	movl	$0, %ecx
	sbbl	%ecx, %ecx
	orl	%r15d, %ecx
	negl	%eax
	movl	$0, %r15d
	sbbl	%r15d, %r15d
	orl	%ecx, %r15d
	jmp	LBB0_4
LBB0_17:
	movq	%r12, %rdi
	callq	_wpabuf_free
LBB0_18:
	movl	$-1, %r15d
LBB0_19:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_2
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS attribute parsing tests"

	.comm	_wps_attr_parse_test_cases,8,3  ## @wps_attr_parse_test_cases
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"WPS attribute parsing test %u failed: %s"

	.comm	_MAX_CRED_COUNT,4,2             ## @MAX_CRED_COUNT
	.comm	_MAX_REQ_DEV_TYPE_COUNT,4,2     ## @MAX_REQ_DEV_TYPE_COUNT
	.comm	_MAX_WPS_PARSE_VENDOR_EXT,4,2   ## @MAX_WPS_PARSE_VENDOR_EXT
	.no_dead_strip	_wps_attr_parse_tests
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wps_attr_parse_tests
_wps_attr_parse_tests:                  ; @wps_attr_parse_tests
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
Lloh5:
	adrp	x24, _wps_attr_parse_test_cases@GOTPAGE
Lloh6:
	ldr	x24, [x24, _wps_attr_parse_test_cases@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_17
; %bb.1:
	mov	x25, #0
	mov	x26, #0
	mov	w19, #0
Lloh7:
	adrp	x28, lJTI0_0@PAGE
Lloh8:
	add	x28, x28, lJTI0_0@PAGEOFF
	b	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #64]
Lloh9:
	adrp	x9, _MAX_CRED_COUNT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MAX_CRED_COUNT@GOTPAGEOFF]
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x9]
	cmp	w8, w9
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	csinv	w19, w19, wzr, eq
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_wpabuf_free
	add	x26, x26, #1
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	add	x25, x25, #16
	cmp	x26, w0, uxtw
	b.hs	LBB0_20
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x24]
	add	x20, x27, x25
	ldr	w0, [x20, #12]
	bl	_os_strlen
	cmp	w0, #0
	cinc	w8, w0, lt
	sbfx	x22, x8, #1, #31
	mov	x0, x22
	bl	_wpabuf_alloc
	cbz	x0, LBB0_19
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x21, x0
	ldr	w23, [x20, #12]
	mov	x1, x22
	bl	_wpabuf_put
	mov	x1, x0
	mov	x0, x23
	mov	x2, x22
	bl	_hexstr2bin
	tbnz	x0, #63, LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x1, sp, #32
	mov	x0, x21
	bl	_wps_parse_msg
	ldr	x8, [x27, x25]
	cmp	x0, x8
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh11:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w8, [x20, #12]
	stp	x26, x8, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	w19, #-1
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x27, x25
	ldr	w8, [x8, #8]
	sub	w8, w8, #1
	cmp	w8, #5
	b.hi	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	adr	x9, LBB0_2
	ldrb	w10, [x28, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	w9, w8, [sp, #68]
	cmp	w9, #0
	ccmp	w8, #0, #4, ne
	csinv	w19, w19, wzr, ne
	b	LBB0_5
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #60]
	cmp	w8, #0
	csinv	w19, w19, wzr, ne
	b	LBB0_5
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #56]
Lloh16:
	adrp	x9, _MAX_REQ_DEV_TYPE_COUNT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MAX_REQ_DEV_TYPE_COUNT@GOTPAGEOFF]
	b	LBB0_3
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #52]
Lloh18:
	adrp	x9, _MAX_WPS_PARSE_VENDOR_EXT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MAX_WPS_PARSE_VENDOR_EXT@GOTPAGEOFF]
	b	LBB0_3
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	ldur	q0, [sp, #36]
	cmeq.4s	v0, v0, #0
	xtn.4h	v0, v0
	umov.h	w8, v0[0]
	umov.h	w9, v0[1]
	and	w9, w9, #0x1
	bfi	w8, w9, #1, #1
	umov.h	w9, v0[2]
	and	w9, w9, #0x1
	bfi	w8, w9, #2, #1
	umov.h	w9, v0[3]
	bfi	w8, w9, #3, #29
	and	w8, w8, #0xf
	ldr	w9, [sp, #32]
	cmp	w9, #0
	ccmp	w8, #0, #0, ne
	b	LBB0_4
LBB0_17:
	mov	w19, #0
	b	LBB0_20
LBB0_18:
	mov	x0, x21
	bl	_wpabuf_free
LBB0_19:
	mov	w19, #-1
LBB0_20:
	mov	x0, x19
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS attribute parsing tests"

	.comm	_wps_attr_parse_test_cases,8,3  ; @wps_attr_parse_test_cases
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"WPS attribute parsing test %u failed: %s"

	.comm	_MAX_CRED_COUNT,4,2             ; @MAX_CRED_COUNT
	.comm	_MAX_REQ_DEV_TYPE_COUNT,4,2     ; @MAX_REQ_DEV_TYPE_COUNT
	.comm	_MAX_WPS_PARSE_VENDOR_EXT,4,2   ; @MAX_WPS_PARSE_VENDOR_EXT
	.no_dead_strip	_wps_attr_parse_tests
.subsections_via_symbols
