	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_registrar_add_pin          ## -- Begin function wps_registrar_add_pin
	.p2align	4, 0x90
_wps_registrar_add_pin:                 ## @wps_registrar_add_pin
	.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
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, %r14
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	movl	$48, %edi
	callq	_os_zalloc
	movl	$-1, %ebx
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	%rax, %r15
	testq	%r13, %r13
	movq	%r13, %rbx
	je	LBB0_3
## %bb.2:
	movl	44(%r15), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_os_memcpy
LBB0_3:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	movq	%r12, %r13
	je	LBB0_4
## %bb.5:
	movl	40(%r15), %edi
	movq	_WPS_UUID_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_os_memcpy
	jmp	LBB0_6
LBB0_4:
	movl	$1, (%r15)
LBB0_6:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_os_memdup
	movq	%rax, 32(%r15)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%r14, 8(%r15)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	movq	%r14, %r12
	movl	%eax, %r14d
	je	LBB0_10
## %bb.9:
	movq	_PIN_EXPIRES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%r15)
	leaq	20(%r15), %rdi
	callq	_os_get_reltime
	addl	%r14d, 20(%r15)
LBB0_10:
	cmpl	$0, (%r15)
	je	LBB0_12
## %bb.11:
	movq	%r13, %rdi
	callq	_wps_registrar_invalidate_unused
LBB0_12:
	leaq	16(%r13), %rdi
	addq	$16, %r15
	movq	%r15, %rsi
	callq	_dl_list_add
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_wpa_printf
	movl	(%r15), %edi
	movq	_WPS_UUID_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_wpa_hexdump
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_wpa_hexdump_ascii_key
	movl	$1, (%r13)
	movq	$0, 8(%r13)
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.13:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	jmp	LBB0_15
LBB0_7:
	movq	%r15, %rdi
	callq	_os_free
	movl	$-1, %ebx
	jmp	LBB0_16
LBB0_14:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
LBB0_15:
	callq	_wps_registrar_add_authorized_mac
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_wps_registrar_selected_registrar_changed
	movq	_wps_registrar_set_selected_timeout@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_eloop_cancel_timeout
	movq	_WPS_PBC_WALK_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %edx
	xorl	%esi, %esi
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	callq	_eloop_register_timeout
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_WPS_UUID_LEN,4,2               ## @WPS_UUID_LEN
	.comm	_PIN_EXPIRES,4,2                ## @PIN_EXPIRES
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS: A new PIN configured (timeout=%d)"

L_.str.1:                               ## @.str.1
	.asciz	"WPS: UUID"

L_.str.2:                               ## @.str.2
	.asciz	"WPS: PIN"

L_.str.3:                               ## @.str.3
	.asciz	"\377\377\377\377\377\377"

	.comm	_wps_registrar_set_selected_timeout,4,2 ## @wps_registrar_set_selected_timeout
	.comm	_WPS_PBC_WALK_TIME,4,2          ## @WPS_PBC_WALK_TIME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_registrar_add_pin          ; -- Begin function wps_registrar_add_pin
	.p2align	2
_wps_registrar_add_pin:                 ; @wps_registrar_add_pin
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x24, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	mov	w0, #48
	bl	_os_zalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x25, x0
	cbz	x20, LBB0_3
; %bb.2:
	ldr	w0, [x25, #44]
Lloh0:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_os_memcpy
LBB0_3:
Lloh3:
	adrp	x26, _WPS_UUID_LEN@GOTPAGE
Lloh4:
	ldr	x26, [x26, _WPS_UUID_LEN@GOTPAGEOFF]
	cbz	x23, LBB0_6
; %bb.4:
	ldr	w0, [x25, #40]
	ldr	w2, [x26]
	mov	x1, x23
	bl	_os_memcpy
	b	LBB0_7
LBB0_5:
	mov	w0, #-1
	b	LBB0_17
LBB0_6:
	mov	w8, #1
	str	w8, [x25]
LBB0_7:
	mov	x0, x22
	mov	x1, x21
	bl	_os_memdup
	str	x0, [x25, #32]
	cbz	x0, LBB0_14
; %bb.8:
	str	x21, [x25, #8]
	cbz	w24, LBB0_10
; %bb.9:
Lloh5:
	adrp	x8, _PIN_EXPIRES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PIN_EXPIRES@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x25, #24]
	orr	w8, w9, w8
	str	w8, [x25, #24]
	add	x0, x25, #20
	bl	_os_get_reltime
	ldr	w8, [x25, #20]
	add	w8, w8, w24
	str	w8, [x25, #20]
LBB0_10:
	ldr	w8, [x25]
	cbz	w8, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_wps_registrar_invalidate_unused
LBB0_12:
	add	x0, x19, #16
	add	x1, x25, #16
	bl	_dl_list_add
Lloh8:
	adrp	x25, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x25, [x25, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x24
	bl	_wpa_printf
	ldr	w0, [x25]
	ldr	w3, [x26]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x23
	bl	_wpa_hexdump
	ldr	w0, [x25]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x22
	mov	x3, x21
	bl	_wpa_hexdump_ascii_key
	mov	w8, #1
	str	w8, [x19]
	str	xzr, [x19, #8]
	cbz	x20, LBB0_15
; %bb.13:
	mov	x0, x19
	mov	x1, x20
	b	LBB0_16
LBB0_14:
	mov	x0, x25
	bl	_os_free
	mov	w0, #-1
	b	LBB0_17
LBB0_15:
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
LBB0_16:
	bl	_wps_registrar_add_authorized_mac
	mov	x0, x19
	mov	w1, #0
	bl	_wps_registrar_selected_registrar_changed
Lloh18:
	adrp	x20, _wps_registrar_set_selected_timeout@GOTPAGE
Lloh19:
	ldr	x20, [x20, _wps_registrar_set_selected_timeout@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	x1, x19
	mov	x2, #0
	bl	_eloop_cancel_timeout
Lloh20:
	adrp	x8, _WPS_PBC_WALK_TIME@GOTPAGE
Lloh21:
	ldr	x8, [x8, _WPS_PBC_WALK_TIME@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	w2, [x20]
	mov	w1, #0
	mov	x3, x19
	mov	x4, #0
	bl	_eloop_register_timeout
	mov	w0, #0
LBB0_17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_WPS_UUID_LEN,4,2               ; @WPS_UUID_LEN
	.comm	_PIN_EXPIRES,4,2                ; @PIN_EXPIRES
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS: A new PIN configured (timeout=%d)"

l_.str.1:                               ; @.str.1
	.asciz	"WPS: UUID"

l_.str.2:                               ; @.str.2
	.asciz	"WPS: PIN"

l_.str.3:                               ; @.str.3
	.asciz	"\377\377\377\377\377\377"

	.comm	_wps_registrar_set_selected_timeout,4,2 ; @wps_registrar_set_selected_timeout
	.comm	_WPS_PBC_WALK_TIME,4,2          ; @WPS_PBC_WALK_TIME
.subsections_via_symbols
