	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isofile_register_hardlink
_isofile_register_hardlink:             ## @isofile_register_hardlink
	.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, %rbx
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movl	(%rsi), %edi
	movl	$1, %esi
	callq	_archive_entry_set_nlink
	movl	(%rbx), %edi
	callq	_archive_entry_hardlink
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	___archive_rb_tree_find_node
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	8(%rbx), %rcx
	movq	$0, 8(%rbx)
	movq	8(%rax), %rdx
	movq	%rbx, (%rdx)
	movq	%rcx, 8(%rax)
	incl	(%rax)
LBB0_6:
	movl	(%rbx), %edi
	callq	_archive_entry_unset_size
	jmp	LBB0_7
LBB0_1:
	movl	$24, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	$1, (%rax)
	leaq	8(%rbx), %rcx
	movq	$0, 8(%rbx)
	movq	%rbx, 16(%rax)
	movq	%rcx, 8(%rax)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	___archive_rb_tree_insert_node
LBB0_7:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't allocate memory"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.no_dead_strip	_isofile_register_hardlink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isofile_register_hardlink
_isofile_register_hardlink:             ; @isofile_register_hardlink
	.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	x21, x0
	ldr	x20, [x0, #8]
	ldr	w0, [x1]
	mov	w1, #1
	bl	_archive_entry_set_nlink
	ldr	w0, [x19]
	bl	_archive_entry_hardlink
	cbz	x0, LBB0_4
; %bb.1:
	mov	x1, x0
	mov	x0, x20
	bl	___archive_rb_tree_find_node
	cbz	x0, LBB0_3
; %bb.2:
	mov	x8, x19
	str	xzr, [x8, #8]!
	ldr	x9, [x0, #8]
	str	x19, [x9]
	str	x8, [x0, #8]
	ldr	w8, [x0]
	add	w8, w8, #1
	str	w8, [x0]
LBB0_3:
	ldr	w0, [x19]
	bl	_archive_entry_unset_size
	b	LBB0_6
LBB0_4:
	mov	w0, #24
	bl	_malloc
	cbz	x0, LBB0_8
; %bb.5:
	mov	x1, x0
	mov	w8, #1
	str	w8, [x0]
	mov	x8, x19
	str	xzr, [x8, #8]!
	stp	x8, x19, [x0, #8]
	mov	x0, x20
	bl	___archive_rb_tree_insert_node
LBB0_6:
Lloh0:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	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
LBB0_8:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_archive_set_error
Lloh7:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't allocate memory"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.no_dead_strip	_isofile_register_hardlink
.subsections_via_symbols
