	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_temp_file
_create_temp_file:                      ## @create_temp_file
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	-20(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	callq	_read_object_file
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	-20(%rbp), %eax
	movq	_OBJ_BLOB@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_oid_to_hex
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_die
LBB0_3:
	leaq	_create_temp_file.path(%rip), %rbx
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	$50, %esi
	callq	_xsnprintf
	movq	%rbx, %rdi
	callq	_xmkstemp
	movl	%eax, %ebx
	movq	-32(%rbp), %rdx
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_write_in_full
	testq	%rax, %rax
	jns	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	callq	_die_errno
LBB0_5:
	movl	%ebx, %edi
	callq	_close
	leaq	_create_temp_file.path(%rip), %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_create_temp_file.path,50,4 ## @create_temp_file.path
	.comm	_OBJ_BLOB,4,2                   ## @OBJ_BLOB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to read blob object %s"

L_.str.1:                               ## @.str.1
	.asciz	".merge_file_XXXXXX"

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

	.no_dead_strip	_create_temp_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_temp_file
_create_temp_file:                      ; @create_temp_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
	add	x1, sp, #12
	mov	x2, sp
	bl	_read_object_file
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [sp, #12]
Lloh0:
	adrp	x9, _OBJ_BLOB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OBJ_BLOB@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_oid_to_hex
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
LBB0_3:
Lloh5:
	adrp	x20, _create_temp_file.path@PAGE
Lloh6:
	add	x20, x20, _create_temp_file.path@PAGEOFF
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w1, #50
	bl	_xsnprintf
	mov	x0, x20
	bl	_xmkstemp
	mov	x20, x0
	ldr	x2, [sp]
	mov	x1, x19
	bl	_write_in_full
	tbz	x0, #63, LBB0_5
; %bb.4:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_die_errno
LBB0_5:
	mov	x0, x20
	bl	_close
Lloh11:
	adrp	x0, _create_temp_file.path@PAGE
Lloh12:
	add	x0, x0, _create_temp_file.path@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_create_temp_file.path,50,0 ; @create_temp_file.path
	.comm	_OBJ_BLOB,4,2                   ; @OBJ_BLOB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to read blob object %s"

l_.str.1:                               ; @.str.1
	.asciz	".merge_file_XXXXXX"

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

	.no_dead_strip	_create_temp_file
.subsections_via_symbols
