	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_pin_checksum               ## -- Begin function wps_pin_checksum
	.p2align	4, 0x90
_wps_pin_checksum:                      ## @wps_pin_checksum
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	testl	%edi, %edi
	je	LBB0_4
## %bb.1:
	movl	$3435973837, %r8d               ## imm = 0xCCCCCCCD
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edi, %edx
	imulq	$1374389535, %rdx, %rsi         ## imm = 0x51EB851F
	imulq	%r8, %rdx
	shrq	$35, %rdx
	leal	(%rdx,%rdx), %ecx
	leal	(%rcx,%rcx,4), %r9d
	movl	%edi, %ecx
	subl	%r9d, %ecx
	leal	(%rcx,%rcx,2), %ecx
	addl	%eax, %ecx
	movq	%rdx, %rax
	imulq	%r8, %rax
	shrq	$35, %rax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	subl	%eax, %edx
	movl	%edx, %eax
	addl	%ecx, %eax
	shrq	$37, %rsi
	cmpl	$99, %edi
	movl	%esi, %edi
	ja	LBB0_2
## %bb.3:
	movl	%eax, %ecx
	movl	$3435973837, %edx               ## imm = 0xCCCCCCCD
	imulq	%rcx, %rdx
	shrq	$35, %rdx
	addl	%edx, %edx
	leal	(%rdx,%rdx,4), %ecx
	subl	%ecx, %eax
	movb	$10, %cl
	subb	%al, %cl
	movzbl	%cl, %eax
	imull	$205, %eax, %ecx
	shrl	$10, %ecx
	andl	$-2, %ecx
	leal	(%rcx,%rcx,4), %ecx
	subb	%cl, %al
	movzbl	%al, %eax
LBB0_4:
	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_pin_checksum               ; -- Begin function wps_pin_checksum
	.p2align	2
_wps_pin_checksum:                      ; @wps_pin_checksum
	.cfi_startproc
; %bb.0:
	cbz	w0, LBB0_4
; %bb.1:
	mov	w8, #0
	mov	w9, #52429
	movk	w9, #52428, lsl #16
	mov	w10, #10
	mov	w11, #34079
	movk	w11, #20971, lsl #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	umull	x12, w0, w9
	lsr	x12, x12, #35
	msub	w13, w12, w10, w0
	add	w13, w13, w13, lsl #1
	mul	x14, x12, x9
	lsr	x14, x14, #35
	msub	w12, w14, w10, w12
	add	w8, w13, w8
	add	w8, w8, w12
	umull	x12, w0, w11
	lsr	x12, x12, #37
	cmp	w0, #99
	mov	x0, x12
	b.hi	LBB0_2
; %bb.3:
	mov	w9, #52429
	movk	w9, #52428, lsl #16
	umull	x9, w8, w9
	lsr	x9, x9, #35
	mov	w10, #10
	neg	w8, w8
	madd	w8, w9, w10, w8
	add	w8, w8, #10
	and	w9, w8, #0xff
	mov	w11, #205
	mul	w9, w9, w11
	lsr	w9, w9, #11
	msub	w8, w9, w10, w8
	and	w0, w8, #0xff
LBB0_4:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
