	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ax25_send_frame                ## -- Begin function ax25_send_frame
	.p2align	4, 0x90
_ax25_send_frame:                       ## @ax25_send_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rdi, %r13
	testl	%esi, %esi
	jne	LBB0_3
## %bb.1:
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%r12, %rdi
	callq	_ax25_dev_ax25dev
	testq	%rax, %rax
	je	LBB0_14
## %bb.2:
	movq	(%rax), %rax
	movq	_AX25_VALUES_PACLEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	-56(%rbp), %r8                  ## 8-byte Reload
LBB0_3:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r8, %rdx
	movq	%r12, %rcx
	movq	%r8, %r13
	callq	_ax25_find_cb
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rax, %rbx
LBB0_5:
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_ax25_output
	jmp	LBB0_6
LBB0_7:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_ax25_dev_ax25dev
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_ax25_create_cb
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_ax25_fillin_cb
	movq	(%r14), %rax
	movq	%rax, 32(%rbx)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kmemdup
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_17
LBB0_11:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_AX25_VALUES_PROTOCOL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	callq	_ax25_std_establish_data_link
LBB0_13:
	movq	%rbx, %rdi
	callq	_ax25_cb_add
	movq	_AX25_STATE_1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_ax25_start_heartbeat
	jmp	LBB0_5
LBB0_14:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	%rbx, %rdi
	callq	_ax25_cb_put
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_AX25_VALUES_PACLEN,8,3         ## @AX25_VALUES_PACLEN
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_AX25_VALUES_PROTOCOL,8,3       ## @AX25_VALUES_PROTOCOL
	.comm	_AX25_STATE_1,4,2               ## @AX25_STATE_1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ax25_send_frame                ; -- Begin function ax25_send_frame
	.p2align	2
_ax25_send_frame:                       ; @ax25_send_frame
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x25, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x20, x1
	mov	x19, x0
	cbnz	w1, LBB0_3
; %bb.1:
	mov	x0, x25
	bl	_ax25_dev_ax25dev
	cbz	x0, LBB0_13
; %bb.2:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _AX25_VALUES_PACLEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AX25_VALUES_PACLEN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w20, [x8, x9, lsl #2]
LBB0_3:
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	mov	x3, x25
	bl	_ax25_find_cb
	cbz	x0, LBB0_6
; %bb.4:
	mov	x21, x0
LBB0_5:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_ax25_output
	b	LBB0_14
LBB0_6:
	mov	x0, x25
	bl	_ax25_dev_ax25dev
	cbz	x0, LBB0_13
; %bb.7:
	mov	x25, x0
	bl	_ax25_create_cb
	mov	x21, x0
	cbz	x0, LBB0_14
; %bb.8:
	mov	x0, x21
	mov	x1, x25
	bl	_ax25_fillin_cb
	ldr	x8, [x24]
	str	x8, [x21, #32]
	ldr	x8, [x23]
	str	x8, [x21, #24]
	cbz	x22, LBB0_10
; %bb.9:
Lloh3:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #4
	bl	_kmemdup
	str	x0, [x21, #16]
	cbz	x0, LBB0_15
LBB0_10:
	ldr	x8, [x21, #8]
Lloh6:
	adrp	x9, _AX25_VALUES_PROTOCOL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AX25_VALUES_PROTOCOL@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh8:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x21
	bl	_ax25_std_establish_data_link
LBB0_12:
	mov	x0, x21
	bl	_ax25_cb_add
Lloh9:
	adrp	x8, _AX25_STATE_1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AX25_STATE_1@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x21]
	mov	x0, x21
	bl	_ax25_start_heartbeat
	b	LBB0_5
LBB0_13:
	mov	x21, #0
LBB0_14:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	x0, x21
	bl	_ax25_cb_put
	mov	x21, #0
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AX25_VALUES_PACLEN,8,3         ; @AX25_VALUES_PACLEN
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_AX25_VALUES_PROTOCOL,8,3       ; @AX25_VALUES_PROTOCOL
	.comm	_AX25_STATE_1,4,2               ; @AX25_STATE_1
.subsections_via_symbols
