	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_rbu_packet_size
_write_rbu_packet_size:                 ## @write_rbu_packet_size
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%rcx, %r15
	movq	_rbu_data@GOTPCREL(%rip), %r12
	leaq	8(%r12), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	xorl	%eax, %eax
	callq	_packet_empty_list
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	callq	_sscanf
	movq	-40(%rbp), %rax
	movl	$4294967294, %ecx               ## imm = 0xFFFFFFFE
	cmpq	%rcx, %rax
	ja	LBB0_2
## %bb.1:
	movq	%rax, (%r12)
LBB0_2:
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rbu_data,16,3                  ## @rbu_data
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%lu"

	.no_dead_strip	_write_rbu_packet_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_rbu_packet_size
_write_rbu_packet_size:                 ; @write_rbu_packet_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x5
	mov	x21, x3
Lloh0:
	adrp	x22, _rbu_data@GOTPAGE
Lloh1:
	ldr	x22, [x22, _rbu_data@GOTPAGEOFF]
	add	x20, x22, #8
	mov	x0, x20
	bl	_spin_lock
	bl	_packet_empty_list
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x0, x21
	bl	_sscanf
	ldr	x8, [sp, #8]
	mov	w9, #-2
	cmp	x8, x9
	b.hi	LBB0_2
; %bb.1:
	str	x8, [x22]
LBB0_2:
	mov	x0, x20
	bl	_spin_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_rbu_data,16,3                  ; @rbu_data
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%lu"

	.no_dead_strip	_write_rbu_packet_size
.subsections_via_symbols
