	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_device_store               ## -- Begin function wps_device_store
	.p2align	4, 0x90
_wps_device_store:                      ## @wps_device_store
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	(%rsi), %esi
	callq	_wps_device_get
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movl	$16, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movq	(%r15), %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, (%r15)
LBB0_4:
	leaq	4(%rbx), %rdi
	movq	%r12, %rsi
	callq	_wps_device_clone_data
	movl	(%rbx), %edi
	movq	_WPS_UUID_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_os_memcpy
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	$-1, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_WPS_UUID_LEN,4,2               ## @WPS_UUID_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_device_store               ; -- Begin function wps_device_store
	.p2align	2
_wps_device_store:                      ; @wps_device_store
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w1, [x1]
	bl	_wps_device_get
	mov	x22, x0
	cbnz	x0, LBB0_3
; %bb.1:
	mov	w0, #16
	bl	_os_zalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x22, x0
	ldr	x8, [x21]
	str	x8, [x0, #8]
	str	x0, [x21]
LBB0_3:
	add	x0, x22, #4
	mov	x1, x20
	bl	_wps_device_clone_data
	ldr	w0, [x22]
Lloh0:
	adrp	x8, _WPS_UUID_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WPS_UUID_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_os_memcpy
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	w0, #-1
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WPS_UUID_LEN,4,2               ; @WPS_UUID_LEN
.subsections_via_symbols
