	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ir_raw_event_store_with_timeout ## -- Begin function ir_raw_event_store_with_timeout
	.p2align	4, 0x90
_ir_raw_event_store_with_timeout:       ## @ir_raw_event_store_with_timeout
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %r13
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, %r15d
	movq	(%r13), %rdi
	callq	_spin_lock
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_ir_raw_event_store
	movl	%eax, %r14d
	movq	(%r13), %rdi
	movl	%r15d, 8(%rdi)
	addq	$4, %rdi
	callq	_timer_pending
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	(%r13), %rax
	movl	4(%rax), %r15d
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	$15, %edi
	callq	_msecs_to_jiffies
	addq	%rax, %r12
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movq	(%r13), %r15
	addq	$4, %r15
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	$15, %edi
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mod_timer
LBB0_5:
	movq	(%r13), %rdi
	callq	_spin_unlock
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_jiffies,8,3                    ## @jiffies
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ir_raw_event_store_with_timeout ; -- Begin function ir_raw_event_store_with_timeout
	.p2align	2
_ir_raw_event_store_with_timeout:       ; @ir_raw_event_store_with_timeout
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	bl	_ktime_get
	mov	x21, x0
	ldr	x0, [x19]
	bl	_spin_lock
	mov	x0, x19
	mov	x1, x20
	bl	_ir_raw_event_store
	mov	x20, x0
	ldr	x8, [x19]
	str	w21, [x8, #8]
	add	x0, x8, #4
	bl	_timer_pending
Lloh0:
	adrp	x22, _jiffies@GOTPAGE
Lloh1:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	cbz	w0, LBB0_3
; %bb.2:
	ldr	x8, [x19]
	ldr	w21, [x8, #4]
	ldr	x23, [x22]
	mov	w0, #15
	bl	_msecs_to_jiffies
	add	x1, x0, x23
	mov	x0, x21
	bl	_time_after
	cbz	x0, LBB0_4
LBB0_3:
	ldr	x8, [x19]
	add	x21, x8, #4
	ldr	x22, [x22]
	mov	w0, #15
	bl	_msecs_to_jiffies
	add	x1, x0, x22
	mov	x0, x21
	bl	_mod_timer
LBB0_4:
	ldr	x0, [x19]
	bl	_spin_unlock
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_jiffies,8,3                    ; @jiffies
.subsections_via_symbols
