	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function map_access_2_allowdeny
_map_access_2_allowdeny:                ## @map_access_2_allowdeny
	.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
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_FILE_WRITE_DATA@GOTPCREL(%rip), %r9
	movq	_FILE_APPEND_DATA@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	orl	(%r9), %ebx
	movq	_FILE_WRITE_ATTRIBUTES@GOTPCREL(%rip), %r10
	orl	(%r10), %ebx
	movq	_FILE_READ_DATA@GOTPCREL(%rip), %r15
	movq	_FILE_EXECUTE@GOTPCREL(%rip), %r11
	movl	(%r11), %eax
	orl	(%r15), %eax
	testl	%edi, %ebx
	je	LBB0_4
## %bb.1:
	testl	%edi, %eax
	jne	LBB0_2
## %bb.3:
	movq	_OPEN4_SHARE_ACCESS_WRITE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	testl	%edi, %eax
	je	LBB0_7
## %bb.5:
	movq	_OPEN4_SHARE_ACCESS_READ@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	movq	_OPEN4_SHARE_ACCESS_BOTH@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, (%rcx)
LBB0_7:
	movq	_FILE_CREATE@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	je	LBB0_12
## %bb.8:
	movq	_FILE_OPEN_IF@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	je	LBB0_12
## %bb.9:
	movq	_FILE_OVERWRITE_IF@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	je	LBB0_12
## %bb.10:
	movq	_FILE_SUPERSEDE@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	je	LBB0_12
## %bb.11:
	movq	_FILE_OVERWRITE@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_14
LBB0_12:
	movl	(%r14), %eax
	orl	(%r9), %eax
	orl	(%r10), %eax
	orl	(%r15), %eax
	orl	(%r11), %eax
	testl	%edi, %eax
	jne	LBB0_14
## %bb.13:
	movq	_OPEN4_SHARE_ACCESS_READ@GOTPCREL(%rip), %rax
	movq	_OPEN4_SHARE_ACCESS_WANT_NO_DELEG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movl	%edx, (%rcx)
LBB0_14:
	movq	_FILE_SHARE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%esi, %eax
	movq	_FILE_SHARE_WRITE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %esi
	movq	_OPEN4_SHARE_DENY_READ@GOTPCREL(%rip), %rcx
	cmoveq	_OPEN4_SHARE_DENY_BOTH@GOTPCREL(%rip), %rcx
	movq	_OPEN4_SHARE_DENY_NONE@GOTPCREL(%rip), %rdx
	cmoveq	_OPEN4_SHARE_DENY_WRITE@GOTPCREL(%rip), %rdx
	testl	%eax, %eax
	cmoveq	%rcx, %rdx
	movl	(%rdx), %eax
	movl	%eax, (%r8)
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FILE_WRITE_DATA,4,2            ## @FILE_WRITE_DATA
	.comm	_FILE_APPEND_DATA,4,2           ## @FILE_APPEND_DATA
	.comm	_FILE_WRITE_ATTRIBUTES,4,2      ## @FILE_WRITE_ATTRIBUTES
	.comm	_FILE_READ_DATA,4,2             ## @FILE_READ_DATA
	.comm	_FILE_EXECUTE,4,2               ## @FILE_EXECUTE
	.comm	_OPEN4_SHARE_ACCESS_BOTH,4,2    ## @OPEN4_SHARE_ACCESS_BOTH
	.comm	_OPEN4_SHARE_ACCESS_READ,4,2    ## @OPEN4_SHARE_ACCESS_READ
	.comm	_OPEN4_SHARE_ACCESS_WRITE,4,2   ## @OPEN4_SHARE_ACCESS_WRITE
	.comm	_FILE_CREATE,4,2                ## @FILE_CREATE
	.comm	_FILE_OPEN_IF,4,2               ## @FILE_OPEN_IF
	.comm	_FILE_OVERWRITE_IF,4,2          ## @FILE_OVERWRITE_IF
	.comm	_FILE_SUPERSEDE,4,2             ## @FILE_SUPERSEDE
	.comm	_FILE_OVERWRITE,4,2             ## @FILE_OVERWRITE
	.comm	_OPEN4_SHARE_ACCESS_WANT_NO_DELEG,4,2 ## @OPEN4_SHARE_ACCESS_WANT_NO_DELEG
	.comm	_FILE_SHARE_READ,4,2            ## @FILE_SHARE_READ
	.comm	_FILE_SHARE_WRITE,4,2           ## @FILE_SHARE_WRITE
	.comm	_OPEN4_SHARE_DENY_NONE,4,2      ## @OPEN4_SHARE_DENY_NONE
	.comm	_OPEN4_SHARE_DENY_WRITE,4,2     ## @OPEN4_SHARE_DENY_WRITE
	.comm	_OPEN4_SHARE_DENY_READ,4,2      ## @OPEN4_SHARE_DENY_READ
	.comm	_OPEN4_SHARE_DENY_BOTH,4,2      ## @OPEN4_SHARE_DENY_BOTH
	.no_dead_strip	_map_access_2_allowdeny
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function map_access_2_allowdeny
_map_access_2_allowdeny:                ; @map_access_2_allowdeny
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _FILE_WRITE_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FILE_WRITE_DATA@GOTPAGEOFF]
	ldr	w11, [x8]
Lloh2:
	adrp	x9, _FILE_APPEND_DATA@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FILE_APPEND_DATA@GOTPAGEOFF]
	ldr	w12, [x9]
Lloh4:
	adrp	x10, _FILE_WRITE_ATTRIBUTES@GOTPAGE
Lloh5:
	ldr	x10, [x10, _FILE_WRITE_ATTRIBUTES@GOTPAGEOFF]
	orr	w11, w12, w11
	ldr	w12, [x10]
	orr	w14, w11, w12
Lloh6:
	adrp	x11, _FILE_READ_DATA@GOTPAGE
Lloh7:
	ldr	x11, [x11, _FILE_READ_DATA@GOTPAGEOFF]
	ldr	w13, [x11]
Lloh8:
	adrp	x12, _FILE_EXECUTE@GOTPAGE
Lloh9:
	ldr	x12, [x12, _FILE_EXECUTE@GOTPAGEOFF]
	ldr	w15, [x12]
	orr	w13, w15, w13
	and	w13, w13, w0
	tst	w14, w0
	b.eq	LBB0_2
; %bb.1:
Lloh10:
	adrp	x14, _OPEN4_SHARE_ACCESS_BOTH@GOTPAGE
Lloh11:
	ldr	x14, [x14, _OPEN4_SHARE_ACCESS_BOTH@GOTPAGEOFF]
Lloh12:
	adrp	x15, _OPEN4_SHARE_ACCESS_WRITE@GOTPAGE
Lloh13:
	ldr	x15, [x15, _OPEN4_SHARE_ACCESS_WRITE@GOTPAGEOFF]
	cmp	w13, #0
	csel	x13, x15, x14, eq
	b	LBB0_4
LBB0_2:
	cbz	w13, LBB0_5
; %bb.3:
Lloh14:
	adrp	x13, _OPEN4_SHARE_ACCESS_READ@GOTPAGE
Lloh15:
	ldr	x13, [x13, _OPEN4_SHARE_ACCESS_READ@GOTPAGEOFF]
LBB0_4:
	ldr	w13, [x13]
	str	w13, [x3]
LBB0_5:
Lloh16:
	adrp	x13, _FILE_CREATE@GOTPAGE
Lloh17:
	ldr	x13, [x13, _FILE_CREATE@GOTPAGEOFF]
Lloh18:
	ldr	w13, [x13]
	cmp	w13, w2
	b.eq	LBB0_10
; %bb.6:
Lloh19:
	adrp	x13, _FILE_OPEN_IF@GOTPAGE
Lloh20:
	ldr	x13, [x13, _FILE_OPEN_IF@GOTPAGEOFF]
Lloh21:
	ldr	w13, [x13]
	cmp	w13, w2
	b.eq	LBB0_10
; %bb.7:
Lloh22:
	adrp	x13, _FILE_OVERWRITE_IF@GOTPAGE
Lloh23:
	ldr	x13, [x13, _FILE_OVERWRITE_IF@GOTPAGEOFF]
Lloh24:
	ldr	w13, [x13]
	cmp	w13, w2
	b.eq	LBB0_10
; %bb.8:
Lloh25:
	adrp	x13, _FILE_SUPERSEDE@GOTPAGE
Lloh26:
	ldr	x13, [x13, _FILE_SUPERSEDE@GOTPAGEOFF]
Lloh27:
	ldr	w13, [x13]
	cmp	w13, w2
	b.eq	LBB0_10
; %bb.9:
Lloh28:
	adrp	x13, _FILE_OVERWRITE@GOTPAGE
Lloh29:
	ldr	x13, [x13, _FILE_OVERWRITE@GOTPAGEOFF]
Lloh30:
	ldr	w13, [x13]
	cmp	w13, w2
	b.ne	LBB0_12
LBB0_10:
	ldr	w8, [x8]
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x10]
	orr	w8, w8, w9
	ldr	w9, [x11]
	orr	w8, w8, w9
	ldr	w9, [x12]
	orr	w8, w8, w9
	tst	w8, w0
	b.ne	LBB0_12
; %bb.11:
Lloh31:
	adrp	x8, _OPEN4_SHARE_ACCESS_READ@GOTPAGE
Lloh32:
	ldr	x8, [x8, _OPEN4_SHARE_ACCESS_READ@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _OPEN4_SHARE_ACCESS_WANT_NO_DELEG@GOTPAGE
Lloh35:
	ldr	x9, [x9, _OPEN4_SHARE_ACCESS_WANT_NO_DELEG@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x3]
LBB0_12:
Lloh37:
	adrp	x8, _FILE_SHARE_READ@GOTPAGE
Lloh38:
	ldr	x8, [x8, _FILE_SHARE_READ@GOTPAGEOFF]
Lloh39:
	adrp	x9, _FILE_SHARE_WRITE@GOTPAGE
Lloh40:
	ldr	x9, [x9, _FILE_SHARE_WRITE@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
Lloh42:
	adrp	x10, _OPEN4_SHARE_DENY_BOTH@GOTPAGE
Lloh43:
	ldr	x10, [x10, _OPEN4_SHARE_DENY_BOTH@GOTPAGEOFF]
Lloh44:
	adrp	x11, _OPEN4_SHARE_DENY_READ@GOTPAGE
Lloh45:
	ldr	x11, [x11, _OPEN4_SHARE_DENY_READ@GOTPAGEOFF]
	tst	w9, w1
	csel	x9, x10, x11, eq
Lloh46:
	adrp	x10, _OPEN4_SHARE_DENY_WRITE@GOTPAGE
Lloh47:
	ldr	x10, [x10, _OPEN4_SHARE_DENY_WRITE@GOTPAGEOFF]
Lloh48:
	adrp	x11, _OPEN4_SHARE_DENY_NONE@GOTPAGE
Lloh49:
	ldr	x11, [x11, _OPEN4_SHARE_DENY_NONE@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	csel	x10, x10, x11, eq
	tst	w8, w1
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x4]
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_FILE_WRITE_DATA,4,2            ; @FILE_WRITE_DATA
	.comm	_FILE_APPEND_DATA,4,2           ; @FILE_APPEND_DATA
	.comm	_FILE_WRITE_ATTRIBUTES,4,2      ; @FILE_WRITE_ATTRIBUTES
	.comm	_FILE_READ_DATA,4,2             ; @FILE_READ_DATA
	.comm	_FILE_EXECUTE,4,2               ; @FILE_EXECUTE
	.comm	_OPEN4_SHARE_ACCESS_BOTH,4,2    ; @OPEN4_SHARE_ACCESS_BOTH
	.comm	_OPEN4_SHARE_ACCESS_READ,4,2    ; @OPEN4_SHARE_ACCESS_READ
	.comm	_OPEN4_SHARE_ACCESS_WRITE,4,2   ; @OPEN4_SHARE_ACCESS_WRITE
	.comm	_FILE_CREATE,4,2                ; @FILE_CREATE
	.comm	_FILE_OPEN_IF,4,2               ; @FILE_OPEN_IF
	.comm	_FILE_OVERWRITE_IF,4,2          ; @FILE_OVERWRITE_IF
	.comm	_FILE_SUPERSEDE,4,2             ; @FILE_SUPERSEDE
	.comm	_FILE_OVERWRITE,4,2             ; @FILE_OVERWRITE
	.comm	_OPEN4_SHARE_ACCESS_WANT_NO_DELEG,4,2 ; @OPEN4_SHARE_ACCESS_WANT_NO_DELEG
	.comm	_FILE_SHARE_READ,4,2            ; @FILE_SHARE_READ
	.comm	_FILE_SHARE_WRITE,4,2           ; @FILE_SHARE_WRITE
	.comm	_OPEN4_SHARE_DENY_NONE,4,2      ; @OPEN4_SHARE_DENY_NONE
	.comm	_OPEN4_SHARE_DENY_WRITE,4,2     ; @OPEN4_SHARE_DENY_WRITE
	.comm	_OPEN4_SHARE_DENY_READ,4,2      ; @OPEN4_SHARE_DENY_READ
	.comm	_OPEN4_SHARE_DENY_BOTH,4,2      ; @OPEN4_SHARE_DENY_BOTH
	.no_dead_strip	_map_access_2_allowdeny
.subsections_via_symbols
