	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_init                       ## -- Begin function wps_init
	.p2align	4, 0x90
_wps_init:                              ## @wps_init
	.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
	movq	%rdi, %r14
	movl	$136, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_32
## %bb.1:
	movq	%rax, %rbx
	movq	64(%r14), %rax
	movq	%rax, 128(%rbx)
	movq	72(%r14), %rcx
	movq	%rcx, 80(%rbx)
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rcx
	addq	$120, %rcx
	jmp	LBB0_5
LBB0_4:
	movl	116(%rbx), %edi
	movl	28(%rax), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_os_memcpy
	movq	%rbx, %rcx
	addq	$112, %rcx
	movq	64(%r14), %rax
LBB0_5:
	movl	(%rcx), %edi
	movl	24(%rax), %esi
	movq	_WPS_UUID_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_os_memcpy
	movq	80(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.6:
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	movl	8(%r14), %esi
	callq	_os_memdup
	movq	%rax, 56(%rbx)
	testq	%rax, %rax
	je	LBB0_31
## %bb.7:
	movl	8(%r14), %ecx
	movl	%ecx, 8(%rbx)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdx
	callq	_wpa_hexdump_key
LBB0_8:
	movq	56(%r14), %rax
	movq	%rax, 96(%rbx)
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	_DEV_PW_PUSHBUTTON@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	56(%rbx), %rdi
	movl	8(%rbx), %esi
	callq	_bin_clear_free
	leaq	L_.str.1(%rip), %rdi
	callq	_os_strdup
	movq	%rax, 56(%rbx)
	testq	%rax, %rax
	je	LBB0_31
## %bb.10:
	movl	$8, 8(%rbx)
LBB0_11:
	cmpq	$0, 80(%rbx)
	jne	LBB0_13
## %bb.12:
	movq	_SEND_M1@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_RECV_M1@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	movl	%eax, 88(%rbx)
	movq	48(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_21
## %bb.15:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_hexdump_buf
	movq	48(%r14), %rdi
	leaq	-32(%rbp), %rsi
	callq	_wps_parse_msg
	testq	%rax, %rax
	js	LBB0_18
## %bb.16:
	movq	-32(%rbp), %rax
	movl	(%r15), %edi
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movl	(%rax), %edx
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	-32(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	jmp	LBB0_21
LBB0_18:
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_20
LBB0_19:
	leaq	L_.str.4(%rip), %rsi
LBB0_20:
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_21:
	movq	40(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.22:
	movl	$4, %esi
	callq	_os_memdup
	movq	%rax, 64(%rbx)
	testq	%rax, %rax
	je	LBB0_30
LBB0_23:
	movl	32(%r14), %esi
	testl	%esi, %esi
	je	LBB0_25
## %bb.24:
	movl	52(%rbx), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_os_memcpy
LBB0_25:
	movl	28(%r14), %esi
	testl	%esi, %esi
	je	LBB0_27
## %bb.26:
	movl	48(%rbx), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_os_memcpy
LBB0_27:
	movl	24(%r14), %eax
	movl	%eax, 44(%rbx)
	movl	20(%r14), %eax
	movl	%eax, 40(%rbx)
	movl	16(%r14), %esi
	testl	%esi, %esi
	je	LBB0_29
## %bb.28:
	movl	36(%rbx), %edi
	movq	_WPS_OOB_PUBKEY_HASH_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_os_memcpy
	movl	$1, 28(%rbx)
LBB0_29:
	movl	12(%r14), %eax
	movl	%eax, 32(%rbx)
	jmp	LBB0_33
LBB0_30:
	movq	56(%rbx), %rdi
	movl	8(%rbx), %esi
	callq	_bin_clear_free
LBB0_31:
	movq	%rbx, %rdi
	callq	_os_free
LBB0_32:
	xorl	%ebx, %ebx
LBB0_33:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WPS_UUID_LEN,4,2               ## @WPS_UUID_LEN
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS: AP PIN dev_password"

	.comm	_DEV_PW_PUSHBUTTON,8,3          ## @DEV_PW_PUSHBUTTON
L_.str.1:                               ## @.str.1
	.asciz	"00000000"

	.comm	_RECV_M1,4,2                    ## @RECV_M1
	.comm	_SEND_M1,4,2                    ## @SEND_M1
L_.str.2:                               ## @.str.2
	.asciz	"WPS: WPS IE from (Re)AssocReq"

L_.str.3:                               ## @.str.3
	.asciz	"WPS: Failed to parse WPS IE from (Re)AssocReq"

L_.str.4:                               ## @.str.4
	.asciz	"WPS: No Request Type attribute in (Re)AssocReq WPS IE"

L_.str.5:                               ## @.str.5
	.asciz	"WPS: Request Type (from WPS IE in (Re)AssocReq WPS IE): %d"

	.comm	_WPS_OOB_PUBKEY_HASH_LEN,4,2    ## @WPS_OOB_PUBKEY_HASH_LEN
	.comm	_DEV_PW_NFC_CONNECTION_HANDOVER,8,3 ## @DEV_PW_NFC_CONNECTION_HANDOVER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_init                       ; -- Begin function wps_init
	.p2align	2
_wps_init:                              ; @wps_init
	.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
	mov	x20, x0
	mov	w0, #136
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_26
; %bb.1:
	ldp	x8, x9, [x20, #64]
	str	x8, [x19, #128]
	str	x9, [x19, #80]
	cbz	x9, LBB0_3
; %bb.2:
	add	x9, x19, #120
	b	LBB0_4
LBB0_3:
	ldr	w0, [x19, #116]
	ldr	w1, [x8, #28]
Lloh0:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_os_memcpy
	add	x9, x19, #112
	ldr	x8, [x20, #64]
LBB0_4:
	ldr	w0, [x9]
	ldr	w1, [x8, #24]
Lloh3:
	adrp	x8, _WPS_UUID_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WPS_UUID_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_os_memcpy
	ldr	x0, [x20, #80]
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x8, [x20]
	str	x8, [x19]
	ldr	w1, [x20, #8]
	bl	_os_memdup
	str	x0, [x19, #56]
	cbz	x0, LBB0_25
; %bb.6:
	mov	x2, x0
	ldr	w3, [x20, #8]
	str	w3, [x19, #8]
Lloh6:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_hexdump_key
LBB0_7:
	ldr	x8, [x20, #56]
	str	x8, [x19, #96]
	cbz	x8, LBB0_10
; %bb.8:
Lloh11:
	adrp	x8, _DEV_PW_PUSHBUTTON@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DEV_PW_PUSHBUTTON@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x19]
	ldr	x0, [x19, #56]
	ldr	w1, [x19, #8]
	bl	_bin_clear_free
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_os_strdup
	str	x0, [x19, #56]
	cbz	x0, LBB0_25
; %bb.9:
	mov	w8, #8
	str	w8, [x19, #8]
LBB0_10:
Lloh16:
	adrp	x8, _RECV_M1@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RECV_M1@GOTPAGEOFF]
Lloh18:
	adrp	x9, _SEND_M1@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SEND_M1@GOTPAGEOFF]
	ldr	x10, [x19, #80]
	cmp	x10, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x19, #88]
	ldr	x2, [x20, #48]
	cbz	x2, LBB0_15
; %bb.11:
Lloh20:
	adrp	x21, _MSG_DEBUG@GOTPAGE
Lloh21:
	ldr	x21, [x21, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_hexdump_buf
	ldr	x0, [x20, #48]
	add	x1, sp, #8
	bl	_wps_parse_msg
	tbnz	x0, #63, LBB0_14
; %bb.12:
	ldr	x8, [sp, #8]
	ldr	w0, [x21]
	cbz	x8, LBB0_27
; %bb.13:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [sp, #8]
	ldr	w8, [x8]
	str	w8, [x19, #72]
	ldr	x0, [x20, #40]
	cbnz	x0, LBB0_16
	b	LBB0_17
LBB0_14:
	ldr	w0, [x21]
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
LBB0_15:
	ldr	x0, [x20, #40]
	cbz	x0, LBB0_17
LBB0_16:
	mov	w1, #4
	bl	_os_memdup
	str	x0, [x19, #64]
	cbz	x0, LBB0_24
LBB0_17:
	ldr	w1, [x20, #32]
Lloh28:
	adrp	x21, _ETH_ALEN@GOTPAGE
Lloh29:
	ldr	x21, [x21, _ETH_ALEN@GOTPAGEOFF]
	cbz	w1, LBB0_19
; %bb.18:
	ldr	w0, [x19, #52]
	ldr	w2, [x21]
	bl	_os_memcpy
LBB0_19:
	ldr	w1, [x20, #28]
	cbz	w1, LBB0_21
; %bb.20:
	ldr	w0, [x19, #48]
	ldr	w2, [x21]
	bl	_os_memcpy
LBB0_21:
	ldur	d0, [x20, #20]
	str	d0, [x19, #40]
	ldr	w1, [x20, #16]
	cbz	w1, LBB0_23
; %bb.22:
	ldr	w0, [x19, #36]
Lloh30:
	adrp	x8, _WPS_OOB_PUBKEY_HASH_LEN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _WPS_OOB_PUBKEY_HASH_LEN@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	bl	_os_memcpy
	mov	w8, #1
	str	w8, [x19, #28]
LBB0_23:
	ldr	w8, [x20, #12]
	str	w8, [x19, #32]
	b	LBB0_26
LBB0_24:
	ldr	x0, [x19, #56]
	ldr	w1, [x19, #8]
	bl	_bin_clear_free
LBB0_25:
	mov	x0, x19
	bl	_os_free
	mov	x19, #0
LBB0_26:
	mov	x0, x19
	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
LBB0_27:
Lloh33:
	adrp	x1, l_.str.4@PAGE
Lloh34:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	ldr	x0, [x20, #40]
	cbnz	x0, LBB0_16
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_WPS_UUID_LEN,4,2               ; @WPS_UUID_LEN
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS: AP PIN dev_password"

	.comm	_DEV_PW_PUSHBUTTON,8,3          ; @DEV_PW_PUSHBUTTON
l_.str.1:                               ; @.str.1
	.asciz	"00000000"

	.comm	_RECV_M1,4,2                    ; @RECV_M1
	.comm	_SEND_M1,4,2                    ; @SEND_M1
l_.str.2:                               ; @.str.2
	.asciz	"WPS: WPS IE from (Re)AssocReq"

l_.str.3:                               ; @.str.3
	.asciz	"WPS: Failed to parse WPS IE from (Re)AssocReq"

l_.str.4:                               ; @.str.4
	.asciz	"WPS: No Request Type attribute in (Re)AssocReq WPS IE"

l_.str.5:                               ; @.str.5
	.asciz	"WPS: Request Type (from WPS IE in (Re)AssocReq WPS IE): %d"

	.comm	_WPS_OOB_PUBKEY_HASH_LEN,4,2    ; @WPS_OOB_PUBKEY_HASH_LEN
	.comm	_DEV_PW_NFC_CONNECTION_HANDOVER,8,3 ; @DEV_PW_NFC_CONNECTION_HANDOVER
.subsections_via_symbols
