	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rose_sendmsg
_rose_sendmsg:                          ## @rose_sendmsg
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movq	(%rsi), %r14
	movq	%r14, %rdi
	callq	_rose_sk
	movq	_MSG_DONTWAIT@GOTPCREL(%rip), %r15
	movq	_MSG_EOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%r15), %ecx
	movq	_MSG_CMSG_COMPAT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	notl	%ecx
	testl	%ecx, (%r12)
	je	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %r13
	movq	_SOCK_ZAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sock_flag
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_SEND_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_9
## %bb.8:
	movq	_SIGPIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_send_sig
	movq	_EPIPE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_9:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmpq	$0, 40(%rdx)
	je	LBB0_17
## %bb.10:
	cmpq	$0, 32(%rdx)
	je	LBB0_17
## %bb.11:
	testq	%r13, %r13
	je	LBB0_18
## %bb.12:
	movl	4(%r12), %eax
	cmpl	$4, %eax
	je	LBB0_14
## %bb.13:
	cmpl	$32, %eax
	jne	LBB0_1
LBB0_14:
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	4(%r12), %edx
	leaq	-88(%rbp), %rdi
	movq	%r13, %rsi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	callq	_memcpy
	leaq	28(%r13), %rdi
	leaq	-60(%rbp), %rsi
	callq	_rosecmp
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	movq	%r13, %rdi
	addq	$24, %rdi
	leaq	-64(%rbp), %rsi
	callq	_ax25cmp
	testq	%rax, %rax
	je	LBB0_23
LBB0_16:
	movq	_EISCONN@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, %ebx
	jmp	LBB0_6
LBB0_17:
	movq	_ENETUNREACH@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_18:
	movq	8(%r14), %rax
	movq	_TCP_ESTABLISHED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.19:
	movq	_AF_ROSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	movl	28(%rdx), %eax
	movl	%eax, -60(%rbp)
	movl	24(%rdx), %eax
	movl	%eax, -64(%rbp)
	movl	(%rdx), %eax
	movl	%eax, -88(%rbp)
	testl	%eax, %eax
	jle	LBB0_29
## %bb.20:
	movl	$1, %eax
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	incq	%rax
	jmp	LBB0_21
LBB0_22:
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_23:
	movl	-88(%rbp), %eax
	cmpl	(%r13), %eax
	jne	LBB0_34
## %bb.24:
	testl	%eax, %eax
	jle	LBB0_28
## %bb.25:
	movq	%r13, %rcx
	xorl	%r13d, %r13d
	xorl	%edx, %edx
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	16(%rcx), %rdi
	addq	%r13, %rdi
	movq	-72(%rbp), %rsi
	addq	%r13, %rsi
	callq	_ax25cmp
	testq	%rax, %rax
	jne	LBB0_34
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movslq	-88(%rbp), %rax
	addq	$4, %r13
	cmpq	%rax, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	jl	LBB0_26
LBB0_28:
	movq	-80(%rbp), %rax
	movq	_AF_ROSE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
LBB0_29:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_SOCK_DEBUG
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_SOCK_DEBUG
	cmpq	$65536, %rbx                    ## imm = 0x10000
	jb	LBB0_31
## %bb.30:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_31:
	movq	_AX25_BPQ_HEADER_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	movq	_AX25_MAX_HEADER_LEN@GOTPCREL(%rip), %rax
	addl	(%rax), %esi
	movq	_ROSE_MIN_LEN@GOTPCREL(%rip), %rax
	addl	(%rax), %esi
	movl	(%r15), %edx
	andl	(%r12), %edx
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	callq	_sock_alloc_send_skb
	testq	%rax, %rax
	je	LBB0_35
## %bb.32:
	movq	%rax, %r13
	movq	_AX25_MAX_HEADER_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AX25_BPQ_HEADER_LEN@GOTPCREL(%rip), %rax
	addl	(%rax), %esi
	movq	_ROSE_MIN_LEN@GOTPCREL(%rip), %r15
	addl	(%r15), %esi
	movq	%r13, %rdi
	callq	_skb_reserve
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_SOCK_DEBUG
	movq	%r13, %rdi
	callq	_skb_reset_transport_header
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_skb_put
	movq	%r13, %rdi
	callq	_skb_transport_header
	movl	8(%r12), %esi
	movl	%eax, %edi
	movq	%rbx, %rdx
	callq	_memcpy_fromiovec
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	je	LBB0_36
## %bb.33:
	movq	%r13, %rdi
	callq	_kfree_skb
	movl	-44(%rbp), %ebx
	jmp	LBB0_6
LBB0_34:
	movq	_EISCONN@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_35:
	movl	-44(%rbp), %ebx
	jmp	LBB0_6
LBB0_36:
	movq	%r15, %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	je	LBB0_38
## %bb.37:
	movq	(%r13), %rax
	cmpl	$0, (%rax)
	sete	%r15b
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_skb_pull
	jmp	LBB0_39
LBB0_38:
	movb	$1, %r15b
LBB0_39:
	movq	(%r12), %rsi
	movq	%r13, %rdi
	callq	_skb_push
	movq	%rax, %r12
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_SOCK_DEBUG
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	4(%rdx), %eax
	shrl	$8, %eax
	andl	$15, %eax
	movq	_ROSE_GFI@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movb	%al, (%r12)
	movb	4(%rdx), %cl
	movb	%cl, 1(%r12)
	movq	_ROSE_DATA@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movb	%cl, 2(%r12)
	testb	%r15b, %r15b
	jne	LBB0_41
## %bb.40:
	movq	_ROSE_Q_BIT@GOTPCREL(%rip), %rcx
	orb	(%rcx), %al
	movb	%al, (%r12)
LBB0_41:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_SOCK_DEBUG
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_SOCK_DEBUG
	movq	8(%r14), %rax
	movq	_TCP_ESTABLISHED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_43
## %bb.42:
	leaq	16(%r14), %rdi
	movq	%r13, %rsi
	callq	_skb_queue_tail
	movq	%r14, %rdi
	callq	_rose_kick
	jmp	LBB0_6
LBB0_43:
	movq	%r13, %rdi
	callq	_kfree_skb
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DONTWAIT,4,2               ## @MSG_DONTWAIT
	.comm	_MSG_EOR,4,2                    ## @MSG_EOR
	.comm	_MSG_CMSG_COMPAT,4,2            ## @MSG_CMSG_COMPAT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SOCK_ZAPPED,4,2                ## @SOCK_ZAPPED
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_SEND_SHUTDOWN,4,2              ## @SEND_SHUTDOWN
	.comm	_SIGPIPE,4,2                    ## @SIGPIPE
	.comm	_current,4,2                    ## @current
	.comm	_EPIPE,4,2                      ## @EPIPE
	.comm	_ENETUNREACH,4,2                ## @ENETUNREACH
	.comm	_EISCONN,4,2                    ## @EISCONN
	.comm	_AF_ROSE,8,3                    ## @AF_ROSE
	.comm	_TCP_ESTABLISHED,8,3            ## @TCP_ESTABLISHED
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ROSE: sendto: Addresses built.\n"

L_.str.1:                               ## @.str.1
	.asciz	"ROSE: sendto: building packet.\n"

	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.comm	_AX25_BPQ_HEADER_LEN,8,3        ## @AX25_BPQ_HEADER_LEN
	.comm	_AX25_MAX_HEADER_LEN,8,3        ## @AX25_MAX_HEADER_LEN
	.comm	_ROSE_MIN_LEN,8,3               ## @ROSE_MIN_LEN
L_.str.2:                               ## @.str.2
	.asciz	"ROSE: Appending user data\n"

L_.str.3:                               ## @.str.3
	.asciz	"ROSE: Building Network Header.\n"

	.comm	_ROSE_GFI,4,2                   ## @ROSE_GFI
	.comm	_ROSE_DATA,1,0                  ## @ROSE_DATA
	.comm	_ROSE_Q_BIT,1,0                 ## @ROSE_Q_BIT
L_.str.4:                               ## @.str.4
	.asciz	"ROSE: Built header.\n"

L_.str.5:                               ## @.str.5
	.asciz	"ROSE: Transmitting buffer\n"

	.comm	_M_BIT,4,2                      ## @M_BIT
	.comm	_ROSE_PACLEN,8,3                ## @ROSE_PACLEN
	.no_dead_strip	_rose_sendmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rose_sendmsg
_rose_sendmsg:                          ; @rose_sendmsg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x22, x2
	ldr	x20, [x1]
	mov	x0, x20
	bl	_rose_sk
	ldr	w8, [x22]
Lloh0:
	adrp	x24, _MSG_DONTWAIT@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MSG_DONTWAIT@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh2:
	adrp	x10, _MSG_EOR@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MSG_EOR@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh5:
	adrp	x10, _MSG_CMSG_COMPAT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _MSG_CMSG_COMPAT@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	orr	w9, w9, w10
	bics	wzr, w8, w9
	b.eq	LBB0_2
LBB0_1:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_40
LBB0_2:
	mov	x21, x0
	ldr	x23, [x22, #16]
Lloh10:
	adrp	x8, _SOCK_ZAPPED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SOCK_ZAPPED@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sock_flag
	cbz	x0, LBB0_4
; %bb.3:
Lloh13:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
	b	LBB0_40
LBB0_4:
	ldr	w8, [x20]
Lloh15:
	adrp	x9, _SEND_SHUTDOWN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SEND_SHUTDOWN@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh18:
	adrp	x8, _SIGPIPE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SIGPIPE@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x8, _current@GOTPAGE
Lloh22:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_send_sig
Lloh24:
	adrp	x8, _EPIPE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
	b	LBB0_40
LBB0_6:
	ldr	x8, [x21, #40]
	cbz	x8, LBB0_19
; %bb.7:
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_19
; %bb.8:
	cbz	x23, LBB0_21
; %bb.9:
	ldr	w8, [x22, #4]
	cmp	w8, #4
	b.eq	LBB0_11
; %bb.10:
	cmp	w8, #32
	b.ne	LBB0_1
LBB0_11:
	add	x25, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	w2, [x22, #4]
	add	x0, sp, #8
	mov	x1, x23
	bl	_memcpy
	add	x0, x21, #28
	add	x1, x25, #28
	bl	_rosecmp
	cbnz	x0, LBB0_20
; %bb.12:
	add	x0, x21, #24
	add	x1, x25, #24
	bl	_ax25cmp
	cbnz	x0, LBB0_20
; %bb.13:
	ldr	w8, [sp, #8]
	ldr	w9, [x21]
	cmp	w8, w9
	b.ne	LBB0_20
; %bb.14:
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.15:
	mov	x23, #0
	mov	x25, #0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #16]
	add	x0, x8, x23
	ldr	x8, [sp, #24]
	add	x1, x8, x23
	bl	_ax25cmp
	cbnz	x0, LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [sp, #8]
	add	x23, x23, #4
	cmp	x25, x8
	b.lt	LBB0_16
LBB0_18:
	ldr	x8, [sp, #16]
Lloh26:
	adrp	x9, _AF_ROSE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _AF_ROSE@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_1
	b	LBB0_25
LBB0_19:
Lloh29:
	adrp	x8, _ENETUNREACH@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENETUNREACH@GOTPAGEOFF]
	b	LBB0_40
LBB0_20:
Lloh31:
	adrp	x8, _EISCONN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EISCONN@GOTPAGEOFF]
	b	LBB0_40
LBB0_21:
	ldr	x8, [x20, #8]
Lloh33:
	adrp	x9, _TCP_ESTABLISHED@GOTPAGE
Lloh34:
	ldr	x9, [x9, _TCP_ESTABLISHED@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_39
; %bb.22:
Lloh36:
	adrp	x8, _AF_ROSE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AF_ROSE@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	str	x8, [sp, #16]
	ldr	d0, [x21, #24]
	str	d0, [sp, #32]
	ldr	w8, [x21]
	str	w8, [sp, #8]
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.23:
	mov	w8, #1
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x8, #1
	b	LBB0_24
LBB0_25:
Lloh39:
	adrp	x1, l_.str@PAGE
Lloh40:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_SOCK_DEBUG
Lloh41:
	adrp	x1, l_.str.1@PAGE
Lloh42:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_SOCK_DEBUG
	cmp	x19, #16, lsl #12               ; =65536
	b.lo	LBB0_27
; %bb.26:
Lloh43:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
	b	LBB0_40
LBB0_27:
Lloh45:
	adrp	x26, _AX25_BPQ_HEADER_LEN@GOTPAGE
Lloh46:
	ldr	x26, [x26, _AX25_BPQ_HEADER_LEN@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh47:
	adrp	x27, _AX25_MAX_HEADER_LEN@GOTPAGE
Lloh48:
	ldr	x27, [x27, _AX25_MAX_HEADER_LEN@GOTPAGEOFF]
	ldr	w9, [x27]
Lloh49:
	adrp	x25, _ROSE_MIN_LEN@GOTPAGE
Lloh50:
	ldr	x25, [x25, _ROSE_MIN_LEN@GOTPAGEOFF]
	add	w8, w8, w19
	add	w8, w8, w9
	ldr	w9, [x25]
	add	w1, w8, w9
	ldr	w8, [x22]
	ldr	w9, [x24]
	and	w2, w9, w8
	add	x3, sp, #44
	mov	x0, x20
	bl	_sock_alloc_send_skb
	cbz	x0, LBB0_30
; %bb.28:
	mov	x23, x0
	ldr	w8, [x26]
	ldr	w9, [x27]
	ldr	w10, [x25]
	add	w8, w9, w8
	add	w1, w8, w10
	bl	_skb_reserve
Lloh51:
	adrp	x1, l_.str.2@PAGE
Lloh52:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_SOCK_DEBUG
	mov	x0, x23
	bl	_skb_reset_transport_header
	mov	x0, x23
	mov	x1, x19
	bl	_skb_put
	mov	x0, x23
	bl	_skb_transport_header
	ldr	w1, [x22, #8]
	mov	x2, x19
	bl	_memcpy_fromiovec
	str	w0, [sp, #44]
	cbz	w0, LBB0_31
; %bb.29:
	mov	x0, x23
	bl	_kfree_skb
LBB0_30:
	ldr	w19, [sp, #44]
	b	LBB0_41
LBB0_31:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_33
; %bb.32:
	ldr	x8, [x23]
	ldr	w22, [x8]
	mov	x0, x23
	mov	w1, #1
	bl	_skb_pull
	cmp	w22, #0
	cset	w24, eq
	b	LBB0_34
LBB0_33:
	mov	w24, #1
LBB0_34:
	ldr	x1, [x25]
	mov	x0, x23
	bl	_skb_push
	mov	x22, x0
Lloh53:
	adrp	x1, l_.str.3@PAGE
Lloh54:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_SOCK_DEBUG
	ldr	w8, [x21, #4]
	ubfx	w8, w8, #8, #4
Lloh55:
	adrp	x9, _ROSE_GFI@GOTPAGE
Lloh56:
	ldr	x9, [x9, _ROSE_GFI@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
	orr	w8, w8, w9
	strb	w8, [x22]
	ldr	w9, [x21, #4]
	strb	w9, [x22, #1]
Lloh58:
	adrp	x9, _ROSE_DATA@GOTPAGE
Lloh59:
	ldr	x9, [x9, _ROSE_DATA@GOTPAGEOFF]
	ldrb	w9, [x9]
	strb	w9, [x22, #2]
	tbnz	w24, #0, LBB0_36
; %bb.35:
Lloh60:
	adrp	x9, _ROSE_Q_BIT@GOTPAGE
Lloh61:
	ldr	x9, [x9, _ROSE_Q_BIT@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w8, w9, w8
	strb	w8, [x22]
LBB0_36:
Lloh62:
	adrp	x1, l_.str.4@PAGE
Lloh63:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_SOCK_DEBUG
Lloh64:
	adrp	x1, l_.str.5@PAGE
Lloh65:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_SOCK_DEBUG
	ldr	x8, [x20, #8]
Lloh66:
	adrp	x9, _TCP_ESTABLISHED@GOTPAGE
Lloh67:
	ldr	x9, [x9, _TCP_ESTABLISHED@GOTPAGEOFF]
Lloh68:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_38
; %bb.37:
	add	x0, x20, #16
	mov	x1, x23
	bl	_skb_queue_tail
	mov	x0, x20
	bl	_rose_kick
	b	LBB0_41
LBB0_38:
	mov	x0, x23
	bl	_kfree_skb
LBB0_39:
Lloh69:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh70:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
LBB0_40:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_41:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh69, Lloh70
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DONTWAIT,4,2               ; @MSG_DONTWAIT
	.comm	_MSG_EOR,4,2                    ; @MSG_EOR
	.comm	_MSG_CMSG_COMPAT,4,2            ; @MSG_CMSG_COMPAT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SOCK_ZAPPED,4,2                ; @SOCK_ZAPPED
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_SEND_SHUTDOWN,4,2              ; @SEND_SHUTDOWN
	.comm	_SIGPIPE,4,2                    ; @SIGPIPE
	.comm	_current,4,2                    ; @current
	.comm	_EPIPE,4,2                      ; @EPIPE
	.comm	_ENETUNREACH,4,2                ; @ENETUNREACH
	.comm	_EISCONN,4,2                    ; @EISCONN
	.comm	_AF_ROSE,8,3                    ; @AF_ROSE
	.comm	_TCP_ESTABLISHED,8,3            ; @TCP_ESTABLISHED
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ROSE: sendto: Addresses built.\n"

l_.str.1:                               ; @.str.1
	.asciz	"ROSE: sendto: building packet.\n"

	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.comm	_AX25_BPQ_HEADER_LEN,8,3        ; @AX25_BPQ_HEADER_LEN
	.comm	_AX25_MAX_HEADER_LEN,8,3        ; @AX25_MAX_HEADER_LEN
	.comm	_ROSE_MIN_LEN,8,3               ; @ROSE_MIN_LEN
l_.str.2:                               ; @.str.2
	.asciz	"ROSE: Appending user data\n"

l_.str.3:                               ; @.str.3
	.asciz	"ROSE: Building Network Header.\n"

	.comm	_ROSE_GFI,4,2                   ; @ROSE_GFI
	.comm	_ROSE_DATA,1,0                  ; @ROSE_DATA
	.comm	_ROSE_Q_BIT,1,0                 ; @ROSE_Q_BIT
l_.str.4:                               ; @.str.4
	.asciz	"ROSE: Built header.\n"

l_.str.5:                               ; @.str.5
	.asciz	"ROSE: Transmitting buffer\n"

	.comm	_M_BIT,4,2                      ; @M_BIT
	.comm	_ROSE_PACLEN,8,3                ; @ROSE_PACLEN
	.no_dead_strip	_rose_sendmsg
.subsections_via_symbols
