	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___lwp_wd_remove                ## -- Begin function __lwp_wd_remove
	.p2align	4, 0x90
___lwp_wd_remove:                       ## @__lwp_wd_remove
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	__CPU_ISR_Disable
	movl	(%rbx), %r15d
	cmpl	$128, %r15d
	je	LBB0_4
## %bb.1:
	cmpl	$131, %r15d
	je	LBB0_4
## %bb.2:
	cmpl	$129, %r15d
	jne	LBB0_9
## %bb.3:
	movl	$130, (%rbx)
	jmp	LBB0_9
LBB0_4:
	movl	$130, (%rbx)
	movq	%rbx, %rdi
	callq	___lwp_wd_next
	movq	%rax, %r12
	movq	__wd_sync_count@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	___lwp_isr_in_progress
	movq	__wd_sync_level@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_6:
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	___lwp_queue_extractI
	movq	%r14, %rdi
	callq	___lwp_queue_isempty
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movq	%r14, %rdi
	callq	___lwp_wd_first
	cmpq	%r12, %rax
	jne	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	___lwp_wd_settimer
LBB0_9:
	callq	__CPU_ISR_Restore
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__wd_sync_count,4,2             ## @_wd_sync_count
	.comm	__wd_sync_level,4,2             ## @_wd_sync_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___lwp_wd_remove                ; -- Begin function __lwp_wd_remove
	.p2align	2
___lwp_wd_remove:                       ; @__lwp_wd_remove
	.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	x21, x1
	mov	x20, x0
	bl	__CPU_ISR_Disable
	ldr	w19, [x21]
	cmp	w19, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w19, #131
	b.eq	LBB0_4
; %bb.2:
	cmp	w19, #129
	b.ne	LBB0_9
; %bb.3:
	mov	w8, #130
	str	w8, [x21]
	b	LBB0_9
LBB0_4:
	mov	w8, #130
	str	w8, [x21]
	mov	x0, x21
	bl	___lwp_wd_next
	mov	x22, x0
Lloh0:
	adrp	x8, __wd_sync_count@GOTPAGE
Lloh1:
	ldr	x8, [x8, __wd_sync_count@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.5:
	bl	___lwp_isr_in_progress
Lloh3:
	adrp	x8, __wd_sync_level@GOTPAGE
Lloh4:
	ldr	x8, [x8, __wd_sync_level@GOTPAGEOFF]
Lloh5:
	str	w0, [x8]
LBB0_6:
	add	x0, x21, #4
	bl	___lwp_queue_extractI
	mov	x0, x20
	bl	___lwp_queue_isempty
	cbnz	w0, LBB0_9
; %bb.7:
	mov	x0, x20
	bl	___lwp_wd_first
	cmp	x0, x22
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x22
	bl	___lwp_wd_settimer
LBB0_9:
	bl	__CPU_ISR_Restore
	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 AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	__wd_sync_count,4,2             ; @_wd_sync_count
	.comm	__wd_sync_level,4,2             ; @_wd_sync_level
.subsections_via_symbols
