	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function slc_encaps
_slc_encaps:                            ## @slc_encaps
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	(%rsi), %esi
	movq	(%rdi), %rcx
	movq	_CAN_RTR_FLAG@GOTPCREL(%rip), %r8
	movl	(%r8), %edx
	andl	%esi, %edx
	sete	%dl
	addb	%dl, %dl
	addb	$82, %dl
	movb	%dl, (%rcx)
	movq	_CAN_EFF_FLAG@GOTPCREL(%rip), %r9
	movl	(%r9), %edi
	testl	%edi, (%r12)
	je	LBB0_2
## %bb.1:
	movq	_CAN_EFF_MASK@GOTPCREL(%rip), %rdi
	movq	_SLC_EFF_ID_LEN@GOTPCREL(%rip), %rdx
	jmp	LBB0_3
LBB0_2:
	orb	$32, %dl
	movb	%dl, (%rcx)
	movq	_CAN_SFF_MASK@GOTPCREL(%rip), %rdi
	movq	_SLC_SFF_ID_LEN@GOTPCREL(%rip), %rdx
LBB0_3:
	movl	(%rdx), %edx
	testl	%edx, %edx
	jle	LBB0_10
## %bb.4:
	andl	(%rdi), %esi
	testb	$1, %dl
	jne	LBB0_6
## %bb.5:
	movq	%rdx, %rdi
	cmpl	$1, %edx
	jne	LBB0_8
	jmp	LBB0_10
LBB0_6:
	movq	_hex_asc_upper@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movl	%esi, %eax
	andl	$15, %eax
	movb	(%rdi,%rax,4), %al
	leaq	-1(%rdx), %rdi
	movb	%al, (%rcx,%rdx)
	sarl	$4, %esi
	cmpl	$1, %edx
	je	LBB0_10
LBB0_8:
	incq	%rdi
	movq	_hex_asc_upper@GOTPCREL(%rip), %rdx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx), %rax
	movl	%esi, %ebx
	andl	$15, %ebx
	movzbl	(%rax,%rbx,4), %eax
	movb	%al, -1(%rcx,%rdi)
	movl	%esi, %eax
	shrl	$4, %eax
	movq	(%rdx), %rbx
	andl	$15, %eax
	movzbl	(%rbx,%rax,4), %eax
	movb	%al, -2(%rcx,%rdi)
	sarl	$8, %esi
	addq	$-2, %rdi
	cmpq	$1, %rdi
	ja	LBB0_9
LBB0_10:
	incq	%rcx
	movl	(%r9), %eax
	andl	(%r12), %eax
	jne	LBB0_11
## %bb.12:
	movq	_SLC_SFF_ID_LEN@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_SLC_EFF_ID_LEN@GOTPCREL(%rip), %rax
LBB0_13:
	movslq	(%rax), %rdx
	movb	4(%r12), %bl
	addb	$48, %bl
	leaq	(%rcx,%rdx), %rax
	incq	%rax
	movb	%bl, (%rcx,%rdx)
	movl	(%r8), %ecx
	testl	%ecx, (%r12)
	jne	LBB0_17
## %bb.14:
	cmpl	$0, 4(%r12)
	jle	LBB0_17
## %bb.15:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rcx
	movl	(%rcx,%rbx,4), %esi
	movq	%rax, %rdi
	callq	_hex_byte_pack_upper
	incq	%rbx
	movslq	4(%r12), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_16
LBB0_17:
	leal	1(%rax), %r15d
	movb	$13, (%rax)
	movq	_TTY_DO_WRITE_WAKEUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	32(%r14), %rsi
	addq	$8, %rsi
	callq	_set_bit
	movq	(%r14), %rsi
	movq	32(%r14), %rdi
	movq	(%rdi), %rax
	movl	%r15d, %edx
	subl	%esi, %edx
	callq	*(%rax)
	cltq
	addq	(%r14), %rax
	subl	%eax, %r15d
	movl	%r15d, 8(%r14)
	movq	%rax, 16(%r14)
	movl	4(%r12), %eax
	movq	24(%r14), %rcx
	addl	%eax, (%rcx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAN_RTR_FLAG,4,2               ## @CAN_RTR_FLAG
	.comm	_CAN_EFF_FLAG,4,2               ## @CAN_EFF_FLAG
	.comm	_CAN_EFF_MASK,4,2               ## @CAN_EFF_MASK
	.comm	_SLC_EFF_ID_LEN,4,2             ## @SLC_EFF_ID_LEN
	.comm	_CAN_SFF_MASK,4,2               ## @CAN_SFF_MASK
	.comm	_SLC_SFF_ID_LEN,4,2             ## @SLC_SFF_ID_LEN
	.comm	_hex_asc_upper,8,3              ## @hex_asc_upper
	.comm	_TTY_DO_WRITE_WAKEUP,4,2        ## @TTY_DO_WRITE_WAKEUP
	.no_dead_strip	_slc_encaps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function slc_encaps
_slc_encaps:                            ; @slc_encaps
	.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, x1
	mov	x19, x0
	ldr	w12, [x1]
	ldr	x9, [x0]
Lloh0:
	adrp	x8, _CAN_RTR_FLAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAN_RTR_FLAG@GOTPAGEOFF]
	ldr	w10, [x8]
	tst	w10, w12
	mov	w10, #82
	mov	w11, #84
	csel	w13, w11, w10, eq
	strb	w13, [x9]
	ldr	w14, [x1]
Lloh2:
	adrp	x10, _CAN_EFF_FLAG@GOTPAGE
Lloh3:
	ldr	x10, [x10, _CAN_EFF_FLAG@GOTPAGEOFF]
	ldr	w15, [x10]
Lloh4:
	adrp	x11, _SLC_EFF_ID_LEN@GOTPAGE
Lloh5:
	ldr	x11, [x11, _SLC_EFF_ID_LEN@GOTPAGEOFF]
	tst	w15, w14
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x15, _CAN_EFF_MASK@GOTPAGE
Lloh7:
	ldr	x15, [x15, _CAN_EFF_MASK@GOTPAGEOFF]
	mov	x13, x11
	b	LBB0_3
LBB0_2:
	orr	w13, w13, #0x20
	strb	w13, [x9]
Lloh8:
	adrp	x15, _CAN_SFF_MASK@GOTPAGE
Lloh9:
	ldr	x15, [x15, _CAN_SFF_MASK@GOTPAGEOFF]
Lloh10:
	adrp	x13, _SLC_SFF_ID_LEN@GOTPAGE
Lloh11:
	ldr	x13, [x13, _SLC_SFF_ID_LEN@GOTPAGEOFF]
LBB0_3:
	ldr	w14, [x13]
	add	x13, x9, #1
	cmp	w14, #1
	b.lt	LBB0_6
; %bb.4:
	ldr	w15, [x15]
	and	w12, w15, w12
Lloh12:
	adrp	x15, _hex_asc_upper@GOTPAGE
Lloh13:
	ldr	x15, [x15, _hex_asc_upper@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x16, [x15]
	and	w17, w12, #0xf
	ldr	w16, [x16, w17, uxtw #2]
	strb	w16, [x9, x14]
	asr	w12, w12, #4
	subs	x14, x14, #1
	b.hi	LBB0_5
LBB0_6:
	ldr	w9, [x20]
Lloh14:
	adrp	x12, _SLC_SFF_ID_LEN@GOTPAGE
Lloh15:
	ldr	x12, [x12, _SLC_SFF_ID_LEN@GOTPAGEOFF]
	ldr	w10, [x10]
	tst	w10, w9
	csel	x9, x12, x11, eq
	ldrsw	x9, [x9]
	add	x0, x13, x9
	ldrb	w9, [x20, #4]
	add	w9, w9, #48
	strb	w9, [x0], #1
	ldr	w9, [x20]
	ldr	w8, [x8]
	tst	w8, w9
	b.ne	LBB0_10
; %bb.7:
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x21, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w1, [x8, x21, lsl #2]
	bl	_hex_byte_pack_upper
	add	x21, x21, #1
	ldrsw	x8, [x20, #4]
	cmp	x21, x8
	b.lt	LBB0_9
LBB0_10:
	add	w21, w0, #1
	mov	w8, #13
	strb	w8, [x0]
Lloh16:
	adrp	x8, _TTY_DO_WRITE_WAKEUP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TTY_DO_WRITE_WAKEUP@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldr	x8, [x19, #32]
	add	x1, x8, #8
	bl	_set_bit
	ldr	x0, [x19, #32]
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x1, [x19]
	sub	w2, w21, w1
	blr	x8
	ldr	x8, [x19]
	add	x8, x8, w0, sxtw
	sub	w9, w21, w8
	str	w9, [x19, #8]
	str	x8, [x19, #16]
	ldr	w8, [x20, #4]
	ldr	x9, [x19, #24]
	ldr	w10, [x9]
	add	w8, w10, w8
	str	w8, [x9]
	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
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_CAN_RTR_FLAG,4,2               ; @CAN_RTR_FLAG
	.comm	_CAN_EFF_FLAG,4,2               ; @CAN_EFF_FLAG
	.comm	_CAN_EFF_MASK,4,2               ; @CAN_EFF_MASK
	.comm	_SLC_EFF_ID_LEN,4,2             ; @SLC_EFF_ID_LEN
	.comm	_CAN_SFF_MASK,4,2               ; @CAN_SFF_MASK
	.comm	_SLC_SFF_ID_LEN,4,2             ; @SLC_SFF_ID_LEN
	.comm	_hex_asc_upper,8,3              ; @hex_asc_upper
	.comm	_TTY_DO_WRITE_WAKEUP,4,2        ; @TTY_DO_WRITE_WAKEUP
	.no_dead_strip	_slc_encaps
.subsections_via_symbols
