	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssh_packet_need_rekeying
_ssh_packet_need_rekeying:              ## @ssh_packet_need_rekeying
	.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	16(%rdi), %r12
	xorl	%r15d, %r15d
	cmpl	$0, 72(%r12)
	je	LBB0_15
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	je	LBB0_15
## %bb.2:
	movl	%esi, %r14d
	movq	%rbx, %rdi
	callq	_ssh_packet_is_rekeying
	testq	%rax, %rax
	jne	LBB0_15
## %bb.3:
	movq	_SSH_BUG_NOREKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
LBB0_15:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	40(%r12), %rax
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	cmpq	$0, 24(%r12)
	je	LBB0_15
LBB0_6:
	movq	(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.7:
	addq	64(%r12), %rbx
	xorl	%eax, %eax
	callq	_monotime
	movl	$1, %r15d
	cmpq	%rax, %rbx
	jle	LBB0_15
## %bb.8:
	movq	40(%r12), %rax
LBB0_9:
	movq	_MAX_PACKETS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$1, %r15d
	cmpq	%rcx, %rax
	jg	LBB0_15
## %bb.10:
	cmpq	%rcx, 24(%r12)
	jg	LBB0_15
## %bb.11:
	movq	56(%r12), %rax
	movq	_MODE_OUT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_ROUNDUP
	movq	8(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.12:
	addq	48(%r12), %rax
	cmpq	%rcx, %rax
	jg	LBB0_15
LBB0_13:
	movq	16(%r12), %rax
	movl	$0, %r15d
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	xorl	%r15d, %r15d
	cmpq	%rax, 32(%r12)
	setg	%r15b
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_BUG_NOREKEY,4,2            ## @SSH_BUG_NOREKEY
	.comm	_MAX_PACKETS,8,3                ## @MAX_PACKETS
	.comm	_MODE_OUT,8,3                   ## @MODE_OUT
	.no_dead_strip	_ssh_packet_need_rekeying
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssh_packet_need_rekeying
_ssh_packet_need_rekeying:              ; @ssh_packet_need_rekeying
	.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
	ldr	x21, [x0, #16]
	ldr	w8, [x21, #72]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x19, x1
	mov	x0, x20
	bl	_ssh_packet_is_rekeying
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _SSH_BUG_NOREKEY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SSH_BUG_NOREKEY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
LBB0_4:
	mov	w0, #0
LBB0_5:
	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_6:
	ldr	x8, [x21, #40]
	cbnz	x8, LBB0_8
; %bb.7:
	ldr	x9, [x21, #24]
	cbz	x9, LBB0_4
LBB0_8:
	ldr	x9, [x21]
	cbz	x9, LBB0_11
; %bb.9:
	ldr	x8, [x21, #64]
	add	x20, x8, x9
	bl	_monotime
	cmp	x20, x0
	b.le	LBB0_15
; %bb.10:
	ldr	x8, [x21, #40]
LBB0_11:
Lloh3:
	adrp	x9, _MAX_PACKETS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_PACKETS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_15
; %bb.12:
	ldr	x8, [x21, #24]
	cmp	x8, x9
	b.gt	LBB0_15
; %bb.13:
	ldr	x8, [x21, #56]
Lloh6:
	adrp	x9, _MODE_OUT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MODE_OUT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ROUNDUP
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_16
; %bb.14:
	ldr	x9, [x21, #48]
	add	x9, x9, x0
	cmp	x9, x8
	b.le	LBB0_16
LBB0_15:
	mov	w0, #1
	b	LBB0_5
LBB0_16:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_4
; %bb.17:
	ldr	x9, [x21, #32]
	cmp	x9, x8
	cset	w0, gt
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_BUG_NOREKEY,4,2            ; @SSH_BUG_NOREKEY
	.comm	_MAX_PACKETS,8,3                ; @MAX_PACKETS
	.comm	_MODE_OUT,8,3                   ; @MODE_OUT
	.no_dead_strip	_ssh_packet_need_rekeying
.subsections_via_symbols
