	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function x25_accept
_x25_accept:                            ## @x25_accept
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r15
	movq	_EINVAL@GOTPCREL(%rip), %r13
	xorl	%ebx, %ebx
	subl	(%r13), %ebx
	testq	%r15, %r15
	je	LBB0_9
## %bb.1:
	movq	(%r15), %rax
	movq	_TCP_LISTEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.2:
	movq	8(%r15), %rax
	movq	_SOCK_SEQPACKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	%rsi, %r14
	movq	%r15, %rdi
	callq	_lock_sock
	movl	24(%r15), %esi
	movq	%r15, %rdi
	callq	_x25_wait_for_data
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	leaq	20(%r15), %rdi
	callq	_skb_dequeue
	xorl	%ebx, %ebx
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.7:
	movq	%rax, %r12
	movq	%r14, %rsi
	callq	_sock_graft
	movq	$0, (%r12)
	movq	%r12, %rdi
	callq	_kfree_skb
	decl	16(%r15)
	movq	_SS_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_8
LBB0_3:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_6:
	subl	(%r13), %ebx
LBB0_8:
	movq	%r15, %rdi
	callq	_release_sock
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TCP_LISTEN,8,3                 ## @TCP_LISTEN
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_SOCK_SEQPACKET,8,3             ## @SOCK_SEQPACKET
	.comm	_SS_CONNECTED,4,2               ## @SS_CONNECTED
	.no_dead_strip	_x25_accept
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function x25_accept
_x25_accept:                            ; @x25_accept
	.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
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x22, _EINVAL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EINVAL@GOTPAGEOFF]
	ldr	w8, [x22]
	neg	w21, w8
	cbz	x19, LBB0_9
; %bb.1:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _TCP_LISTEN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TCP_LISTEN@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.2:
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _SOCK_SEQPACKET@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SOCK_SEQPACKET@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	mov	x20, x1
	mov	x0, x19
	bl	_lock_sock
	ldr	w1, [x19, #24]
	mov	x0, x19
	bl	_x25_wait_for_data
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.4:
	add	x0, x19, #20
	bl	_skb_dequeue
	mov	x21, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_7
; %bb.5:
	mov	x1, x20
	bl	_sock_graft
	str	xzr, [x21]
	mov	x0, x21
	bl	_kfree_skb
	mov	w21, #0
	ldr	w8, [x19, #16]
	sub	w8, w8, #1
	str	w8, [x19, #16]
Lloh8:
	adrp	x8, _SS_CONNECTED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SS_CONNECTED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x20]
	b	LBB0_8
LBB0_6:
Lloh11:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_7:
	ldr	w8, [x22]
	neg	w21, w8
LBB0_8:
	mov	x0, x19
	bl	_release_sock
LBB0_9:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TCP_LISTEN,8,3                 ; @TCP_LISTEN
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_SOCK_SEQPACKET,8,3             ; @SOCK_SEQPACKET
	.comm	_SS_CONNECTED,4,2               ; @SS_CONNECTED
	.no_dead_strip	_x25_accept
.subsections_via_symbols
