	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_generate_pin               ## -- Begin function wps_generate_pin
	.p2align	4, 0x90
_wps_generate_pin:                      ## @wps_generate_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	leaq	-20(%rbp), %rdi
	movl	$4, %esi
	callq	_random_get_bytes
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	-20(%rbp), %edi
	imulq	$1801439851, %rdi, %rax         ## imm = 0x6B5FCA6B
	shrq	$54, %rax
	imull	$10000000, %eax, %eax           ## imm = 0x989680
	subl	%eax, %edi
	movl	%edi, -20(%rbp)
	leal	(%rdi,%rdi,4), %ebx
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_wps_pin_checksum
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rbx,2), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_generate_pin               ; -- Begin function wps_generate_pin
	.p2align	2
_wps_generate_pin:                      ; @wps_generate_pin
	.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	x19, x0
	add	x0, sp, #12
	mov	w1, #4
	bl	_random_get_bytes
	tbnz	x0, #63, LBB0_2
; %bb.1:
	ldr	w8, [sp, #12]
	mov	w9, #51819
	movk	w9, #27487, lsl #16
	mul	x9, x8, x9
	lsr	x9, x9, #54
	mov	w10, #38528
	movk	w10, #152, lsl #16
	msub	w20, w9, w10, w8
	str	w20, [sp, #12]
	mov	w21, #10
	mov	x0, x20
	bl	_wps_pin_checksum
	mov	x8, x0
	mov	w0, #0
	madd	w8, w20, w21, w8
	str	w8, [x19]
	b	LBB0_3
LBB0_2:
	mov	w0, #-1
LBB0_3:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
