	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibnd_cache_fabric              ## -- Begin function ibnd_cache_fabric
	.p2align	4, 0x90
_ibnd_cache_fabric:                     ## @ibnd_cache_fabric
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.5:
	movl	%edx, %ebx
	movq	%rdi, %r15
	movq	_IBND_CACHE_FABRIC_FLAG_NO_OVERWRITE@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_stat
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.9:
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	jmp	LBB0_11
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	xorl	%eax, %eax
	callq	_IBND_DEBUG
	jmp	LBB0_30
LBB0_6:
	testl	%eax, %eax
	jne	LBB0_12
## %bb.7:
	movq	%r14, %rdi
	callq	_unlink
	testq	%rax, %rax
	js	LBB0_8
LBB0_12:
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movq	_O_EXCL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r14, %rdi
	movl	$420, %edx                      ## imm = 0x1A4
	callq	_open
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:
	movl	%eax, %r12d
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %edi
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rsi
	callq	__cache_header_info
	testq	%rax, %rax
	js	LBB0_29
## %bb.15:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r14
	xorl	%r15d, %r15d
	movl	$0, %r13d
	testq	%r14, %r14
	je	LBB0_19
## %bb.16:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rsi
	movq	(%r14), %r14
	movl	%r12d, %edi
	callq	__cache_node
	testq	%rax, %rax
	js	LBB0_29
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	incl	%r13d
	testq	%r14, %r14
	jne	LBB0_17
LBB0_19:
	movq	_HTSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_26
## %bb.20:
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_21
LBB0_13:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.4(%rip), %rdi
	movq	%rax, %rsi
LBB0_11:
	xorl	%eax, %eax
	callq	_IBND_DEBUG
	jmp	LBB0_30
LBB0_25:                                ##   in Loop: Header=BB0_21 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_26
LBB0_21:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_22 Depth 2
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rcx,%r14,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_25
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_21 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rsi
	movq	(%rbx), %rbx
	movl	%r12d, %edi
	callq	__cache_port
	testq	%rax, %rax
	js	LBB0_29
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=2
	incl	%r15d
	testq	%rbx, %rbx
	jne	LBB0_22
## %bb.24:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	_HTSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_25
LBB0_26:
	movl	%r12d, %edi
	movl	%r13d, %esi
	movl	%r15d, %edx
	callq	__cache_header_counts
	testq	%rax, %rax
	js	LBB0_29
## %bb.27:
	movl	%r12d, %edi
	callq	_close
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jns	LBB0_31
## %bb.28:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.5(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_IBND_DEBUG
LBB0_29:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_unlink
	movl	%r12d, %edi
	callq	_close
LBB0_30:
	movl	$-1, %eax
LBB0_31:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_IBND_DEBUG
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fabric parameter NULL\n"

L_.str.1:                               ## @.str.1
	.asciz	"file parameter NULL\n"

	.comm	_IBND_CACHE_FABRIC_FLAG_NO_OVERWRITE,4,2 ## @IBND_CACHE_FABRIC_FLAG_NO_OVERWRITE
L_.str.2:                               ## @.str.2
	.asciz	"error removing '%s': %s\n"

	.comm	_errno,4,2                      ## @errno
L_.str.3:                               ## @.str.3
	.asciz	"file '%s' already exists\n"

	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_EXCL,4,2                     ## @O_EXCL
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
L_.str.4:                               ## @.str.4
	.asciz	"open: %s\n"

	.comm	_HTSZ,4,2                       ## @HTSZ
L_.str.5:                               ## @.str.5
	.asciz	"close: %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibnd_cache_fabric              ; -- Begin function ibnd_cache_fabric
	.p2align	2
_ibnd_cache_fabric:                     ; @ibnd_cache_fabric
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_6
; %bb.2:
	mov	x20, x0
Lloh0:
	adrp	x8, _IBND_CACHE_FABRIC_FLAG_NO_OVERWRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IBND_CACHE_FABRIC_FLAG_NO_OVERWRITE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w21, w8, w2
	add	x1, sp, #24
	mov	x0, x19
	bl	_stat
	cbz	w21, LBB0_7
; %bb.3:
	cbnz	w0, LBB0_9
; %bb.4:
	str	x19, [sp]
Lloh3:
	adrp	x0, l_.str.3@PAGE
Lloh4:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_IBND_DEBUG
	b	LBB0_31
LBB0_5:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IBND_DEBUG
	b	LBB0_31
LBB0_6:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IBND_DEBUG
	b	LBB0_31
LBB0_7:
	cbnz	w0, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_unlink
	tbnz	x0, #63, LBB0_28
LBB0_9:
Lloh9:
	adrp	x8, _O_CREAT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _O_CREAT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _O_EXCL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _O_EXCL@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _O_WRONLY@GOTPAGE
Lloh16:
	ldr	x9, [x9, _O_WRONLY@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x19
	mov	w2, #420
	bl	_open
	tbnz	w0, #31, LBB0_15
; %bb.10:
	mov	x21, x0
	mov	x1, x20
	bl	__cache_header_info
	tbnz	x0, #63, LBB0_30
; %bb.11:
	ldr	x23, [x20, #8]
	cbz	x23, LBB0_16
; %bb.12:
	mov	w22, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x1, x23
	ldr	x23, [x23]
	mov	x0, x21
	bl	__cache_node
	tbnz	x0, #63, LBB0_30
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	w22, w22, #1
	cbnz	x23, LBB0_13
	b	LBB0_17
LBB0_15:
Lloh18:
	adrp	x8, _errno@GOTPAGE
Lloh19:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_strerror
	str	x0, [sp]
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_IBND_DEBUG
	b	LBB0_31
LBB0_16:
	mov	w22, #0
LBB0_17:
Lloh23:
	adrp	x24, _HTSZ@GOTPAGE
Lloh24:
	ldr	x24, [x24, _HTSZ@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.18:
	mov	x25, #0
	mov	w23, #0
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x25, x25, #1
	cmp	x25, w8, sxtw
	b.ge	LBB0_25
LBB0_20:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
	ldr	x9, [x20]
	ldr	x26, [x9, x25, lsl #3]
	cbz	x26, LBB0_19
LBB0_21:                                ;   Parent Loop BB0_20 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x1, x26
	ldr	x26, [x26]
	mov	x0, x21
	bl	__cache_port
	tbnz	x0, #63, LBB0_30
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=2
	add	w23, w23, #1
	cbnz	x26, LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w8, [x24]
	b	LBB0_19
LBB0_24:
	mov	w23, #0
LBB0_25:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	__cache_header_counts
	tbnz	x0, #63, LBB0_30
; %bb.26:
	mov	x0, x21
	bl	_close
	tbnz	x0, #63, LBB0_29
; %bb.27:
	mov	w0, #0
	b	LBB0_32
LBB0_28:
Lloh25:
	adrp	x8, _errno@GOTPAGE
Lloh26:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_strerror
	stp	x19, x0, [sp]
Lloh28:
	adrp	x0, l_.str.2@PAGE
Lloh29:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_IBND_DEBUG
	b	LBB0_31
LBB0_29:
Lloh30:
	adrp	x8, _errno@GOTPAGE
Lloh31:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_strerror
	str	x0, [sp]
Lloh33:
	adrp	x0, l_.str.5@PAGE
Lloh34:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_IBND_DEBUG
LBB0_30:
	mov	x0, x19
	bl	_unlink
	mov	x0, x21
	bl	_close
LBB0_31:
	mov	w0, #-1
LBB0_32:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fabric parameter NULL\n"

l_.str.1:                               ; @.str.1
	.asciz	"file parameter NULL\n"

	.comm	_IBND_CACHE_FABRIC_FLAG_NO_OVERWRITE,4,2 ; @IBND_CACHE_FABRIC_FLAG_NO_OVERWRITE
l_.str.2:                               ; @.str.2
	.asciz	"error removing '%s': %s\n"

	.comm	_errno,4,2                      ; @errno
l_.str.3:                               ; @.str.3
	.asciz	"file '%s' already exists\n"

	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_EXCL,4,2                     ; @O_EXCL
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
l_.str.4:                               ; @.str.4
	.asciz	"open: %s\n"

	.comm	_HTSZ,4,2                       ; @HTSZ
l_.str.5:                               ; @.str.5
	.asciz	"close: %s\n"

.subsections_via_symbols
