	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_nonce
_check_nonce:                           ## @check_nonce
	.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
	leaq	L_.str(%rip), %rdx
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	callq	_find_header
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	_push_cert_nonce@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.2:
	movq	%r12, %rsi
	callq	_strcmp
	movq	_NONCE_OK@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movq	_stateless_rpc@GOTPCREL(%rip), %rax
	movq	_NONCE_BAD@GOTPCREL(%rip), %r15
	cmpl	$0, (%rax)
	je	LBB0_11
## %bb.4:
	movb	(%r12), %al
	addb	$-58, %al
	cmpb	$-9, %al
	jb	LBB0_11
## %bb.5:
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	movl	$10, %edx
	callq	_parse_timestamp
	movq	-56(%rbp), %rcx
	cmpq	%r12, %rcx
	je	LBB0_11
## %bb.6:
	cmpb	$45, (%rcx)
	jne	LBB0_11
## %bb.7:
	movq	_service_dir@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rax, %rsi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_prepare_push_cert_nonce
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	movq	%r15, %rbx
	jmp	LBB0_13
LBB0_9:
	movq	_NONCE_MISSING@GOTPCREL(%rip), %rbx
	jmp	LBB0_13
LBB0_10:
	movq	_NONCE_UNSOLICITED@GOTPCREL(%rip), %rbx
LBB0_12:
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_11:
	xorl	%r14d, %r14d
	movq	%r15, %rbx
LBB0_13:
	movq	(%rbx), %rbx
	movq	%r12, %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_free
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	(%r13), %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_parse_timestamp
	subq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	movq	_nonce_stamp_slop@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_nonce_stamp_slop_limit@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, %rdx
	negq	%rdx
	cmovsq	%rax, %rdx
	movq	_NONCE_SLOP@GOTPCREL(%rip), %rax
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.15:
	cmpq	%rcx, %rdx
	jg	LBB0_18
## %bb.16:
	movq	(%r13), %rdi
	callq	_free
	movq	%r12, %rdi
	callq	_xstrdup
	movq	%rax, (%r13)
	jmp	LBB0_13
LBB0_18:
	movq	%rax, %rbx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nonce"

	.comm	_NONCE_BAD,8,3                  ## @NONCE_BAD
	.comm	_NONCE_MISSING,8,3              ## @NONCE_MISSING
	.comm	_push_cert_nonce,8,3            ## @push_cert_nonce
	.comm	_NONCE_UNSOLICITED,8,3          ## @NONCE_UNSOLICITED
	.comm	_NONCE_OK,8,3                   ## @NONCE_OK
	.comm	_stateless_rpc,4,2              ## @stateless_rpc
	.comm	_service_dir,4,2                ## @service_dir
	.comm	_nonce_stamp_slop,8,3           ## @nonce_stamp_slop
	.comm	_nonce_stamp_slop_limit,8,3     ## @nonce_stamp_slop_limit
	.comm	_NONCE_SLOP,8,3                 ## @NONCE_SLOP
	.no_dead_strip	_check_nonce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_nonce
_check_nonce:                           ; @check_nonce
	.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
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, #0
	bl	_find_header
	mov	x19, x0
	cbz	x0, LBB0_11
; %bb.1:
Lloh2:
	adrp	x22, _push_cert_nonce@GOTPAGE
Lloh3:
	ldr	x22, [x22, _push_cert_nonce@GOTPAGEOFF]
	ldr	x0, [x22]
	cbz	x0, LBB0_12
; %bb.2:
	mov	x1, x19
	bl	_strcmp
	cbz	x0, LBB0_15
; %bb.3:
Lloh4:
	adrp	x8, _stateless_rpc@GOTPAGE
Lloh5:
	ldr	x8, [x8, _stateless_rpc@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cbz	w8, LBB0_13
; %bb.4:
	ldrb	w8, [x19]
	sub	w8, w8, #58
	cmn	w8, #9
	b.lo	LBB0_13
; %bb.5:
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #10
	bl	_parse_timestamp
	ldr	x8, [sp, #8]
	cmp	x8, x19
	b.eq	LBB0_13
; %bb.6:
	ldrb	w8, [x8]
	cmp	w8, #45
	b.ne	LBB0_13
; %bb.7:
	mov	x21, x0
Lloh7:
	adrp	x8, _service_dir@GOTPAGE
Lloh8:
	ldr	x8, [x8, _service_dir@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_prepare_push_cert_nonce
	mov	x20, x0
	mov	x1, x19
	bl	_strcmp
	cbnz	x0, LBB0_14
; %bb.8:
	ldr	x0, [x22]
	mov	x1, #0
	mov	w2, #10
	bl	_parse_timestamp
	subs	x8, x0, x21
Lloh10:
	adrp	x9, _nonce_stamp_slop@GOTPAGE
Lloh11:
	ldr	x9, [x9, _nonce_stamp_slop@GOTPAGEOFF]
Lloh12:
	str	x8, [x9]
Lloh13:
	adrp	x9, _nonce_stamp_slop_limit@GOTPAGE
Lloh14:
	ldr	x9, [x9, _nonce_stamp_slop_limit@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cneg	x10, x8, mi
Lloh16:
	adrp	x8, _NONCE_SLOP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NONCE_SLOP@GOTPAGEOFF]
	cbz	x9, LBB0_17
; %bb.9:
	cmp	x10, x9
	b.gt	LBB0_17
; %bb.10:
	ldr	x0, [x22]
	bl	_free
	mov	x0, x19
	bl	_xstrdup
	str	x0, [x22]
	b	LBB0_16
LBB0_11:
	mov	x20, #0
Lloh18:
	adrp	x8, _NONCE_MISSING@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NONCE_MISSING@GOTPAGEOFF]
	b	LBB0_17
LBB0_12:
	mov	x20, #0
Lloh20:
	adrp	x8, _NONCE_UNSOLICITED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NONCE_UNSOLICITED@GOTPAGEOFF]
	b	LBB0_17
LBB0_13:
	mov	x20, #0
LBB0_14:
Lloh22:
	adrp	x8, _NONCE_BAD@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NONCE_BAD@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:
	mov	x20, #0
LBB0_16:
Lloh24:
	adrp	x8, _NONCE_OK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NONCE_OK@GOTPAGEOFF]
LBB0_17:
	ldr	x21, [x8]
	mov	x0, x19
	bl	_free
	mov	x0, x20
	bl	_free
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nonce"

	.comm	_NONCE_BAD,8,3                  ; @NONCE_BAD
	.comm	_NONCE_MISSING,8,3              ; @NONCE_MISSING
	.comm	_push_cert_nonce,8,3            ; @push_cert_nonce
	.comm	_NONCE_UNSOLICITED,8,3          ; @NONCE_UNSOLICITED
	.comm	_NONCE_OK,8,3                   ; @NONCE_OK
	.comm	_stateless_rpc,4,2              ; @stateless_rpc
	.comm	_service_dir,4,2                ; @service_dir
	.comm	_nonce_stamp_slop,8,3           ; @nonce_stamp_slop
	.comm	_nonce_stamp_slop_limit,8,3     ; @nonce_stamp_slop_limit
	.comm	_NONCE_SLOP,8,3                 ; @NONCE_SLOP
	.no_dead_strip	_check_nonce
.subsections_via_symbols
