	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_lof
_set_lof:                               ## @set_lof
	.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
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r14
	addl	$999999, %edx                   ## imm = 0xF423F
	movslq	%edx, %rax
	imulq	$1125899907, %rax, %rax         ## imm = 0x431BDE83
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$50, %rax
	addl	%ecx, %eax
	leal	500(%rsi), %ecx
	movslq	%ecx, %rcx
	imulq	$274877907, %rcx, %rdx          ## imm = 0x10624DD3
	movq	%rdx, %rcx
	shrq	$63, %rcx
	sarq	$38, %rdx
	addl	%ecx, %edx
	cmpl	$7, %eax
	movl	$6, %ecx
	cmovgel	%eax, %ecx
	cmpl	$50, %ecx
	movl	$50, %eax
	cmovbl	%ecx, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	cmpl	$1300000500, %esi               ## imm = 0x4D7C6EF4
	setl	%bl
	leal	(%rbx,%rbx), %r12d
	addl	$2, %r12d
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	imull	%edx, %r12d
	movl	(%rdi), %ecx
	movl	%r12d, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r15d
	movl	%edx, %edi
	movl	%ebx, %r13d
	shll	$7, %r13d
	movl	$262144, %esi                   ## imm = 0x40000
	movl	%ecx, %edx
	callq	_muldiv32
	xorl	%ecx, %ecx
	cmpl	$2700000, %r12d                 ## imm = 0x2932E0
	jl	LBB0_6
## %bb.1:
	movl	$32, %ecx
	cmpl	$2950000, %r12d                 ## imm = 0x2D0370
	jb	LBB0_6
## %bb.2:
	movl	$64, %ecx
	cmpl	$3300000, %r12d                 ## imm = 0x325AA0
	jb	LBB0_6
## %bb.3:
	movl	$96, %ecx
	cmpl	$3700000, %r12d                 ## imm = 0x387520
	jb	LBB0_6
## %bb.4:
	movl	$160, %ecx
	cmpl	$4200000, %r12d                 ## imm = 0x401640
	jb	LBB0_6
## %bb.5:
	xorl	%ecx, %ecx
	cmpl	$4800000, %r12d                 ## imm = 0x493E00
	setae	%cl
	orl	$6, %ecx
	shll	$5, %ecx
LBB0_6:
	movq	8(%r14), %rdx
	orl	$128, 8(%rdx)
	movl	$-129, %esi
	andl	12(%rdx), %esi
	orl	%r13d, %esi
	movl	%esi, 12(%rdx)
	movzbl	%r15b, %esi
	movl	%esi, 16(%rdx)
	shrl	$8, %r15d
	andl	$1, %r15d
	movl	%eax, %esi
	andl	$127, %esi
	leal	(%r15,%rsi,2), %esi
	movl	%esi, 20(%rdx)
	movl	%eax, %esi
	shrl	$7, %esi
	movzbl	%sil, %esi
	movl	%esi, 24(%rdx)
	movl	$-232, %esi
	andl	28(%rdx), %esi
	orl	%ecx, %esi
	shrl	$15, %eax
	andl	$7, %eax
	orl	%esi, %eax
	movl	%eax, 28(%rdx)
	movl	$-253, %eax
	andl	32(%rdx), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leal	-24(,%rcx,4), %ecx
	orl	%eax, %ecx
	movl	%ecx, 32(%rdx)
	orb	$12, 36(%rdx)
	movq	%r14, %rdi
	movl	$2, %esi
	movl	$8, %edx
	callq	_write_regs
	movq	%r14, %rdi
	movl	$12, %esi
	callq	_wait_for_call_done
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$12000, %esi                    ## imm = 0x2EE0
	callq	_usleep_range
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_read_reg
	testb	$16, -44(%rbp)
	je	LBB0_8
## %bb.7:
	movq	8(%r14), %rax
	andl	$-129, 8(%rax)
	movq	%r14, %rdi
	movl	$2, %esi
	movl	$1, %edx
	callq	_write_regs
LBB0_8:
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_read_reg
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 16(%r14)
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_set_lof
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_lof
_set_lof:                               ; @set_lof
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	mov	w8, #16959
	movk	w8, #15, lsl #16
	add	w9, w2, w8
	add	w8, w8, #1
	sdiv	w8, w9, w8
	mov	w9, #6
	cmp	w8, #6
	csel	w8, w8, w9, gt
	mov	w9, #50
	cmp	w8, #50
	csel	w21, w8, w9, lo
	mov	w8, #28404
	movk	w8, #19836, lsl #16
	mov	w9, #2
	mov	w10, #4
	cmp	w1, w8
	csel	w8, w10, w9, lt
	cset	w9, lt
	add	w10, w1, #500
	mov	w11, #19923
	movk	w11, #4194, lsl #16
	smull	x10, w10, w11
	lsr	x11, x10, #63
	asr	x10, x10, #38
	add	w20, w10, w11
	lsl	w23, w9, #7
	mul	w24, w20, w8
	ldr	w2, [x0]
	sdiv	w22, w24, w2
	msub	w0, w22, w2, w24
	mov	w1, #262144
	bl	_muldiv32
	mov	w8, #13024
	movk	w8, #41, lsl #16
	cmp	w24, w8
	b.ge	LBB0_2
; %bb.1:
	mov	w8, #0
	b	LBB0_11
LBB0_2:
	mov	w8, #880
	movk	w8, #45, lsl #16
	cmp	w24, w8
	b.hs	LBB0_4
; %bb.3:
	mov	w8, #32
	b	LBB0_11
LBB0_4:
	mov	w8, #23200
	movk	w8, #50, lsl #16
	cmp	w24, w8
	b.hs	LBB0_6
; %bb.5:
	mov	w8, #64
	b	LBB0_11
LBB0_6:
	mov	w8, #29984
	movk	w8, #56, lsl #16
	cmp	w24, w8
	b.hs	LBB0_8
; %bb.7:
	mov	w8, #96
	b	LBB0_11
LBB0_8:
	mov	w8, #5696
	movk	w8, #64, lsl #16
	cmp	w24, w8
	b.hs	LBB0_10
; %bb.9:
	mov	w8, #160
	b	LBB0_11
LBB0_10:
	mov	w8, #15872
	movk	w8, #73, lsl #16
	mov	w9, #224
	mov	w10, #192
	cmp	w24, w8
	csel	w8, w10, w9, lo
LBB0_11:
	ldr	x9, [x19, #8]
	ldp	w10, w11, [x9, #8]
	and	w11, w11, #0xffffff7f
	orr	w11, w11, w23
	orr	w10, w10, #0x80
	stp	w10, w11, [x9, #8]
	and	w10, w22, #0xff
	ubfx	w11, w22, #8, #1
	bfi	w11, w0, #1, #7
	stp	w10, w11, [x9, #16]
	mov	w10, #-232
	ldp	w11, w12, [x9, #28]
	and	w10, w11, w10
	ubfx	w11, w0, #7, #8
	ubfx	w13, w0, #15, #3
	orr	w8, w8, w13
	orr	w8, w8, w10
	stp	w11, w8, [x9, #24]
	and	w8, w12, #0xffffff03
	lsl	w10, w21, #2
	sub	w10, w10, #24
	orr	w8, w8, w10
	ldr	w10, [x9, #36]
	orr	w10, w10, #0xc
	stp	w8, w10, [x9, #32]
	mov	x0, x19
	mov	w1, #2
	mov	w2, #8
	bl	_write_regs
	mov	x0, x19
	mov	w1, #12
	bl	_wait_for_call_done
	mov	w0, #10000
	mov	w1, #12000
	bl	_usleep_range
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #3
	bl	_read_reg
	ldrb	w8, [sp, #12]
	tbz	w8, #4, LBB0_13
; %bb.12:
	ldr	x8, [x19, #8]
	ldr	w9, [x8, #8]
	and	w9, w9, #0xffffff7f
	str	w9, [x8, #8]
	mov	x0, x19
	mov	w1, #2
	mov	w2, #1
	bl	_write_regs
LBB0_13:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #8
	bl	_read_reg
	str	w20, [x19, #16]
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_set_lof
.subsections_via_symbols
