	.file	"extr_mac.c_mac_fw_upload_enable.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"can't enable fw upload mode: %d\n"
	.text
	.p2align 4
	.type	mac_fw_upload_enable, @function
mac_fw_upload_enable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	esi, -2147430188
	mov	edx, 4
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, -2147483456
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	DWORD PTR [rdi], 2
	mov	r13, QWORD PTR 32[rdi]
	cmovge	ebp, esi
	mov	esi, ebp
	call	[QWORD PTR 8[rdi]]
	test	eax, eax
	js	.L7
	mov	eax, DWORD PTR i1480_FW_UPLOAD_MODE_MASK[rip]
	mov	ecx, 4
	mov	rdx, r13
	mov	esi, ebp
	mov	rdi, rbx
	not	eax
	and	DWORD PTR 0[r13], eax
	call	[QWORD PTR 16[rbx]]
	mov	r12d, eax
	test	eax, eax
	js	.L3
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	r12d, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	r12d, eax
.L3:
	mov	edi, DWORD PTR 24[rbx]
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	ret
	.cfi_endproc
.LFE0:
	.size	mac_fw_upload_enable, .-mac_fw_upload_enable
	.comm	i1480_FW_UPLOAD_MODE_MASK,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_mac.c_mac_fw_upload_enable.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"can't enable fw upload mode: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mac_fw_upload_enable, %function
mac_fw_upload_enable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0]
	ldr	r1, .L9
	cmp	r2, #1
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, .L9+4
	movgt	r6, r1
	mov	r2, #4
	mov	r1, r6
	ldr	r3, [r0, #4]
	mov	r5, r0
	ldr	r7, [r0, #16]
	blx	r3
	subs	r4, r0, #0
	blt	.L3
	ldr	r2, .L9+8
	ldr	r3, [r7]
	ldr	r2, [r2]
	ldr	r4, [r5, #8]
	bic	r3, r3, r2
	str	r3, [r7]
	mov	r1, r6
	mov	r2, r7
	mov	r3, #4
	mov	r0, r5
	blx	r4
	subs	r4, r0, #0
	movge	r4, #0
	blt	.L3
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r2, r4
	ldr	r0, [r5, #12]
	ldr	r1, .L9+12
	bl	dev_err
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	-2147430188
	.word	-2147483456
	.word	i1480_FW_UPLOAD_MODE_MASK
	.word	.LC0
	.size	mac_fw_upload_enable, .-mac_fw_upload_enable
	.comm	i1480_FW_UPLOAD_MODE_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
