	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_parse_msg                  ## -- Begin function wps_parse_msg
	.p2align	4, 0x90
_wps_parse_msg:                         ## @wps_parse_msg
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%r12d, %r12d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_os_memset
	movq	%r14, %rdi
	callq	_wpabuf_head
	movq	%rax, %rbx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_wpabuf_len
	testl	%eax, %eax
	jle	LBB0_10
## %bb.1:
	cltq
	leaq	(%rbx,%rax,8), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdx
	subq	%rbx, %rdx
	cmpq	$31, %rdx
	jle	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_WPA_GET_BE16
	movl	%eax, %r13d
	leaq	16(%rbx), %rdi
	callq	_WPA_GET_BE16
	movl	%eax, %r14d
	addq	$32, %rbx
	movq	_MSG_EXCESSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_wpa_printf
	movslq	%r14d, %r15
	movq	%r12, %rax
	subq	%rbx, %rax
	sarq	$3, %rax
	cmpq	%r15, %rax
	jl	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	callq	_wps_set_attr
	testq	%rax, %rax
	js	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rbx,%r15,8), %rbx
	cmpq	%r12, %rbx
	jb	LBB0_2
## %bb.6:
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_7:
	sarq	$3, %rdx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_9
LBB0_8:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_wpa_hexdump_buf
LBB0_9:
	movl	$-1, %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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: Invalid message - %lu bytes remaining"

	.comm	_MSG_EXCESSIVE,4,2              ## @MSG_EXCESSIVE
L_.str.1:                               ## @.str.1
	.asciz	"WPS: attr type=0x%x len=%u"

L_.str.2:                               ## @.str.2
	.asciz	"WPS: Attribute overflow"

	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.3:                               ## @.str.3
	.asciz	"WPS: Message data"

	.comm	_ATTR_NETWORK_KEY,4,2           ## @ATTR_NETWORK_KEY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_parse_msg                  ; -- Begin function wps_parse_msg
	.p2align	2
_wps_parse_msg:                         ; @wps_parse_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x19, x0
	mov	x0, x1
	mov	w1, #0
	mov	w2, #4
	bl	_os_memset
	mov	x0, x19
	bl	_wpabuf_head
	mov	x22, x0
	mov	x0, x19
	bl	_wpabuf_len
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.1:
	add	x25, x22, w0, sxtw #3
Lloh0:
	adrp	x26, _MSG_EXCESSIVE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MSG_EXCESSIVE@GOTPAGEOFF]
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	x8, x25, x22
	cmp	x8, #31
	b.le	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_WPA_GET_BE16
	mov	x23, x0
	add	x0, x22, #16
	bl	_WPA_GET_BE16
	mov	x24, x0
	add	x22, x22, #32
	ldr	w0, [x26]
	stp	x23, x24, [sp]
	mov	x1, x21
	bl	_wpa_printf
	sxtw	x24, w24
	sub	x8, x25, x22
	cmp	x24, x8, asr #3
	b.gt	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	mov	x3, x24
	bl	_wps_set_attr
	tbnz	x0, #63, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, x24, lsl #3
	cmp	x22, x25
	b.lo	LBB0_2
LBB0_6:
	mov	w0, #0
	b	LBB0_10
LBB0_7:
	asr	x8, x8, #3
Lloh4:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	b	LBB0_9
LBB0_8:
Lloh9:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
Lloh14:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x19
	bl	_wpa_hexdump_buf
LBB0_9:
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS: Invalid message - %lu bytes remaining"

	.comm	_MSG_EXCESSIVE,4,2              ; @MSG_EXCESSIVE
l_.str.1:                               ; @.str.1
	.asciz	"WPS: attr type=0x%x len=%u"

l_.str.2:                               ; @.str.2
	.asciz	"WPS: Attribute overflow"

	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.3:                               ; @.str.3
	.asciz	"WPS: Message data"

	.comm	_ATTR_NETWORK_KEY,4,2           ; @ATTR_NETWORK_KEY
.subsections_via_symbols
