	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_openp                          ## -- Begin function openp
	.p2align	4, 0x90
_openp:                                 ## @openp
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movl	%r8d, %ebx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	testq	%rdi, %rdi
	leaq	L_.str(%rip), %r14
	cmovneq	%rdi, %r14
	testl	%esi, %esi
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_IS_ABSOLUTE_PATH
	testq	%rax, %rax
	je	LBB0_9
LBB0_2:
	movq	%r15, %rdi
	callq	_is_regular_file
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edi
	callq	_alloca
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_strcpy
	movq	%r12, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_open
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jns	LBB0_35
	jmp	LBB0_5
LBB0_4:
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	xorl	%r12d, %r12d
LBB0_5:
	movb	(%r15), %al
	testb	%al, %al
	je	LBB0_14
## %bb.6:
	leaq	1(%r15), %rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %edi
	callq	_IS_DIR_SEPARATOR
	testq	%rax, %rax
	jne	LBB0_35
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movzbl	(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_7
LBB0_9:
	cmpb	$46, (%r15)
	jne	LBB0_14
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movsbl	1(%r15), %edi
	callq	_IS_DIR_SEPARATOR
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	leaq	2(%r15), %rax
	cmpb	$46, 2(%r15)
	movq	%rax, %r15
	je	LBB0_10
	jmp	LBB0_15
LBB0_14:
	movq	%r15, %rax
LBB0_15:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rbx,%rax), %edi
	addl	$2, %edi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	callq	_alloca
	movq	%rax, %r12
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_17 Depth=1
	leaq	1(%r13), %r14
	testq	%r13, %r13
	je	LBB0_35
LBB0_17:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_29 Depth 2
	movq	_DIRNAME_SEPARATOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_strchr
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	%r13d, %r15d
	subl	%r14d, %r15d
	cmpl	$4, %r15d
	je	LBB0_20
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %r15d
	cmpl	$4, %r15d
	jne	LBB0_27
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	cmpb	$36, (%r14)
	jne	LBB0_27
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpb	$99, 1(%r14)
	jne	LBB0_27
## %bb.22:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpb	$119, 2(%r14)
	jne	LBB0_27
## %bb.23:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpb	$100, 3(%r14)
	jne	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	_current_directory@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strlen
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	(%r15,%rax), %r14d
	addl	$2, %r14d
	cmpl	-48(%rbp), %r14d                ## 4-byte Folded Reload
	jle	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	%r14d, %edi
	callq	_alloca
	movq	%rax, %r12
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
LBB0_26:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	_current_directory@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_strcpy
	testl	%r15d, %r15d
	jg	LBB0_28
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_strncpy
	movslq	%r15d, %rax
	movb	$0, (%r12,%rax)
	testl	%r15d, %r15d
	jle	LBB0_33
LBB0_28:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_29:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	-1(%r15), %rbx
	movl	%ebx, %r14d
	movsbl	(%r12,%r14), %edi
	callq	_IS_DIR_SEPARATOR
	testq	%rax, %rax
	je	LBB0_32
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=2
	movb	$0, (%r12,%r14)
	leaq	1(%rbx), %rax
	movq	%rbx, %r15
	cmpq	$1, %rax
	ja	LBB0_29
## %bb.31:                              ##   in Loop: Header=BB0_17 Depth=1
	xorl	%r15d, %r15d
LBB0_32:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_33:                                ##   in Loop: Header=BB0_17 Depth=1
	movslq	%r15d, %rdi
	addq	%r12, %rdi
	movq	_SLASH_STRING@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_strcat
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_strcat
	movq	%r12, %rdi
	callq	_is_regular_file
	testq	%rax, %rax
	je	LBB0_16
## %bb.34:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r12, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_open
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	js	LBB0_16
LBB0_35:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_44
## %bb.36:
	testl	%r15d, %r15d
	js	LBB0_39
## %bb.37:
	movq	%r12, %rdi
	callq	_IS_ABSOLUTE_PATH
	testq	%rax, %rax
	je	LBB0_40
## %bb.38:
	movq	%r12, %rdi
	callq	_xfullpath
	movq	%rax, (%rbx)
	jmp	LBB0_44
LBB0_39:
	movq	$0, (%rbx)
	jmp	LBB0_44
LBB0_40:
	movq	_current_directory@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%r14, %rdi
	callq	_strlen
	cltq
	movsbl	-1(%rax,%r14), %edi
	callq	_IS_DIR_SEPARATOR
	testq	%rax, %rax
	jne	LBB0_42
## %bb.41:
	movq	_SLASH_STRING@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	jmp	LBB0_43
LBB0_42:
	leaq	L_.str.1(%rip), %rsi
LBB0_43:
	movq	%r14, %rdi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_concat
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_xfullpath
	movq	%rax, (%rbx)
	movq	%r14, %rdi
	callq	_xfree
LBB0_44:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

	.comm	_DIRNAME_SEPARATOR,4,2          ## @DIRNAME_SEPARATOR
	.comm	_current_directory,8,3          ## @current_directory
	.comm	_SLASH_STRING,8,3               ## @SLASH_STRING
L_.str.1:                               ## @.str.1
	.space	1

	.comm	_O_BINARY,4,2                   ## @O_BINARY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_openp                          ; -- Begin function openp
	.p2align	2
_openp:                                 ; @openp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	x5, [sp, #24]                   ; 8-byte Folded Spill
	mov	x22, x4
	mov	x20, x3
	mov	x21, x2
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x0, #0
	csel	x24, x8, x0, eq
	cbnz	w1, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_IS_ABSOLUTE_PATH
	cbz	x0, LBB0_9
LBB0_2:
	mov	x0, x21
	bl	_is_regular_file
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_strlen
	add	w0, w0, #1
	bl	_alloca
	mov	x23, x0
	mov	x1, x21
	bl	_strcpy
	str	x22, [sp]
	mov	x0, x23
	mov	x1, x20
	bl	_open
	mov	x22, x0
	tbz	w0, #31, LBB0_31
; %bb.4:
	ldrb	w8, [x21]
	cbnz	w8, LBB0_6
	b	LBB0_12
LBB0_5:
	mov	x23, #0
	mov	w22, #-1
	ldrb	w8, [x21]
	cbz	w8, LBB0_12
LBB0_6:
	add	x19, x21, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_IS_DIR_SEPARATOR
	cbnz	x0, LBB0_31
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w8, [x19], #1
	cbnz	w8, LBB0_7
LBB0_9:
	ldrb	w8, [x21]
	cmp	w8, #46
	b.ne	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x21, #1]
	bl	_IS_DIR_SEPARATOR
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldrb	w8, [x21, #2]!
	cmp	w8, #46
	b.eq	LBB0_10
LBB0_12:
	mov	x0, x24
	bl	_strlen
	mov	x22, x0
	mov	x0, x21
	bl	_strlen
	add	w8, w22, w0
	add	w0, w8, #2
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
	bl	_alloca
	mov	x23, x0
	mov	w22, #-1
Lloh2:
	adrp	x28, _DIRNAME_SEPARATOR@GOTPAGE
Lloh3:
	ldr	x28, [x28, _DIRNAME_SEPARATOR@GOTPAGEOFF]
Lloh4:
	adrp	x19, _SLASH_STRING@GOTPAGE
Lloh5:
	ldr	x19, [x19, _SLASH_STRING@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x24, x26, #1
	cbz	x26, LBB0_31
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_26 Depth 2
	ldr	w1, [x28]
	mov	x0, x24
	bl	_strchr
	mov	x26, x0
	cbz	x0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	sub	w27, w26, w24
	cmp	w27, #4
	b.eq	LBB0_17
	b	LBB0_24
LBB0_16:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x24
	bl	_strlen
	mov	x27, x0
	cmp	w27, #4
	b.ne	LBB0_24
LBB0_17:                                ;   in Loop: Header=BB0_14 Depth=1
	ldrb	w8, [x24]
	cmp	w8, #36
	b.ne	LBB0_24
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=1
	ldrb	w8, [x24, #1]
	cmp	w8, #99
	b.ne	LBB0_24
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=1
	ldrb	w8, [x24, #2]
	cmp	w8, #119
	b.ne	LBB0_24
; %bb.20:                               ;   in Loop: Header=BB0_14 Depth=1
	ldrb	w8, [x24, #3]
	cmp	w8, #100
	b.ne	LBB0_24
; %bb.21:                               ;   in Loop: Header=BB0_14 Depth=1
Lloh6:
	adrp	x8, _current_directory@GOTPAGE
Lloh7:
	ldr	x8, [x8, _current_directory@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	bl	_strlen
	mov	x27, x0
	mov	x0, x21
	bl	_strlen
	add	w8, w27, w0
	add	w24, w8, #2
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	cmp	w24, w8
	b.le	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x24
	bl	_alloca
	mov	x23, x0
	str	w24, [sp, #20]                  ; 4-byte Folded Spill
LBB0_23:                                ;   in Loop: Header=BB0_14 Depth=1
Lloh9:
	adrp	x8, _current_directory@GOTPAGE
Lloh10:
	ldr	x8, [x8, _current_directory@GOTPAGEOFF]
Lloh11:
	ldr	x1, [x8]
	mov	x0, x23
	bl	_strcpy
	cmp	w27, #1
	b.ge	LBB0_25
	b	LBB0_29
LBB0_24:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x23
	mov	x1, x24
	mov	x2, x27
	bl	_strncpy
	strb	wzr, [x23, w27, sxtw]
	cmp	w27, #1
	b.lt	LBB0_29
LBB0_25:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w27, w27
LBB0_26:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	x24, x27, #1
	and	x25, x24, #0xffffffff
	ldrsb	w0, [x23, x25]
	bl	_IS_DIR_SEPARATOR
	cbz	x0, LBB0_29
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=2
	strb	wzr, [x23, x25]
	add	x8, x24, #1
	mov	x27, x24
	cmp	x8, #1
	b.hi	LBB0_26
; %bb.28:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	w27, #0
LBB0_29:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x0, x23, w27, sxtw
	ldr	x1, [x19]
	bl	_strcat
	mov	x0, x23
	mov	x1, x21
	bl	_strcat
	mov	x0, x23
	bl	_is_regular_file
	cbz	x0, LBB0_13
; %bb.30:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x23
	mov	x1, x20
	bl	_open
	mov	x22, x0
	tbnz	w0, #31, LBB0_13
LBB0_31:
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
	cbz	x19, LBB0_37
; %bb.32:
	tbnz	w22, #31, LBB0_35
; %bb.33:
	mov	x0, x23
	bl	_IS_ABSOLUTE_PATH
	cbz	x0, LBB0_36
; %bb.34:
	mov	x0, x23
	bl	_xfullpath
	str	x0, [x19]
	b	LBB0_37
LBB0_35:
	str	xzr, [x19]
	b	LBB0_37
LBB0_36:
Lloh12:
	adrp	x8, _current_directory@GOTPAGE
Lloh13:
	ldr	x8, [x8, _current_directory@GOTPAGEOFF]
Lloh14:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_strlen
	add	x8, x20, w0, sxtw
	ldursb	w0, [x8, #-1]
	bl	_IS_DIR_SEPARATOR
Lloh15:
	adrp	x8, _SLASH_STRING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SLASH_STRING@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
Lloh18:
	adrp	x9, l_.str.1@PAGE
Lloh19:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	x0, #0
	csel	x1, x8, x9, eq
	mov	x0, x20
	mov	x2, x23
	mov	x3, #0
	bl	_concat
	mov	x20, x0
	bl	_xfullpath
	str	x0, [x19]
	mov	x0, x20
	bl	_xfree
LBB0_37:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

	.comm	_DIRNAME_SEPARATOR,4,2          ; @DIRNAME_SEPARATOR
	.comm	_current_directory,8,3          ; @current_directory
	.comm	_SLASH_STRING,8,3               ; @SLASH_STRING
l_.str.1:                               ; @.str.1
	.space	1

	.comm	_O_BINARY,4,2                   ; @O_BINARY
.subsections_via_symbols
