	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function baycom_send_packet
_baycom_send_packet:                    ## @baycom_send_packet
	.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, %r15
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	(%r12), %rbx
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %rbx
	jne	LBB0_1
## %bb.9:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ax25_ip_xmit                   ## TAILCALL
LBB0_1:
	movq	8(%r12), %rsi
	cmpq	$0, (%rsi)
	je	LBB0_3
## %bb.2:
	movl	16(%r12), %edx
	movq	%r14, %rdi
	callq	_do_kiss_params
	jmp	LBB0_4
LBB0_3:
	cmpq	$0, (%r14)
	je	LBB0_5
LBB0_4:
	movq	%r12, %rdi
	callq	_dev_kfree_skb
LBB0_8:
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	16(%r12), %eax
	cmpl	$3, %eax
	jl	LBB0_4
## %bb.6:
	movq	_HDLCDRV_MAXFLEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_4
## %bb.7:
	movq	%r15, %rdi
	callq	_netif_stop_queue
	movq	%r12, (%r14)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_HDLCDRV_MAXFLEN,4,2            ## @HDLCDRV_MAXFLEN
	.no_dead_strip	_baycom_send_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function baycom_send_packet
_baycom_send_packet:                    ; @baycom_send_packet
	.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	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x20, x0
	ldr	x22, [x19]
Lloh0:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htons
	cmp	x22, x0
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	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
	b	_ax25_ip_xmit
LBB0_2:
	ldr	x1, [x19, #8]
	ldr	x8, [x1]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w2, [x19, #16]
	mov	x0, x20
	bl	_do_kiss_params
	b	LBB0_5
LBB0_4:
	ldr	x8, [x20]
	cbz	x8, LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_dev_kfree_skb
LBB0_6:
Lloh3:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	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
LBB0_7:
	ldr	w8, [x19, #16]
	cmp	w8, #3
	b.lt	LBB0_5
; %bb.8:
Lloh6:
	adrp	x9, _HDLCDRV_MAXFLEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HDLCDRV_MAXFLEN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_5
; %bb.9:
	mov	x0, x21
	bl	_netif_stop_queue
	str	x19, [x20]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_HDLCDRV_MAXFLEN,4,2            ; @HDLCDRV_MAXFLEN
	.no_dead_strip	_baycom_send_packet
.subsections_via_symbols
