	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mkdir_in_gitdir                ## -- Begin function mkdir_in_gitdir
	.p2align	4, 0x90
_mkdir_in_gitdir:                       ## @mkdir_in_gitdir
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$511, %esi                      ## imm = 0x1FF
	callq	_mkdir
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %r14
	movl	(%r14), %r15d
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_EEXIST@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_8
## %bb.2:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_lstat
	testq	%rax, %rax
	je	LBB0_3
LBB0_7:
	leaq	-32(%rbp), %rdi
	callq	_strbuf_release
	movl	%r15d, (%r14)
LBB0_8:
	movl	$-1, %eax
	jmp	LBB0_11
LBB0_3:
	movl	-36(%rbp), %edi
	callq	_S_ISLNK
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movl	-40(%rbp), %edx
	leaq	-32(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_strbuf_readlink
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	-32(%rbp), %rdi
	callq	_is_absolute_path
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	-32(%rbp), %rdi
	movl	$511, %esi                      ## imm = 0x1FF
	callq	_mkdir
	testq	%rax, %rax
	jne	LBB0_7
## %bb.9:
	leaq	-32(%rbp), %rdi
	callq	_strbuf_release
LBB0_10:
	movq	%rbx, %rdi
	callq	_adjust_shared_perm
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	_STRBUF_INIT,8,3                ## @STRBUF_INIT
	.comm	_EEXIST,4,2                     ## @EEXIST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mkdir_in_gitdir                ; -- Begin function mkdir_in_gitdir
	.p2align	2
_mkdir_in_gitdir:                       ; @mkdir_in_gitdir
	.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	x19, x0
	mov	w1, #511
	bl	_mkdir
	cbz	x0, LBB0_10
; %bb.1:
Lloh0:
	adrp	x20, _errno@GOTPAGE
Lloh1:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	w21, [x20]
Lloh2:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh5:
	adrp	x8, _EEXIST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_4
; %bb.2:
	add	x1, sp, #8
	mov	x0, x19
	bl	_lstat
	cbz	x0, LBB0_5
LBB0_3:
	mov	x0, sp
	bl	_strbuf_release
	str	w21, [x20]
LBB0_4:
	mov	w0, #-1
	b	LBB0_11
LBB0_5:
	ldr	w0, [sp, #12]
	bl	_S_ISLNK
	cbz	w0, LBB0_3
; %bb.6:
	ldr	w2, [sp, #8]
	mov	x0, sp
	mov	x1, x19
	bl	_strbuf_readlink
	cbnz	x0, LBB0_3
; %bb.7:
	ldr	x0, [sp]
	bl	_is_absolute_path
	cbz	w0, LBB0_3
; %bb.8:
	ldr	x0, [sp]
	mov	w1, #511
	bl	_mkdir
	cbnz	x0, LBB0_3
; %bb.9:
	mov	x0, sp
	bl	_strbuf_release
LBB0_10:
	mov	x0, x19
	bl	_adjust_shared_perm
LBB0_11:
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	_STRBUF_INIT,8,3                ; @STRBUF_INIT
	.comm	_EEXIST,4,2                     ; @EEXIST
.subsections_via_symbols
