	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_finalize_object_file           ## -- Begin function finalize_object_file
	.p2align	4, 0x90
_finalize_object_file:                  ## @finalize_object_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_object_creation_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_OBJECT_CREATION_USES_RENAMES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.1:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_link
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movq	_EEXIST@GOTPCREL(%rip), %rcx
	movl	%eax, %ebx
	cmpl	(%rcx), %eax
	je	LBB0_6
LBB0_4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_rename
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_6:
	movq	%r15, %rdi
	callq	_unlink_or_warn
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.7:
	movq	_EEXIST@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_8
## %bb.10:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error_errno                    ## TAILCALL
LBB0_8:
	movq	%r14, %rdi
	callq	_adjust_shared_perm
	testq	%rax, %rax
	je	LBB0_9
## %bb.11:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_object_creation_mode,8,3       ## @object_creation_mode
	.comm	_OBJECT_CREATION_USES_RENAMES,8,3 ## @OBJECT_CREATION_USES_RENAMES
	.comm	_errno,4,2                      ## @errno
	.comm	_EEXIST,4,2                     ## @EEXIST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to write file %s"

L_.str.1:                               ## @.str.1
	.asciz	"unable to set permission to '%s'"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_finalize_object_file           ; -- Begin function finalize_object_file
	.p2align	2
_finalize_object_file:                  ; @finalize_object_file
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _object_creation_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _object_creation_mode@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _OBJECT_CREATION_USES_RENAMES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OBJECT_CREATION_USES_RENAMES@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x21, _EEXIST@GOTPAGE
Lloh7:
	ldr	x21, [x21, _EEXIST@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_link
	mov	w22, #0
	cbz	x0, LBB0_6
; %bb.2:
Lloh8:
	adrp	x8, _errno@GOTPAGE
Lloh9:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.3:
	ldr	w9, [x21]
	mov	x22, x8
	cmp	w8, w9
	b.eq	LBB0_6
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_rename
	cbz	w0, LBB0_9
; %bb.5:
Lloh11:
	adrp	x8, _errno@GOTPAGE
Lloh12:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
LBB0_6:
	mov	x0, x20
	bl	_unlink_or_warn
	cbz	w22, LBB0_9
; %bb.7:
	ldr	w8, [x21]
	cmp	w22, w8
	b.eq	LBB0_9
; %bb.8:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, 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
	b	_error_errno
LBB0_9:
	mov	x0, x19
	bl	_adjust_shared_perm
	cbz	x0, LBB0_11
; %bb.10:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, 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
	b	_error
LBB0_11:
	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	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_object_creation_mode,8,3       ; @object_creation_mode
	.comm	_OBJECT_CREATION_USES_RENAMES,8,3 ; @OBJECT_CREATION_USES_RENAMES
	.comm	_errno,4,2                      ; @errno
	.comm	_EEXIST,4,2                     ; @EEXIST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to write file %s"

l_.str.1:                               ; @.str.1
	.asciz	"unable to set permission to '%s'"

.subsections_via_symbols
