	.file	"extr_gsc-regs.c_gsc_hw_set_input_buf_masking.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	gsc_hw_set_input_buf_masking
	.type	gsc_hw_set_input_buf_masking, @function
gsc_hw_set_input_buf_masking:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rdi, QWORD PTR GSC_IN_BASE_ADDR_Y_MASK[rip]
	add	rdi, QWORD PTR [r12]
	call	readl@PLT
	mov	ecx, r13d
	mov	rsi, QWORD PTR GSC_IN_BASE_ADDR_Y_MASK[rip]
	add	rsi, QWORD PTR [r12]
	btr	eax, r13d
	sal	ebx, cl
	mov	ebp, eax
	or	ebp, ebx
	mov	edi, ebp
	call	writel@PLT
	mov	edi, ebp
	mov	rsi, QWORD PTR GSC_IN_BASE_ADDR_CB_MASK[rip]
	add	rsi, QWORD PTR [r12]
	call	writel@PLT
	mov	rsi, QWORD PTR GSC_IN_BASE_ADDR_CR_MASK[rip]
	add	rsi, QWORD PTR [r12]
	mov	edi, ebp
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	writel@PLT
	.cfi_endproc
.LFE0:
	.size	gsc_hw_set_input_buf_masking, .-gsc_hw_set_input_buf_masking
	.comm	GSC_IN_BASE_ADDR_Y_MASK,8,8
	.comm	GSC_IN_BASE_ADDR_CR_MASK,8,8
	.comm	GSC_IN_BASE_ADDR_CB_MASK,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_gsc-regs.c_gsc_hw_set_input_buf_masking.c"
	.text
	.align	2
	.global	gsc_hw_set_input_buf_masking
	.syntax unified
	.arm
	.fpu softvfp
	.type	gsc_hw_set_input_buf_masking, %function
gsc_hw_set_input_buf_masking:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r8, .L4
	mov	r5, r0
	ldr	r3, [r8]
	ldr	r0, [r0]
	mov	r6, r1
	add	r0, r0, r3
	mov	r7, r2
	mov	r4, #1
	bl	readl
	ldr	r3, [r8]
	ldr	r1, [r5]
	bic	r4, r0, r4, lsl r6
	orr	r4, r4, r7, lsl r6
	add	r1, r1, r3
	mov	r0, r4
	bl	writel
	ldr	r3, .L4+4
	ldr	r1, [r5]
	ldr	r3, [r3]
	mov	r0, r4
	add	r1, r1, r3
	bl	writel
	ldr	r3, .L4+8
	ldr	r1, [r5]
	ldr	r3, [r3]
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	add	r1, r1, r3
	b	writel
.L5:
	.align	2
.L4:
	.word	GSC_IN_BASE_ADDR_Y_MASK
	.word	GSC_IN_BASE_ADDR_CB_MASK
	.word	GSC_IN_BASE_ADDR_CR_MASK
	.size	gsc_hw_set_input_buf_masking, .-gsc_hw_set_input_buf_masking
	.comm	GSC_IN_BASE_ADDR_Y_MASK,4,4
	.comm	GSC_IN_BASE_ADDR_CR_MASK,4,4
	.comm	GSC_IN_BASE_ADDR_CB_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
