	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvb_ca_en50221_thread_update_delay
_dvb_ca_en50221_thread_update_delay:    ## @dvb_ca_en50221_thread_update_delay
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %r14d
	testl	%r14d, %r14d
	jle	LBB0_1
## %bb.2:
	movq	16(%rdi), %r15
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %r9
	imulq	$1717986919, %r9, %rsi          ## imm = 0x66666667
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$34, %rsi
	addl	%eax, %esi
	imull	$60, %r9d, %r8d
	movq	_DVB_CA_EN50221_FLAG_IRQ_CAMCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_DVB_CA_EN50221_FLAG_IRQ_DA@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movl	$100000000, %edx                ## imm = 0x5F5E100
	xorl	%ebx, %ebx
	leaq	LJTI0_0(%rip), %r13
	jmp	LBB0_3
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	imull	%r9d, %ecx
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%edx, %ecx
	cmovll	%ecx, %edx
	incq	%rbx
	cmpq	%rbx, %r14
	je	LBB0_15
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rbx,8), %ecx
	addl	$-128, %ecx
	cmpl	$7, %ecx
	ja	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r13,%rcx,4), %rax
	addq	%r13, %rax
	movl	%esi, %ecx
	jmpq	*%rax
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%rdi), %r12d
	movl	%esi, %ecx
	testl	%r12d, %r10d
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r8d, %ecx
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, 12(%rdi)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	testl	%r12d, %r11d
	cmovel	%esi, %ecx
	cmpl	$0, 4(%r15,%rbx,8)
	cmovel	%esi, %ecx
	jmp	LBB0_14
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$5, %ecx
	testl	%r10d, 4(%rdi)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$60, %ecx
	jmp	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%esi, %ecx
	testl	%r10d, 4(%rdi)
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r8d, %ecx
	jmp	LBB0_14
LBB0_1:
	movl	$100000000, %edx                ## imm = 0x5F5E100
LBB0_15:
	movl	%edx, 8(%rdi)
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_10
	.long	L0_0_set_5
	.long	L0_0_set_14
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_HZ,4,2                         ## @HZ
	.comm	_DVB_CA_EN50221_FLAG_IRQ_CAMCHANGE,4,2 ## @DVB_CA_EN50221_FLAG_IRQ_CAMCHANGE
	.comm	_DVB_CA_EN50221_FLAG_IRQ_DA,4,2 ## @DVB_CA_EN50221_FLAG_IRQ_DA
	.no_dead_strip	_dvb_ca_en50221_thread_update_delay
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvb_ca_en50221_thread_update_delay
_dvb_ca_en50221_thread_update_delay:    ; @dvb_ca_en50221_thread_update_delay
	.cfi_startproc
; %bb.0:
	mov	w8, #57600
	movk	w8, #1525, lsl #16
	ldr	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.1:
	ldr	x16, [x0, #16]
Lloh0:
	adrp	x10, _HZ@GOTPAGE
Lloh1:
	ldr	x10, [x10, _HZ@GOTPAGEOFF]
Lloh2:
	ldrsw	x10, [x10]
	mov	w11, #26215
	movk	w11, #26214, lsl #16
	mul	x11, x10, x11
	lsr	x12, x11, #63
	asr	x11, x11, #34
	add	w11, w11, w12
	mov	w12, #60
	mul	w13, w10, w12
Lloh3:
	adrp	x14, _DVB_CA_EN50221_FLAG_IRQ_CAMCHANGE@GOTPAGE
Lloh4:
	ldr	x14, [x14, _DVB_CA_EN50221_FLAG_IRQ_CAMCHANGE@GOTPAGEOFF]
Lloh5:
	adrp	x15, _DVB_CA_EN50221_FLAG_IRQ_DA@GOTPAGE
Lloh6:
	ldr	x15, [x15, _DVB_CA_EN50221_FLAG_IRQ_DA@GOTPAGEOFF]
Lloh7:
	ldr	w14, [x14]
Lloh8:
	ldr	w15, [x15]
	add	x16, x16, #4
	mov	w17, #5
Lloh9:
	adrp	x1, lJTI0_0@PAGE
Lloh10:
	add	x1, x1, lJTI0_0@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x0, #4]
	tst	w14, w2
	csel	w2, w17, w12, eq
	mul	w2, w2, w10
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w2, w8
	csel	w8, w2, w8, lt
	add	x16, x16, #8
	subs	x9, x9, #1
	b.eq	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w2, [x16, #-4]
	sub	w2, w2, #128
	cmp	w2, #7
	b.hi	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	adr	x3, LBB0_2
	ldrb	w4, [x1, x2]
	add	x3, x3, x4, lsl #2
	mov	x2, x11
	br	x3
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w3, [x0, #4]
	tst	w14, w3
	csel	w2, w11, w13, eq
	ldr	w4, [x0, #12]
	cbz	w4, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w4, [x16]
	tst	w15, w3
	ccmp	w4, #0, #4, ne
	csel	w2, w11, w2, eq
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x0, #4]
	tst	w14, w2
	csel	w2, w11, w13, eq
	b	LBB0_3
LBB0_9:
	str	w8, [x0, #8]
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_HZ,4,2                         ; @HZ
	.comm	_DVB_CA_EN50221_FLAG_IRQ_CAMCHANGE,4,2 ; @DVB_CA_EN50221_FLAG_IRQ_CAMCHANGE
	.comm	_DVB_CA_EN50221_FLAG_IRQ_DA,4,2 ; @DVB_CA_EN50221_FLAG_IRQ_DA
	.no_dead_strip	_dvb_ca_en50221_thread_update_delay
.subsections_via_symbols
