	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssh_packet_set_timeout         ## -- Begin function ssh_packet_set_timeout
	.p2align	4, 0x90
_ssh_packet_set_timeout:                ## @ssh_packet_set_timeout
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %r8
	movl	$-1, %edi
	testl	%esi, %esi
	jle	LBB0_4
## %bb.1:
	movl	%edx, %ecx
	testl	%edx, %edx
	jle	LBB0_4
## %bb.2:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	imulq	$274877907, %rdi, %rax          ## imm = 0x10624DD3
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$38, %rax
	addl	%edx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%ecx
	cmpl	%esi, %eax
	jl	LBB0_4
## %bb.3:
	imull	%ecx, %esi
	imull	$1000, %esi, %edi               ## imm = 0x3E8
LBB0_4:
	movl	%edi, (%r8)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssh_packet_set_timeout         ; -- Begin function ssh_packet_set_timeout
	.p2align	2
_ssh_packet_set_timeout:                ; @ssh_packet_set_timeout
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	mov	w9, #-1
	cmp	w1, #1
	b.lt	LBB0_4
; %bb.1:
	cmp	w2, #1
	b.lt	LBB0_4
; %bb.2:
Lloh0:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	mul	x10, x9, x10
	lsr	x11, x10, #63
	asr	x10, x10, #38
	add	w10, w10, w11
	sdiv	w10, w10, w2
	cmp	w10, w1
	b.lt	LBB0_4
; %bb.3:
	mul	w9, w1, w2
	mov	w10, #1000
	mul	w9, w9, w10
LBB0_4:
	str	w9, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
.subsections_via_symbols
