	.file	"extr_obs-hotkey.c_obs_hotkey_register_source.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	obs_hotkey_register_source
	.type	obs_hotkey_register_source, @function
obs_hotkey_register_source:
.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
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	test	rdi, rdi
	je	.L4
	cmp	QWORD PTR [rdi], 0
	mov	r12, rdi
	je	.L10
.L4:
	mov	r12d, DWORD PTR OBS_INVALID_HOTKEY_ID[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	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
.L10:
	.cfi_restore_state
	xor	eax, eax
	mov	r14, rsi
	mov	rbx, rdx
	mov	ebp, ecx
	mov	r13, r8
	call	lock@PLT
	test	eax, eax
	je	.L4
	mov	rdi, r12
	call	obs_source_get_weak_source@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	rdx, r12
	mov	r9d, ebp
	push	r13
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR OBS_HOTKEY_REGISTERER_SOURCE[rip]
	mov	r8, rbx
	mov	rcx, r14
	mov	esi, eax
	call	obs_hotkey_register_internal@PLT
	mov	r12d, eax
	xor	eax, eax
	call	unlock@PLT
	pop	rax
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rdx
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	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
	.cfi_endproc
.LFE0:
	.size	obs_hotkey_register_source, .-obs_hotkey_register_source
	.comm	OBS_INVALID_HOTKEY_ID,4,4
	.comm	OBS_HOTKEY_REGISTERER_SOURCE,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_obs-hotkey.c_obs_hotkey_register_source.c"
	.text
	.align	2
	.global	obs_hotkey_register_source
	.syntax unified
	.arm
	.fpu softvfp
	.type	obs_hotkey_register_source, %function
obs_hotkey_register_source:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r6, r0, #0
	sub	sp, sp, #16
	beq	.L4
	mov	r5, r3
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L10
.L4:
	ldr	r3, .L11
	ldr	r4, [r3]
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r7, r1
	mov	r4, r2
	bl	lock
	cmp	r0, #0
	beq	.L4
	ldr	r3, .L11+4
	mov	r0, r6
	ldr	r8, [r3]
	bl	obs_source_get_weak_source
	ldr	r3, [sp, #40]
	mov	r1, r0
	mov	r2, r6
	stm	sp, {r4, r5}
	str	r3, [sp, #8]
	mov	r0, r8
	mov	r3, r7
	bl	obs_hotkey_register_internal
	mov	r4, r0
	bl	unlock
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	.align	2
.L11:
	.word	OBS_INVALID_HOTKEY_ID
	.word	OBS_HOTKEY_REGISTERER_SOURCE
	.size	obs_hotkey_register_source, .-obs_hotkey_register_source
	.comm	OBS_INVALID_HOTKEY_ID,4,4
	.comm	OBS_HOTKEY_REGISTERER_SOURCE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
