	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsdvb_send_statistics_request
_smsdvb_send_statistics_request:        ## @smsdvb_send_statistics_request
	.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	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_time_after
	testl	%eax, %eax
	je	LBB0_6
LBB0_2:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	$100, %edi
	callq	_msecs_to_jiffies
	addq	%r14, %rax
	movq	%rax, 16(%rbx)
	movq	_DVBT_BDA_CONTROL_MSG_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	_HIF_TASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	$0, -32(%rbp)
	movl	$32, -48(%rbp)
	movq	8(%rbx), %rdi
	callq	_smscore_get_device_mode
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.3:
	movq	8(%rbx), %rax
	cmpl	$2048, (%rax)                   ## imm = 0x800
	jl	LBB0_7
## %bb.4:
	movq	_MSG_SMS_GET_STATISTICS_EX_REQ@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_MSG_SMS_GET_STATISTICS_REQ@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$32, %edx
	movq	%rbx, %rcx
	callq	_smsdvb_sendrequest_and_wait
	jmp	LBB0_9
LBB0_6:
	xorl	%eax, %eax
LBB0_9:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_DVBT_BDA_CONTROL_MSG_ID,4,2    ## @DVBT_BDA_CONTROL_MSG_ID
	.comm	_HIF_TASK,4,2                   ## @HIF_TASK
	.comm	_MSG_SMS_GET_STATISTICS_EX_REQ,8,3 ## @MSG_SMS_GET_STATISTICS_EX_REQ
	.comm	_MSG_SMS_GET_STATISTICS_REQ,8,3 ## @MSG_SMS_GET_STATISTICS_REQ
	.no_dead_strip	_smsdvb_send_statistics_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsdvb_send_statistics_request
_smsdvb_send_statistics_request:        ; @smsdvb_send_statistics_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x1, [x0, #16]
Lloh0:
	adrp	x20, _jiffies@GOTPAGE
Lloh1:
	ldr	x20, [x20, _jiffies@GOTPAGEOFF]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	x0, [x20]
	bl	_time_after
	cbz	w0, LBB0_5
LBB0_2:
	ldr	x20, [x20]
	mov	w0, #100
	bl	_msecs_to_jiffies
	add	x8, x0, x20
	str	x8, [x19, #16]
Lloh2:
	adrp	x8, _DVBT_BDA_CONTROL_MSG_ID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DVBT_BDA_CONTROL_MSG_ID@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _HIF_TASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HIF_TASK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #24]
	str	xzr, [sp, #16]
	mov	w8, #32
	str	w8, [sp]
	ldr	x0, [x19, #8]
	bl	_smscore_get_device_mode
	and	w9, w0, #0xfffffffe
Lloh8:
	adrp	x8, _MSG_SMS_GET_STATISTICS_REQ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_SMS_GET_STATISTICS_REQ@GOTPAGEOFF]
	cmp	w9, #128
	b.ne	LBB0_4
; %bb.3:
	ldr	x9, [x19, #8]
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _MSG_SMS_GET_STATISTICS_EX_REQ@GOTPAGE
Lloh11:
	ldr	x10, [x10, _MSG_SMS_GET_STATISTICS_EX_REQ@GOTPAGEOFF]
	cmp	w9, #2047
	csel	x8, x10, x8, gt
LBB0_4:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	mov	x1, sp
	mov	x0, x19
	mov	w2, #32
	mov	x3, x19
	bl	_smsdvb_sendrequest_and_wait
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_DVBT_BDA_CONTROL_MSG_ID,4,2    ; @DVBT_BDA_CONTROL_MSG_ID
	.comm	_HIF_TASK,4,2                   ; @HIF_TASK
	.comm	_MSG_SMS_GET_STATISTICS_EX_REQ,8,3 ; @MSG_SMS_GET_STATISTICS_EX_REQ
	.comm	_MSG_SMS_GET_STATISTICS_REQ,8,3 ; @MSG_SMS_GET_STATISTICS_REQ
	.no_dead_strip	_smsdvb_send_statistics_request
.subsections_via_symbols
