	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_x25_check_rbuf                 ## -- Begin function x25_check_rbuf
	.p2align	4, 0x90
_x25_check_rbuf:                        ## @x25_check_rbuf
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_x25_sk
	movq	%rax, %r14
	leaq	4(%rbx), %rdi
	callq	_atomic_read
	movl	(%rbx), %ecx
	sarl	%ecx
	cmpl	%ecx, %eax
	jge	LBB0_2
## %bb.1:
	movl	(%r14), %eax
	movq	_X25_COND_OWN_RX_BUSY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_2
## %bb.3:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r14)
	movq	_X25_COND_ACK_PENDING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, (%r14)
	movl	4(%r14), %eax
	movl	%eax, 8(%r14)
	movq	_X25_RR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_x25_write_internal
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_x25_stop_timer                 ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_X25_COND_OWN_RX_BUSY,4,2       ## @X25_COND_OWN_RX_BUSY
	.comm	_X25_COND_ACK_PENDING,4,2       ## @X25_COND_ACK_PENDING
	.comm	_X25_RR,4,2                     ## @X25_RR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_x25_check_rbuf                 ; -- Begin function x25_check_rbuf
	.p2align	2
_x25_check_rbuf:                        ; @x25_check_rbuf
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_x25_sk
	mov	x20, x0
	add	x0, x19, #4
	bl	_atomic_read
	ldr	w8, [x19]
	cmp	w0, w8, asr #1
	b.ge	LBB0_3
; %bb.1:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _X25_COND_OWN_RX_BUSY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _X25_COND_OWN_RX_BUSY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	bic	w8, w8, w9
	str	w8, [x20]
Lloh3:
	adrp	x9, _X25_COND_ACK_PENDING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _X25_COND_ACK_PENDING@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x20]
	ldr	w8, [x20, #4]
	str	w8, [x20, #8]
Lloh6:
	adrp	x8, _X25_RR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _X25_RR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_x25_write_internal
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_x25_stop_timer
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_X25_COND_OWN_RX_BUSY,4,2       ; @X25_COND_OWN_RX_BUSY
	.comm	_X25_COND_ACK_PENDING,4,2       ; @X25_COND_ACK_PENDING
	.comm	_X25_RR,4,2                     ; @X25_RR
.subsections_via_symbols
