	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tmp_objdir_create              ## -- Begin function tmp_objdir_create
	.p2align	4, 0x90
_tmp_objdir_create:                     ## @tmp_objdir_create
	.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
	movq	_the_tmp_objdir@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_BUG
LBB0_2:
	movl	$8, %edi
	callq	_xmalloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_strbuf_init
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_argv_array_init
	xorl	%eax, %eax
	callq	_get_object_directory
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_strbuf_addf
	movq	%rbx, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_strbuf_grow
	movl	(%rbx), %edi
	callq	_mkdtemp
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	%rbx, (%r15)
	cmpl	$0, _tmp_objdir_create.installed_handlers(%rip)
	jne	LBB0_6
## %bb.5:
	movq	_remove_tmp_objdir@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_atexit
	movq	_remove_tmp_objdir_on_signal@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sigchain_push_common
	incl	_tmp_objdir_create.installed_handlers(%rip)
LBB0_6:
	movl	(%rbx), %edi
	callq	_setup_tmp_objdir
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_tmp_objdir_destroy
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_3:
	movq	%rbx, %rdi
	callq	_tmp_objdir_free
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_8:
	movq	_ALTERNATE_DB_ENVIRONMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_get_object_directory
	movl	%eax, %edi
	callq	_absolute_path
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_env_append
	movq	_DB_ENVIRONMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%rbx), %edi
	callq	_absolute_path
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_env_replace
	movq	_GIT_QUARANTINE_ENVIRONMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%rbx), %edi
	callq	_absolute_path
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_env_replace
LBB0_9:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_tmp_objdir_create.installed_handlers,4,2 ## @tmp_objdir_create.installed_handlers
	.comm	_the_tmp_objdir,8,3             ## @the_tmp_objdir
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"only one tmp_objdir can be used at a time"

L_.str.1:                               ## @.str.1
	.asciz	"%s/incoming-XXXXXX"

	.comm	_remove_tmp_objdir,4,2          ## @remove_tmp_objdir
	.comm	_remove_tmp_objdir_on_signal,4,2 ## @remove_tmp_objdir_on_signal
	.comm	_ALTERNATE_DB_ENVIRONMENT,4,2   ## @ALTERNATE_DB_ENVIRONMENT
	.comm	_DB_ENVIRONMENT,4,2             ## @DB_ENVIRONMENT
	.comm	_GIT_QUARANTINE_ENVIRONMENT,4,2 ## @GIT_QUARANTINE_ENVIRONMENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tmp_objdir_create              ; -- Begin function tmp_objdir_create
	.p2align	2
_tmp_objdir_create:                     ; @tmp_objdir_create
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x21, _the_tmp_objdir@GOTPAGE
Lloh1:
	ldr	x21, [x21, _the_tmp_objdir@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BUG
LBB0_2:
	mov	w0, #8
	bl	_xmalloc
	mov	x19, x0
	mov	w1, #0
	bl	_strbuf_init
	add	x20, x19, #4
	mov	x0, x20
	bl	_argv_array_init
	bl	_get_object_directory
	mov	x2, x0
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strbuf_addf
	mov	x0, x19
	mov	w1, #1024
	bl	_strbuf_grow
	ldr	w0, [x19]
	bl	_mkdtemp
	cbz	w0, LBB0_7
; %bb.3:
	str	x19, [x21]
	adrp	x21, _tmp_objdir_create.installed_handlers@PAGE
	ldr	w8, [x21, _tmp_objdir_create.installed_handlers@PAGEOFF]
	cbnz	w8, LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _remove_tmp_objdir@GOTPAGE
Lloh7:
	ldr	x8, [x8, _remove_tmp_objdir@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_atexit
Lloh9:
	adrp	x8, _remove_tmp_objdir_on_signal@GOTPAGE
Lloh10:
	ldr	x8, [x8, _remove_tmp_objdir_on_signal@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_sigchain_push_common
	ldr	w8, [x21, _tmp_objdir_create.installed_handlers@PAGEOFF]
	add	w8, w8, #1
	str	w8, [x21, _tmp_objdir_create.installed_handlers@PAGEOFF]
LBB0_5:
	ldr	w0, [x19]
	bl	_setup_tmp_objdir
	cbz	x0, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_tmp_objdir_destroy
	mov	x19, #0
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_tmp_objdir_free
	mov	x19, #0
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x8, _ALTERNATE_DB_ENVIRONMENT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ALTERNATE_DB_ENVIRONMENT@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
	bl	_get_object_directory
	bl	_absolute_path
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_env_append
Lloh15:
	adrp	x8, _DB_ENVIRONMENT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DB_ENVIRONMENT@GOTPAGEOFF]
Lloh17:
	ldr	w21, [x8]
	ldr	w0, [x19]
	bl	_absolute_path
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_env_replace
Lloh18:
	adrp	x8, _GIT_QUARANTINE_ENVIRONMENT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GIT_QUARANTINE_ENVIRONMENT@GOTPAGEOFF]
Lloh20:
	ldr	w21, [x8]
	ldr	w0, [x19]
	bl	_absolute_path
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_env_replace
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_tmp_objdir_create.installed_handlers,4,2 ; @tmp_objdir_create.installed_handlers
	.comm	_the_tmp_objdir,8,3             ; @the_tmp_objdir
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"only one tmp_objdir can be used at a time"

l_.str.1:                               ; @.str.1
	.asciz	"%s/incoming-XXXXXX"

	.comm	_remove_tmp_objdir,4,2          ; @remove_tmp_objdir
	.comm	_remove_tmp_objdir_on_signal,4,2 ; @remove_tmp_objdir_on_signal
	.comm	_ALTERNATE_DB_ENVIRONMENT,4,2   ; @ALTERNATE_DB_ENVIRONMENT
	.comm	_DB_ENVIRONMENT,4,2             ; @DB_ENVIRONMENT
	.comm	_GIT_QUARANTINE_ENVIRONMENT,4,2 ; @GIT_QUARANTINE_ENVIRONMENT
.subsections_via_symbols
