	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_msys2_sh
_is_msys2_sh:                           ## @is_msys2_sh
	.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
	xorl	%r15d, %r15d
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:
	movl	_is_msys2_sh.ret(%rip), %r15d
	testl	%r15d, %r15d
	jns	LBB0_9
## %bb.3:
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_path_lookup
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_strlen
	movq	%rax, -32(%rbp)
	leaq	L_.str.1(%rip), %rdx
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_match_last_path_component
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	leaq	L_.str.2(%rip), %rdx
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_match_last_path_component
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rdx
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_match_last_path_component
	xorl	%r15d, %r15d
	testq	%rax, %rax
	setne	%r15b
LBB0_8:
	movl	%r15d, _is_msys2_sh.ret(%rip)
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_9
LBB0_4:
	movl	$0, _is_msys2_sh.ret(%rip)
	xorl	%r15d, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sh"

	.section	__DATA,__data
	.p2align	2                               ## @is_msys2_sh.ret
_is_msys2_sh.ret:
	.long	4294967295                      ## 0xffffffff

	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"sh.exe"

L_.str.2:                               ## @.str.2
	.asciz	"bin"

L_.str.3:                               ## @.str.3
	.asciz	"usr"

	.no_dead_strip	_is_msys2_sh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_msys2_sh
_is_msys2_sh:                           ; @is_msys2_sh
	.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
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_4
LBB0_2:
	mov	w20, #0
LBB0_3:
	mov	x0, x20
	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_4:
	adrp	x21, _is_msys2_sh.ret@PAGE
	ldr	w20, [x21, _is_msys2_sh.ret@PAGEOFF]
	tbz	w20, #31, LBB0_3
; %bb.5:
	mov	x0, x19
	mov	w1, #0
	bl	_path_lookup
	cbz	x0, LBB0_9
; %bb.6:
	mov	x19, x0
	bl	_strlen
	str	x0, [sp, #8]
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x1, sp, #8
	mov	x0, x19
	bl	_match_last_path_component
	cbz	x0, LBB0_10
; %bb.7:
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x1, sp, #8
	mov	x0, x19
	bl	_match_last_path_component
	cbz	x0, LBB0_10
; %bb.8:
Lloh6:
	adrp	x2, l_.str.3@PAGE
Lloh7:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x1, sp, #8
	mov	x0, x19
	bl	_match_last_path_component
	cmp	x0, #0
	cset	w20, ne
	b	LBB0_11
LBB0_9:
	mov	w20, #0
	str	wzr, [x21, _is_msys2_sh.ret@PAGEOFF]
	b	LBB0_3
LBB0_10:
	mov	w20, #0
LBB0_11:
	str	w20, [x21, _is_msys2_sh.ret@PAGEOFF]
	mov	x0, x19
	bl	_free
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sh"

	.section	__DATA,__data
	.p2align	2                               ; @is_msys2_sh.ret
_is_msys2_sh.ret:
	.long	4294967295                      ; 0xffffffff

	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"sh.exe"

l_.str.2:                               ; @.str.2
	.asciz	"bin"

l_.str.3:                               ; @.str.3
	.asciz	"usr"

	.no_dead_strip	_is_msys2_sh
.subsections_via_symbols
