	.file	"extr_apply.c_cmd_apply.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	cmd_apply
	.type	cmd_apply, @function
cmd_apply:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR the_repository[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rbp, 20[rsp]
	mov	DWORD PTR 12[rsp], 0
	mov	rdi, rbp
	mov	DWORD PTR 16[rsp], 0
	call	init_apply_state@PLT
	test	rax, rax
	jne	.L13
.L2:
	mov	r9d, DWORD PTR apply_usage[rip]
	mov	edi, r13d
	mov	rsi, r12
	mov	rdx, rbp
	lea	rcx, 12[rsp]
	lea	r8, 16[rsp]
	call	apply_parse_options@PLT
	mov	esi, DWORD PTR 12[rsp]
	mov	rdi, rbp
	mov	r13d, eax
	call	check_apply_state@PLT
	test	rax, rax
	jne	.L14
.L3:
	mov	ecx, DWORD PTR 16[rsp]
	mov	rdx, r12
	mov	esi, r13d
	mov	rdi, rbp
	call	apply_all_patches@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	clear_apply_state@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 32
	.cfi_remember_state
	.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
.L13:
	.cfi_restore_state
	mov	edi, 128
	call	exit@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, 128
	call	exit@PLT
	jmp	.L3
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	cmd_apply, .-cmd_apply
	.comm	the_repository,4,4
	.comm	apply_usage,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_apply.c_cmd_apply.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cmd_apply
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmd_apply, %function
cmd_apply:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, lr}
	mov	r4, r1
	ldr	r1, .L16
	sub	sp, sp, #28
	ldr	ip, .L16+4
	mov	r5, r0
	ldr	r1, [r1]
	add	r0, sp, #16
	ldr	ip, [ip]
	str	ip, [sp, #20]
	mov	ip,#0
	str	r3, [sp, #8]
	str	r3, [sp, #12]
	bl	init_apply_state
	cmp	r0, #0
	bne	.L13
.L2:
	ldr	r2, .L16+8
	add	r3, sp, #12
	ldr	r2, [r2]
	mov	r0, r5
	mov	r1, r4
	str	r2, [sp, #4]
	str	r3, [sp]
	add	r2, sp, #16
	add	r3, sp, #8
	bl	apply_parse_options
	ldr	r1, [sp, #8]
	mov	r5, r0
	add	r0, sp, #16
	bl	check_apply_state
	cmp	r0, #0
	bne	.L14
.L3:
	mov	r2, r4
	ldr	r3, [sp, #12]
	mov	r1, r5
	add	r0, sp, #16
	bl	apply_all_patches
	mov	r4, r0
	add	r0, sp, #16
	bl	clear_apply_state
	ldr	r3, .L16+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, pc}
.L13:
	mov	r0, #128
	bl	exit
	b	.L2
.L14:
	mov	r0, #128
	bl	exit
	b	.L3
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	the_repository
	.word	.LC0
	.word	apply_usage
	.size	cmd_apply, .-cmd_apply
	.comm	the_repository,4,4
	.comm	apply_usage,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
