	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___lwp_wd_insert                ## -- Begin function __lwp_wd_insert
	.p2align	4, 0x90
___lwp_wd_insert:                       ## @__lwp_wd_insert
	.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
	movq	%rsi, %r12
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	___lwp_isr_in_progress
	movq	%rax, %r14
	movq	_LWP_WD_INSERTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	movq	__wd_sync_count@GOTPCREL(%rip), %rax
	incl	(%rax)
	callq	__CPU_ISR_Disable
	movq	(%r12), %r13
	movq	%r15, %rdi
	callq	___lwp_wd_first
	movq	%rax, %rbx
	testq	%r13, %r13
	je	LBB0_1
## %bb.2:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	__wd_sync_level@GOTPCREL(%rip), %r15
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%rbx, %rdi
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	callq	___lwp_wd_next
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpq	(%rbx), %r13
	jl	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	callq	__CPU_ISR_Flash
	movq	8(%r12), %rax
	movq	_LWP_WD_INSERTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpq	%r14, (%r15)
	jg	LBB0_8
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	%rbx, %rdi
	callq	___lwp_wd_next
	movq	%rax, %rbx
	movq	%rax, %rdi
	jmp	LBB0_4
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, (%r15)
	callq	__CPU_ISR_Restore
	callq	__CPU_ISR_Disable
	movq	(%r12), %r13
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	___lwp_wd_first
	movq	%rax, %rbx
	testq	%r13, %r13
	jne	LBB0_3
## %bb.9:
	xorl	%r13d, %r13d
LBB0_10:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_1:
	xorl	%r13d, %r13d
LBB0_11:
	movq	%r12, %rdi
	callq	___lwp_wd_activate
	movq	%r13, (%r12)
	movl	16(%rbx), %edi
	leaq	16(%r12), %rsi
	callq	___lwp_queue_insertI
	movq	%r15, %rdi
	callq	___lwp_wd_first
	cmpq	%r12, %rax
	jne	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	callq	___lwp_wd_settimer
LBB0_13:
	movq	__wd_sync_level@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	movq	__wd_sync_count@GOTPCREL(%rip), %rax
	decl	(%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__CPU_ISR_Restore               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LWP_WD_INSERTED,8,3            ## @LWP_WD_INSERTED
	.comm	__wd_sync_count,4,2             ## @_wd_sync_count
	.comm	__wd_sync_level,8,3             ## @_wd_sync_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___lwp_wd_insert                ; -- Begin function __lwp_wd_insert
	.p2align	2
___lwp_wd_insert:                       ; @__lwp_wd_insert
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x21, x0
	bl	___lwp_isr_in_progress
	mov	x20, x0
Lloh0:
	adrp	x26, _LWP_WD_INSERTED@GOTPAGE
Lloh1:
	ldr	x26, [x26, _LWP_WD_INSERTED@GOTPAGEOFF]
	ldr	x8, [x26]
	str	x8, [x19, #8]
Lloh2:
	adrp	x23, __wd_sync_count@GOTPAGE
Lloh3:
	ldr	x23, [x23, __wd_sync_count@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w8, w8, #1
	str	w8, [x23]
	bl	__CPU_ISR_Disable
	ldr	x25, [x19]
	mov	x0, x21
	bl	___lwp_wd_first
	mov	x22, x0
Lloh4:
	adrp	x24, __wd_sync_level@GOTPAGE
Lloh5:
	ldr	x24, [x24, __wd_sync_level@GOTPAGEOFF]
	cbz	x25, LBB0_7
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	mov	x0, x22
	bl	___lwp_wd_next
	cbz	x0, LBB0_7
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22]
	cmp	x25, x8
	b.lt	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=2
	bl	__CPU_ISR_Flash
	ldr	x8, [x19, #8]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=2
	ldr	x8, [x24]
	cmp	x8, x20
	b.gt	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=2
	mov	x0, x22
	bl	___lwp_wd_next
	mov	x22, x0
	bl	___lwp_wd_next
	cbnz	x0, LBB0_2
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	str	x20, [x24]
	bl	__CPU_ISR_Restore
	bl	__CPU_ISR_Disable
	ldr	x25, [x19]
	mov	x0, x21
	bl	___lwp_wd_first
	mov	x22, x0
	cbnz	x25, LBB0_1
LBB0_7:
	mov	x0, x19
	bl	___lwp_wd_activate
	mov	x1, x19
	str	x25, [x1], #16
	ldr	w0, [x22, #16]
	bl	___lwp_queue_insertI
	mov	x0, x21
	bl	___lwp_wd_first
	cmp	x0, x19
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	___lwp_wd_settimer
LBB0_9:
	str	x20, [x24]
	ldr	w8, [x23]
	sub	w8, w8, #1
	str	w8, [x23]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	__CPU_ISR_Restore
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LWP_WD_INSERTED,8,3            ; @LWP_WD_INSERTED
	.comm	__wd_sync_count,4,2             ; @_wd_sync_count
	.comm	__wd_sync_level,8,3             ; @_wd_sync_level
.subsections_via_symbols
