	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function redisContextTimeoutMsec
_redisContextTimeoutMsec:               ## @redisContextTimeoutMsec
	.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), %rax
	movq	_REDIS_OK@GOTPCREL(%rip), %r8
	movq	$-1, %rcx
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	(%rax), %edi
	movq	_REDIS_ERR@GOTPCREL(%rip), %rdx
	cmpl	$1000000, %edi                  ## imm = 0xF4240
	jg	LBB0_5
## %bb.2:
	movl	4(%rax), %r9d
	movq	___MAX_MSEC@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r9d
	jg	LBB0_5
## %bb.3:
	imull	$1000, %r9d, %eax               ## imm = 0x3E8
	addl	$999, %edi                      ## imm = 0x3E7
	movslq	%edi, %rcx
	imulq	$274877907, %rcx, %rdx          ## imm = 0x10624DD3
	movq	%rdx, %rcx
	shrq	$63, %rcx
	sarq	$38, %rdx
	addl	%ecx, %edx
	addl	%eax, %edx
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rdx, %rax
	movq	%rdx, %rcx
	cmovlq	%rax, %rcx
	testl	%edx, %edx
	cmovsq	%rax, %rcx
LBB0_4:
	movq	%r8, %rdx
LBB0_5:
	movq	%rcx, (%rsi)
	movl	(%rdx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___MAX_MSEC,4,2                 ## @__MAX_MSEC
	.comm	_REDIS_ERR,4,2                  ## @REDIS_ERR
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_REDIS_OK,4,2                   ## @REDIS_OK
	.no_dead_strip	_redisContextTimeoutMsec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function redisContextTimeoutMsec
_redisContextTimeoutMsec:               ; @redisContextTimeoutMsec
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w9, [x8]
	mov	w10, #16960
	movk	w10, #15, lsl #16
	cmp	w9, w10
	b.gt	LBB0_3
; %bb.2:
	ldr	w8, [x8, #4]
Lloh0:
	adrp	x10, ___MAX_MSEC@GOTPAGE
Lloh1:
	ldr	x10, [x10, ___MAX_MSEC@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w8, w10
	b.le	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _REDIS_ERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REDIS_ERR@GOTPAGEOFF]
	mov	x9, #-1
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _REDIS_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REDIS_OK@GOTPAGEOFF]
	mov	x9, #-1
	b	LBB0_6
LBB0_5:
	mov	w10, #1000
	add	w9, w9, #999
	mov	w11, #19923
	movk	w11, #4194, lsl #16
	smull	x9, w9, w11
	lsr	x11, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w11
	madd	w8, w8, w10, w9
Lloh7:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh8:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	ccmp	w8, #0, #8, ge
	csel	x9, x9, x8, lt
Lloh10:
	adrp	x8, _REDIS_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _REDIS_OK@GOTPAGEOFF]
LBB0_6:
	str	x9, [x1]
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	___MAX_MSEC,4,2                 ; @__MAX_MSEC
	.comm	_REDIS_ERR,4,2                  ; @REDIS_ERR
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_REDIS_OK,4,2                   ; @REDIS_OK
	.no_dead_strip	_redisContextTimeoutMsec
.subsections_via_symbols
