	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ican3_to_can_frame
_ican3_to_can_frame:                    ## @ican3_to_can_frame
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	_ICAN3_CAN_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	(%rsi), %ecx
	movq	_ICAN3_CAN_TYPE_SFF@GOTPCREL(%rip), %rdx
	movq	8(%rsi), %rax
	cmpl	(%rdx), %ecx
	jne	LBB0_5
## %bb.1:
	movq	_ICAN3_SFF_RTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rax)
	je	LBB0_2
## %bb.3:
	movq	_CAN_RTR_FLAG@GOTPCREL(%rip), %rdx
	movl	(%rbx), %ecx
	orl	(%rdx), %ecx
	movl	%ecx, (%rbx)
	jmp	LBB0_4
LBB0_5:
	movq	_ICAN3_CAN_DLC_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	andl	(%rax), %edi
	callq	_get_can_dlc
	movq	%rax, 8(%rbx)
	movq	8(%r14), %rsi
	movl	(%rsi), %ecx
	movq	_ICAN3_EFF_RTR@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_7
## %bb.6:
	movq	_CAN_RTR_FLAG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rbx)
	movl	(%rsi), %ecx
LBB0_7:
	movq	_ICAN3_EFF@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_9
## %bb.8:
	movq	_CAN_EFF_FLAG@GOTPCREL(%rip), %rcx
	movl	(%rbx), %edx
	orl	(%rcx), %edx
	movl	%edx, (%rbx)
	movl	8(%rsi), %ecx
	shll	$21, %ecx
	orl	%edx, %ecx
	movl	%ecx, (%rbx)
	movl	12(%rsi), %edx
	shll	$13, %edx
	orl	%ecx, %edx
	movl	%edx, (%rbx)
	movl	16(%rsi), %ecx
	shll	$5, %ecx
	orl	%edx, %ecx
	movl	%ecx, (%rbx)
	movl	20(%rsi), %edx
	shrl	$3, %edx
	andl	$31, %edx
	jmp	LBB0_10
LBB0_2:
	movl	(%rbx), %ecx
LBB0_4:
	movl	(%rax), %edx
	shll	$3, %edx
	orl	%ecx, %edx
	movl	%edx, (%rbx)
	movl	4(%rax), %ecx
	shrl	$5, %ecx
	andl	$7, %ecx
	orl	%edx, %ecx
	movl	%ecx, (%rbx)
	movq	_ICAN3_CAN_DLC_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	andl	4(%rax), %edi
	callq	_get_can_dlc
	movq	%rax, 8(%rbx)
	movl	16(%rbx), %edi
	movq	8(%r14), %rsi
	addq	$8, %rsi
	jmp	LBB0_11
LBB0_9:
	movl	8(%rsi), %ecx
	shll	$3, %ecx
	orl	(%rbx), %ecx
	movl	%ecx, (%rbx)
	movl	12(%rsi), %edx
	sarl	$5, %edx
LBB0_10:
	orl	%ecx, %edx
	movl	%edx, (%rbx)
	movl	16(%rbx), %edi
	addq	$24, %rsi
LBB0_11:
	movq	%rax, %rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ICAN3_CAN_TYPE_MASK,4,2        ## @ICAN3_CAN_TYPE_MASK
	.comm	_ICAN3_CAN_TYPE_SFF,4,2         ## @ICAN3_CAN_TYPE_SFF
	.comm	_ICAN3_SFF_RTR,4,2              ## @ICAN3_SFF_RTR
	.comm	_CAN_RTR_FLAG,4,2               ## @CAN_RTR_FLAG
	.comm	_ICAN3_CAN_DLC_MASK,4,2         ## @ICAN3_CAN_DLC_MASK
	.comm	_ICAN3_EFF_RTR,4,2              ## @ICAN3_EFF_RTR
	.comm	_ICAN3_EFF,4,2                  ## @ICAN3_EFF
	.comm	_CAN_EFF_FLAG,4,2               ## @CAN_EFF_FLAG
	.no_dead_strip	_ican3_to_can_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ican3_to_can_frame
_ican3_to_can_frame:                    ; @ican3_to_can_frame
	.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
	mov	x19, x2
	mov	x20, x1
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _ICAN3_CAN_TYPE_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ICAN3_CAN_TYPE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh3:
	adrp	x8, _ICAN3_CAN_TYPE_SFF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ICAN3_CAN_TYPE_SFF@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x8]
	ldr	x8, [x1, #8]
	cmp	w9, w10
	b.ne	LBB0_3
; %bb.1:
	ldr	w9, [x8, #4]
Lloh6:
	adrp	x10, _ICAN3_SFF_RTR@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ICAN3_SFF_RTR@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.2:
Lloh9:
	adrp	x9, _CAN_RTR_FLAG@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CAN_RTR_FLAG@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
	b	LBB0_8
LBB0_3:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _ICAN3_CAN_DLC_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ICAN3_CAN_DLC_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_get_can_dlc
	mov	x2, x0
	str	x0, [x19, #8]
	ldr	x8, [x20, #8]
	ldr	w9, [x8]
Lloh15:
	adrp	x10, _ICAN3_EFF_RTR@GOTPAGE
Lloh16:
	ldr	x10, [x10, _ICAN3_EFF_RTR@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.4:
Lloh18:
	adrp	x9, _CAN_RTR_FLAG@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CAN_RTR_FLAG@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
	ldr	w9, [x8]
LBB0_5:
Lloh21:
	adrp	x10, _ICAN3_EFF@GOTPAGE
Lloh22:
	ldr	x10, [x10, _ICAN3_EFF@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_9
; %bb.6:
Lloh24:
	adrp	x9, _CAN_EFF_FLAG@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CAN_EFF_FLAG@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
	ldr	w10, [x8, #8]
	orr	w9, w9, w10, lsl #21
	str	w9, [x19]
	ldr	w10, [x8, #12]
	orr	w9, w9, w10, lsl #13
	str	w9, [x19]
	ldr	w10, [x8, #16]
	orr	w9, w9, w10, lsl #5
	str	w9, [x19]
	ldr	w10, [x8, #20]
	ubfx	w10, w10, #3, #5
	orr	w9, w10, w9
	b	LBB0_10
LBB0_7:
	ldr	w9, [x19]
LBB0_8:
	ldr	w10, [x8]
	orr	w9, w9, w10, lsl #3
	str	w9, [x19]
	ldr	w10, [x8, #4]
	ubfx	w10, w10, #5, #3
	orr	w9, w10, w9
	str	w9, [x19]
	ldr	w8, [x8, #4]
Lloh27:
	adrp	x9, _ICAN3_CAN_DLC_MASK@GOTPAGE
Lloh28:
	ldr	x9, [x9, _ICAN3_CAN_DLC_MASK@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_get_can_dlc
	mov	x2, x0
	str	x0, [x19, #8]
	ldr	w0, [x19, #16]
	ldr	x8, [x20, #8]
	add	x1, x8, #8
	b	LBB0_11
LBB0_9:
	ldr	w9, [x8, #8]
	ldr	w10, [x19]
	orr	w9, w10, w9, lsl #3
	str	w9, [x19]
	ldr	w10, [x8, #12]
	orr	w9, w9, w10, asr #5
LBB0_10:
	str	w9, [x19]
	ldr	w0, [x19, #16]
	add	x1, x8, #24
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_memcpy
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ICAN3_CAN_TYPE_MASK,4,2        ; @ICAN3_CAN_TYPE_MASK
	.comm	_ICAN3_CAN_TYPE_SFF,4,2         ; @ICAN3_CAN_TYPE_SFF
	.comm	_ICAN3_SFF_RTR,4,2              ; @ICAN3_SFF_RTR
	.comm	_CAN_RTR_FLAG,4,2               ; @CAN_RTR_FLAG
	.comm	_ICAN3_CAN_DLC_MASK,4,2         ; @ICAN3_CAN_DLC_MASK
	.comm	_ICAN3_EFF_RTR,4,2              ; @ICAN3_EFF_RTR
	.comm	_ICAN3_EFF,4,2                  ; @ICAN3_EFF
	.comm	_CAN_EFF_FLAG,4,2               ; @CAN_EFF_FLAG
	.no_dead_strip	_ican3_to_can_frame
.subsections_via_symbols
