	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pbuf_dequeue
_pbuf_dequeue:                          ## @pbuf_dequeue
	.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
	movq	_SREG@GOTPCREL(%rip), %r14
	movl	(%r14), %r15d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_cli
	movq	_pbuf_head@GOTPCREL(%rip), %rdx
	movq	_pbuf_tail@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	cmpq	%rax, (%rdx)
	je	LBB0_5
## %bb.1:
	movq	_pbuf@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%rax,4), %ebx
	incq	%rax
	movq	_PBUF_SIZE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_2
## %bb.3:
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_4
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_4:
	movq	%rdx, (%rcx)
LBB0_5:
	movl	%r15d, (%r14)
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SREG,4,2                       ## @SREG
	.comm	_pbuf_head,8,3                  ## @pbuf_head
	.comm	_pbuf_tail,8,3                  ## @pbuf_tail
	.comm	_pbuf,8,3                       ## @pbuf
	.comm	_PBUF_SIZE,8,3                  ## @PBUF_SIZE
	.no_dead_strip	_pbuf_dequeue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pbuf_dequeue
_pbuf_dequeue:                          ; @pbuf_dequeue
	.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
Lloh0:
	adrp	x19, _SREG@GOTPAGE
Lloh1:
	ldr	x19, [x19, _SREG@GOTPAGEOFF]
	ldr	w20, [x19]
	bl	_cli
Lloh2:
	adrp	x8, _pbuf_head@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pbuf_head@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x8]
Lloh5:
	adrp	x8, _pbuf_tail@GOTPAGE
Lloh6:
	ldr	x8, [x8, _pbuf_tail@GOTPAGEOFF]
	ldr	x9, [x8]
	cmp	x10, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x10, _pbuf@GOTPAGE
Lloh8:
	ldr	x10, [x10, _pbuf@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	ldr	w0, [x10, x9, lsl #2]
	add	x9, x9, #1
Lloh10:
	adrp	x10, _PBUF_SIZE@GOTPAGE
Lloh11:
	ldr	x10, [x10, _PBUF_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	udiv	x11, x9, x10
	msub	x9, x11, x10, x9
	str	x9, [x8]
LBB0_3:
	str	w20, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SREG,4,2                       ; @SREG
	.comm	_pbuf_head,8,3                  ; @pbuf_head
	.comm	_pbuf_tail,8,3                  ; @pbuf_tail
	.comm	_pbuf,8,3                       ; @pbuf
	.comm	_PBUF_SIZE,8,3                  ; @PBUF_SIZE
	.no_dead_strip	_pbuf_dequeue
.subsections_via_symbols
