	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_remove_um
_r_remove_um:                           ## @r_remove_um
	.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, %rbx
	movq	(%rdi), %rax
	movl	$0, (%rax)
	callq	_r_has_min_length
	movl	%eax, %r14d
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movl	12(%rbx), %eax
	movl	16(%rbx), %ecx
	movl	%eax, 8(%rbx)
	movl	%ecx, 12(%rbx)
	movl	%ecx, 20(%rbx)
	movq	_s_54@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$9, %esi
	callq	_eq_s_b
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	12(%rbx), %eax
	movl	%eax, 24(%rbx)
	movq	_s_55@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_slice_from_s
	testl	%eax, %eax
	js	LBB0_9
## %bb.5:
	movq	(%rbx), %rax
	movl	$1, (%rax)
	movl	8(%rbx), %r15d
	movl	%r15d, 12(%rbx)
	movq	%rbx, %rdi
	callq	_r_fix_ending
	movl	%eax, %ecx
	shrl	$31, %ecx
	testl	%eax, %eax
	movl	$2, %edx
	cmovnel	%ecx, %edx
	testb	$1, %dl
	jne	LBB0_7
## %bb.6:
	movl	%r15d, 12(%rbx)
	jmp	LBB0_8
LBB0_1:
	movl	%r14d, %eax
	jmp	LBB0_9
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_7:
	testl	%eax, %eax
	cmovnsl	%r14d, %eax
	cmovel	%r14d, %eax
	testl	%ecx, %ecx
	jne	LBB0_9
LBB0_8:
	movl	$1, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_s_54,4,2                       ## @s_54
	.comm	_s_55,4,2                       ## @s_55
	.no_dead_strip	_r_remove_um
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_remove_um
_r_remove_um:                           ; @r_remove_um
	.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, x0
	ldr	x8, [x0]
	str	wzr, [x8]
	bl	_r_has_min_length
	mov	x19, x0
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.1:
	ldp	w8, w9, [x20, #12]
	stp	w8, w9, [x20, #8]
	str	w9, [x20, #20]
Lloh0:
	adrp	x8, _s_54@GOTPAGE
Lloh1:
	ldr	x8, [x8, _s_54@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #9
	bl	_eq_s_b
	cbz	w0, LBB0_5
; %bb.2:
	ldr	w8, [x20, #12]
	str	w8, [x20, #24]
Lloh3:
	adrp	x8, _s_55@GOTPAGE
Lloh4:
	ldr	x8, [x8, _s_55@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #3
	bl	_slice_from_s
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldr	x8, [x20]
	mov	w9, #1
	str	w9, [x8]
	ldr	w21, [x20, #8]
	str	w21, [x20, #12]
	mov	x0, x20
	bl	_r_fix_ending
	lsr	w8, w0, #31
	mov	w9, #2
	cmp	w0, #0
	csel	w9, w9, w8, eq
	orr	w9, w9, #0x2
	cmp	w9, #2
	b.ne	LBB0_7
; %bb.4:
	str	w21, [x20, #12]
	b	LBB0_8
LBB0_5:
	mov	w19, #0
	b	LBB0_9
LBB0_6:
	mov	x19, x0
	b	LBB0_9
LBB0_7:
	cmp	w0, #0
	csel	w9, w0, w19, lt
	csel	w19, w19, w9, eq
	cbnz	w8, LBB0_9
LBB0_8:
	mov	w19, #1
LBB0_9:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_s_54,4,2                       ; @s_54
	.comm	_s_55,4,2                       ; @s_55
	.no_dead_strip	_r_remove_um
.subsections_via_symbols
