	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mingw_kill                     ## -- Begin function mingw_kill
	.p2align	4, 0x90
_mingw_kill:                            ## @mingw_kill
	.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
	movq	%rdi, %rdx
	testq	%rdi, %rdi
	jle	LBB0_6
## %bb.1:
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_6
## %bb.2:
	movq	_PROCESS_TERMINATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_OpenProcess
	movq	%rax, %r14
	movl	$-1, %ebx
	movq	%rax, %rdi
	movl	$-1, %esi
	callq	_TerminateProcess
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	jmp	LBB0_4
LBB0_6:
	testq	%rdx, %rdx
	jle	LBB0_10
## %bb.7:
	testl	%esi, %esi
	jne	LBB0_10
## %bb.8:
	movq	_PROCESS_QUERY_INFORMATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_OpenProcess
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, %rdi
LBB0_4:
	callq	_CloseHandle
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %ebx
	jmp	LBB0_11
LBB0_5:
	xorl	%eax, %eax
	callq	_GetLastError
	movl	%eax, %edi
	callq	_err_win_to_posix
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	%r14, %rdi
	callq	_CloseHandle
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGTERM,4,2                    ## @SIGTERM
	.comm	_PROCESS_TERMINATE,4,2          ## @PROCESS_TERMINATE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_errno,4,2                      ## @errno
	.comm	_PROCESS_QUERY_INFORMATION,4,2  ## @PROCESS_QUERY_INFORMATION
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mingw_kill                     ; -- Begin function mingw_kill
	.p2align	2
_mingw_kill:                            ; @mingw_kill
	.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	x2, x0
	cmp	x0, #1
	b.lt	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _PROCESS_TERMINATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PROCESS_TERMINATE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_OpenProcess
	mov	x19, x0
	mov	w1, #-1
	bl	_TerminateProcess
	cbz	x0, LBB0_9
; %bb.3:
	mov	x0, x19
	b	LBB0_7
LBB0_4:
	cmp	x2, #1
	b.lt	LBB0_8
; %bb.5:
	cbnz	w1, LBB0_8
; %bb.6:
Lloh9:
	adrp	x8, _PROCESS_QUERY_INFORMATION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PROCESS_QUERY_INFORMATION@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _FALSE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_OpenProcess
	cbz	x0, LBB0_8
LBB0_7:
	bl	_CloseHandle
	mov	w0, #0
	b	LBB0_11
LBB0_8:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _errno@GOTPAGE
Lloh19:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh20:
	str	w8, [x9]
	b	LBB0_10
LBB0_9:
	bl	_GetLastError
	bl	_err_win_to_posix
Lloh21:
	adrp	x8, _errno@GOTPAGE
Lloh22:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh23:
	str	w0, [x8]
	mov	x0, x19
	bl	_CloseHandle
LBB0_10:
	mov	w0, #-1
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGTERM,4,2                    ; @SIGTERM
	.comm	_PROCESS_TERMINATE,4,2          ; @PROCESS_TERMINATE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_errno,4,2                      ; @errno
	.comm	_PROCESS_QUERY_INFORMATION,4,2  ; @PROCESS_QUERY_INFORMATION
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
