	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_relative                  ## -- Begin function test_relative
	.p2align	4, 0x90
_test_relative:                         ## @test_relative
	.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	_PASSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_CAP_READ@GOTPCREL(%rip), %r14
	movq	_CAP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	orl	(%r14), %ebx
	movq	_CAP_SEEK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_CAP_LOOKUP@GOTPCREL(%rip), %r15
	orl	(%r15), %ebx
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rax, %r13
	leaq	L_.str(%rip), %rdi
	callq	_open
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_REQUIRE
	movq	_cap_getrights@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	leaq	-44(%rbp), %rdx
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_CHECK_SYSCALL_SUCCEEDS
	movl	-44(%rbp), %edi
	movq	_CAP_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CHECK_RIGHTS
	movl	(%r14), %edx
	movl	%r12d, %esi
	callq	_MAKE_CAPABILITY
	movl	(%r15), %edx
	orl	(%r14), %edx
	movl	%r12d, %esi
	callq	_MAKE_CAPABILITY
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_MAKE_CAPABILITY
	movq	_CAP_MASK_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %esi
	callq	_MAKE_CAPABILITY
	movl	(%r13), %ecx
	movq	_openat@GOTPCREL(%rip), %r14
	leaq	L_.str.1(%rip), %r15
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_CHECK_SYSCALL_SUCCEEDS
	movq	_AT_FDCWD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_CHECK_SYSCALL_SUCCEEDS
	movl	(%r13), %ecx
	leaq	L_.str.2(%rip), %rbx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_CHECK_SYSCALL_SUCCEEDS
	movl	(%r13), %ecx
	leaq	L_.str.3(%rip), %r15
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_CHECK_SYSCALL_SUCCEEDS
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_CHECK_SYSCALL_SUCCEEDS
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_CHECK_SYSCALL_SUCCEEDS
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_CHECK_SYSCALL_SUCCEEDS
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_CHECK_NOTCAPABLE
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movq	%r15, %rbx
	movq	%r15, %rdx
	callq	_CHECK_NOTCAPABLE
	movl	(%r13), %ecx
	movq	%r13, %r15
	movq	%r14, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_CHECK_SYSCALL_SUCCEEDS
	movq	_cap_getrights@GOTPCREL(%rip), %r13
	movslq	(%r13), %rdi
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_CHECK_SYSCALL_SUCCEEDS
	movl	(%r15), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_openat
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_REQUIRE
	movslq	(%r13), %rdi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_CHECK_SYSCALL_SUCCEEDS
	movl	-44(%rbp), %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_CHECK_RIGHTS
	xorl	%eax, %eax
	callq	_cap_enter
	movl	%eax, %edi
	callq	_REQUIRE
	movq	_O_RDONLY@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	%r14, %rdi
	movl	%r12d, %esi
	leaq	L_.str.2(%rip), %rbx
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_CHECK_SYSCALL_SUCCEEDS
	movl	(%r15), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_CHECK_SYSCALL_SUCCEEDS
	movl	(%r15), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_CHECK_SYSCALL_SUCCEEDS
	movl	(%r15), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_CHECK_SYSCALL_SUCCEEDS
	movl	(%r15), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_CHECK_NOTCAPABLE
	movq	_AT_FDCWD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %ecx
	movq	%r15, %r13
	movq	%r14, %rdi
	leaq	L_.str.1(%rip), %r15
	movq	%r15, %rdx
	callq	_CHECK_CAPMODE
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	callq	_CHECK_NOTCAPABLE
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movl	%r12d, %esi
	leaq	L_.str.3(%rip), %r15
	movq	%r15, %rdx
	callq	_CHECK_NOTCAPABLE
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_CHECK_NOTCAPABLE
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_CHECK_NOTCAPABLE
	movl	(%r13), %edx
	movl	%r12d, %edi
	leaq	L_.str.2(%rip), %r12
	movq	%r12, %rsi
	callq	_openat
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_REQUIRE
	movq	_cap_getrights@GOTPCREL(%rip), %r14
	movslq	(%r14), %rdi
	movl	%ebx, %esi
	leaq	-44(%rbp), %r15
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_CHECK_SYSCALL_SUCCEEDS
	movl	(%r13), %edx
	movq	%r12, %rsi
	callq	_openat
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_REQUIRE
	movslq	(%r14), %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_CHECK_SYSCALL_SUCCEEDS
	movl	-44(%rbp), %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_CHECK_RIGHTS
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PASSED,4,2                     ## @PASSED
	.comm	_CAP_READ,4,2                   ## @CAP_READ
	.comm	_CAP_WRITE,4,2                  ## @CAP_WRITE
	.comm	_CAP_SEEK,4,2                   ## @CAP_SEEK
	.comm	_CAP_LOOKUP,4,2                 ## @CAP_LOOKUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/etc/"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_cap_getrights,4,2              ## @cap_getrights
	.comm	_CAP_ALL,4,2                    ## @CAP_ALL
	.comm	_CAP_MASK_VALID,4,2             ## @CAP_MASK_VALID
L_.str.1:                               ## @.str.1
	.asciz	"/etc/passwd"

	.comm	_AT_FDCWD,4,2                   ## @AT_FDCWD
L_.str.2:                               ## @.str.2
	.asciz	"passwd"

L_.str.3:                               ## @.str.3
	.asciz	"../etc/passwd"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_relative                  ; -- Begin function test_relative
	.p2align	2
_test_relative:                         ; @test_relative
	.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
Lloh0:
	adrp	x8, _PASSED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PASSED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
Lloh3:
	adrp	x22, _CAP_READ@GOTPAGE
Lloh4:
	ldr	x22, [x22, _CAP_READ@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh5:
	adrp	x9, _CAP_WRITE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CAP_WRITE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _CAP_SEEK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CAP_SEEK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x23, _CAP_LOOKUP@GOTPAGE
Lloh12:
	ldr	x23, [x23, _CAP_LOOKUP@GOTPAGEOFF]
	orr	w8, w8, w9
	ldr	w9, [x23]
	orr	w20, w8, w9
Lloh13:
	adrp	x27, _O_RDONLY@GOTPAGE
Lloh14:
	ldr	x27, [x27, _O_RDONLY@GOTPAGEOFF]
	ldr	w1, [x27]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_open
	mov	x21, x0
	bl	_REQUIRE
Lloh17:
	adrp	x28, _cap_getrights@GOTPAGE
Lloh18:
	ldr	x28, [x28, _cap_getrights@GOTPAGEOFF]
	ldrsw	x0, [x28]
	add	x19, sp, #28
	str	x19, [sp]
	mov	x1, x21
	bl	_CHECK_SYSCALL_SUCCEEDS
	ldr	w0, [sp, #28]
Lloh19:
	adrp	x8, _CAP_ALL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CAP_ALL@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_CHECK_RIGHTS
	ldr	w2, [x22]
	mov	x1, x21
	bl	_MAKE_CAPABILITY
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w2, w9, w8
	mov	x1, x21
	bl	_MAKE_CAPABILITY
	mov	x1, x21
	mov	x2, x20
	bl	_MAKE_CAPABILITY
Lloh22:
	adrp	x8, _CAP_MASK_VALID@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CAP_MASK_VALID@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_MAKE_CAPABILITY
	ldr	w8, [x27]
Lloh25:
	adrp	x24, l_.str.1@PAGE
Lloh26:
	add	x24, x24, l_.str.1@PAGEOFF
	stp	x24, x8, [sp]
Lloh27:
	adrp	x23, _openat@GOTPAGE
Lloh28:
	ldr	x23, [x23, _openat@GOTPAGEOFF]
	mov	x0, x23
	mov	x1, x21
	bl	_CHECK_SYSCALL_SUCCEEDS
Lloh29:
	adrp	x8, _AT_FDCWD@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AT_FDCWD@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	ldr	w8, [x27]
	stp	x24, x8, [sp]
	mov	x0, x23
	bl	_CHECK_SYSCALL_SUCCEEDS
	ldr	w8, [x27]
Lloh32:
	adrp	x22, l_.str.2@PAGE
Lloh33:
	add	x22, x22, l_.str.2@PAGEOFF
	stp	x22, x8, [sp]
	mov	x0, x23
	mov	x1, x21
	bl	_CHECK_SYSCALL_SUCCEEDS
	ldr	w8, [x27]
Lloh34:
	adrp	x25, l_.str.3@PAGE
Lloh35:
	add	x25, x25, l_.str.3@PAGEOFF
	stp	x25, x8, [sp]
	mov	x0, x23
	mov	x1, x21
	bl	_CHECK_SYSCALL_SUCCEEDS
	ldr	w8, [x27]
	stp	x22, x8, [sp]
	mov	x0, x23
	bl	_CHECK_SYSCALL_SUCCEEDS
	ldr	w8, [x27]
	stp	x22, x8, [sp]
	mov	x0, x23
	bl	_CHECK_SYSCALL_SUCCEEDS
	ldr	w8, [x27]
	stp	x22, x8, [sp]
	mov	x0, x23
	bl	_CHECK_SYSCALL_SUCCEEDS
	ldr	w3, [x27]
	mov	x0, x23
	mov	x2, x25
	bl	_CHECK_NOTCAPABLE
	ldr	w3, [x27]
	mov	x0, x23
	mov	x2, x25
	bl	_CHECK_NOTCAPABLE
	ldr	w8, [x27]
	stp	x25, x8, [sp]
	mov	x0, x23
	bl	_CHECK_SYSCALL_SUCCEEDS
	ldrsw	x0, [x28]
	str	x19, [sp]
	bl	_CHECK_SYSCALL_SUCCEEDS
	ldr	w2, [x27]
	mov	x1, x22
	bl	_openat
	mov	x26, x0
	bl	_REQUIRE
	ldrsw	x0, [x28]
	str	x19, [sp]
	mov	x1, x26
	bl	_CHECK_SYSCALL_SUCCEEDS
	ldr	w0, [sp, #28]
	mov	x1, x20
	bl	_CHECK_RIGHTS
	bl	_cap_enter
	bl	_REQUIRE
	ldr	w8, [x27]
	stp	x22, x8, [sp]
	mov	x0, x23
	mov	x1, x21
	bl	_CHECK_SYSCALL_SUCCEEDS
	ldr	w8, [x27]
	stp	x22, x8, [sp]
	mov	x0, x23
	bl	_CHECK_SYSCALL_SUCCEEDS
	ldr	w8, [x27]
	stp	x22, x8, [sp]
	mov	x0, x23
	bl	_CHECK_SYSCALL_SUCCEEDS
	ldr	w8, [x27]
	stp	x22, x8, [sp]
	mov	x0, x23
	bl	_CHECK_SYSCALL_SUCCEEDS
	ldr	w3, [x27]
	mov	x0, x23
	mov	x2, x22
	bl	_CHECK_NOTCAPABLE
Lloh36:
	adrp	x8, _AT_FDCWD@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AT_FDCWD@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	ldr	w3, [x27]
	mov	x0, x23
	mov	x2, x24
	bl	_CHECK_CAPMODE
	ldr	w3, [x27]
	mov	x0, x23
	mov	x1, x21
	mov	x2, x24
	bl	_CHECK_NOTCAPABLE
	ldr	w3, [x27]
	mov	x0, x23
	mov	x1, x21
	mov	x2, x25
	bl	_CHECK_NOTCAPABLE
	ldr	w3, [x27]
	mov	x0, x23
	mov	x2, x25
	bl	_CHECK_NOTCAPABLE
	ldr	w3, [x27]
	mov	x0, x23
	mov	x2, x25
	bl	_CHECK_NOTCAPABLE
	ldr	w2, [x27]
	mov	x0, x21
	mov	x1, x22
	bl	_openat
	mov	x21, x0
	bl	_REQUIRE
	ldrsw	x0, [x28]
	str	x19, [sp]
	mov	x1, x21
	bl	_CHECK_SYSCALL_SUCCEEDS
	ldr	w2, [x27]
	mov	x1, x22
	bl	_openat
	mov	x21, x0
	bl	_REQUIRE
	ldrsw	x0, [x28]
	str	x19, [sp]
	mov	x1, x21
	bl	_CHECK_SYSCALL_SUCCEEDS
	ldr	w0, [sp, #28]
	mov	x1, x20
	bl	_CHECK_RIGHTS
	ldr	w0, [sp, #24]                   ; 4-byte Folded Reload
	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 AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PASSED,4,2                     ; @PASSED
	.comm	_CAP_READ,4,2                   ; @CAP_READ
	.comm	_CAP_WRITE,4,2                  ; @CAP_WRITE
	.comm	_CAP_SEEK,4,2                   ; @CAP_SEEK
	.comm	_CAP_LOOKUP,4,2                 ; @CAP_LOOKUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/etc/"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_cap_getrights,4,2              ; @cap_getrights
	.comm	_CAP_ALL,4,2                    ; @CAP_ALL
	.comm	_CAP_MASK_VALID,4,2             ; @CAP_MASK_VALID
l_.str.1:                               ; @.str.1
	.asciz	"/etc/passwd"

	.comm	_AT_FDCWD,4,2                   ; @AT_FDCWD
l_.str.2:                               ; @.str.2
	.asciz	"passwd"

l_.str.3:                               ; @.str.3
	.asciz	"../etc/passwd"

.subsections_via_symbols
