	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w32_info_exe
_w32_info_exe:                          ## @w32_info_exe
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	_PROCESS_QUERY_INFORMATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rdi), %edx
	movl	%eax, %edi
	callq	_OpenProcess
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movq	_MAX_PATH@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	incq	%rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movq	(%r12), %rax
	movq	%rax, -40(%rbp)
	leaq	-40(%rbp), %rcx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_w32_QueryFullProcessImageName
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	-40(%rbp), %rax
	movb	$0, (%rbx,%rax)
	movq	%rbx, %rdi
	callq	_r_sys_conv_win_to_utf8
	movl	%eax, (%r15)
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_r_sys_perror
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	callq	_r_sys_perror
LBB0_7:
	movq	%r14, %rdi
	callq	_CloseHandle
LBB0_8:
	movq	%rbx, %rdi
	callq	_free
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_PROCESS_QUERY_INFORMATION,4,2  ## @PROCESS_QUERY_INFORMATION
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w32_info_exe/OpenProcess"

	.comm	_MAX_PATH,8,3                   ## @MAX_PATH
L_.str.1:                               ## @.str.1
	.asciz	"w32_info_exe/malloc path"

L_.str.2:                               ## @.str.2
	.asciz	"w32_info_exe/QueryFullProcessImageName"

	.no_dead_strip	_w32_info_exe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function w32_info_exe
_w32_info_exe:                          ; @w32_info_exe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _PROCESS_QUERY_INFORMATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PROCESS_QUERY_INFORMATION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _FALSE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	ldr	w2, [x0]
	mov	x0, x8
	bl	_OpenProcess
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh6:
	adrp	x22, _MAX_PATH@GOTPAGE
Lloh7:
	ldr	x22, [x22, _MAX_PATH@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x0, x8, #1
	bl	_malloc
	mov	x20, x0
	cbz	x0, LBB0_8
; %bb.2:
	ldr	x8, [x22]
	str	x8, [sp, #8]
	add	x3, sp, #8
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_w32_QueryFullProcessImageName
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [sp, #8]
	strb	wzr, [x20, x8]
	mov	x0, x20
	bl	_r_sys_conv_win_to_utf8
	str	w0, [x21]
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_r_sys_perror
	mov	x20, #0
	b	LBB0_7
LBB0_5:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_r_sys_perror
LBB0_6:
	mov	x0, x19
	bl	_CloseHandle
LBB0_7:
	mov	x0, x20
	bl	_free
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PROCESS_QUERY_INFORMATION,4,2  ; @PROCESS_QUERY_INFORMATION
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w32_info_exe/OpenProcess"

	.comm	_MAX_PATH,8,3                   ; @MAX_PATH
l_.str.1:                               ; @.str.1
	.asciz	"w32_info_exe/malloc path"

l_.str.2:                               ; @.str.2
	.asciz	"w32_info_exe/QueryFullProcessImageName"

	.no_dead_strip	_w32_info_exe
.subsections_via_symbols
