	.file	"extr_gth.c_gth_master_set.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gth_master_set, @function
gth_master_set:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	eax, DWORD PTR REG_GTH_SWDEST0[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	cmp	esi, 255
	ja	.L2
	mov	ebx, esi
	and	esi, 7
	mov	edi, 15
	lea	r12d, 0[0+rsi*4]
	shr	ebx
	mov	ecx, r12d
	and	ebx, -4
	sal	edi, cl
	add	ebx, eax
	not	edi
	mov	r14d, edi
.L3:
	mov	rdi, QWORD PTR 0[r13]
	add	rdi, rbx
	call	ioread32@PLT
	and	eax, r14d
	mov	edi, eax
	test	ebp, ebp
	js	.L4
	or	ebp, 8
	mov	ecx, r12d
	sal	ebp, cl
	or	edi, ebp
.L4:
	add	rbx, QWORD PTR 0[r13]
	mov	rsi, rbx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	iowrite32@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	ebx, DWORD PTR REG_GTH_GSWTDEST[rip]
	mov	r14d, -16
	xor	r12d, r12d
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	gth_master_set, .-gth_master_set
	.comm	REG_GTH_SWDEST0,4,4
	.comm	REG_GTH_GSWTDEST,4,4
	.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_gth.c_gth_master_set.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gth_master_set, %function
gth_master_set:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L7
	cmp	r1, #255
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r3]
	mov	r7, r0
	mov	r5, r2
	bhi	.L2
	mov	r0, #15
	lsr	r6, r1, #1
	and	r1, r1, #7
	lsl	r4, r1, #2
	mvn	r8, r0, lsl r4
	bic	r6, r6, #3
	add	r6, r6, r3
.L3:
	ldr	r0, [r7]
	add	r0, r6, r0
	bl	ioread32
	cmp	r5, #0
	ldr	r1, [r7]
	and	r0, r0, r8
	orrge	r5, r5, #8
	orrge	r0, r0, r5, lsl r4
	add	r1, r6, r1
	pop	{r4, r5, r6, r7, r8, lr}
	b	iowrite32
.L2:
	ldr	r3, .L7+4
	mvn	r8, #15
	mov	r4, #0
	ldr	r6, [r3]
	b	.L3
.L8:
	.align	2
.L7:
	.word	REG_GTH_SWDEST0
	.word	REG_GTH_GSWTDEST
	.size	gth_master_set, .-gth_master_set
	.comm	REG_GTH_SWDEST0,4,4
	.comm	REG_GTH_GSWTDEST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
