	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function deliver_event
_deliver_event:                         ## @deliver_event
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	cmpq	$0, 16(%r14)
	je	LBB0_4
## %bb.1:
	leaq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_list_empty
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	leaq	12(%r14), %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
	movq	%r15, %rdi
	jmp	LBB0_7
LBB0_4:
	movq	%rsi, %r15
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r12
	movl	(%rbx), %eax
	movl	%eax, 8(%r12)
	movl	4(%r12), %edi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy
	leaq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	leaq	12(%r14), %rsi
	movq	%r12, %rdi
	callq	_list_add_tail
	movq	%rbx, %rdi
LBB0_7:
	callq	_spin_unlock_irqrestore
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_wake_up_interruptible
	jmp	LBB0_8
LBB0_2:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movl	$1, (%r14)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_deliver_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function deliver_event
_deliver_event:                         ; @deliver_event
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x22, [x0, #8]
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_3
; %bb.1:
	add	x20, x22, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
	add	x19, x19, #4
	mov	x0, x19
	bl	_list_empty
	cbz	w0, LBB0_6
; %bb.2:
	add	x1, x22, #12
	mov	x0, x19
	bl	_list_add_tail
	mov	x0, x20
	b	LBB0_5
LBB0_3:
	mov	x20, x1
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.4:
	mov	x21, x0
	ldr	w8, [x19]
	str	w8, [x0, #8]
	ldr	w0, [x0, #4]
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
	add	x19, x22, #8
	mov	x0, x19
	bl	_spin_lock_irqsave
	add	x1, x22, #12
	mov	x0, x21
	bl	_list_add_tail
	mov	x0, x19
LBB0_5:
	bl	_spin_unlock_irqrestore
	add	x0, x22, #4
	bl	_wake_up_interruptible
	b	LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	add	x19, x22, #8
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	w8, #1
	str	w8, [x22]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_deliver_event
.subsections_via_symbols
