	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function x25_sendmsg
_x25_sendmsg:                           ## @x25_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, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	(%rsi), %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_x25_sk
	movq	16(%rbx), %r14
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %r13d
	movq	_MSG_DONTWAIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	movq	_EINVAL@GOTPCREL(%rip), %r15
	xorl	%ecx, %ecx
	subl	(%r15), %ecx
	movl	%ecx, -44(%rbp)
	movq	_MSG_OOB@GOTPCREL(%rip), %rdx
	movq	_MSG_EOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_MSG_CMSG_COMPAT@GOTPCREL(%rip), %rcx
	orl	(%rdx), %esi
	movl	%esi, %edx
	orl	%r12d, %edx
	orl	(%rcx), %edx
	notl	%edx
	testl	%edx, %r13d
	jne	LBB0_36
## %bb.1:
	andl	%r13d, %esi
	je	LBB0_36
## %bb.2:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	xorl	%ebx, %ebx
	movl	%ecx, -44(%rbp)
	movq	_SOCK_ZAPPED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_sock_flag
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_36
## %bb.3:
	movq	_EPIPE@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, -44(%rbp)
	movq	_SEND_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_SIGPIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_send_sig
LBB0_36:
	movl	-44(%rbp), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ENETUNREACH@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -44(%rbp)
	cmpq	$0, 24(%rdx)
	je	LBB0_36
## %bb.6:
	testq	%r14, %r14
	je	LBB0_10
## %bb.7:
	xorl	%eax, %eax
	subl	(%r15), %eax
	xorl	%ebx, %ebx
	movl	%eax, -44(%rbp)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	$16, 4(%rax)
	jb	LBB0_36
## %bb.8:
	leaq	-88(%rbp), %rdi
	movq	%r14, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	_EISCONN@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, -44(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	32(%rax), %edi
	movl	-80(%rbp), %esi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_36
## %bb.9:
	xorl	%eax, %eax
	subl	(%r15), %eax
	movl	%eax, -44(%rbp)
	movq	-88(%rbp), %rax
	movq	_AF_X25@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_36
	jmp	LBB0_12
LBB0_10:
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -44(%rbp)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	_TCP_ESTABLISHED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_36
## %bb.11:
	movq	_AF_X25@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)
	movl	32(%rdx), %eax
	movl	%eax, -80(%rbp)
LBB0_12:
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$65536, %rbx                    ## imm = 0x10000
	jb	LBB0_14
## %bb.13:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -44(%rbp)
	jmp	LBB0_36
LBB0_14:
	andl	%r13d, %r12d
	leaq	L_.str(%rip), %rsi
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_SOCK_DEBUG
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_SOCK_DEBUG
	movq	_MSG_OOB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	andl	(%rcx), %eax
	movl	$32, %r14d
	cmoveq	%rbx, %r14
	cmpq	$33, %rbx
	cmovbq	%rbx, %r14
	movq	_X25_MAX_L2_LEN@GOTPCREL(%rip), %r15
	movq	_X25_EXT_MIN_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	addq	%r14, %rsi
	leaq	-44(%rbp), %rcx
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_sock_alloc_send_skb
	testq	%rax, %rax
	je	LBB0_36
## %bb.15:
	movq	%rax, %r13
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %ebx
	movq	%rax, %rdi
	callq	_X25_SKB_CB
	movl	%ebx, (%rax)
	movq	_X25_EXT_MIN_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	movq	%r13, %rdi
	callq	_skb_reserve
	leaq	L_.str.2(%rip), %rsi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_SOCK_DEBUG
	movq	%r13, %rdi
	callq	_skb_reset_transport_header
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_skb_put
	movq	%r13, %rdi
	callq	_skb_transport_header
	movl	8(%r12), %esi
	movl	%eax, %edi
	movq	%r14, %rdx
	callq	_memcpy_fromiovec
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	jne	LBB0_37
## %bb.16:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	je	LBB0_17
## %bb.18:
	movq	(%r13), %rax
	movl	(%rax), %r15d
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_skb_pull
	jmp	LBB0_19
LBB0_17:
	xorl	%r15d, %r15d
LBB0_19:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_SOCK_DEBUG
	movq	_MSG_OOB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	24(%rcx), %rcx
	movq	(%rcx), %r12
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_24
## %bb.20:
	movq	_X25_STD_MIN_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_skb_push
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi), %ecx
	shrl	$8, %ecx
	andl	$15, %ecx
	testq	%r12, %r12
	je	LBB0_23
## %bb.21:
	movq	_X25_GFI_EXTSEQ@GOTPCREL(%rip), %rdx
	jmp	LBB0_22
LBB0_24:
	testq	%r12, %r12
	je	LBB0_26
## %bb.25:
	movq	_X25_EXT_MIN_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_skb_push
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi), %ecx
	shrl	$8, %ecx
	andl	$15, %ecx
	movq	_X25_GFI_EXTSEQ@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movb	%cl, (%rax)
	movb	(%rsi), %cl
	movb	%cl, 1(%rax)
	movq	_X25_DATA@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movb	%cl, 2(%rax)
	addq	$3, %rax
	jmp	LBB0_27
LBB0_23:
	movq	_X25_GFI_STDSEQ@GOTPCREL(%rip), %rdx
LBB0_22:
	orl	(%rdx), %ecx
	movb	%cl, (%rax)
	movb	(%rsi), %cl
	movb	%cl, 1(%rax)
	movq	_X25_INTERRUPT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movb	%cl, 2(%rax)
	jmp	LBB0_29
LBB0_26:
	movq	_X25_STD_MIN_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_skb_push
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi), %ecx
	shrl	$8, %ecx
	andl	$15, %ecx
	movq	_X25_GFI_STDSEQ@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movb	%cl, (%rax)
	movb	(%rsi), %cl
	movb	%cl, 1(%rax)
	addq	$2, %rax
LBB0_27:
	movq	_X25_DATA@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movb	%cl, (%rax)
	testl	%r15d, %r15d
	je	LBB0_29
## %bb.28:
	movq	_X25_Q_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r13), %rcx
	orl	%eax, (%rcx)
LBB0_29:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_SOCK_DEBUG
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_SOCK_DEBUG
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -44(%rbp)
	movq	8(%rbx), %rax
	movq	_TCP_ESTABLISHED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_37
## %bb.30:
	movq	_MSG_OOB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_32
## %bb.31:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$16, %rdi
	movq	%r13, %rsi
	callq	_skb_queue_tail
	jmp	LBB0_35
LBB0_37:
	movq	%r13, %rdi
	callq	_kfree_skb
	jmp	LBB0_36
LBB0_32:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_x25_output
	movl	%eax, -44(%rbp)
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_33
## %bb.34:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$1, 8(%rax)
	sbbq	$-1, %r14
	jmp	LBB0_35
LBB0_33:
	movq	%r13, %rdi
	callq	_kfree_skb
LBB0_35:
	movq	%rbx, %rdi
	callq	_lock_sock
	movq	%rbx, %rdi
	callq	_x25_kick
	movq	%rbx, %rdi
	callq	_release_sock
	movl	%r14d, -44(%rbp)
	jmp	LBB0_36
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DONTWAIT,4,2               ## @MSG_DONTWAIT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MSG_OOB,4,2                    ## @MSG_OOB
	.comm	_MSG_EOR,4,2                    ## @MSG_EOR
	.comm	_MSG_CMSG_COMPAT,4,2            ## @MSG_CMSG_COMPAT
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_SOCK_ZAPPED,4,2                ## @SOCK_ZAPPED
	.comm	_EPIPE,4,2                      ## @EPIPE
	.comm	_SEND_SHUTDOWN,4,2              ## @SEND_SHUTDOWN
	.comm	_SIGPIPE,4,2                    ## @SIGPIPE
	.comm	_current,4,2                    ## @current
	.comm	_ENETUNREACH,4,2                ## @ENETUNREACH
	.comm	_EISCONN,4,2                    ## @EISCONN
	.comm	_AF_X25,8,3                     ## @AF_X25
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.comm	_TCP_ESTABLISHED,8,3            ## @TCP_ESTABLISHED
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"x25_sendmsg: sendto: Addresses built.\n"

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

	.comm	_X25_MAX_L2_LEN,8,3             ## @X25_MAX_L2_LEN
	.comm	_X25_EXT_MIN_LEN,8,3            ## @X25_EXT_MIN_LEN
L_.str.2:                               ## @.str.2
	.asciz	"x25_sendmsg: Copying user data\n"

L_.str.3:                               ## @.str.3
	.asciz	"x25_sendmsg: Building X.25 Header.\n"

	.comm	_X25_STD_MIN_LEN,8,3            ## @X25_STD_MIN_LEN
	.comm	_X25_GFI_EXTSEQ,4,2             ## @X25_GFI_EXTSEQ
	.comm	_X25_INTERRUPT,8,3              ## @X25_INTERRUPT
	.comm	_X25_GFI_STDSEQ,4,2             ## @X25_GFI_STDSEQ
	.comm	_X25_DATA,8,3                   ## @X25_DATA
	.comm	_X25_Q_BIT,4,2                  ## @X25_Q_BIT
L_.str.4:                               ## @.str.4
	.asciz	"x25_sendmsg: Built header.\n"

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

	.no_dead_strip	_x25_sendmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function x25_sendmsg
_x25_sendmsg:                           ; @x25_sendmsg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, x3
	mov	x21, x2
	ldr	x19, [x1]
	mov	x0, x19
	bl	_x25_sk
	ldr	x23, [x21, #16]
	ldr	w25, [x21]
Lloh0:
	adrp	x8, _MSG_DONTWAIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DONTWAIT@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
Lloh3:
	adrp	x27, _EINVAL@GOTPAGE
Lloh4:
	ldr	x27, [x27, _EINVAL@GOTPAGEOFF]
	ldr	w8, [x27]
	neg	w8, w8
	str	w8, [sp, #12]
Lloh5:
	adrp	x24, _MSG_OOB@GOTPAGE
Lloh6:
	ldr	x24, [x24, _MSG_OOB@GOTPAGEOFF]
Lloh7:
	adrp	x8, _MSG_EOR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MSG_EOR@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x10, _MSG_CMSG_COMPAT@GOTPAGE
Lloh11:
	ldr	x10, [x10, _MSG_CMSG_COMPAT@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	orr	w8, w8, w9
	orr	w9, w8, w26
	orr	w9, w9, w10
	bic	w9, w25, w9
	and	w8, w8, w25
	cmp	w9, #0
	ccmp	w8, #0, #4, eq
	b.eq	LBB0_4
; %bb.1:
	mov	x20, x0
Lloh13:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [sp, #12]
Lloh16:
	adrp	x8, _SOCK_ZAPPED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SOCK_ZAPPED@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sock_flag
	cbnz	x0, LBB0_4
; %bb.2:
Lloh19:
	adrp	x8, _EPIPE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [sp, #12]
	ldr	w8, [x19]
Lloh22:
	adrp	x9, _SEND_SHUTDOWN@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SEND_SHUTDOWN@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
Lloh25:
	adrp	x8, _SIGPIPE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SIGPIPE@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x8, _current@GOTPAGE
Lloh29:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_send_sig
LBB0_4:
	ldr	w0, [sp, #12]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_5:
Lloh31:
	adrp	x8, _ENETUNREACH@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENETUNREACH@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [sp, #12]
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_4
; %bb.6:
	cbz	x23, LBB0_10
; %bb.7:
	ldr	w8, [x27]
	neg	w8, w8
	str	w8, [sp, #12]
	ldr	w8, [x21, #4]
	cmp	w8, #16
	b.lo	LBB0_4
; %bb.8:
	add	x0, sp, #16
	mov	x1, x23
	mov	w2, #16
	bl	_memcpy
Lloh34:
	adrp	x8, _EISCONN@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EISCONN@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [sp, #12]
	ldr	w0, [x20, #32]
	ldr	w1, [sp, #24]
	bl	_strcmp
	cbnz	x0, LBB0_4
; %bb.9:
	ldr	w8, [x27]
	neg	w8, w8
	str	w8, [sp, #12]
	ldr	x8, [sp, #16]
Lloh37:
	adrp	x9, _AF_X25@GOTPAGE
Lloh38:
	ldr	x9, [x9, _AF_X25@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
	b	LBB0_12
LBB0_10:
Lloh40:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [sp, #12]
	ldr	x8, [x19, #8]
Lloh43:
	adrp	x9, _TCP_ESTABLISHED@GOTPAGE
Lloh44:
	ldr	x9, [x9, _TCP_ESTABLISHED@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.11:
Lloh46:
	adrp	x8, _AF_X25@GOTPAGE
Lloh47:
	ldr	x8, [x8, _AF_X25@GOTPAGEOFF]
Lloh48:
	ldr	x8, [x8]
	str	x8, [sp, #16]
	ldr	w8, [x20, #32]
	str	w8, [sp, #24]
LBB0_12:
	cmp	x22, #16, lsl #12               ; =65536
	b.lo	LBB0_14
; %bb.13:
Lloh49:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [sp, #12]
	b	LBB0_4
LBB0_14:
	and	w23, w26, w25
Lloh52:
	adrp	x1, l_.str@PAGE
Lloh53:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_SOCK_DEBUG
Lloh54:
	adrp	x1, l_.str.1@PAGE
Lloh55:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_SOCK_DEBUG
	ldr	w8, [x21]
	ldr	w9, [x24]
	tst	w9, w8
	mov	w8, #32
	ccmp	x22, x8, #0, ne
	csel	x22, x8, x22, hi
Lloh56:
	adrp	x26, _X25_MAX_L2_LEN@GOTPAGE
Lloh57:
	ldr	x26, [x26, _X25_MAX_L2_LEN@GOTPAGEOFF]
	ldr	x8, [x26]
Lloh58:
	adrp	x25, _X25_EXT_MIN_LEN@GOTPAGE
Lloh59:
	ldr	x25, [x25, _X25_EXT_MIN_LEN@GOTPAGEOFF]
	ldr	x9, [x25]
	add	x8, x9, x8
	add	x1, x8, x22
	add	x3, sp, #12
	mov	x0, x19
	mov	x2, x23
	bl	_sock_alloc_send_skb
	cbz	x0, LBB0_4
; %bb.15:
	mov	x23, x0
	ldr	w27, [x21]
	bl	_X25_SKB_CB
	str	w27, [x0]
	ldr	x8, [x26]
	ldr	x9, [x25]
	add	x1, x9, x8
	mov	x0, x23
	bl	_skb_reserve
Lloh60:
	adrp	x1, l_.str.2@PAGE
Lloh61:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_SOCK_DEBUG
	mov	x0, x23
	bl	_skb_reset_transport_header
	mov	x0, x23
	mov	x1, x22
	bl	_skb_put
	mov	x0, x23
	bl	_skb_transport_header
	ldr	w1, [x21, #8]
	mov	x2, x22
	bl	_memcpy_fromiovec
	str	w0, [sp, #12]
	cbnz	w0, LBB0_32
; %bb.16:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_18
; %bb.17:
	ldr	x8, [x23]
	ldr	w26, [x8]
	mov	x0, x23
	mov	w1, #1
	bl	_skb_pull
	b	LBB0_19
LBB0_18:
	mov	w26, #0
LBB0_19:
Lloh62:
	adrp	x1, l_.str.3@PAGE
Lloh63:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_SOCK_DEBUG
	ldr	w8, [x21]
	ldr	w9, [x24]
	ldr	x10, [x20, #24]
	ldr	x28, [x10]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.20:
Lloh64:
	adrp	x8, _X25_STD_MIN_LEN@GOTPAGE
Lloh65:
	ldr	x8, [x8, _X25_STD_MIN_LEN@GOTPAGEOFF]
Lloh66:
	ldr	x1, [x8]
	mov	x0, x23
	bl	_skb_push
	ldr	w8, [x20]
	ubfx	w8, w8, #8, #4
	cbz	x28, LBB0_24
; %bb.21:
Lloh67:
	adrp	x9, _X25_GFI_EXTSEQ@GOTPAGE
Lloh68:
	ldr	x9, [x9, _X25_GFI_EXTSEQ@GOTPAGEOFF]
	b	LBB0_25
LBB0_22:
Lloh69:
	adrp	x27, _X25_DATA@GOTPAGE
Lloh70:
	ldr	x27, [x27, _X25_DATA@GOTPAGEOFF]
	cbz	x28, LBB0_26
; %bb.23:
	ldr	x1, [x25]
	mov	x0, x23
	bl	_skb_push
	ldr	w8, [x20]
	ubfx	w8, w8, #8, #4
Lloh71:
	adrp	x9, _X25_GFI_EXTSEQ@GOTPAGE
Lloh72:
	ldr	x9, [x9, _X25_GFI_EXTSEQ@GOTPAGEOFF]
Lloh73:
	ldr	w9, [x9]
	orr	w8, w8, w9
	strb	w8, [x0]
	ldr	w8, [x20]
	strb	w8, [x0, #1]
	ldr	x9, [x27]
	add	x8, x0, #3
	strb	w9, [x0, #2]
	b	LBB0_27
LBB0_24:
Lloh74:
	adrp	x9, _X25_GFI_STDSEQ@GOTPAGE
Lloh75:
	ldr	x9, [x9, _X25_GFI_STDSEQ@GOTPAGEOFF]
LBB0_25:
	ldr	w9, [x9]
	orr	w8, w8, w9
	strb	w8, [x0]
	ldr	w8, [x20]
	strb	w8, [x0, #1]
Lloh76:
	adrp	x8, _X25_INTERRUPT@GOTPAGE
Lloh77:
	ldr	x8, [x8, _X25_INTERRUPT@GOTPAGEOFF]
Lloh78:
	ldr	x8, [x8]
	strb	w8, [x0, #2]
	b	LBB0_29
LBB0_26:
Lloh79:
	adrp	x8, _X25_STD_MIN_LEN@GOTPAGE
Lloh80:
	ldr	x8, [x8, _X25_STD_MIN_LEN@GOTPAGEOFF]
Lloh81:
	ldr	x1, [x8]
	mov	x0, x23
	bl	_skb_push
	ldr	w8, [x20]
	ubfx	w8, w8, #8, #4
Lloh82:
	adrp	x9, _X25_GFI_STDSEQ@GOTPAGE
Lloh83:
	ldr	x9, [x9, _X25_GFI_STDSEQ@GOTPAGEOFF]
Lloh84:
	ldr	w9, [x9]
	orr	w8, w8, w9
	strb	w8, [x0]
	ldr	w9, [x20]
	add	x8, x0, #2
	strb	w9, [x0, #1]
LBB0_27:
	ldr	x9, [x27]
	strb	w9, [x8]
	cbz	w26, LBB0_29
; %bb.28:
Lloh85:
	adrp	x8, _X25_Q_BIT@GOTPAGE
Lloh86:
	ldr	x8, [x8, _X25_Q_BIT@GOTPAGEOFF]
Lloh87:
	ldr	w8, [x8]
	ldr	x9, [x23]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
LBB0_29:
Lloh88:
	adrp	x1, l_.str.4@PAGE
Lloh89:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_SOCK_DEBUG
Lloh90:
	adrp	x1, l_.str.5@PAGE
Lloh91:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_SOCK_DEBUG
Lloh92:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh93:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
Lloh94:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [sp, #12]
	ldr	x8, [x19, #8]
Lloh95:
	adrp	x9, _TCP_ESTABLISHED@GOTPAGE
Lloh96:
	ldr	x9, [x9, _TCP_ESTABLISHED@GOTPAGEOFF]
Lloh97:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_32
; %bb.30:
	ldr	w8, [x21]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_33
; %bb.31:
	add	x0, x20, #16
	mov	x1, x23
	bl	_skb_queue_tail
	b	LBB0_36
LBB0_32:
	mov	x0, x23
	bl	_kfree_skb
	b	LBB0_4
LBB0_33:
	mov	x0, x19
	mov	x1, x23
	bl	_x25_output
	str	w0, [sp, #12]
	mov	w22, w0
	tbnz	w0, #31, LBB0_35
; %bb.34:
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cinc	x22, x22, ne
	b	LBB0_36
LBB0_35:
	mov	x0, x23
	bl	_kfree_skb
LBB0_36:
	mov	x0, x19
	bl	_lock_sock
	mov	x0, x19
	bl	_x25_kick
	mov	x0, x19
	bl	_release_sock
	str	w22, [sp, #12]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpAdd	Lloh88, Lloh89
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DONTWAIT,4,2               ; @MSG_DONTWAIT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MSG_OOB,4,2                    ; @MSG_OOB
	.comm	_MSG_EOR,4,2                    ; @MSG_EOR
	.comm	_MSG_CMSG_COMPAT,4,2            ; @MSG_CMSG_COMPAT
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_SOCK_ZAPPED,4,2                ; @SOCK_ZAPPED
	.comm	_EPIPE,4,2                      ; @EPIPE
	.comm	_SEND_SHUTDOWN,4,2              ; @SEND_SHUTDOWN
	.comm	_SIGPIPE,4,2                    ; @SIGPIPE
	.comm	_current,4,2                    ; @current
	.comm	_ENETUNREACH,4,2                ; @ENETUNREACH
	.comm	_EISCONN,4,2                    ; @EISCONN
	.comm	_AF_X25,8,3                     ; @AF_X25
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.comm	_TCP_ESTABLISHED,8,3            ; @TCP_ESTABLISHED
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"x25_sendmsg: sendto: Addresses built.\n"

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

	.comm	_X25_MAX_L2_LEN,8,3             ; @X25_MAX_L2_LEN
	.comm	_X25_EXT_MIN_LEN,8,3            ; @X25_EXT_MIN_LEN
l_.str.2:                               ; @.str.2
	.asciz	"x25_sendmsg: Copying user data\n"

l_.str.3:                               ; @.str.3
	.asciz	"x25_sendmsg: Building X.25 Header.\n"

	.comm	_X25_STD_MIN_LEN,8,3            ; @X25_STD_MIN_LEN
	.comm	_X25_GFI_EXTSEQ,4,2             ; @X25_GFI_EXTSEQ
	.comm	_X25_INTERRUPT,8,3              ; @X25_INTERRUPT
	.comm	_X25_GFI_STDSEQ,4,2             ; @X25_GFI_STDSEQ
	.comm	_X25_DATA,8,3                   ; @X25_DATA
	.comm	_X25_Q_BIT,4,2                  ; @X25_Q_BIT
l_.str.4:                               ; @.str.4
	.asciz	"x25_sendmsg: Built header.\n"

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

	.no_dead_strip	_x25_sendmsg
.subsections_via_symbols
