	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exports_check
_exports_check:                         ## @exports_check
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	12(%rdi), %edi
	callq	_ip2str
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	$32, %edx
	callq	_strlcpy
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$32, %edx
	callq	_strlcat
	movl	8(%r15), %edi
	callq	_ip2str
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	$32, %edx
	callq	_strlcat
	movl	(%r12), %edx
	movq	_GGATE_FLAG_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%edx, %ecx
	je	LBB0_4
## %bb.1:
	movl	(%r15), %edx
	movq	_O_WRONLY@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jne	LBB0_12
## %bb.2:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_4:
	movq	_GGATE_FLAG_WRONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%r15), %esi
	movq	_O_RDONLY@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	testl	%edx, %ecx
	je	LBB0_7
## %bb.5:
	cmpl	%edi, %esi
	jne	LBB0_12
## %bb.6:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r15), %edx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_3
LBB0_12:
	orl	(%r14), %ecx
	movl	%ecx, (%r14)
LBB0_13:
	movl	(%rax), %eax
	andl	%ecx, %eax
	movq	_GGATE_FLAG_WRONLY@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ecx
	jne	LBB0_14
## %bb.15:
	movq	_O_RDWR@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	jne	LBB0_17
	jmp	LBB0_18
LBB0_14:
	movq	_O_WRONLY@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_18
LBB0_17:
	movq	_O_RDONLY@GOTPCREL(%rip), %rcx
LBB0_18:
	movl	(%rcx), %esi
	movl	4(%r15), %edi
	callq	_open
	movl	%eax, 4(%r14)
	xorl	%ebx, %ebx
	cmpl	$-1, %eax
	jne	LBB0_20
## %bb.19:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	4(%r15), %r15d
	movl	%ebx, %edi
	callq	_strerror
	leaq	L_.str.5(%rip), %rsi
	movl	%r14d, %edi
	movl	%r15d, %edx
	movq	%rax, %rcx
	callq	_g_gate_log
	jmp	LBB0_20
LBB0_7:
	cmpl	%edi, %esi
	jne	LBB0_9
## %bb.8:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r15), %edx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_3
LBB0_9:
	movq	_O_WRONLY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %esi
	jne	LBB0_10
## %bb.11:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r15), %edx
	leaq	L_.str.4(%rip), %rsi
LBB0_3:
	leaq	-80(%rbp), %rcx
	callq	_g_gate_log
	movq	_EPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	(%r14), %ecx
	jmp	LBB0_13
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/"

	.comm	_GGATE_FLAG_RDONLY,4,2          ## @GGATE_FLAG_RDONLY
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_LOG_WARNING,4,2                ## @LOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"Read-only access requested, but %s (%s) is exported write-only."

	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_GGATE_FLAG_WRONLY,4,2          ## @GGATE_FLAG_WRONLY
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.2:                               ## @.str.2
	.asciz	"Write-only access requested, but %s (%s) is exported read-only."

L_.str.3:                               ## @.str.3
	.asciz	"Read-write access requested, but %s (%s) is exported read-only."

L_.str.4:                               ## @.str.4
	.asciz	"Read-write access requested, but %s (%s) is exported write-only."

	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_errno,4,2                      ## @errno
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.5:                               ## @.str.5
	.asciz	"Cannot open %s: %s."

	.no_dead_strip	_exports_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exports_check
_exports_check:                         ; @exports_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	w0, [x0, #12]
	bl	_ip2str
	mov	x1, x0
	add	x0, sp, #8
	mov	w2, #32
	bl	_strlcpy
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w2, #32
	bl	_strlcat
	ldr	w0, [x19, #8]
	bl	_ip2str
	mov	x1, x0
	add	x0, sp, #8
	mov	w2, #32
	bl	_strlcat
	ldr	w10, [x21]
Lloh5:
	adrp	x9, _GGATE_FLAG_RDONLY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GGATE_FLAG_RDONLY@GOTPAGEOFF]
	ldr	w11, [x9]
Lloh7:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
	tst	w11, w10
	b.eq	LBB0_3
; %bb.1:
	ldr	w10, [x19]
	ldr	w12, [x8]
	cmp	w10, w12
	b.ne	LBB0_6
; %bb.2:
Lloh9:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w2, [x19, #4]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_3:
Lloh14:
	adrp	x11, _GGATE_FLAG_WRONLY@GOTPAGE
Lloh15:
	ldr	x11, [x11, _GGATE_FLAG_WRONLY@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
	ldr	w12, [x19]
Lloh17:
	adrp	x13, _O_RDONLY@GOTPAGE
Lloh18:
	ldr	x13, [x13, _O_RDONLY@GOTPAGEOFF]
Lloh19:
	ldr	w13, [x13]
	tst	w11, w10
	b.eq	LBB0_10
; %bb.4:
	cmp	w12, w13
	b.ne	LBB0_6
; %bb.5:
Lloh20:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	w2, [x19, #4]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_6:
	ldr	w10, [x20]
	orr	w10, w10, w11
	str	w10, [x20]
LBB0_7:
Lloh25:
	adrp	x11, _GGATE_FLAG_WRONLY@GOTPAGE
Lloh26:
	ldr	x11, [x11, _GGATE_FLAG_WRONLY@GOTPAGEOFF]
	ldr	w9, [x9]
Lloh27:
	ldr	w11, [x11]
Lloh28:
	adrp	x12, _O_RDWR@GOTPAGE
Lloh29:
	ldr	x12, [x12, _O_RDWR@GOTPAGEOFF]
	tst	w11, w10
	csel	x8, x12, x8, eq
Lloh30:
	adrp	x11, _O_RDONLY@GOTPAGE
Lloh31:
	ldr	x11, [x11, _O_RDONLY@GOTPAGEOFF]
	tst	w9, w10
	csel	x8, x8, x11, eq
	ldr	w1, [x8]
	ldr	w0, [x19, #4]
	bl	_open
	str	w0, [x20, #4]
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.8:
	mov	w20, #0
	b	LBB0_15
LBB0_9:
Lloh32:
	adrp	x8, _errno@GOTPAGE
Lloh33:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh34:
	ldr	w20, [x8]
Lloh35:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh37:
	ldr	w21, [x8]
	ldr	w19, [x19, #4]
	mov	x0, x20
	bl	_strerror
	mov	x3, x0
Lloh38:
	adrp	x1, l_.str.5@PAGE
Lloh39:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_g_gate_log
	b	LBB0_15
LBB0_10:
	cmp	w12, w13
	b.ne	LBB0_12
; %bb.11:
Lloh40:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh41:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	ldr	w2, [x19, #4]
Lloh43:
	adrp	x1, l_.str.3@PAGE
Lloh44:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_14
LBB0_12:
	ldr	w10, [x8]
	cmp	w12, w10
	b.ne	LBB0_17
; %bb.13:
Lloh45:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh46:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	ldr	w2, [x19, #4]
Lloh48:
	adrp	x1, l_.str.4@PAGE
Lloh49:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_14:
	add	x3, sp, #8
	bl	_g_gate_log
Lloh50:
	adrp	x8, _EPERM@GOTPAGE
Lloh51:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh52:
	ldr	w20, [x8]
LBB0_15:
	ldr	x8, [sp, #40]
Lloh53:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh54:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh55:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.16:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
LBB0_17:
	ldr	w10, [x20]
	b	LBB0_7
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

	.comm	_GGATE_FLAG_RDONLY,4,2          ; @GGATE_FLAG_RDONLY
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_LOG_WARNING,4,2                ; @LOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"Read-only access requested, but %s (%s) is exported write-only."

	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_GGATE_FLAG_WRONLY,4,2          ; @GGATE_FLAG_WRONLY
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.2:                               ; @.str.2
	.asciz	"Write-only access requested, but %s (%s) is exported read-only."

l_.str.3:                               ; @.str.3
	.asciz	"Read-write access requested, but %s (%s) is exported read-only."

l_.str.4:                               ; @.str.4
	.asciz	"Read-write access requested, but %s (%s) is exported write-only."

	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_errno,4,2                      ; @errno
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.5:                               ; @.str.5
	.asciz	"Cannot open %s: %s."

	.no_dead_strip	_exports_check
.subsections_via_symbols
