	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_x25_output                     ## -- Begin function x25_output
	.p2align	4, 0x90
_x25_output:                            ## @x25_output
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_X25_EXT_MIN_LEN@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_X25_SKB_CB
	movq	_MSG_DONTWAIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_x25_sk
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_X25_STD_MIN_LEN@GOTPCREL(%rip), %r14
LBB0_2:
	movl	(%r14), %r14d
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	callq	_x25_pacsize_to_bytes
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	subl	%r14d, %ecx
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %ecx
	jle	LBB0_16
## %bb.3:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_skb_copy_from_linear_data
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_skb_pull
	movq	%r12, %rdi
	callq	_skb_headroom
	cmpl	$0, (%r12)
	jle	LBB0_4
## %bb.5:
	movl	%eax, %ebx
	movl	%r14d, -76(%rbp)                ## 4-byte Spill
	addl	-64(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movl	%ebx, -72(%rbp)                 ## 4-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movb	%cl, %al
	movl	(%rdx), %ecx
	movq	8(%r14), %rdx
	orl	%ecx, 8(%rdx,%rax,4)
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_skb_queue_tail
	addl	%r12d, %r13d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	movl	-72(%rbp), %ebx                 ## 4-byte Reload
	jle	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	-80(%rbp), %esi                 ## 4-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	leaq	-68(%rbp), %rcx
	callq	_sock_alloc_send_skb
	testq	%rax, %rax
	je	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_skb_reserve
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %r12d
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	cmpl	%r12d, %eax
	cmovll	%eax, %r12d
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_skb_put
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	%r12d, %edx
	callq	_skb_copy_from_linear_data
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_skb_pull
	movq	%r14, %rdi
	movl	%r13d, %r15d
	movl	-76(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %esi
	callq	_skb_push
	movq	%r14, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	movl	%r15d, %r13d
	callq	_skb_copy_to_linear_data
	cmpl	$0, (%rbx)
	jle	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	xorl	%eax, %eax
	cmpq	$0, (%rcx)
	setne	%cl
	movq	_X25_EXT_M_BIT@GOTPCREL(%rip), %rdx
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_X25_STD_M_BIT@GOTPCREL(%rip), %rdx
	jmp	LBB0_14
LBB0_16:
	movq	%r15, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_skb_queue_tail
	movl	(%rbx), %r13d
	subl	%r14d, %r13d
	jmp	LBB0_17
LBB0_4:
	xorl	%r13d, %r13d
	jmp	LBB0_9
LBB0_7:
	movl	-68(%rbp), %edx
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%edx, %eax
	jne	LBB0_10
## %bb.8:
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_10
LBB0_9:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree_skb
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r13d, %ecx
	callq	_SOCK_DEBUG
	movl	-68(%rbp), %r13d
	jmp	LBB0_17
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_X25_EXT_MIN_LEN,4,2            ## @X25_EXT_MIN_LEN
	.comm	_MSG_DONTWAIT,4,2               ## @MSG_DONTWAIT
	.comm	_X25_STD_MIN_LEN,4,2            ## @X25_STD_MIN_LEN
	.comm	_EWOULDBLOCK,4,2                ## @EWOULDBLOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"x25_output: fragment alloc failed, err=%d, %d bytes sent\n"

	.comm	_X25_EXT_M_BIT,4,2              ## @X25_EXT_M_BIT
	.comm	_X25_STD_M_BIT,4,2              ## @X25_STD_M_BIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_x25_output                     ; -- Begin function x25_output
	.p2align	2
_x25_output:                            ; @x25_output
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x22, _X25_EXT_MIN_LEN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _X25_EXT_MIN_LEN@GOTPAGEOFF]
	ldr	w8, [x22]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x26, x9, x8
	mov	sp, x26
	mov	x0, x1
	bl	_X25_SKB_CB
	ldr	w21, [x0]
Lloh7:
	adrp	x8, _MSG_DONTWAIT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MSG_DONTWAIT@GOTPAGEOFF]
Lloh9:
	ldr	w24, [x8]
	mov	x0, x20
	bl	_x25_sk
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _X25_STD_MIN_LEN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _X25_STD_MIN_LEN@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x22, eq
	ldr	w23, [x8]
	stur	x0, [x29, #-112]                ; 8-byte Folded Spill
	ldr	w0, [x0, #8]
	bl	_x25_pacsize_to_bytes
	ldr	w8, [x19]
	sub	w8, w8, w23
	cmp	w8, w0
	b.le	LBB0_7
; %bb.1:
	mov	x25, x0
	mov	x0, x19
	mov	x1, x26
	mov	x2, x23
	bl	_skb_copy_from_linear_data
	mov	x0, x19
	mov	x1, x23
	bl	_skb_pull
	mov	x0, x19
	bl	_skb_headroom
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x27, x0
	stur	x26, [x29, #-104]               ; 8-byte Folded Spill
	mov	w22, #0
	and	w26, w24, w21
	add	w28, w0, w25
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x24
	bl	_skb_queue_tail
	add	w22, w21, w22
	ldr	w8, [x19]
	cmp	w8, #0
	b.le	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	x3, x29, #92
	mov	x0, x20
	mov	x1, x28
	mov	x2, x26
	bl	_sock_alloc_send_skb
	cbz	x0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	mov	x1, x27
	bl	_skb_reserve
	ldr	w8, [x19]
	cmp	w25, w8
	csel	w21, w25, w8, lt
	mov	x0, x24
	mov	x1, x21
	bl	_skb_put
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_skb_copy_from_linear_data
	mov	x0, x19
	mov	x1, x21
	bl	_skb_pull
	mov	x0, x24
	mov	x1, x23
	bl	_skb_push
	mov	x0, x24
	ldur	x1, [x29, #-104]                ; 8-byte Folded Reload
	mov	x2, x23
	bl	_skb_copy_to_linear_data
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	x8, [x8]
	cmp	x8, #0
	mov	w8, #12
	mov	w9, #8
	csel	x8, x9, x8, eq
Lloh12:
	adrp	x9, _X25_STD_M_BIT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _X25_STD_M_BIT@GOTPAGEOFF]
Lloh14:
	adrp	x10, _X25_EXT_M_BIT@GOTPAGE
Lloh15:
	ldr	x10, [x10, _X25_EXT_M_BIT@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	ldr	x10, [x24, #8]
	ldr	w11, [x10, x8]
	orr	w9, w11, w9
	str	w9, [x10, x8]
	b	LBB0_3
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	bl	_skb_queue_tail
	ldr	w8, [x19]
	sub	w22, w8, w23
	b	LBB0_12
LBB0_8:
	mov	w22, #0
	b	LBB0_11
LBB0_9:
	ldur	w2, [x29, #-92]
Lloh16:
	adrp	x8, _EWOULDBLOCK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EWOULDBLOCK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmn	w2, w8
	ccmp	w26, #0, #4, eq
	b.ne	LBB0_11
; %bb.10:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x22
	bl	_SOCK_DEBUG
	ldur	w22, [x29, #-92]
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_kfree_skb
LBB0_12:
	ldur	x8, [x29, #-88]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x22
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_X25_EXT_MIN_LEN,4,2            ; @X25_EXT_MIN_LEN
	.comm	_MSG_DONTWAIT,4,2               ; @MSG_DONTWAIT
	.comm	_X25_STD_MIN_LEN,4,2            ; @X25_STD_MIN_LEN
	.comm	_EWOULDBLOCK,4,2                ; @EWOULDBLOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"x25_output: fragment alloc failed, err=%d, %d bytes sent\n"

	.comm	_X25_EXT_M_BIT,4,2              ; @X25_EXT_M_BIT
	.comm	_X25_STD_M_BIT,4,2              ; @X25_STD_M_BIT
.subsections_via_symbols
