	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prep_temp_blob
_prep_temp_blob:                        ## @prep_temp_blob
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -112(%rbp)                 ## 8-byte Spill
	movq	%r8, -104(%rbp)                 ## 8-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	%rsi, %rdi
	callq	_xstrdup
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	%rax, %rdi
	callq	_basename
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	leaq	-80(%rbp), %r12
	movq	%r12, %rdi
	callq	_strbuf_addstr
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_strbuf_addstr
	movq	-72(%rbp), %rbx
	movq	%r14, %rdi
	callq	_strlen
	leaq	1(%rax), %rsi
	movq	%rbx, %rdi
	callq	_mks_tempfile_ts
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_die_errno
LBB0_2:
	leaq	-64(%rbp), %r8
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_convert_to_working_tree
	testq	%rax, %rax
	movq	%r14, %rsi
	je	LBB0_4
## %bb.3:
	movq	-64(%rbp), %rbx
	movq	-56(%rbp), %rsi
LBB0_4:
	movl	16(%rbp), %r14d
	movq	8(%r13), %rax
	movl	(%rax), %edi
	movq	%rbx, %rdx
	callq	_write_in_full
	testq	%rax, %rax
	js	LBB0_6
## %bb.5:
	movq	8(%r13), %rdi
	callq	_close_tempfile_gently
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	callq	_die_errno
LBB0_7:
	movq	8(%r13), %rdi
	callq	_get_tempfile_path
	movl	%eax, 16(%r13)
	movl	4(%r13), %edi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	callq	_oid_to_hex_r
	movl	(%r13), %edi
	leaq	L_.str.3(%rip), %rdx
	movl	$4, %esi
	movl	%r14d, %ecx
	callq	_xsnprintf
	leaq	-64(%rbp), %rdi
	callq	_strbuf_release
	leaq	-80(%rbp), %rdi
	callq	_strbuf_release
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_free
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,16,3               ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"XXXXXX_"

L_.str.1:                               ## @.str.1
	.asciz	"unable to create temp-file"

L_.str.2:                               ## @.str.2
	.asciz	"unable to write temp-file"

L_.str.3:                               ## @.str.3
	.asciz	"%06o"

	.no_dead_strip	_prep_temp_blob
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prep_temp_blob
_prep_temp_blob:                        ; @prep_temp_blob
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x6
	mov	x22, x5
	mov	x24, x4
	mov	x23, x3
	mov	x21, x2
	mov	x25, x1
	mov	x26, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	q0, [x8]
	stp	q0, q0, [sp]
	mov	x0, x1
	bl	_xstrdup
	mov	x20, x0
	bl	_basename
	mov	x27, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, sp
	bl	_strbuf_addstr
	mov	x0, sp
	mov	x1, x27
	bl	_strbuf_addstr
	ldr	x28, [sp, #8]
	mov	x0, x27
	bl	_strlen
	add	x1, x0, #1
	mov	x0, x28
	bl	_mks_tempfile_ts
	str	x0, [x21, #8]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_die_errno
LBB0_2:
	add	x4, sp, #16
	mov	x0, x26
	mov	x1, x25
	mov	x2, x23
	mov	x3, x24
	bl	_convert_to_working_tree
	ldp	x9, x8, [sp, #16]
	cmp	x0, #0
	csel	x2, x24, x9, eq
	csel	x1, x23, x8, eq
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	bl	_write_in_full
	tbnz	x0, #63, LBB0_4
; %bb.3:
	ldr	x0, [x21, #8]
	bl	_close_tempfile_gently
	cbz	x0, LBB0_5
LBB0_4:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_die_errno
LBB0_5:
	ldr	x0, [x21, #8]
	bl	_get_tempfile_path
	str	w0, [x21, #16]
	ldr	w0, [x21, #4]
	mov	x1, x22
	bl	_oid_to_hex_r
	ldr	w0, [x21]
Lloh9:
	adrp	x2, l_.str.3@PAGE
Lloh10:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w1, #4
	mov	x3, x19
	bl	_xsnprintf
	add	x0, sp, #16
	bl	_strbuf_release
	mov	x0, sp
	bl	_strbuf_release
	mov	x0, x20
	bl	_free
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,16,3               ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"XXXXXX_"

l_.str.1:                               ; @.str.1
	.asciz	"unable to create temp-file"

l_.str.2:                               ; @.str.2
	.asciz	"unable to write temp-file"

l_.str.3:                               ; @.str.3
	.asciz	"%06o"

	.no_dead_strip	_prep_temp_blob
.subsections_via_symbols
