	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msdc_set_timeout
_msdc_set_timeout:                      ## @msdc_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
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r14
	movl	$0, -20(%rbp)
	movl	%esi, (%rdi)
	movl	%edx, 4(%rdi)
	movq	24(%rdi), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	%edx, %ecx
	cmpq	$1000000000, %rdi               ## imm = 0x3B9ACA00
	ja	LBB0_3
## %bb.4:
	movl	$1000000000, %eax               ## imm = 0x3B9ACA00
	xorl	%edx, %edx
	divl	%edi
	movl	%eax, %edi
	jmp	LBB0_5
LBB0_1:
	xorl	%edx, %edx
	jmp	LBB0_9
LBB0_3:
	xorl	%edi, %edi
LBB0_5:
	leal	(%rsi,%rdi), %eax
	decl	%eax
	cltd
	idivl	%edi
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rcx,%rax), %ebx
	addl	$1048575, %ebx                  ## imm = 0xFFFFF
	sarl	$20, %ebx
	movq	16(%r14), %rax
	movq	_MSDC_CFG@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	addq	8(%r14), %rdi
	cmpl	$8, (%rax)
	jne	LBB0_6
## %bb.7:
	movq	_MSDC_CFG_CKMOD@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_MSDC_CFG_CKMOD_EXTRA@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_sdr_get_field
	cmpl	$2, -20(%rbp)
	setge	%cl
	shll	%cl, %ebx
	cmpl	$256, %ebx                      ## imm = 0x100
	movl	$256, %eax                      ## imm = 0x100
	cmovll	%ebx, %eax
	decl	%eax
	xorl	%edx, %edx
	cmpl	$2, %ebx
	cmovgel	%eax, %edx
LBB0_9:
	movq	_SDC_CFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
	movq	_SDC_CFG_DTOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sdr_set_field
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSDC_CFG,8,3                   ## @MSDC_CFG
	.comm	_MSDC_CFG_CKMOD,4,2             ## @MSDC_CFG_CKMOD
	.comm	_MSDC_CFG_CKMOD_EXTRA,4,2       ## @MSDC_CFG_CKMOD_EXTRA
	.comm	_SDC_CFG,8,3                    ## @SDC_CFG
	.comm	_SDC_CFG_DTOC,4,2               ## @SDC_CFG_DTOC
	.no_dead_strip	_msdc_set_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msdc_set_timeout
_msdc_set_timeout:                      ; @msdc_set_timeout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	str	wzr, [sp, #12]
	stp	w1, w2, [x0]
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w9, #51712
	movk	w9, #15258, lsl #16
	udiv	x8, x9, x8
	add	w9, w1, w8
	sub	w9, w9, #1
	sdiv	w8, w9, w8
	mov	w9, #1048575
	add	w8, w2, w8
	add	w8, w8, w9
	asr	w20, w8, #20
	ldp	x9, x8, [x19, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x10, _MSDC_CFG@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MSDC_CFG@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
Lloh3:
	adrp	x11, _MSDC_CFG_CKMOD@GOTPAGE
Lloh4:
	ldr	x11, [x11, _MSDC_CFG_CKMOD@GOTPAGEOFF]
	add	x0, x10, x9
Lloh5:
	adrp	x9, _MSDC_CFG_CKMOD_EXTRA@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MSDC_CFG_CKMOD_EXTRA@GOTPAGEOFF]
	cmp	w8, #8
	csel	x8, x11, x9, eq
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_sdr_get_field
	ldr	w8, [sp, #12]
	cmp	w8, #1
	cset	w8, gt
	lsl	w8, w20, w8
	mov	w9, #256
	cmp	w8, #256
	csel	w9, w8, w9, lt
	sub	w9, w9, #1
	cmp	w8, #1
	csel	w2, w9, wzr, gt
	b	LBB0_3
LBB0_2:
	mov	w2, #0
LBB0_3:
Lloh7:
	adrp	x8, _SDC_CFG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SDC_CFG@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh9:
	ldr	x8, [x8]
	add	x0, x8, x9
Lloh10:
	adrp	x8, _SDC_CFG_DTOC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SDC_CFG_DTOC@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_sdr_set_field
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MSDC_CFG,8,3                   ; @MSDC_CFG
	.comm	_MSDC_CFG_CKMOD,4,2             ; @MSDC_CFG_CKMOD
	.comm	_MSDC_CFG_CKMOD_EXTRA,4,2       ; @MSDC_CFG_CKMOD_EXTRA
	.comm	_SDC_CFG,8,3                    ; @SDC_CFG
	.comm	_SDC_CFG_DTOC,4,2               ; @SDC_CFG_DTOC
	.no_dead_strip	_msdc_set_timeout
.subsections_via_symbols
