	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_advance_write_ptr              ## -- Begin function advance_write_ptr
	.p2align	4, 0x90
_advance_write_ptr:                     ## @advance_write_ptr
	.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	%esi, %r15d
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_NB_MAGIC_HEAD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_NB_MAGIC_BUSYHEAD@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	movq	40(%rdi), %rbx
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	testl	%r15d, %r15d
	setg	%al
	movq	_NET_BUFFER_SIZE@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	setge	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movslq	%r15d, %rax
	addq	8(%rbx), %rax
	movq	%rax, 8(%rbx)
	xorl	%edi, %edi
	cmpq	16(%rbx), %rax
	setle	%dil
	callq	_assert
	cmpl	$0, 32(%rbx)
	je	LBB0_1
## %bb.2:
	addl	%r15d, 28(%r14)
	jmp	LBB0_3
LBB0_1:
	addl	%r15d, 24(%r14)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NB_MAGIC_HEAD,8,3              ## @NB_MAGIC_HEAD
	.comm	_NB_MAGIC_BUSYHEAD,8,3          ## @NB_MAGIC_BUSYHEAD
	.comm	_NET_BUFFER_SIZE,4,2            ## @NET_BUFFER_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_advance_write_ptr              ; -- Begin function advance_write_ptr
	.p2align	2
_advance_write_ptr:                     ; @advance_write_ptr
	.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	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #40]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NB_MAGIC_HEAD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NB_MAGIC_HEAD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh3:
	adrp	x9, _NB_MAGIC_BUSYHEAD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NB_MAGIC_BUSYHEAD@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_assert
	cmp	w20, #0
Lloh6:
	adrp	x8, _NET_BUFFER_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NET_BUFFER_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ccmp	w8, w20, #8, gt
	cset	w0, ge
	bl	_assert
	ldp	x8, x9, [x21, #8]
	add	x8, x8, w20, sxtw
	str	x8, [x21, #8]
	cmp	x8, x9
	cset	w0, le
	bl	_assert
	ldr	w8, [x21, #32]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w8, [x19, #28]
	add	w8, w8, w20
	str	w8, [x19, #28]
	b	LBB0_3
LBB0_2:
	ldr	w8, [x19, #24]
	add	w8, w8, w20
	str	w8, [x19, #24]
LBB0_3:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NB_MAGIC_HEAD,8,3              ; @NB_MAGIC_HEAD
	.comm	_NB_MAGIC_BUSYHEAD,8,3          ; @NB_MAGIC_BUSYHEAD
	.comm	_NET_BUFFER_SIZE,4,2            ; @NET_BUFFER_SIZE
.subsections_via_symbols
