	.file	"extr_ifmedia.c_domediaopt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	domediaopt, @function
domediaopt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	mov	edi, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	ifmedia_getstate@PLT
	mov	rbp, rax
	mov	rax, QWORD PTR 8[rax]
	mov	edi, DWORD PTR [rax]
	call	IFM_TYPE@PLT
	mov	rsi, r13
	mov	edi, eax
	call	get_media_options@PLT
	mov	esi, DWORD PTR name[rip]
	mov	edi, DWORD PTR ifr[rip+4]
	mov	edx, 4
	mov	ebx, eax
	call	strlcpy@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	r12d, r12d
	je	.L2
	not	ebx
	and	ebx, eax
	mov	DWORD PTR ifr[rip], ebx
.L3:
	mov	DWORD PTR 0[rbp], ebx
	mov	edi, DWORD PTR setifmediacallback[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rsi, rbp
	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	callback_register@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edx, DWORD PTR IFM_HDX[rip]
	test	edx, ebx
	je	.L4
	mov	ecx, DWORD PTR IFM_FDX[rip]
	not	edx
	and	ebx, edx
	not	ecx
	and	eax, ecx
.L4:
	or	ebx, eax
	mov	DWORD PTR ifr[rip], ebx
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	domediaopt, .-domediaopt
	.comm	setifmediacallback,4,4
	.comm	name,4,4
	.comm	ifr,8,8
	.comm	IFM_HDX,4,4
	.comm	IFM_FDX,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_ifmedia.c_domediaopt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	domediaopt, %function
domediaopt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r0, r2
	mov	r6, r1
	bl	ifmedia_getstate
	ldr	r3, [r0, #4]
	mov	r5, r0
	ldr	r0, [r3]
	bl	IFM_TYPE
	mov	r1, r4
	bl	get_media_options
	mov	r4, r0
	ldr	r3, .L10
	ldr	r7, .L10+4
	ldr	r1, [r3]
	mov	r2, #4
	ldr	r0, [r7, #4]
	bl	strlcpy
	ldr	r3, [r5]
	cmp	r6, #0
	bicne	r4, r3, r4
	strne	r4, [r7]
	bne	.L3
	ldr	r2, .L10+8
	ldr	r2, [r2]
	tst	r2, r4
	ldrne	r1, .L10+12
	bicne	r4, r4, r2
	ldrne	r2, [r1]
	bicne	r3, r3, r2
	orr	r4, r4, r3
	str	r4, [r7]
.L3:
	ldr	r3, .L10+16
	mov	r1, r5
	str	r4, [r5]
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, lr}
	b	callback_register
.L11:
	.align	2
.L10:
	.word	name
	.word	ifr
	.word	IFM_HDX
	.word	IFM_FDX
	.word	setifmediacallback
	.size	domediaopt, .-domediaopt
	.comm	setifmediacallback,4,4
	.comm	name,4,4
	.comm	ifr,8,4
	.comm	IFM_HDX,4,4
	.comm	IFM_FDX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
