	.file	"extr_e1000_phy.c_igb_set_master_slave_mode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	igb_set_master_slave_mode, @function
igb_set_master_slave_mode:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR PHY_1000T_CTRL[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rdx, 4[rsp]
	call	[QWORD PTR 16[rdi]]
	test	rax, rax
	jne	.L1
	mov	edx, DWORD PTR 4[rsp]
	mov	ecx, DWORD PTR CR_1000T_MS_ENABLE[rip]
	mov	eax, 130
	test	edx, ecx
	je	.L3
	xor	eax, eax
	test	DWORD PTR CR_1000T_MS_VALUE[rip], edx
	setne	al
	sub	eax, -128
.L3:
	mov	DWORD PTR [rbx], eax
	mov	eax, DWORD PTR 4[rbx]
	cmp	eax, 129
	je	.L4
	cmp	eax, 130
	je	.L5
	cmp	eax, 128
	je	.L14
.L7:
	mov	esi, DWORD PTR PHY_1000T_CTRL[rip]
	mov	rdi, rbx
	call	[QWORD PTR 8[rbx]]
.L1:
	mov	rsi, QWORD PTR 8[rsp]
	xor	rsi, QWORD PTR fs:40
	jne	.L15
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	eax, DWORD PTR CR_1000T_MS_VALUE[rip]
	or	edx, ecx
	not	eax
	and	edx, eax
	mov	DWORD PTR 4[rsp], edx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	not	ecx
	and	edx, ecx
	mov	DWORD PTR 4[rsp], edx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	or	edx, ecx
	or	edx, DWORD PTR CR_1000T_MS_VALUE[rip]
	mov	DWORD PTR 4[rsp], edx
	jmp	.L7
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	igb_set_master_slave_mode, .-igb_set_master_slave_mode
	.comm	PHY_1000T_CTRL,4,4
	.comm	CR_1000T_MS_VALUE,4,4
	.comm	CR_1000T_MS_ENABLE,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_e1000_phy.c_igb_set_master_slave_mode.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	igb_set_master_slave_mode, %function
igb_set_master_slave_mode:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r5, .L15
	sub	sp, sp, #12
	ldr	ip, .L15+4
	mov	r2, sp
	ldr	r3, [r0, #12]
	ldr	r1, [r5]
	mov	r4, r0
	ldr	ip, [ip]
	str	ip, [sp, #4]
	mov	ip,#0
	blx	r3
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L15+8
	ldr	r2, [sp]
	ldr	r1, [r3]
	tst	r2, r1
	moveq	r0, #130
	beq	.L3
	ldr	r3, .L15+12
	ldr	r3, [r3]
	tst	r2, r3
	movne	r0, #129
	moveq	r0, #128
.L3:
	ldr	r3, [r4, #4]
	str	r0, [r4]
	cmp	r3, #129
	beq	.L4
	cmp	r3, #130
	beq	.L5
	cmp	r3, #128
	beq	.L13
.L7:
	mov	r0, r4
	ldr	r1, [r5]
	ldr	r3, [r4, #8]
	blx	r3
.L1:
	ldr	r3, .L15+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L13:
	ldr	r3, .L15+12
	orr	r2, r2, r1
	ldr	r3, [r3]
	bic	r2, r2, r3
	str	r2, [sp]
	b	.L7
.L5:
	bic	r2, r2, r1
	str	r2, [sp]
	b	.L7
.L4:
	ldr	r3, .L15+12
	orr	r2, r2, r1
	ldr	r3, [r3]
	orr	r2, r2, r3
	str	r2, [sp]
	b	.L7
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	PHY_1000T_CTRL
	.word	.LC0
	.word	CR_1000T_MS_ENABLE
	.word	CR_1000T_MS_VALUE
	.size	igb_set_master_slave_mode, .-igb_set_master_slave_mode
	.comm	PHY_1000T_CTRL,4,4
	.comm	CR_1000T_MS_VALUE,4,4
	.comm	CR_1000T_MS_ENABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
