	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function can_frame_to_ican3
_can_frame_to_ican3:                    ## @can_frame_to_ican3
	.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
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdx), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_ICAN3_CAN_TYPE_EFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	(%rbx), %rdi
	movl	(%rdi), %ecx
	movl	4(%rdi), %eax
	orl	(%r14), %ecx
	movl	%ecx, (%rdi)
	movq	_ICAN3_ECHO@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, 4(%rdi)
	movq	_CAN_CTRLMODE_ONE_SHOT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%r15)
	je	LBB0_2
## %bb.1:
	movq	_ICAN3_SNGL@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, 4(%rdi)
LBB0_2:
	movl	4(%r14), %eax
	movq	_CAN_RTR_FLAG@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_4
## %bb.3:
	movq	_ICAN3_EFF_RTR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rdi)
	movl	4(%r14), %eax
LBB0_4:
	movq	_CAN_EFF_FLAG@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_6
## %bb.5:
	movq	_ICAN3_EFF@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rdi)
	movl	4(%r14), %eax
	shrl	$21, %eax
	movzbl	%al, %eax
	movl	%eax, 8(%rdi)
	movl	4(%r14), %eax
	shrl	$13, %eax
	movzbl	%al, %eax
	movl	%eax, 12(%rdi)
	movl	4(%r14), %eax
	shrl	$5, %eax
	movl	$5, %edx
	movl	$248, %esi
	movl	$3, %ecx
	movl	$4, %ebx
	jmp	LBB0_7
LBB0_6:
	shrl	$3, %eax
	movl	$3, %edx
	movl	$224, %esi
	movl	$5, %ecx
	movl	$2, %ebx
LBB0_7:
	movzbl	%al, %eax
	movl	%eax, (%rdi,%rbx,4)
	movl	4(%r14), %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	andl	%esi, %eax
	movl	%eax, (%rdi,%rdx,4)
	addq	$24, %rdi
	movl	(%r14), %edx
	movl	8(%r14), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ICAN3_CAN_TYPE_EFF,4,2         ## @ICAN3_CAN_TYPE_EFF
	.comm	_ICAN3_ECHO,4,2                 ## @ICAN3_ECHO
	.comm	_CAN_CTRLMODE_ONE_SHOT,4,2      ## @CAN_CTRLMODE_ONE_SHOT
	.comm	_ICAN3_SNGL,4,2                 ## @ICAN3_SNGL
	.comm	_CAN_RTR_FLAG,4,2               ## @CAN_RTR_FLAG
	.comm	_ICAN3_EFF_RTR,4,2              ## @ICAN3_EFF_RTR
	.comm	_CAN_EFF_FLAG,4,2               ## @CAN_EFF_FLAG
	.comm	_ICAN3_EFF,4,2                  ## @ICAN3_EFF
	.no_dead_strip	_can_frame_to_ican3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function can_frame_to_ican3
_can_frame_to_ican3:                    ; @can_frame_to_ican3
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x0, [x2]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh0:
	adrp	x8, _ICAN3_CAN_TYPE_EFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICAN3_CAN_TYPE_EFF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	ldr	w9, [x19]
	ldr	x8, [x20]
	ldp	w10, w11, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
Lloh3:
	adrp	x10, _ICAN3_ECHO@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ICAN3_ECHO@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w10, w11, w10
	str	w10, [x8, #4]
	ldr	w11, [x21]
Lloh6:
	adrp	x12, _CAN_CTRLMODE_ONE_SHOT@GOTPAGE
Lloh7:
	ldr	x12, [x12, _CAN_CTRLMODE_ONE_SHOT@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x12]
	tst	w12, w11
	b.eq	LBB0_2
; %bb.1:
Lloh9:
	adrp	x11, _ICAN3_SNGL@GOTPAGE
Lloh10:
	ldr	x11, [x11, _ICAN3_SNGL@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	orr	w10, w11, w10
	str	w10, [x8, #4]
LBB0_2:
	ldr	w10, [x19, #4]
Lloh12:
	adrp	x11, _CAN_RTR_FLAG@GOTPAGE
Lloh13:
	ldr	x11, [x11, _CAN_RTR_FLAG@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_4
; %bb.3:
Lloh15:
	adrp	x10, _ICAN3_EFF_RTR@GOTPAGE
Lloh16:
	ldr	x10, [x10, _ICAN3_EFF_RTR@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x8]
	ldr	w10, [x19, #4]
LBB0_4:
Lloh18:
	adrp	x11, _CAN_EFF_FLAG@GOTPAGE
Lloh19:
	ldr	x11, [x11, _CAN_EFF_FLAG@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_6
; %bb.5:
Lloh21:
	adrp	x10, _ICAN3_EFF@GOTPAGE
Lloh22:
	ldr	x10, [x10, _ICAN3_EFF@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x8]
	ldr	w9, [x19, #4]
	ubfx	w9, w9, #21, #8
	str	w9, [x8, #8]
	ldr	w9, [x19, #4]
	ubfx	w9, w9, #13, #8
	str	w9, [x8, #12]
	ldr	w9, [x19, #4]
	lsr	w10, w9, #5
	mov	w9, #248
	mov	w11, #3
	mov	w12, #5
	mov	w13, #4
	b	LBB0_7
LBB0_6:
	lsr	w10, w10, #3
	mov	w9, #224
	mov	w11, #5
	mov	w12, #3
	mov	w13, #2
LBB0_7:
	and	w10, w10, #0xff
	str	w10, [x8, x13, lsl #2]
	ldr	w10, [x19, #4]
	lsl	w10, w10, w11
	and	w9, w10, w9
	str	w9, [x8, x12, lsl #2]
	add	x0, x8, #24
	ldr	w1, [x19, #8]
	ldr	w2, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_memcpy
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ICAN3_CAN_TYPE_EFF,4,2         ; @ICAN3_CAN_TYPE_EFF
	.comm	_ICAN3_ECHO,4,2                 ; @ICAN3_ECHO
	.comm	_CAN_CTRLMODE_ONE_SHOT,4,2      ; @CAN_CTRLMODE_ONE_SHOT
	.comm	_ICAN3_SNGL,4,2                 ; @ICAN3_SNGL
	.comm	_CAN_RTR_FLAG,4,2               ; @CAN_RTR_FLAG
	.comm	_ICAN3_EFF_RTR,4,2              ; @ICAN3_EFF_RTR
	.comm	_CAN_EFF_FLAG,4,2               ; @CAN_EFF_FLAG
	.comm	_ICAN3_EFF,4,2                  ; @ICAN3_EFF
	.no_dead_strip	_can_frame_to_ican3
.subsections_via_symbols
