	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function free_winch
_free_winch:                            ## @free_winch
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	addq	$16, %rdi
	callq	_list_del
	movl	(%rbx), %edi
	cmpl	$-1, %edi
	je	LBB0_2
## %bb.1:
	movl	$1, %esi
	callq	_os_kill_process
LBB0_2:
	movl	4(%rbx), %edi
	cmpl	$-1, %edi
	je	LBB0_4
## %bb.3:
	callq	_os_close_file
LBB0_4:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	xorl	%esi, %esi
	callq	_free_stack
LBB0_6:
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.7:
	movq	_WINCH_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_free_irq
LBB0_8:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WINCH_IRQ,4,2                  ## @WINCH_IRQ
	.no_dead_strip	_free_winch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function free_winch
_free_winch:                            ; @free_winch
	.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	x20, x1
	mov	x19, x0
	add	x0, x0, #16
	bl	_list_del
	ldr	w0, [x19]
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	mov	w1, #1
	bl	_os_kill_process
LBB0_2:
	ldr	w0, [x19, #4]
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.3:
	bl	_os_close_file
LBB0_4:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.5:
	mov	w1, #0
	bl	_free_stack
LBB0_6:
	cbz	w20, LBB0_8
; %bb.7:
Lloh0:
	adrp	x8, _WINCH_IRQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WINCH_IRQ@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_free_irq
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WINCH_IRQ,4,2                  ; @WINCH_IRQ
	.no_dead_strip	_free_winch
.subsections_via_symbols
