	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rmw_alloc                      ## -- Begin function rmw_alloc
	.p2align	4, 0x90
_rmw_alloc:                             ## @rmw_alloc
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_addrmode@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movslq	%esi, %rbx
	movq	(%rax,%rbx,8), %rax
	movq	_GBRIND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	_GBR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_alloc_reg
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_alloc_reg
	movq	_rs2@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	callq	_is_const
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	_rs3@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	callq	_is_const
	testl	%eax, %eax
	jne	LBB0_4
LBB0_3:
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	callq	_clear_const
	movq	_rs3@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	callq	_clear_const
LBB0_4:
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movq	_REGIND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	movq	_rs1@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	movl	%ebx, %esi
	callq	_needed_again
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_alloc_reg
LBB0_7:
	movq	_rt1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rax
	movq	_TBIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	_SR@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_alloc_reg
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_dirty_reg
LBB0_9:
	movq	_MOREG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_alloc_reg
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$-1, %edx
	callq	_alloc_reg_temp
	movq	_minimum_free_regs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%rax,%rbx,4)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_addrmode,8,3                   ## @addrmode
	.comm	_GBRIND,8,3                     ## @GBRIND
	.comm	_GBR,4,2                        ## @GBR
	.comm	_rs2,8,3                        ## @rs2
	.comm	_rs3,8,3                        ## @rs3
	.comm	_REGIND,8,3                     ## @REGIND
	.comm	_rs1,8,3                        ## @rs1
	.comm	_rt1,8,3                        ## @rt1
	.comm	_TBIT,8,3                       ## @TBIT
	.comm	_SR,4,2                         ## @SR
	.comm	_MOREG,4,2                      ## @MOREG
	.comm	_minimum_free_regs,8,3          ## @minimum_free_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rmw_alloc                      ; -- Begin function rmw_alloc
	.p2align	2
_rmw_alloc:                             ; @rmw_alloc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _addrmode@GOTPAGE
Lloh1:
	ldr	x22, [x22, _addrmode@GOTPAGEOFF]
	ldr	x8, [x22]
	sxtw	x21, w19
	ldr	x8, [x8, w1, sxtw #3]
Lloh2:
	adrp	x9, _GBRIND@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GBRIND@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
Lloh5:
	adrp	x8, _GBR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GBR@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_alloc_reg
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_alloc_reg
Lloh8:
	adrp	x23, _rs2@GOTPAGE
Lloh9:
	ldr	x23, [x23, _rs2@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	w1, [x8, x21, lsl #2]
	mov	x0, x20
	bl	_is_const
Lloh10:
	adrp	x24, _rs3@GOTPAGE
Lloh11:
	ldr	x24, [x24, _rs3@GOTPAGEOFF]
	cbz	w0, LBB0_3
; %bb.2:
	ldr	x8, [x24]
	ldr	w1, [x8, x21, lsl #2]
	mov	x0, x20
	bl	_is_const
	cbnz	w0, LBB0_4
LBB0_3:
	ldr	x8, [x23]
	lsl	x23, x21, #2
	ldr	w1, [x8, x23]
	mov	x0, x20
	bl	_clear_const
	ldr	x8, [x24]
	ldr	w1, [x8, x23]
	mov	x0, x20
	bl	_clear_const
LBB0_4:
	ldr	x8, [x22]
	ldr	x8, [x8, x21, lsl #3]
Lloh12:
	adrp	x9, _REGIND@GOTPAGE
Lloh13:
	ldr	x9, [x9, _REGIND@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
Lloh15:
	adrp	x22, _rs1@GOTPAGE
Lloh16:
	ldr	x22, [x22, _rs1@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w0, [x8, x21, lsl #2]
	mov	x1, x19
	bl	_needed_again
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x8, [x22]
	ldr	w2, [x8, x21, lsl #2]
	mov	x0, x20
	mov	x1, x19
	bl	_alloc_reg
LBB0_7:
Lloh17:
	adrp	x8, _rt1@GOTPAGE
Lloh18:
	ldr	x8, [x8, _rt1@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	x8, [x8, x21, lsl #3]
Lloh20:
	adrp	x9, _TBIT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _TBIT@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
Lloh23:
	adrp	x22, _SR@GOTPAGE
Lloh24:
	ldr	x22, [x22, _SR@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_alloc_reg
	ldr	w1, [x22]
	mov	x0, x20
	bl	_dirty_reg
LBB0_9:
Lloh25:
	adrp	x8, _MOREG@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MOREG@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_alloc_reg
	mov	x0, x20
	mov	x1, x19
	mov	w2, #-1
	bl	_alloc_reg_temp
Lloh28:
	adrp	x8, _minimum_free_regs@GOTPAGE
Lloh29:
	ldr	x8, [x8, _minimum_free_regs@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	mov	w9, #1
	str	w9, [x8, x21, lsl #2]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_addrmode,8,3                   ; @addrmode
	.comm	_GBRIND,8,3                     ; @GBRIND
	.comm	_GBR,4,2                        ; @GBR
	.comm	_rs2,8,3                        ; @rs2
	.comm	_rs3,8,3                        ; @rs3
	.comm	_REGIND,8,3                     ; @REGIND
	.comm	_rs1,8,3                        ; @rs1
	.comm	_rt1,8,3                        ; @rt1
	.comm	_TBIT,8,3                       ; @TBIT
	.comm	_SR,4,2                         ; @SR
	.comm	_MOREG,4,2                      ; @MOREG
	.comm	_minimum_free_regs,8,3          ; @minimum_free_regs
.subsections_via_symbols
