	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ax25_digi_invert               ## -- Begin function ax25_digi_invert
	.p2align	4, 0x90
_ax25_digi_invert:                      ## @ax25_digi_invert
	.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), %eax
	movl	%eax, (%rsi)
	movl	(%rdi), %eax
	movl	%eax, %r10d
	subl	4(%rdi), %r10d
	addl	$-2, %r10d
	movl	%r10d, 4(%rsi)
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	movq	16(%rsi), %r11
	movl	$-1, %r9d
	xorl	%ecx, %ecx
	movq	_AX25_HBIT@GOTPCREL(%rip), %r8
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rdi), %rdx
	addl	%r9d, %eax
	cltq
	movq	(%rdx,%rax,8), %rax
	movq	%rax, (%r11,%rcx,8)
	movslq	%r10d, %rdx
	movl	(%r8), %eax
	cmpq	%rdx, %rcx
	jle	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	notl	%eax
	movq	16(%rsi), %r11
	movq	(%r11,%rcx,8), %rdx
	andl	%eax, 24(%rdx)
	xorl	%eax, %eax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rsi), %r11
	movq	(%r11,%rcx,8), %rdx
	orl	%eax, 24(%rdx)
	movl	$1, %eax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rsi), %rdx
	movl	%eax, (%rdx,%rcx,4)
	incq	%rcx
	movslq	(%rdi), %rax
	cmpq	%rax, %rcx
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rsi), %r10d
	decl	%r9d
	jmp	LBB0_2
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AX25_HBIT,4,2                  ## @AX25_HBIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ax25_digi_invert               ; -- Begin function ax25_digi_invert
	.p2align	2
_ax25_digi_invert:                      ; @ax25_digi_invert
	.cfi_startproc
; %bb.0:
	ldp	w8, w9, [x0]
	str	w8, [x1]
	ldr	w12, [x0]
	sub	w8, w12, w9
	sub	w13, w8, #2
	str	w13, [x1, #4]
	cmp	w12, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x8, #0
	ldr	x11, [x1, #16]
	mov	w9, #-1
Lloh0:
	adrp	x10, _AX25_HBIT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AX25_HBIT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x0, #16]
	add	w12, w12, w9
	ldr	x12, [x14, w12, sxtw #3]
	str	x12, [x11, x8, lsl #3]
	ldr	w14, [x10]
	cmp	x8, w13, sxtw
	b.le	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w12, #0
	ldr	x11, [x1, #16]
	ldr	x13, [x11, x8, lsl #3]
	ldr	w15, [x13, #24]
	bic	w14, w15, w14
	str	w14, [x13, #24]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x11, [x1, #16]
	ldr	x12, [x11, x8, lsl #3]
	ldr	w13, [x12, #24]
	orr	w13, w13, w14
	str	w13, [x12, #24]
	mov	w12, #1
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x13, [x1, #8]
	str	w12, [x13, x8, lsl #2]
	add	x8, x8, #1
	ldrsw	x12, [x0]
	cmp	x8, x12
	b.ge	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w13, [x1, #4]
	sub	w9, w9, #1
	b	LBB0_2
LBB0_7:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AX25_HBIT,4,2                  ; @AX25_HBIT
.subsections_via_symbols
