	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_w32_terminate_process          ## -- Begin function w32_terminate_process
	.p2align	4, 0x90
_w32_terminate_process:                 ## @w32_terminate_process
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	_PROCESS_TERMINATE@GOTPCREL(%rip), %rax
	movq	_SYNCHRONIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	callq	_w32_OpenProcess
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r15
	movl	%r14d, %edi
	callq	_w32_DebugActiveProcessStop
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_TerminateProcess
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%r15, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_WaitForSingleObject
	movq	_WAIT_FAILED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	callq	_r_sys_perror
	jmp	LBB0_8
LBB0_11:
	leaq	L_.str(%rip), %rdi
	callq	_r_sys_perror
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	callq	_r_sys_perror
	jmp	LBB0_8
LBB0_6:
	movq	_WAIT_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	$1, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
	movl	%r14d, %esi
	callq	_eprintf
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%r15, %rdi
	callq	_CloseHandle
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PROCESS_TERMINATE,4,2          ## @PROCESS_TERMINATE
	.comm	_SYNCHRONIZE,4,2                ## @SYNCHRONIZE
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w32_terminate_process/OpenProcess"

L_.str.1:                               ## @.str.1
	.asciz	"e32_terminate_process/TerminateProcess"

	.comm	_WAIT_FAILED,8,3                ## @WAIT_FAILED
L_.str.2:                               ## @.str.2
	.asciz	"w32_terminate_process/WaitForSingleObject"

	.comm	_WAIT_TIMEOUT,8,3               ## @WAIT_TIMEOUT
L_.str.3:                               ## @.str.3
	.asciz	"(%d) Waiting for process to terminate timed out.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_w32_terminate_process          ; -- Begin function w32_terminate_process
	.p2align	2
_w32_terminate_process:                 ; @w32_terminate_process
	.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
Lloh0:
	adrp	x8, _PROCESS_TERMINATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PROCESS_TERMINATE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SYNCHRONIZE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SYNCHRONIZE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh6:
	adrp	x8, _FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_w32_OpenProcess
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	bl	_w32_DebugActiveProcessStop
	mov	x0, x19
	mov	w1, #1
	bl	_TerminateProcess
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x19
	mov	w1, #1000
	bl	_WaitForSingleObject
Lloh9:
	adrp	x8, _WAIT_FAILED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WAIT_FAILED@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_r_sys_perror
	b	LBB0_8
LBB0_4:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_r_sys_perror
	mov	w20, #0
	b	LBB0_10
LBB0_5:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_r_sys_perror
	b	LBB0_8
LBB0_6:
Lloh18:
	adrp	x8, _WAIT_TIMEOUT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WAIT_TIMEOUT@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.7:
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_eprintf
LBB0_8:
	mov	w20, #0
LBB0_9:
	mov	x0, x19
	bl	_CloseHandle
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	w20, #1
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_PROCESS_TERMINATE,4,2          ; @PROCESS_TERMINATE
	.comm	_SYNCHRONIZE,4,2                ; @SYNCHRONIZE
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w32_terminate_process/OpenProcess"

l_.str.1:                               ; @.str.1
	.asciz	"e32_terminate_process/TerminateProcess"

	.comm	_WAIT_FAILED,8,3                ; @WAIT_FAILED
l_.str.2:                               ; @.str.2
	.asciz	"w32_terminate_process/WaitForSingleObject"

	.comm	_WAIT_TIMEOUT,8,3               ; @WAIT_TIMEOUT
l_.str.3:                               ; @.str.3
	.asciz	"(%d) Waiting for process to terminate timed out.\n"

.subsections_via_symbols
