	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wt_porcelain_v2_submodule_state
_wt_porcelain_v2_submodule_state:       ## @wt_porcelain_v2_submodule_state
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	callq	_S_ISGITLINK
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movl	20(%rbx), %edi
	callq	_S_ISGITLINK
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movl	16(%rbx), %edi
	callq	_S_ISGITLINK
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movb	$83, (%r14)
	cmpq	$0, 8(%rbx)
	movl	$46, %ecx
	movl	$67, %eax
	cmovel	%ecx, %eax
	movb	%al, 1(%r14)
	movq	_DIRTY_SUBMODULE_MODIFIED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	movl	$77, %eax
	cmovel	%ecx, %eax
	movb	%al, 2(%r14)
	movq	_DIRTY_SUBMODULE_UNTRACKED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	movl	$85, %eax
	cmovel	%ecx, %eax
LBB0_5:
	movb	%al, 3(%r14)
	movb	$0, 4(%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movw	$11854, (%r14)                  ## imm = 0x2E4E
	movb	$46, 2(%r14)
	movb	$46, %al
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_DIRTY_SUBMODULE_MODIFIED,4,2   ## @DIRTY_SUBMODULE_MODIFIED
	.comm	_DIRTY_SUBMODULE_UNTRACKED,4,2  ## @DIRTY_SUBMODULE_UNTRACKED
	.no_dead_strip	_wt_porcelain_v2_submodule_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wt_porcelain_v2_submodule_state
_wt_porcelain_v2_submodule_state:       ; @wt_porcelain_v2_submodule_state
	.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	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #24]
	bl	_S_ISGITLINK
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x20, #20]
	bl	_S_ISGITLINK
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x20, #16]
	bl	_S_ISGITLINK
	cbz	x0, LBB0_5
LBB0_3:
	mov	w8, #83
	strb	w8, [x19]
	ldr	x8, [x20, #8]
	cmp	x8, #0
	mov	w8, #67
	mov	w9, #46
	csel	w8, w9, w8, eq
	strb	w8, [x19, #1]
	ldr	w8, [x20]
Lloh0:
	adrp	x10, _DIRTY_SUBMODULE_MODIFIED@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DIRTY_SUBMODULE_MODIFIED@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w8
	mov	w8, #77
	csel	w8, w9, w8, eq
	strb	w8, [x19, #2]
	ldr	w8, [x20]
Lloh3:
	adrp	x10, _DIRTY_SUBMODULE_UNTRACKED@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DIRTY_SUBMODULE_UNTRACKED@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w8
	mov	w8, #85
	csel	w8, w9, w8, eq
LBB0_4:
	strb	w8, [x19, #3]
	strb	wzr, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	w8, #11854
	strh	w8, [x19]
	mov	w8, #46
	strb	w8, [x19, #2]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DIRTY_SUBMODULE_MODIFIED,4,2   ; @DIRTY_SUBMODULE_MODIFIED
	.comm	_DIRTY_SUBMODULE_UNTRACKED,4,2  ; @DIRTY_SUBMODULE_UNTRACKED
	.no_dead_strip	_wt_porcelain_v2_submodule_state
.subsections_via_symbols
