	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_x25_negotiate_facilities       ## -- Begin function x25_negotiate_facilities
	.p2align	4, 0x90
_x25_negotiate_facilities:              ## @x25_negotiate_facilities
	.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	%rcx, %r15
	movq	%rdx, %r13
	movq	%rdi, %r14
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_x25_sk
	movq	%rax, %r12
	leaq	8(%rax), %rbx
	leaq	-96(%rbp), %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	$48, %edx
	callq	_memcpy
	movq	%r14, %rdi
	leaq	-96(%rbp), %rsi
	movq	%r15, %rdx
	movq	%r12, %rcx
	callq	_x25_parse_facilities
	movl	%eax, %r15d
	movl	-96(%rbp), %eax
	testb	$1, %al
	je	LBB0_3
## %bb.1:
	testb	$1, (%rbx)
	jne	LBB0_2
LBB0_3:
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movl	%eax, (%rbx)
	movq	-88(%rbp), %rax
	testq	%rax, %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_6
## %bb.4:
	cmpq	16(%r12), %rax
	jge	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_SOCK_DEBUG
	movq	-88(%rbp), %rax
	movq	%rax, 8(%rbx)
LBB0_6:
	movq	-80(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.7:
	movq	-72(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	cmpq	24(%r12), %rcx
	jge	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_SOCK_DEBUG
	movq	-80(%rbp), %rax
	movq	%rax, 16(%rbx)
	movq	-72(%rbp), %rax
LBB0_10:
	cmpq	32(%r12), %rax
	jge	LBB0_12
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_SOCK_DEBUG
	movq	-72(%rbp), %rax
	movq	%rax, 24(%rbx)
LBB0_12:
	movq	-64(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.13:
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:
	cmpq	40(%r12), %rcx
	jge	LBB0_16
## %bb.15:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_SOCK_DEBUG
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbx)
	movq	-56(%rbp), %rax
LBB0_16:
	cmpq	48(%r12), %rax
	jge	LBB0_18
## %bb.17:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_SOCK_DEBUG
	movq	-56(%rbp), %rax
	movq	%rax, 40(%rbx)
	jmp	LBB0_18
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_SOCK_DEBUG
	movl	$-1, %r15d
LBB0_18:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"X.25: rejecting reverse charging request\n"

L_.str.1:                               ## @.str.1
	.asciz	"X.25: throughput negotiated down\n"

L_.str.2:                               ## @.str.2
	.asciz	"X.25: packet size inwards negotiated down\n"

L_.str.3:                               ## @.str.3
	.asciz	"X.25: packet size outwards negotiated down\n"

L_.str.4:                               ## @.str.4
	.asciz	"X.25: window size inwards negotiated down\n"

L_.str.5:                               ## @.str.5
	.asciz	"X.25: window size outwards negotiated down\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_x25_negotiate_facilities       ; -- Begin function x25_negotiate_facilities
	.p2align	2
_x25_negotiate_facilities:              ; @x25_negotiate_facilities
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x24, x0
	mov	x0, x1
	bl	_x25_sk
	mov	x22, x0
	add	x23, x0, #8
	mov	x0, sp
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	mov	x0, x19
	mov	x1, x23
	mov	w2, #48
	bl	_memcpy
	mov	x1, sp
	mov	x0, x24
	mov	x2, x21
	mov	x3, x22
	bl	_x25_parse_facilities
	mov	x21, x0
	ldr	w8, [sp]
	tbz	w8, #0, LBB0_2
; %bb.1:
	ldrb	w9, [x23]
	tbnz	w9, #0, LBB0_17
LBB0_2:
	str	w8, [x19]
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x9, [x22, #16]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.4:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_SOCK_DEBUG
	ldr	x8, [sp, #8]
	str	x8, [x19, #8]
LBB0_5:
	ldr	x9, [sp, #16]
	cbz	x9, LBB0_11
; %bb.6:
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_11
; %bb.7:
	ldr	x10, [x22, #24]
	cmp	x9, x10
	b.ge	LBB0_9
; %bb.8:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_SOCK_DEBUG
	ldp	x9, x8, [sp, #16]
	str	x9, [x19, #16]
LBB0_9:
	ldr	x9, [x22, #32]
	cmp	x8, x9
	b.ge	LBB0_11
; %bb.10:
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_SOCK_DEBUG
	ldr	x8, [sp, #24]
	str	x8, [x19, #24]
LBB0_11:
	ldr	x9, [sp, #32]
	cbz	x9, LBB0_18
; %bb.12:
	ldr	x8, [sp, #40]
	cbz	x8, LBB0_18
; %bb.13:
	ldr	x10, [x22, #40]
	cmp	x9, x10
	b.ge	LBB0_15
; %bb.14:
Lloh6:
	adrp	x1, l_.str.4@PAGE
Lloh7:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_SOCK_DEBUG
	ldp	x9, x8, [sp, #32]
	str	x9, [x19, #32]
LBB0_15:
	ldr	x9, [x22, #48]
	cmp	x8, x9
	b.ge	LBB0_18
; %bb.16:
Lloh8:
	adrp	x1, l_.str.5@PAGE
Lloh9:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_SOCK_DEBUG
	ldr	x8, [sp, #40]
	str	x8, [x19, #40]
	b	LBB0_18
LBB0_17:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_SOCK_DEBUG
	mov	w21, #-1
LBB0_18:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"X.25: rejecting reverse charging request\n"

l_.str.1:                               ; @.str.1
	.asciz	"X.25: throughput negotiated down\n"

l_.str.2:                               ; @.str.2
	.asciz	"X.25: packet size inwards negotiated down\n"

l_.str.3:                               ; @.str.3
	.asciz	"X.25: packet size outwards negotiated down\n"

l_.str.4:                               ; @.str.4
	.asciz	"X.25: window size inwards negotiated down\n"

l_.str.5:                               ; @.str.5
	.asciz	"X.25: window size outwards negotiated down\n"

.subsections_via_symbols
