	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function overlay_cmd_reg
_overlay_cmd_reg:                       ## @overlay_cmd_reg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_OCMD_ENABLE@GOTPCREL(%rip), %rcx
	movq	_OCMD_BUF_TYPE_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_OCMD_BUFFER0@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rdi), %ecx
	movq	_I915_OVERLAY_YUV_PLANAR@GOTPCREL(%rip), %rsi
	movq	_I915_OVERLAY_DEPTH_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ecx, %edx
	testl	%ecx, (%rsi)
	je	LBB0_7
## %bb.1:
	leal	-132(%rdx), %ecx
	cmpl	$2, %ecx
	jb	LBB0_6
## %bb.2:
	cmpl	$131, %edx
	je	LBB0_5
## %bb.3:
	cmpl	$130, %edx
	jne	LBB0_19
## %bb.4:
	movq	_OCMD_YUV_422_PLANAR@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
LBB0_7:
	cmpl	$132, %edx
	je	LBB0_10
## %bb.8:
	cmpl	$130, %edx
	jne	LBB0_12
## %bb.9:
	movq	_OCMD_YUV_422_PACKED@GOTPCREL(%rip), %rdx
	jmp	LBB0_11
LBB0_6:
	movq	_OCMD_YUV_410_PLANAR@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
LBB0_5:
	movq	_OCMD_YUV_420_PLANAR@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
LBB0_10:
	movq	_OCMD_YUV_411_PACKED@GOTPCREL(%rip), %rdx
LBB0_11:
	orl	(%rdx), %eax
LBB0_12:
	movq	_I915_OVERLAY_SWAP_MASK@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ecx
	cmpl	$128, %ecx
	je	LBB0_16
## %bb.13:
	cmpl	$129, %ecx
	je	LBB0_17
## %bb.14:
	cmpl	$134, %ecx
	jne	LBB0_19
## %bb.15:
	movq	_OCMD_UV_SWAP@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
LBB0_16:
	movq	_OCMD_Y_SWAP@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
LBB0_17:
	movq	_OCMD_Y_AND_UV_SWAP@GOTPCREL(%rip), %rcx
LBB0_18:
	orl	(%rcx), %eax
LBB0_19:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCMD_ENABLE,4,2                ## @OCMD_ENABLE
	.comm	_OCMD_BUF_TYPE_FRAME,4,2        ## @OCMD_BUF_TYPE_FRAME
	.comm	_OCMD_BUFFER0,4,2               ## @OCMD_BUFFER0
	.comm	_I915_OVERLAY_YUV_PLANAR,4,2    ## @I915_OVERLAY_YUV_PLANAR
	.comm	_I915_OVERLAY_DEPTH_MASK,4,2    ## @I915_OVERLAY_DEPTH_MASK
	.comm	_OCMD_YUV_422_PLANAR,4,2        ## @OCMD_YUV_422_PLANAR
	.comm	_OCMD_YUV_420_PLANAR,4,2        ## @OCMD_YUV_420_PLANAR
	.comm	_OCMD_YUV_410_PLANAR,4,2        ## @OCMD_YUV_410_PLANAR
	.comm	_OCMD_YUV_422_PACKED,4,2        ## @OCMD_YUV_422_PACKED
	.comm	_OCMD_YUV_411_PACKED,4,2        ## @OCMD_YUV_411_PACKED
	.comm	_I915_OVERLAY_SWAP_MASK,4,2     ## @I915_OVERLAY_SWAP_MASK
	.comm	_OCMD_UV_SWAP,4,2               ## @OCMD_UV_SWAP
	.comm	_OCMD_Y_SWAP,4,2                ## @OCMD_Y_SWAP
	.comm	_OCMD_Y_AND_UV_SWAP,4,2         ## @OCMD_Y_AND_UV_SWAP
	.no_dead_strip	_overlay_cmd_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function overlay_cmd_reg
_overlay_cmd_reg:                       ; @overlay_cmd_reg
	.cfi_startproc
; %bb.0:
	mov	x8, x0
Lloh0:
	adrp	x9, _OCMD_ENABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OCMD_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _OCMD_BUF_TYPE_FRAME@GOTPAGE
Lloh4:
	ldr	x10, [x10, _OCMD_BUF_TYPE_FRAME@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _OCMD_BUFFER0@GOTPAGE
Lloh7:
	ldr	x11, [x11, _OCMD_BUFFER0@GOTPAGEOFF]
	orr	w9, w10, w9
Lloh8:
	ldr	w10, [x11]
	orr	w0, w9, w10
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _I915_OVERLAY_YUV_PLANAR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _I915_OVERLAY_YUV_PLANAR@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x9]
Lloh12:
	adrp	x9, _I915_OVERLAY_DEPTH_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _I915_OVERLAY_DEPTH_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w9, w9, w8
	tst	w10, w8
	b.eq	LBB0_5
; %bb.1:
	sub	w8, w9, #132
	cmp	w8, #2
	b.lo	LBB0_8
; %bb.2:
	cmp	w9, #131
	b.eq	LBB0_9
; %bb.3:
	cmp	w9, #130
	b.ne	LBB0_19
; %bb.4:
Lloh15:
	adrp	x8, _OCMD_YUV_422_PLANAR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OCMD_YUV_422_PLANAR@GOTPAGEOFF]
	b	LBB0_18
LBB0_5:
	cmp	w9, #132
	b.eq	LBB0_10
; %bb.6:
	cmp	w9, #130
	b.ne	LBB0_12
; %bb.7:
Lloh17:
	adrp	x9, _OCMD_YUV_422_PACKED@GOTPAGE
Lloh18:
	ldr	x9, [x9, _OCMD_YUV_422_PACKED@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
Lloh19:
	adrp	x8, _OCMD_YUV_410_PLANAR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _OCMD_YUV_410_PLANAR@GOTPAGEOFF]
	b	LBB0_18
LBB0_9:
Lloh21:
	adrp	x8, _OCMD_YUV_420_PLANAR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _OCMD_YUV_420_PLANAR@GOTPAGEOFF]
	b	LBB0_18
LBB0_10:
Lloh23:
	adrp	x9, _OCMD_YUV_411_PACKED@GOTPAGE
Lloh24:
	ldr	x9, [x9, _OCMD_YUV_411_PACKED@GOTPAGEOFF]
LBB0_11:
	ldr	w9, [x9]
	orr	w0, w9, w0
LBB0_12:
Lloh25:
	adrp	x9, _I915_OVERLAY_SWAP_MASK@GOTPAGE
Lloh26:
	ldr	x9, [x9, _I915_OVERLAY_SWAP_MASK@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #128
	b.eq	LBB0_16
; %bb.13:
	cmp	w8, #129
	b.eq	LBB0_17
; %bb.14:
	cmp	w8, #134
	b.ne	LBB0_19
; %bb.15:
Lloh28:
	adrp	x8, _OCMD_UV_SWAP@GOTPAGE
Lloh29:
	ldr	x8, [x8, _OCMD_UV_SWAP@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:
Lloh30:
	adrp	x8, _OCMD_Y_SWAP@GOTPAGE
Lloh31:
	ldr	x8, [x8, _OCMD_Y_SWAP@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh32:
	adrp	x8, _OCMD_Y_AND_UV_SWAP@GOTPAGE
Lloh33:
	ldr	x8, [x8, _OCMD_Y_AND_UV_SWAP@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	orr	w0, w8, w0
LBB0_19:
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_OCMD_ENABLE,4,2                ; @OCMD_ENABLE
	.comm	_OCMD_BUF_TYPE_FRAME,4,2        ; @OCMD_BUF_TYPE_FRAME
	.comm	_OCMD_BUFFER0,4,2               ; @OCMD_BUFFER0
	.comm	_I915_OVERLAY_YUV_PLANAR,4,2    ; @I915_OVERLAY_YUV_PLANAR
	.comm	_I915_OVERLAY_DEPTH_MASK,4,2    ; @I915_OVERLAY_DEPTH_MASK
	.comm	_OCMD_YUV_422_PLANAR,4,2        ; @OCMD_YUV_422_PLANAR
	.comm	_OCMD_YUV_420_PLANAR,4,2        ; @OCMD_YUV_420_PLANAR
	.comm	_OCMD_YUV_410_PLANAR,4,2        ; @OCMD_YUV_410_PLANAR
	.comm	_OCMD_YUV_422_PACKED,4,2        ; @OCMD_YUV_422_PACKED
	.comm	_OCMD_YUV_411_PACKED,4,2        ; @OCMD_YUV_411_PACKED
	.comm	_I915_OVERLAY_SWAP_MASK,4,2     ; @I915_OVERLAY_SWAP_MASK
	.comm	_OCMD_UV_SWAP,4,2               ; @OCMD_UV_SWAP
	.comm	_OCMD_Y_SWAP,4,2                ; @OCMD_Y_SWAP
	.comm	_OCMD_Y_AND_UV_SWAP,4,2         ; @OCMD_Y_AND_UV_SWAP
	.no_dead_strip	_overlay_cmd_reg
.subsections_via_symbols
