	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smscore_onresponse             ## -- Begin function smscore_onresponse
	.p2align	4, 0x90
_smscore_onresponse:                    ## @smscore_onresponse
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movslq	(%rsi), %rbx
	shlq	$2, %rbx
	movq	%rsi, %r15
	addq	16(%rsi), %rbx
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_jiffies_to_msecs
	movq	%rax, %rcx
	movq	%rax, %r13
	movq	_smscore_onresponse.last_sample_time(%rip), %rax
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%r13, _smscore_onresponse.last_sample_time(%rip)
	movq	%r13, %rax
LBB0_2:
	subq	%rax, %rcx
	movl	_smscore_onresponse.data_total(%rip), %r14d
	cmpq	$10001, %rcx                    ## imm = 0x2711
	jb	LBB0_7
## %bb.3:
	movslq	%r14d, %rax
	imulq	$1000, %rax, %rax               ## imm = 0x3E8
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_4
## %bb.5:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_6
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_6:
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	%r13, _smscore_onresponse.last_sample_time(%rip)
LBB0_7:
	addl	8(%r15), %r14d
	movl	%r14d, _smscore_onresponse.data_total(%rip)
	movl	(%rbx), %esi
	movq	_MSG_SMS_HO_PER_SLICES_IND@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_9
## %bb.8:
	movq	_MSG_SMS_TRANSMISSION_IND@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_11
LBB0_9:
	movq	(%r14), %rax
	movq	_DEVICE_MODE_DVBT_BDA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	movq	_DVBT_BDA_CONTROL_MSG_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
LBB0_11:
	movl	16(%rbx), %edx
	movq	%r14, %rdi
	callq	_smscore_find_client
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	8(%rax), %edi
	movq	%r15, %rsi
	callq	*(%rax)
	movl	%eax, %r12d
LBB0_13:
	testl	%r12d, %r12d
	js	LBB0_14
## %bb.32:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	(%rbx), %edi
	leal	-128(%rdi), %eax
	cmpl	$20, %eax
	ja	LBB0_30
## %bb.15:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_31:
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_smscore_putbuffer              ## TAILCALL
LBB0_30:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_smscore_translate_msg
	movl	(%rbx), %edx
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_31
LBB0_20:
	leaq	48(%r14), %rdi
	callq	_complete
	jmp	LBB0_31
LBB0_23:
	leaq	36(%r14), %rdi
	callq	_complete
	jmp	LBB0_31
LBB0_28:
	leaq	12(%r14), %rdi
	callq	_complete
	jmp	LBB0_31
LBB0_24:
	leaq	32(%r14), %rdi
	callq	_complete
	jmp	LBB0_31
LBB0_29:
	movl	8(%rbx), %edx
	addq	$24, %rbx
	addl	$-24, %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_sms_ir_event
	jmp	LBB0_31
LBB0_26:
	leaq	24(%r14), %rdi
	callq	_complete
	jmp	LBB0_31
LBB0_25:
	leaq	28(%r14), %rdi
	callq	_complete
	jmp	LBB0_31
LBB0_16:
	movl	12(%rbx), %edx
	movl	4(%rbx), %ecx
	movl	8(%rbx), %r8d
	leaq	L_.str.1(%rip), %rdi
	movl	$145, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	movl	(%rbx), %eax
	cmpl	$255, %eax
	jne	LBB0_18
## %bb.17:
	movq	_DEVICE_MODE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_18:
	cltq
	movq	%rax, (%r14)
	movl	12(%rbx), %eax
	movl	%eax, 60(%r14)
	movl	4(%rbx), %eax
	shll	$8, %eax
	orl	8(%rbx), %eax
	movl	%eax, 8(%r14)
	leaq	56(%r14), %rdi
	callq	_complete
	jmp	LBB0_31
LBB0_22:
	leaq	40(%r14), %rdi
	callq	_complete
	jmp	LBB0_31
LBB0_19:
	leaq	52(%r14), %rdi
	callq	_complete
	jmp	LBB0_31
LBB0_27:
	movl	4(%rbx), %esi
	movl	%esi, 20(%r14)
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	leaq	16(%r14), %rdi
	callq	_complete
	jmp	LBB0_31
LBB0_21:
	movq	(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	leaq	44(%r14), %rdi
	callq	_complete
	jmp	LBB0_31
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
LJTI0_0:
	.long	L0_0_set_20
	.long	L0_0_set_31
	.long	L0_0_set_23
	.long	L0_0_set_28
	.long	L0_0_set_31
	.long	L0_0_set_24
	.long	L0_0_set_31
	.long	L0_0_set_31
	.long	L0_0_set_31
	.long	L0_0_set_31
	.long	L0_0_set_29
	.long	L0_0_set_31
	.long	L0_0_set_31
	.long	L0_0_set_19
	.long	L0_0_set_26
	.long	L0_0_set_27
	.long	L0_0_set_25
	.long	L0_0_set_16
	.long	L0_0_set_31
	.long	L0_0_set_21
	.long	L0_0_set_22
	.end_data_region
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
.zerofill __DATA,__bss,_smscore_onresponse.last_sample_time,8,3 ## @smscore_onresponse.last_sample_time
.zerofill __DATA,__bss,_smscore_onresponse.data_total,4,2 ## @smscore_onresponse.data_total
	.comm	_jiffies,4,2                    ## @jiffies
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"data rate %d bytes/secs\n"

	.comm	_MSG_SMS_HO_PER_SLICES_IND,4,2  ## @MSG_SMS_HO_PER_SLICES_IND
	.comm	_MSG_SMS_TRANSMISSION_IND,4,2   ## @MSG_SMS_TRANSMISSION_IND
	.comm	_DEVICE_MODE_DVBT_BDA,8,3       ## @DEVICE_MODE_DVBT_BDA
	.comm	_DVBT_BDA_CONTROL_MSG_ID,4,2    ## @DVBT_BDA_CONTROL_MSG_ID
L_.str.1:                               ## @.str.1
	.asciz	"Firmware id %d prots 0x%x ver %d.%d\n"

	.comm	_DEVICE_MODE_NONE,4,2           ## @DEVICE_MODE_NONE
L_.str.2:                               ## @.str.2
	.asciz	"MSG_SMS_DATA_VALIDITY_RES, checksum = 0x%x\n"

L_.str.3:                               ## @.str.3
	.asciz	"gpio level %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"message %s(%d) not handled.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smscore_onresponse             ; -- Begin function smscore_onresponse
	.p2align	2
_smscore_onresponse:                    ; @smscore_onresponse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #16]
	ldrsw	x9, [x1]
	add	x22, x8, x9, lsl #2
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _jiffies@GOTPAGE
Lloh4:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_jiffies_to_msecs
	mov	x21, x0
	adrp	x24, _smscore_onresponse.last_sample_time@PAGE
	ldr	x9, [x24, _smscore_onresponse.last_sample_time@PAGEOFF]
	cbnz	x9, LBB0_2
; %bb.1:
	str	x21, [x24, _smscore_onresponse.last_sample_time@PAGEOFF]
	mov	x9, x21
LBB0_2:
	adrp	x25, _smscore_onresponse.data_total@PAGE
	ldr	w8, [x25, _smscore_onresponse.data_total@PAGEOFF]
	mov	w10, #10001
	sub	x9, x21, x9
	cmp	x9, x10
	b.lo	LBB0_4
; %bb.3:
	sxtw	x8, w8
	mov	w10, #1000
	mul	x8, x8, x10
	udiv	x1, x8, x9
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_pr_debug
	mov	w8, #0
	str	x21, [x24, _smscore_onresponse.last_sample_time@PAGEOFF]
LBB0_4:
	ldr	w9, [x19, #8]
	add	w8, w8, w9
	str	w8, [x25, _smscore_onresponse.data_total@PAGEOFF]
	ldr	w1, [x22]
Lloh8:
	adrp	x8, _MSG_SMS_HO_PER_SLICES_IND@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_SMS_HO_PER_SLICES_IND@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _MSG_SMS_TRANSMISSION_IND@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MSG_SMS_TRANSMISSION_IND@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w1, w8
	ccmp	w1, w9, #4, ne
	b.ne	LBB0_7
; %bb.5:
	ldr	x8, [x20]
Lloh14:
	adrp	x9, _DEVICE_MODE_DVBT_BDA@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DEVICE_MODE_DVBT_BDA@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
Lloh17:
	adrp	x8, _DVBT_BDA_CONTROL_MSG_ID@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DVBT_BDA_CONTROL_MSG_ID@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x22, #16]
LBB0_7:
	ldr	w2, [x22, #16]
	mov	x0, x20
	bl	_smscore_find_client
	cbz	x0, LBB0_10
; %bb.8:
	ldr	x8, [x0]
	ldr	w0, [x0, #8]
	mov	x1, x19
	blr	x8
	tbnz	w0, #31, LBB0_11
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
	neg	w0, w23
	tbz	w0, #31, LBB0_9
LBB0_11:
	ldr	w0, [x22]
	sub	w8, w0, #128
	cmp	w8, #20
	b.hi	LBB0_14
; %bb.12:
Lloh20:
	adrp	x9, lJTI0_0@PAGE
Lloh21:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_13
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_13:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_smscore_putbuffer
LBB0_14:
	bl	_smscore_translate_msg
	mov	x1, x0
	ldr	w8, [x22]
	str	x8, [sp]
Lloh22:
	adrp	x0, l_.str.4@PAGE
Lloh23:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_debug
	b	LBB0_13
LBB0_15:
	add	x0, x20, #48
	bl	_complete
	b	LBB0_13
LBB0_16:
	add	x0, x20, #36
	bl	_complete
	b	LBB0_13
LBB0_17:
	add	x0, x20, #12
	bl	_complete
	b	LBB0_13
LBB0_18:
	add	x0, x20, #32
	bl	_complete
	b	LBB0_13
LBB0_19:
	add	x1, x22, #24
	ldr	w8, [x22, #8]
	sub	w2, w8, #24
	mov	x0, x20
	bl	_sms_ir_event
	b	LBB0_13
LBB0_20:
	add	x0, x20, #52
	bl	_complete
	b	LBB0_13
LBB0_21:
	add	x0, x20, #24
	bl	_complete
	b	LBB0_13
LBB0_22:
	ldr	w1, [x22, #4]
	str	w1, [x20, #20]
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_debug
	add	x0, x20, #16
	bl	_complete
	b	LBB0_13
LBB0_23:
	add	x0, x20, #28
	bl	_complete
	b	LBB0_13
LBB0_24:
	ldp	w10, w8, [x22, #8]
	ldr	w9, [x22, #4]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #145
	bl	_pr_debug
Lloh28:
	adrp	x8, _DEVICE_MODE_NONE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DEVICE_MODE_NONE@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	ldp	w9, w10, [x22]
	cmp	w9, #255
	csel	w8, w8, w9, eq
	sxtw	x8, w8
	str	x8, [x20]
	ldp	w9, w8, [x22, #8]
	str	w8, [x20, #60]
	orr	w8, w9, w10, lsl #8
	str	w8, [x20, #8]
	add	x0, x20, #56
	bl	_complete
	b	LBB0_13
LBB0_25:
	ldr	x8, [x22]
	ldr	w1, [x8]
Lloh31:
	adrp	x0, l_.str.2@PAGE
Lloh32:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	add	x0, x20, #44
	bl	_complete
	b	LBB0_13
LBB0_26:
	add	x0, x20, #40
	bl	_complete
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_15-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_16-LBB0_13)>>2
	.byte	(LBB0_17-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_18-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_19-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_20-LBB0_13)>>2
	.byte	(LBB0_21-LBB0_13)>>2
	.byte	(LBB0_22-LBB0_13)>>2
	.byte	(LBB0_23-LBB0_13)>>2
	.byte	(LBB0_24-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_25-LBB0_13)>>2
	.byte	(LBB0_26-LBB0_13)>>2
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
.zerofill __DATA,__bss,_smscore_onresponse.last_sample_time,8,3 ; @smscore_onresponse.last_sample_time
.zerofill __DATA,__bss,_smscore_onresponse.data_total,4,2 ; @smscore_onresponse.data_total
	.comm	_jiffies,4,2                    ; @jiffies
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"data rate %d bytes/secs\n"

	.comm	_MSG_SMS_HO_PER_SLICES_IND,4,2  ; @MSG_SMS_HO_PER_SLICES_IND
	.comm	_MSG_SMS_TRANSMISSION_IND,4,2   ; @MSG_SMS_TRANSMISSION_IND
	.comm	_DEVICE_MODE_DVBT_BDA,8,3       ; @DEVICE_MODE_DVBT_BDA
	.comm	_DVBT_BDA_CONTROL_MSG_ID,4,2    ; @DVBT_BDA_CONTROL_MSG_ID
l_.str.1:                               ; @.str.1
	.asciz	"Firmware id %d prots 0x%x ver %d.%d\n"

	.comm	_DEVICE_MODE_NONE,4,2           ; @DEVICE_MODE_NONE
l_.str.2:                               ; @.str.2
	.asciz	"MSG_SMS_DATA_VALIDITY_RES, checksum = 0x%x\n"

l_.str.3:                               ; @.str.3
	.asciz	"gpio level %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"message %s(%d) not handled.\n"

.subsections_via_symbols
