	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_file_descriptors
_write_file_descriptors:                ## @write_file_descriptors
	.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	%rdi, %r14
	movq	(%rdi), %rbx
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_make_boot_catalog
	testl	%eax, %eax
	js	LBB0_24
LBB0_2:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	(%rax), %rax
	movq	8(%rax), %rdx
	movq	16(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.4:
	movq	_LOGICAL_BLOCK_BITS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %rdx
	movq	%r14, %rdi
	callq	_write_file_contents
	testl	%eax, %eax
	js	LBB0_24
LBB0_5:
	xorl	%edx, %edx
LBB0_6:
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.8:
	xorl	%r8d, %r8d
	movq	_LOGICAL_BLOCK_BITS@GOTPCREL(%rip), %r15
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r8, %rsi
LBB0_20:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	40(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_21
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
	cmpl	$0, 32(%rbx)
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movb	(%r15), %cl
	movq	%rdx, %rax
	shlq	%cl, %rax
	leaq	(%rax,%r8), %rcx
	movq	16(%rbx), %rsi
	cmpq	%rsi, %rcx
	jge	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	testq	%rdx, %rdx
	jle	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rdi
	movq	%r8, %rsi
	movq	%rax, %rdx
	callq	_write_file_contents
	testl	%eax, %eax
	js	LBB0_24
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	16(%rbx), %rsi
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r8, %rsi
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	8(%rbx), %rax
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addq	(%rax), %rdx
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	$0, (%rbx)
	movq	%rsi, %r8
	jmp	LBB0_20
LBB0_7:
	xorl	%esi, %esi
LBB0_21:
	testq	%rdx, %rdx
	jle	LBB0_23
## %bb.22:
	movq	_LOGICAL_BLOCK_BITS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %rdx
	movq	%r14, %rdi
	callq	_write_file_contents
	testl	%eax, %eax
	js	LBB0_24
LBB0_23:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOGICAL_BLOCK_BITS,8,3         ## @LOGICAL_BLOCK_BITS
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.no_dead_strip	_write_file_descriptors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_file_descriptors
_write_file_descriptors:                ; @write_file_descriptors
	.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, x0
	ldr	x20, [x0]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_make_boot_catalog
	tbnz	w0, #31, LBB0_22
LBB0_2:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	x9, [x8]
	ldp	x8, x1, [x9, #8]
	cbz	x1, LBB0_6
; %bb.4:
Lloh0:
	adrp	x9, _LOGICAL_BLOCK_BITS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LOGICAL_BLOCK_BITS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	lsl	x2, x8, x9
	mov	x0, x19
	bl	_write_file_contents
	tbnz	w0, #31, LBB0_22
; %bb.5:
	mov	x8, #0
LBB0_6:
	ldr	x20, [x20]
	cbz	x20, LBB0_18
; %bb.7:
	mov	x1, #0
Lloh3:
	adrp	x21, _LOGICAL_BLOCK_BITS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _LOGICAL_BLOCK_BITS@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x20, [x20, #40]
	cbz	x20, LBB0_19
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	ldr	w9, [x20, #32]
	cbz	w9, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x21]
	lsl	x2, x8, x9
	ldr	x9, [x20, #16]
	add	x10, x2, x1
	cmp	x10, x9
	b.ge	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	x8, #1
	b.lt	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	bl	_write_file_contents
	tbnz	w0, #31, LBB0_22
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x8, #0
	ldr	x1, [x20, #16]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x8, #0
	mov	x1, x9
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x9, x20, #8
LBB0_16:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x9]
	add	x8, x10, x8
	ldr	x9, [x9, #16]
	cbnz	x9, LBB0_16
; %bb.17:                               ;   in Loop: Header=BB0_9 Depth=1
	str	xzr, [x20]
	b	LBB0_8
LBB0_18:
	mov	x1, #0
LBB0_19:
	cmp	x8, #1
	b.lt	LBB0_21
; %bb.20:
Lloh5:
	adrp	x9, _LOGICAL_BLOCK_BITS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _LOGICAL_BLOCK_BITS@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	lsl	x2, x8, x9
	mov	x0, x19
	bl	_write_file_contents
	tbnz	w0, #31, LBB0_22
LBB0_21:
Lloh8:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_22:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_LOGICAL_BLOCK_BITS,8,3         ; @LOGICAL_BLOCK_BITS
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.no_dead_strip	_write_file_descriptors
.subsections_via_symbols
