	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grcan_txspace
_grcan_txspace:                         ## @grcan_txspace
	.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	%rdx, %r8
	movq	%rdi, %rcx
	movq	_GRCAN_MSG_SIZE@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	%rcx, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%rdi
	movq	%rax, %rbx
	jmp	LBB0_3
LBB0_1:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%edi
	movl	%eax, %ebx
LBB0_3:
	movq	%rsi, %rdi
	movq	%r8, %rsi
	movq	%rcx, %rdx
	callq	_grcan_ring_sub
	movq	(%r14), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_4
## %bb.5:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_6
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_6:
	notq	%rax
	addq	%rax, %rbx
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRCAN_MSG_SIZE,8,3             ## @GRCAN_MSG_SIZE
	.no_dead_strip	_grcan_txspace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grcan_txspace
_grcan_txspace:                         ; @grcan_txspace
	.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	x8, x0
Lloh0:
	adrp	x19, _GRCAN_MSG_SIZE@GOTPAGE
Lloh1:
	ldr	x19, [x19, _GRCAN_MSG_SIZE@GOTPAGEOFF]
	ldr	x9, [x19]
	udiv	x20, x0, x9
	mov	x0, x1
	mov	x1, x2
	mov	x2, x8
	bl	_grcan_ring_sub
	ldr	x8, [x19]
	udiv	x8, x0, x8
	mvn	x8, x8
	add	x0, x20, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GRCAN_MSG_SIZE,8,3             ; @GRCAN_MSG_SIZE
	.no_dead_strip	_grcan_txspace
.subsections_via_symbols
