	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smscore_translate_msg          ## -- Begin function smscore_translate_msg
	.p2align	4, 0x90
_smscore_translate_msg:                 ## @smscore_translate_msg
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_MSG_TYPE_BASE_VAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	leaq	L_.str(%rip), %r14
	js	LBB0_3
## %bb.1:
	movq	_siano_msgs@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jge	LBB0_3
## %bb.2:
	movq	(%r15), %rax
	movl	%ebx, %ecx
	movq	(%rax,%rcx,8), %rax
	cmpb	$0, (%rax)
	leaq	L_.str(%rip), %r14
	cmovneq	%rax, %r14
LBB0_3:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_TYPE_BASE_VAL,4,2          ## @MSG_TYPE_BASE_VAL
	.comm	_siano_msgs,8,3                 ## @siano_msgs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown msg type"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smscore_translate_msg          ; -- Begin function smscore_translate_msg
	.p2align	2
_smscore_translate_msg:                 ; @smscore_translate_msg
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _MSG_TYPE_BASE_VAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_TYPE_BASE_VAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	subs	w19, w0, w8
	b.mi	LBB0_3
; %bb.1:
Lloh3:
	adrp	x20, _siano_msgs@GOTPAGE
Lloh4:
	ldr	x20, [x20, _siano_msgs@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	mov	x8, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	cmp	w19, w8
	b.ge	LBB0_4
; %bb.2:
	ldr	x8, [x20]
	ldr	x8, [x8, w19, uxtw #3]
	ldrb	w9, [x8]
	cmp	w9, #0
	csel	x0, x0, x8, eq
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_TYPE_BASE_VAL,4,2          ; @MSG_TYPE_BASE_VAL
	.comm	_siano_msgs,8,3                 ; @siano_msgs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown msg type"

.subsections_via_symbols
