	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	movl	$-1, %r15d
	cmpl	$2, %edi
	jne	LBB0_13
## %bb.1:
	movq	%rsi, %r14
	movq	8(%rsi), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_13
## %bb.8:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdi
	callq	_open
	testl	%eax, %eax
	jle	LBB0_9
## %bb.10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_getpid
	movq	(%r14), %rcx
	leaq	L_.str.8(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %r15d
	jmp	LBB0_11
LBB0_2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_getpid
	movq	(%r14), %rcx
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_13
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_getpid
	movq	(%r14), %rcx
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %r15d
	jmp	LBB0_13
LBB0_6:
	xorl	%eax, %eax
	callq	_geteuid
	xorl	%r15d, %r15d
	testl	%eax, %eax
	sete	%r15b
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_geteuid
	movq	(%r14), %rcx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_12
LBB0_9:
	xorl	%r15d, %r15d
LBB0_11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_getpid
	movq	(%r14), %rcx
	leaq	L_.str.9(%rip), %rsi
LBB0_12:
	movl	%ebx, %edi
	movl	%eax, %edx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_fprintf
LBB0_13:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"--pass"

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"[%d] %s immediately returning 0\n"

L_.str.2:                               ## @.str.2
	.asciz	"--fail"

L_.str.3:                               ## @.str.3
	.asciz	"[%d] %s immediately returning 1\n"

L_.str.4:                               ## @.str.4
	.asciz	"--checkroot"

L_.str.5:                               ## @.str.5
	.asciz	"[uid:%d] %s immediately returning (geteuid() == 0) = %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"--capmode"

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

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.8:                               ## @.str.8
	.asciz	"[%d] %s unexpectedly able to open file\n"

L_.str.9:                               ## @.str.9
	.asciz	"[%d] %s --capmode returning %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.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
	cmp	w0, #2
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x1
	ldr	x20, [x1, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_6
; %bb.2:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_7
; %bb.3:
Lloh4:
	adrp	x1, l_.str.4@PAGE
Lloh5:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_8
; %bb.4:
Lloh6:
	adrp	x1, l_.str.6@PAGE
Lloh7:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_9
LBB0_5:
	mov	w20, #-1
	b	LBB0_13
LBB0_6:
Lloh8:
	adrp	x8, _stderr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
	bl	_getpid
	mov	x2, x0
	ldr	x3, [x19]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_fprintf
	mov	w20, #0
	b	LBB0_13
LBB0_7:
Lloh13:
	adrp	x8, _stderr@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
	bl	_getpid
	mov	x2, x0
	ldr	x3, [x19]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_fprintf
	mov	w20, #1
	b	LBB0_13
LBB0_8:
	bl	_geteuid
	cmp	w0, #0
	cset	w21, eq
Lloh18:
	adrp	x8, _stderr@GOTPAGE
Lloh19:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh20:
	ldr	w20, [x8]
	bl	_geteuid
	mov	x2, x0
	ldr	x3, [x19]
	str	x21, [sp]
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_fprintf
	mov	x20, x21
	b	LBB0_13
LBB0_9:
Lloh23:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x0, l_.str.7@PAGE
Lloh27:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_open
Lloh28:
	adrp	x21, _stderr@GOTPAGE
Lloh29:
	ldr	x21, [x21, _stderr@GOTPAGEOFF]
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.10:
	ldr	w20, [x21]
	bl	_getpid
	mov	x2, x0
	ldr	x3, [x19]
Lloh30:
	adrp	x1, l_.str.8@PAGE
Lloh31:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_fprintf
	mov	w20, #1
	b	LBB0_12
LBB0_11:
	mov	w20, #0
LBB0_12:
	ldr	w21, [x21]
	bl	_getpid
	mov	x2, x0
	ldr	x3, [x19]
	str	x20, [sp]
Lloh32:
	adrp	x1, l_.str.9@PAGE
Lloh33:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x21
	bl	_fprintf
LBB0_13:
	mov	x0, x20
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"--pass"

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"[%d] %s immediately returning 0\n"

l_.str.2:                               ; @.str.2
	.asciz	"--fail"

l_.str.3:                               ; @.str.3
	.asciz	"[%d] %s immediately returning 1\n"

l_.str.4:                               ; @.str.4
	.asciz	"--checkroot"

l_.str.5:                               ; @.str.5
	.asciz	"[uid:%d] %s immediately returning (geteuid() == 0) = %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"--capmode"

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

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.8:                               ; @.str.8
	.asciz	"[%d] %s unexpectedly able to open file\n"

l_.str.9:                               ; @.str.9
	.asciz	"[%d] %s --capmode returning %d\n"

.subsections_via_symbols
