	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function win32_translate_open_mode
_win32_translate_open_mode:             ## @win32_translate_open_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$0, (%rdx)
	movl	$0, (%r8)
	movl	$0, (%rcx)
	movl	$0, (%rsi)
	movq	_ZLIB_FILEFUNC_MODE_READWRITEFILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	andl	%edi, %r8d
	movq	_ZLIB_FILEFUNC_MODE_READ@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r8d
	jne	LBB0_2
## %bb.1:
	movq	_GENERIC_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsi)
	movq	_OPEN_EXISTING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movq	_FILE_SHARE_READ@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	_ZLIB_FILEFUNC_MODE_EXISTING@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_GENERIC_WRITE@GOTPCREL(%rip), %rax
	movq	_GENERIC_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rsi)
	movq	_OPEN_EXISTING@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_ZLIB_FILEFUNC_MODE_CREATE@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_8
## %bb.5:
	movq	_GENERIC_WRITE@GOTPCREL(%rip), %rax
	movq	_GENERIC_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rsi)
	movq	_CREATE_ALWAYS@GOTPCREL(%rip), %rax
LBB0_6:
	movq	%rdx, %rcx
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, (%rcx)
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZLIB_FILEFUNC_MODE_READWRITEFILTER,4,2 ## @ZLIB_FILEFUNC_MODE_READWRITEFILTER
	.comm	_ZLIB_FILEFUNC_MODE_READ,4,2    ## @ZLIB_FILEFUNC_MODE_READ
	.comm	_GENERIC_READ,4,2               ## @GENERIC_READ
	.comm	_OPEN_EXISTING,4,2              ## @OPEN_EXISTING
	.comm	_FILE_SHARE_READ,4,2            ## @FILE_SHARE_READ
	.comm	_ZLIB_FILEFUNC_MODE_EXISTING,4,2 ## @ZLIB_FILEFUNC_MODE_EXISTING
	.comm	_GENERIC_WRITE,4,2              ## @GENERIC_WRITE
	.comm	_ZLIB_FILEFUNC_MODE_CREATE,4,2  ## @ZLIB_FILEFUNC_MODE_CREATE
	.comm	_CREATE_ALWAYS,4,2              ## @CREATE_ALWAYS
	.no_dead_strip	_win32_translate_open_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function win32_translate_open_mode
_win32_translate_open_mode:             ; @win32_translate_open_mode
	.cfi_startproc
; %bb.0:
	str	wzr, [x2]
	str	wzr, [x4]
	str	wzr, [x3]
	str	wzr, [x1]
Lloh0:
	adrp	x8, _ZLIB_FILEFUNC_MODE_READWRITEFILTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZLIB_FILEFUNC_MODE_READWRITEFILTER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh3:
	adrp	x9, _ZLIB_FILEFUNC_MODE_READ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ZLIB_FILEFUNC_MODE_READ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _GENERIC_READ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GENERIC_READ@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x1]
Lloh9:
	adrp	x8, _OPEN_EXISTING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OPEN_EXISTING@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x2]
Lloh12:
	adrp	x8, _FILE_SHARE_READ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FILE_SHARE_READ@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
Lloh14:
	adrp	x8, _ZLIB_FILEFUNC_MODE_EXISTING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ZLIB_FILEFUNC_MODE_EXISTING@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
Lloh17:
	adrp	x8, _GENERIC_WRITE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GENERIC_WRITE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _GENERIC_READ@GOTPAGE
Lloh21:
	ldr	x9, [x9, _GENERIC_READ@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x1]
Lloh23:
	adrp	x8, _OPEN_EXISTING@GOTPAGE
Lloh24:
	ldr	x8, [x8, _OPEN_EXISTING@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh25:
	adrp	x8, _ZLIB_FILEFUNC_MODE_CREATE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ZLIB_FILEFUNC_MODE_CREATE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.5:
Lloh28:
	adrp	x8, _GENERIC_WRITE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _GENERIC_WRITE@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _GENERIC_READ@GOTPAGE
Lloh32:
	ldr	x9, [x9, _GENERIC_READ@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x1]
Lloh34:
	adrp	x8, _CREATE_ALWAYS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _CREATE_ALWAYS@GOTPAGEOFF]
LBB0_6:
	mov	x3, x2
LBB0_7:
	ldr	w8, [x8]
	str	w8, [x3]
LBB0_8:
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_ZLIB_FILEFUNC_MODE_READWRITEFILTER,4,2 ; @ZLIB_FILEFUNC_MODE_READWRITEFILTER
	.comm	_ZLIB_FILEFUNC_MODE_READ,4,2    ; @ZLIB_FILEFUNC_MODE_READ
	.comm	_GENERIC_READ,4,2               ; @GENERIC_READ
	.comm	_OPEN_EXISTING,4,2              ; @OPEN_EXISTING
	.comm	_FILE_SHARE_READ,4,2            ; @FILE_SHARE_READ
	.comm	_ZLIB_FILEFUNC_MODE_EXISTING,4,2 ; @ZLIB_FILEFUNC_MODE_EXISTING
	.comm	_GENERIC_WRITE,4,2              ; @GENERIC_WRITE
	.comm	_ZLIB_FILEFUNC_MODE_CREATE,4,2  ; @ZLIB_FILEFUNC_MODE_CREATE
	.comm	_CREATE_ALWAYS,4,2              ; @CREATE_ALWAYS
	.no_dead_strip	_win32_translate_open_mode
.subsections_via_symbols
