	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rbuf_init
_rbuf_init:                             ## @rbuf_init
	.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	%rdi, %r14
	movq	_RBUF_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_rbuf_readl
	movq	_RBUF_4B_ALGN@GOTPCREL(%rip), %rcx
	movq	_RBUF_RSB_EN@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movq	_RBUF_RSB_SWAP1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	xorl	%ebx, %ebx
	cmpq	$1, (%r14)
	sbbl	%ebx, %ebx
	orl	%ecx, %ebx
	andl	%eax, %ebx
	movq	_CONFIG_CPU_BIG_ENDIAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	movq	_RBUF_RSB_SWAP0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	notl	%edx
	andl	%ebx, %edx
	orl	%ecx, %ebx
	testl	%eax, %eax
	cmovnel	%edx, %ebx
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rbuf_writel                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RBUF_CONTROL,4,2               ## @RBUF_CONTROL
	.comm	_RBUF_4B_ALGN,4,2               ## @RBUF_4B_ALGN
	.comm	_RBUF_RSB_EN,4,2                ## @RBUF_RSB_EN
	.comm	_RBUF_RSB_SWAP1,4,2             ## @RBUF_RSB_SWAP1
	.comm	_CONFIG_CPU_BIG_ENDIAN,4,2      ## @CONFIG_CPU_BIG_ENDIAN
	.comm	_RBUF_RSB_SWAP0,4,2             ## @RBUF_RSB_SWAP0
	.no_dead_strip	_rbuf_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rbuf_init
_rbuf_init:                             ; @rbuf_init
	.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, _RBUF_CONTROL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _RBUF_CONTROL@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_rbuf_readl
Lloh2:
	adrp	x8, _RBUF_4B_ALGN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RBUF_4B_ALGN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _RBUF_RSB_EN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RBUF_RSB_EN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w8, w8, w9
	ldr	x9, [x19]
Lloh8:
	adrp	x10, _RBUF_RSB_SWAP1@GOTPAGE
Lloh9:
	ldr	x10, [x10, _RBUF_RSB_SWAP1@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	x9, #0
	mov	w9, #-1
	csinv	w9, w9, w10, eq
	and	w21, w9, w8
Lloh11:
	adrp	x8, _CONFIG_CPU_BIG_ENDIAN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CONFIG_CPU_BIG_ENDIAN@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_IS_ENABLED
Lloh14:
	adrp	x8, _RBUF_RSB_SWAP0@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RBUF_RSB_SWAP0@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	bic	w9, w21, w8
	orr	w8, w8, w21
	cmp	w0, #0
	csel	w1, w8, w9, eq
	ldr	w2, [x20]
	mov	x0, x19
	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
	b	_rbuf_writel
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RBUF_CONTROL,4,2               ; @RBUF_CONTROL
	.comm	_RBUF_4B_ALGN,4,2               ; @RBUF_4B_ALGN
	.comm	_RBUF_RSB_EN,4,2                ; @RBUF_RSB_EN
	.comm	_RBUF_RSB_SWAP1,4,2             ; @RBUF_RSB_SWAP1
	.comm	_CONFIG_CPU_BIG_ENDIAN,4,2      ; @CONFIG_CPU_BIG_ENDIAN
	.comm	_RBUF_RSB_SWAP0,4,2             ; @RBUF_RSB_SWAP0
	.no_dead_strip	_rbuf_init
.subsections_via_symbols
