	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opencl_mem_flags_for_mapping
_opencl_mem_flags_for_mapping:          ## @opencl_mem_flags_for_mapping
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_AV_HWFRAME_MAP_READ@GOTPCREL(%rip), %rcx
	movq	_AV_HWFRAME_MAP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%edi, (%rcx)
	je	LBB0_4
## %bb.1:
	testl	%edi, %eax
	je	LBB0_3
## %bb.2:
	movq	_CL_MEM_READ_WRITE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	andl	%edi, %eax
	je	LBB0_7
## %bb.5:
	movq	_CL_MEM_WRITE_ONLY@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movq	_CL_MEM_READ_ONLY@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_HWFRAME_MAP_READ,4,2        ## @AV_HWFRAME_MAP_READ
	.comm	_AV_HWFRAME_MAP_WRITE,4,2       ## @AV_HWFRAME_MAP_WRITE
	.comm	_CL_MEM_READ_WRITE,4,2          ## @CL_MEM_READ_WRITE
	.comm	_CL_MEM_READ_ONLY,4,2           ## @CL_MEM_READ_ONLY
	.comm	_CL_MEM_WRITE_ONLY,4,2          ## @CL_MEM_WRITE_ONLY
	.no_dead_strip	_opencl_mem_flags_for_mapping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opencl_mem_flags_for_mapping
_opencl_mem_flags_for_mapping:          ; @opencl_mem_flags_for_mapping
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _AV_HWFRAME_MAP_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_HWFRAME_MAP_READ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _AV_HWFRAME_MAP_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_HWFRAME_MAP_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
	tst	w9, w0
	b.eq	LBB0_3
; %bb.1:
	cbz	w8, LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _CL_MEM_READ_WRITE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CL_MEM_READ_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ret
LBB0_3:
Lloh9:
	adrp	x9, _CL_MEM_WRITE_ONLY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CL_MEM_WRITE_ONLY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w0, wzr, w9, eq
	ret
LBB0_4:
Lloh12:
	adrp	x8, _CL_MEM_READ_ONLY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CL_MEM_READ_ONLY@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_HWFRAME_MAP_READ,4,2        ; @AV_HWFRAME_MAP_READ
	.comm	_AV_HWFRAME_MAP_WRITE,4,2       ; @AV_HWFRAME_MAP_WRITE
	.comm	_CL_MEM_READ_WRITE,4,2          ; @CL_MEM_READ_WRITE
	.comm	_CL_MEM_READ_ONLY,4,2           ; @CL_MEM_READ_ONLY
	.comm	_CL_MEM_WRITE_ONLY,4,2          ; @CL_MEM_WRITE_ONLY
	.no_dead_strip	_opencl_mem_flags_for_mapping
.subsections_via_symbols
