	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dl_open_file                   ## -- Begin function dl_open_file
	.p2align	4, 0x90
_dl_open_file:                          ## @dl_open_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	testl	%edi, %edi
	js	LBB0_2
## %bb.1:
	movq	_MAX_FN@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jle	LBB0_2
## %bb.3:
	movl	%edx, %r15d
	movq	%r14, %rdi
	callq	_dl_strdup
	movq	_fnames@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%ebx, %ebx
	movl	%eax, (%rcx,%rbx,4)
	testl	%r15d, %r15d
	jle	LBB0_6
## %bb.4:
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movq	_O_CREAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	cmpl	$2, %r15d
	jne	LBB0_7
## %bb.5:
	movq	_O_TRUNC@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	jmp	LBB0_7
LBB0_2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_progname@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rcx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_fprintf
	movl	$-1, %eax
	jmp	LBB0_15
LBB0_6:
	movq	_fread_only@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%rax,%rbx,4)
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_7:
	movq	%r14, %rdi
	movl	$384, %edx                      ## imm = 0x180
	callq	_open
	movq	_fd@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	testl	%r15d, %r15d
	js	LBB0_8
## %bb.10:
	testl	%eax, %eax
	jns	LBB0_11
## %bb.16:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_progname@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_8:
	testl	%eax, %eax
	js	LBB0_9
LBB0_11:
	movq	_SEEK_END@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_lseek
	movq	_fsize@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	testl	%eax, %eax
	js	LBB0_17
## %bb.12:
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_lseek
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.13:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %ecx
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %r8d
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_14:
	movq	_fpos@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	$0, (%rax,%rbx,8)
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %eax
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_progname@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$-1, %eax
	jmp	LBB0_15
LBB0_17:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_progname@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$2, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_FN,4,2                     ## @MAX_FN
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: cannot open %s, bad local fid %d: %m\n"

	.comm	_progname,8,3                   ## @progname
	.comm	_fnames,8,3                     ## @fnames
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	_fread_only,8,3                 ## @fread_only
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_fd,8,3                         ## @fd
L_.str.1:                               ## @.str.1
	.asciz	"%s: cannot open %s: %m\n"

	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_fsize,8,3                      ## @fsize
L_.str.2:                               ## @.str.2
	.asciz	"%s: cannot seek %s: %m\n"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_verbosity,8,3                  ## @verbosity
L_.str.3:                               ## @.str.3
	.asciz	"opened file %s, fd=%d, size=%lld\n"

	.comm	_fpos,8,3                       ## @fpos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dl_open_file                   ; -- Begin function dl_open_file
	.p2align	2
_dl_open_file:                          ; @dl_open_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	tbnz	w0, #31, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _MAX_FN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_FN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.le	LBB0_5
; %bb.2:
	mov	x20, x2
	mov	x0, x19
	bl	_dl_strdup
Lloh3:
	adrp	x8, _fnames@GOTPAGE
Lloh4:
	ldr	x8, [x8, _fnames@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	w22, w21
	str	w0, [x8, w21, uxtw #2]
	cmp	w20, #1
	b.lt	LBB0_7
; %bb.3:
Lloh6:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w9, w8
	cmp	w20, #2
	b.ne	LBB0_8
; %bb.4:
Lloh12:
	adrp	x8, _O_TRUNC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _O_TRUNC@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w1, w8, w1
	b	LBB0_8
LBB0_5:
Lloh15:
	adrp	x8, _stderr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _progname@GOTPAGE
Lloh19:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh20:
	ldr	x2, [x8]
	stp	x19, x21, [sp]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	bl	_fprintf
	mov	w0, #-1
	b	LBB0_16
LBB0_7:
Lloh23:
	adrp	x8, _fread_only@GOTPAGE
Lloh24:
	ldr	x8, [x8, _fread_only@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	mov	w9, #1
	str	w9, [x8, x22, lsl #2]
Lloh26:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
LBB0_8:
	mov	x0, x19
	mov	w2, #384
	bl	_open
Lloh29:
	adrp	x21, _fd@GOTPAGE
Lloh30:
	ldr	x21, [x21, _fd@GOTPAGEOFF]
	ldr	x8, [x21]
	str	w0, [x8, x22, lsl #2]
	tbnz	w20, #31, LBB0_11
; %bb.9:
	tbz	w0, #31, LBB0_12
; %bb.10:
Lloh31:
	adrp	x8, _stderr@GOTPAGE
Lloh32:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x8, _progname@GOTPAGE
Lloh35:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh36:
	ldr	x2, [x8]
	str	x19, [sp]
Lloh37:
	adrp	x1, l_.str.1@PAGE
Lloh38:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_exit
LBB0_11:
	tbnz	w0, #31, LBB0_17
LBB0_12:
Lloh39:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_lseek
Lloh42:
	adrp	x20, _fsize@GOTPAGE
Lloh43:
	ldr	x20, [x20, _fsize@GOTPAGEOFF]
	ldr	x8, [x20]
	str	w0, [x8, x22, lsl #2]
	tbnz	w0, #31, LBB0_18
; %bb.13:
	ldr	x8, [x21]
	ldr	w0, [x8, x22, lsl #2]
Lloh44:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh45:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_lseek
Lloh47:
	adrp	x8, _verbosity@GOTPAGE
Lloh48:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh49:
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.14:
Lloh50:
	adrp	x8, _stderr@GOTPAGE
Lloh51:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	ldr	x8, [x21]
	lsl	x9, x22, #2
	ldr	x10, [x20]
	ldr	w8, [x8, x9]
	ldr	w9, [x10, x9]
	stp	x8, x9, [sp]
Lloh53:
	adrp	x1, l_.str.3@PAGE
Lloh54:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x19
	bl	_fprintf
LBB0_15:
Lloh55:
	adrp	x8, _fpos@GOTPAGE
Lloh56:
	ldr	x8, [x8, _fpos@GOTPAGEOFF]
Lloh57:
	ldr	x8, [x8]
	str	xzr, [x8, x22, lsl #3]
	ldr	x8, [x21]
	ldr	w0, [x8, x22, lsl #2]
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_17:
Lloh58:
	adrp	x8, _stderr@GOTPAGE
Lloh59:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh60:
	ldr	w0, [x8]
Lloh61:
	adrp	x8, _progname@GOTPAGE
Lloh62:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh63:
	ldr	x2, [x8]
	str	x19, [sp]
Lloh64:
	adrp	x1, l_.str.1@PAGE
Lloh65:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_18:
Lloh66:
	adrp	x8, _stderr@GOTPAGE
Lloh67:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh68:
	ldr	w0, [x8]
Lloh69:
	adrp	x8, _progname@GOTPAGE
Lloh70:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh71:
	ldr	x2, [x8]
	str	x19, [sp]
Lloh72:
	adrp	x1, l_.str.2@PAGE
Lloh73:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	mov	w0, #2
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_FN,4,2                     ; @MAX_FN
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: cannot open %s, bad local fid %d: %m\n"

	.comm	_progname,8,3                   ; @progname
	.comm	_fnames,8,3                     ; @fnames
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	_fread_only,8,3                 ; @fread_only
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_fd,8,3                         ; @fd
l_.str.1:                               ; @.str.1
	.asciz	"%s: cannot open %s: %m\n"

	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_fsize,8,3                      ; @fsize
l_.str.2:                               ; @.str.2
	.asciz	"%s: cannot seek %s: %m\n"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_verbosity,8,3                  ; @verbosity
l_.str.3:                               ; @.str.3
	.asciz	"opened file %s, fd=%d, size=%lld\n"

	.comm	_fpos,8,3                       ; @fpos
.subsections_via_symbols
