	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_close
_rs_close:                              ## @rs_close
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_timer_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	cmpl	$1, (%rbx)
	jne	LBB0_2
## %bb.1:
	movq	_serial_timer@GOTPCREL(%rip), %rdi
	callq	_del_timer_sync
LBB0_2:
	movq	_timer_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_timer_lock,4,2                 ## @timer_lock
	.comm	_serial_timer,4,2               ## @serial_timer
	.no_dead_strip	_rs_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_close
_rs_close:                              ; @rs_close
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x0, _timer_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _timer_lock@GOTPAGEOFF]
	bl	_spin_lock
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, _serial_timer@GOTPAGE
Lloh3:
	ldr	x0, [x0, _serial_timer@GOTPAGEOFF]
	bl	_del_timer_sync
LBB0_2:
Lloh4:
	adrp	x0, _timer_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _timer_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_timer_lock,4,2                 ; @timer_lock
	.comm	_serial_timer,4,2               ; @serial_timer
	.no_dead_strip	_rs_close
.subsections_via_symbols
