	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pbuf_enqueue
_pbuf_enqueue:                          ## @pbuf_enqueue
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	movq	_SREG@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	xorl	%eax, %eax
	callq	_cli
	movq	_pbuf_head@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rsi
	leal	1(%rsi), %eax
	movq	_PBUF_SIZE@GOTPCREL(%rip), %rdi
	cltd
	idivl	(%rdi)
	movq	_pbuf_tail@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_print
	jmp	LBB0_3
LBB0_1:
	movq	_pbuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r15d, (%rax,%rsi,4)
	movl	%edx, (%rcx)
LBB0_3:
	movl	%ebx, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SREG,4,2                       ## @SREG
	.comm	_pbuf_head,4,2                  ## @pbuf_head
	.comm	_PBUF_SIZE,4,2                  ## @PBUF_SIZE
	.comm	_pbuf_tail,4,2                  ## @pbuf_tail
	.comm	_pbuf,8,3                       ## @pbuf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pbuf: full\n"

	.no_dead_strip	_pbuf_enqueue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pbuf_enqueue
_pbuf_enqueue:                          ; @pbuf_enqueue
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _SREG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SREG@GOTPAGEOFF]
	ldr	w21, [x20]
	bl	_cli
Lloh2:
	adrp	x8, _pbuf_head@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pbuf_head@GOTPAGEOFF]
	ldrsw	x9, [x8]
	add	w10, w9, #1
Lloh4:
	adrp	x11, _PBUF_SIZE@GOTPAGE
Lloh5:
	ldr	x11, [x11, _PBUF_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	w11, [x11]
	sdiv	w12, w10, w11
	msub	w10, w12, w11, w10
Lloh7:
	adrp	x11, _pbuf_tail@GOTPAGE
Lloh8:
	ldr	x11, [x11, _pbuf_tail@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_2
; %bb.1:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_print
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x11, _pbuf@GOTPAGE
Lloh13:
	ldr	x11, [x11, _pbuf@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
	str	w19, [x11, x9, lsl #2]
	str	w10, [x8]
LBB0_3:
	str	w21, [x20]
	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 AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SREG,4,2                       ; @SREG
	.comm	_pbuf_head,4,2                  ; @pbuf_head
	.comm	_PBUF_SIZE,4,2                  ; @PBUF_SIZE
	.comm	_pbuf_tail,4,2                  ; @pbuf_tail
	.comm	_pbuf,8,3                       ; @pbuf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pbuf: full\n"

	.no_dead_strip	_pbuf_enqueue
.subsections_via_symbols
