	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ax25_calculate_t1              ## -- Begin function ax25_calculate_t1
	.p2align	4, 0x90
_ax25_calculate_t1:                     ## @ax25_calculate_t1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %ecx
	cmpl	$1, %ecx
	je	LBB0_6
## %bb.1:
	movl	$2, %eax
	cmpl	$2, %ecx
	jne	LBB0_12
## %bb.2:
	movl	4(%rdi), %edx
	testl	%edx, %edx
	jle	LBB0_3
## %bb.4:
	leal	-1(%rdx), %ecx
	movl	%edx, %eax
	andl	$7, %eax
	cmpl	$7, %ecx
	jae	LBB0_7
## %bb.5:
	movl	$2, %ecx
	jmp	LBB0_9
LBB0_6:
	movl	4(%rdi), %eax
	addl	%eax, %eax
	addl	$2, %eax
	jmp	LBB0_12
LBB0_3:
	movl	$2, %ecx
	jmp	LBB0_11
LBB0_7:
	andl	$-8, %edx
	movl	$2, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	shll	$8, %ecx
	addl	$-8, %edx
	jne	LBB0_8
LBB0_9:
	testl	%eax, %eax
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	addl	%ecx, %ecx
	decl	%eax
	jne	LBB0_10
LBB0_11:
	cmpl	$8, %ecx
	movl	$8, %eax
	cmovbl	%ecx, %eax
LBB0_12:
	imull	12(%rdi), %eax
	movl	%eax, 8(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ax25_calculate_t1              ; -- Begin function ax25_calculate_t1
	.p2align	2
_ax25_calculate_t1:                     ; @ax25_calculate_t1
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, #1
	b.eq	LBB0_5
; %bb.1:
	cmp	w8, #2
	b.ne	LBB0_6
; %bb.2:
	ldr	w9, [x0, #4]
	mov	w8, #2
	cmp	w9, #1
	b.lt	LBB0_4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w8, w8, #1
	subs	w9, w9, #1
	b.ne	LBB0_3
LBB0_4:
	mov	w9, #8
	cmp	w8, #8
	csel	w8, w8, w9, lo
	b	LBB0_7
LBB0_5:
	ldr	w8, [x0, #4]
	lsl	w8, w8, #1
	add	w8, w8, #2
	b	LBB0_7
LBB0_6:
	mov	w8, #2
LBB0_7:
	ldr	w9, [x0, #12]
	mul	w8, w9, w8
	str	w8, [x0, #8]
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
