	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function misc_event_handler
_misc_event_handler:                    ## @misc_event_handler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_cm_suspended@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	movl	$1, %esi
	callq	_device_set_wakeup_capable
LBB0_2:
	movq	%rbx, %rdi
	callq	_is_polling_required
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_setup_polling@GOTPCREL(%rip), %rdi
	callq	_schedule_work
LBB0_5:
	movq	_default_event_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r14d, %ecx
	movl	(%rax,%rcx,4), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_uevent_notify                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cm_suspended,8,3               ## @cm_suspended
	.comm	_setup_polling,4,2              ## @setup_polling
	.comm	_default_event_names,8,3        ## @default_event_names
	.no_dead_strip	_misc_event_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function misc_event_handler
_misc_event_handler:                    ; @misc_event_handler
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _cm_suspended@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cm_suspended@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
	mov	w1, #1
	bl	_device_set_wakeup_capable
LBB0_2:
	mov	x0, x19
	bl	_is_polling_required
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh3:
	adrp	x0, _setup_polling@GOTPAGE
Lloh4:
	ldr	x0, [x0, _setup_polling@GOTPAGEOFF]
	bl	_schedule_work
LBB0_5:
Lloh5:
	adrp	x8, _default_event_names@GOTPAGE
Lloh6:
	ldr	x8, [x8, _default_event_names@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	w1, [x8, w20, uxtw #2]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_uevent_notify
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_cm_suspended,8,3               ; @cm_suspended
	.comm	_setup_polling,4,2              ; @setup_polling
	.comm	_default_event_names,8,3        ; @default_event_names
	.no_dead_strip	_misc_event_handler
.subsections_via_symbols
