	.file	"extr_patch.c_msi_check_patch_applicable.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"no product code to check\n"
	.text
	.p2align 4
	.globl	msi_check_patch_applicable
	.type	msi_check_patch_applicable, @function
msi_check_patch_applicable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, QWORD PTR ERROR_FUNCTION_FAILED[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	mov	esi, DWORD PTR szProductCode[rip]
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	edi, DWORD PTR [rdi]
	call	msi_dup_property@PLT
	test	rax, rax
	je	.L16
	mov	esi, DWORD PTR PID_TEMPLATE[rip]
	mov	rdi, rbp
	mov	r14, rax
	call	msi_suminfo_dup_string@PLT
	mov	esi, 59
	mov	rdi, rax
	mov	r13, rax
	call	msi_split_string@PLT
	mov	rdi, QWORD PTR [rax]
	mov	rbp, rax
	test	rdi, rdi
	je	.L4
	lea	rbx, 8[rax]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rsi, r14
	call	strcmpW@PLT
	test	eax, eax
	cmove	r12, QWORD PTR ERROR_SUCCESS[rip]
	mov	rdi, QWORD PTR [rbx]
	add	rbx, 8
	test	rdi, rdi
	je	.L4
.L5:
	cmp	QWORD PTR ERROR_SUCCESS[rip], r12
	jne	.L7
.L4:
	mov	rdi, rbp
	call	msi_free@PLT
	mov	rdi, r13
	call	msi_free@PLT
	mov	rdi, r14
	call	msi_free@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	ERR@PLT
	mov	r12, QWORD PTR ERROR_SUCCESS[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	rax, r12
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	msi_check_patch_applicable, .-msi_check_patch_applicable
	.comm	szProductCode,4,4
	.comm	PID_TEMPLATE,4,4
	.comm	ERROR_SUCCESS,8,8
	.comm	ERROR_FUNCTION_FAILED,8,8
	.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_patch.c_msi_check_patch_applicable.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"no product code to check\012\000"
	.text
	.align	2
	.global	msi_check_patch_applicable
	.syntax unified
	.arm
	.fpu softvfp
	.type	msi_check_patch_applicable, %function
msi_check_patch_applicable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	ldr	r1, .L17
	ldr	r2, .L17+4
	ldr	r0, [r0]
	ldr	r1, [r1]
	ldr	r5, [r2]
	bl	msi_dup_property
	subs	r6, r0, #0
	beq	.L16
	ldr	r3, .L17+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	msi_suminfo_dup_string
	mov	r1, #59
	mov	r8, r0
	bl	msi_split_string
	mov	r7, r0
	ldr	r0, [r0]
	cmp	r0, #0
	beq	.L4
	mov	r4, r7
	ldr	r9, .L17+12
	b	.L5
.L7:
	mov	r1, r6
	bl	strcmpW
	cmp	r0, #0
	ldr	r0, [r4, #4]!
	ldreq	r5, [r9]
	cmp	r0, #0
	beq	.L4
.L5:
	ldr	r3, [r9]
	cmp	r3, r5
	bne	.L7
.L4:
	mov	r0, r7
	bl	msi_free
	mov	r0, r8
	bl	msi_free
	mov	r0, r6
	bl	msi_free
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	ldr	r0, .L17+16
	bl	ERR
	ldr	r3, .L17+12
	ldr	r5, [r3]
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	.align	2
.L17:
	.word	szProductCode
	.word	ERROR_FUNCTION_FAILED
	.word	PID_TEMPLATE
	.word	ERROR_SUCCESS
	.word	.LC0
	.size	msi_check_patch_applicable, .-msi_check_patch_applicable
	.comm	szProductCode,4,4
	.comm	PID_TEMPLATE,4,4
	.comm	ERROR_SUCCESS,4,4
	.comm	ERROR_FUNCTION_FAILED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
