	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_srcs
_open_srcs:                             ## @open_srcs
	.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
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	$8, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_TAILQ_INIT
	cmpl	$0, (%r12)
	jle	LBB0_3
## %bb.4:
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	movslq	(%r12), %rax
	addq	$4, %r14
	cmpq	%rax, %r15
	jge	LBB0_13
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rsi
	addq	%r14, %rsi
	movq	%r13, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_open_dsts
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	callq	_TAILQ_EMPTY
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%r14), %eax
	movl	%eax, 4(%r13)
	movq	_ss_entry@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_TAILQ_INSERT_TAIL
	movl	$8, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r13
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	movq	%rax, %rdi
	callq	_TAILQ_INIT
	jmp	LBB0_12
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_3:
	movq	%r13, %rdi
	callq	_free
LBB0_14:
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %ebx
	jmp	LBB0_16
LBB0_6:
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_13:
	movq	%r13, %rdi
	callq	_free
	xorl	%ebx, %ebx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_16
	jmp	LBB0_14
LBB0_9:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r13d, %r13d
LBB0_10:
	movq	%r13, %rdi
	callq	_free
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_close_srcs
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	_ss_entry,4,2                   ## @ss_entry
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_open_srcs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_srcs
_open_srcs:                             ; @open_srcs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	mov	w0, #8
	bl	_malloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	bl	_TAILQ_INIT
	ldr	w8, [x22]
	cmp	w8, #0
	b.le	LBB0_9
; %bb.2:
	mov	x25, #0
	mov	x26, #0
	mov	w24, #0
Lloh0:
	adrp	x27, _ss_entry@GOTPAGE
Lloh1:
	ldr	x27, [x27, _ss_entry@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x22]
	add	x25, x25, #4
	cmp	x26, x8
	b.ge	LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	add	x1, x8, x25
	mov	x0, x20
	mov	x2, x21
	bl	_open_dsts
	cbnz	w0, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_TAILQ_EMPTY
	cbnz	w0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, #8]
	ldr	w8, [x8, x25]
	str	w8, [x20, #4]
	ldr	w2, [x27]
	mov	x0, x19
	mov	x1, x20
	bl	_TAILQ_INSERT_TAIL
	mov	w0, #8
	bl	_malloc
	mov	x20, x0
	cbz	x0, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w24, w24, #1
	mov	x0, x20
	bl	_TAILQ_INIT
	b	LBB0_3
LBB0_8:
Lloh2:
	adrp	x8, _errno@GOTPAGE
Lloh3:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh4:
	ldr	w23, [x8]
	b	LBB0_16
LBB0_9:
	mov	x0, x20
	bl	_free
LBB0_10:
Lloh5:
	adrp	x8, _ENOENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh7:
	ldr	w23, [x8]
	b	LBB0_16
LBB0_11:
	mov	x23, x0
	b	LBB0_15
LBB0_12:
	mov	x0, x20
	bl	_free
	cbz	w24, LBB0_10
; %bb.13:
	mov	w23, #0
	b	LBB0_16
LBB0_14:
Lloh8:
	adrp	x8, _errno@GOTPAGE
Lloh9:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x8]
LBB0_15:
	mov	x0, x20
	bl	_free
	mov	x0, x19
	bl	_close_srcs
LBB0_16:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	_ss_entry,4,2                   ; @ss_entry
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_open_srcs
.subsections_via_symbols
