	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxser_write_room
_mxser_write_room:                      ## @mxser_write_room
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	_SERIAL_XMIT_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rax), %edx
	notl	%edx
	addl	(%rcx), %edx
	xorl	%eax, %eax
	testl	%edx, %edx
	cmovgl	%edx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SERIAL_XMIT_SIZE,4,2           ## @SERIAL_XMIT_SIZE
	.no_dead_strip	_mxser_write_room
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxser_write_room
_mxser_write_room:                      ; @mxser_write_room
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SERIAL_XMIT_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SERIAL_XMIT_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w8, [x8]
	mvn	w8, w8
	add	w8, w9, w8
	cmp	w8, #0
	csel	w0, w8, wzr, gt
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SERIAL_XMIT_SIZE,4,2           ; @SERIAL_XMIT_SIZE
	.no_dead_strip	_mxser_write_room
.subsections_via_symbols
