	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function file_to_av
_file_to_av:                            ## @file_to_av
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %ecx
	movq	_FMODE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ecx, %eax
	je	LBB0_2
## %bb.1:
	movq	_FILE__READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	movq	_FMODE_WRITE@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_7
## %bb.3:
	movq	_O_APPEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rdi)
	je	LBB0_5
## %bb.4:
	movq	_FILE__APPEND@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_5:
	movq	_FILE__WRITE@GOTPCREL(%rip), %rcx
LBB0_6:
	orl	(%rcx), %eax
LBB0_7:
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	_FILE__IOCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FMODE_READ,4,2                 ## @FMODE_READ
	.comm	_FILE__READ,4,2                 ## @FILE__READ
	.comm	_FMODE_WRITE,4,2                ## @FMODE_WRITE
	.comm	_O_APPEND,4,2                   ## @O_APPEND
	.comm	_FILE__APPEND,4,2               ## @FILE__APPEND
	.comm	_FILE__WRITE,4,2                ## @FILE__WRITE
	.comm	_FILE__IOCTL,4,2                ## @FILE__IOCTL
	.no_dead_strip	_file_to_av
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function file_to_av
_file_to_av:                            ; @file_to_av
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0]
Lloh0:
	adrp	x8, _FMODE_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FMODE_READ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x10, _FILE__READ@GOTPAGE
Lloh4:
	ldr	x10, [x10, _FILE__READ@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w8, w9
	csel	w8, wzr, w10, eq
Lloh6:
	adrp	x10, _FMODE_WRITE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _FMODE_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.1:
	ldr	w9, [x0, #4]
Lloh9:
	adrp	x10, _O_APPEND@GOTPAGE
Lloh10:
	ldr	x10, [x10, _O_APPEND@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_3
; %bb.2:
Lloh12:
	adrp	x9, _FILE__APPEND@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FILE__APPEND@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh14:
	adrp	x9, _FILE__WRITE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _FILE__WRITE@GOTPAGEOFF]
LBB0_4:
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_5:
Lloh16:
	adrp	x9, _FILE__IOCTL@GOTPAGE
Lloh17:
	ldr	x9, [x9, _FILE__IOCTL@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w0, w9, w8, eq
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_FMODE_READ,4,2                 ; @FMODE_READ
	.comm	_FILE__READ,4,2                 ; @FILE__READ
	.comm	_FMODE_WRITE,4,2                ; @FMODE_WRITE
	.comm	_O_APPEND,4,2                   ; @O_APPEND
	.comm	_FILE__APPEND,4,2               ; @FILE__APPEND
	.comm	_FILE__WRITE,4,2                ; @FILE__WRITE
	.comm	_FILE__IOCTL,4,2                ; @FILE__IOCTL
	.no_dead_strip	_file_to_av
.subsections_via_symbols
