	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hotkey_notify
_hotkey_notify:                         ## @hotkey_notify
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	cmpl	$128, %esi
	jne	LBB0_6
## %bb.1:
	movq	_hkey_handle@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rdx
	leaq	L_.str.2(%rip), %rcx
	leaq	-52(%rbp), %rsi
	callq	_acpi_evalf
	testl	%eax, %eax
	je	LBB0_25
## %bb.2:
	leaq	L_.str.1(%rip), %r14
	leaq	L_.str.2(%rip), %r12
	leaq	-52(%rbp), %rbx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_acpi_evalf
	testl	%eax, %eax
	je	LBB0_25
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	-52(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_26
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, -44(%rbp)
	movl	$0, -48(%rbp)
	movl	%esi, %eax
	sarl	$12, %eax
	decl	%eax
	cmpl	$6, %eax
	ja	LBB0_20
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%esi, %edi
	leaq	-44(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_hotkey_notify_hotkey
	testl	%eax, %eax
	jne	LBB0_21
	jmp	LBB0_19
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%esi, %edi
	leaq	-44(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_hotkey_notify_usrevent
	testl	%eax, %eax
	jne	LBB0_21
	jmp	LBB0_19
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%esi, %edi
	leaq	-44(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_hotkey_notify_wakeup
	testl	%eax, %eax
	jne	LBB0_21
	jmp	LBB0_19
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$128, %esi
	je	LBB0_21
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$129, %esi
	jne	LBB0_20
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_hotkey_autosleep_ack@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	leaq	L_.str.4(%rip), %rdi
	callq	_pr_info
	xorl	%eax, %eax
	callq	_hotkey_wakeup_hotunplug_complete_notify_change
	cmpl	$0, -48(%rbp)
	je	LBB0_22
	jmp	LBB0_24
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%esi, %edi
	leaq	-44(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_hotkey_notify_dockevent
	testl	%eax, %eax
	jne	LBB0_21
	jmp	LBB0_19
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%esi, %edi
	leaq	-44(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_hotkey_notify_6xxx
	testl	%eax, %eax
	jne	LBB0_21
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %esi
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.5(%rip), %rdi
	callq	_pr_notice
	movq	_TPACPI_MAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdi
	callq	_pr_notice
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -48(%rbp)
	jne	LBB0_24
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -44(%rbp)
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rax
	movq	(%rax), %rdi
	movl	4(%rdi), %ebx
	callq	_dev_name
	movl	-52(%rbp), %ecx
	movl	%ebx, %edi
	leaq	-52(%rbp), %rbx
	movl	%eax, %esi
	movl	$128, %edx
	callq	_acpi_bus_generate_netlink_event
	jmp	LBB0_24
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_tp_features@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_TP_HKEY_EV_RFKILL_CHANGED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_tpacpi_send_radiosw_update
	movl	$0, -44(%rbp)
	cmpl	$0, -48(%rbp)
	je	LBB0_22
	jmp	LBB0_24
LBB0_6:
	movl	%esi, %ebx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movq	(%r13), %rax
	movq	(%rax), %rdi
	movl	4(%rdi), %r14d
	callq	_dev_name
	movl	%r14d, %edi
	movl	%eax, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_acpi_bus_generate_netlink_event ## TAILCALL
LBB0_25:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
LBB0_26:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_17
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown HKEY notification event %d\n"

	.comm	_hkey_handle,4,2                ## @hkey_handle
L_.str.1:                               ## @.str.1
	.asciz	"MHKP"

L_.str.2:                               ## @.str.2
	.asciz	"d"

L_.str.3:                               ## @.str.3
	.asciz	"failed to retrieve HKEY event\n"

	.comm	_hotkey_autosleep_ack,4,2       ## @hotkey_autosleep_ack
L_.str.4:                               ## @.str.4
	.asciz	"bay ejected\n"

	.comm	_tp_features,4,2                ## @tp_features
	.comm	_TP_HKEY_EV_RFKILL_CHANGED,4,2  ## @TP_HKEY_EV_RFKILL_CHANGED
L_.str.5:                               ## @.str.5
	.asciz	"unhandled HKEY event 0x%04x\n"

L_.str.6:                               ## @.str.6
	.asciz	"please report the conditions when this event happened to %s\n"

	.comm	_TPACPI_MAIL,4,2                ## @TPACPI_MAIL
	.no_dead_strip	_hotkey_notify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hotkey_notify
_hotkey_notify:                         ; @hotkey_notify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	cmp	w1, #128
	b.ne	LBB0_22
; %bb.1:
Lloh0:
	adrp	x26, _hkey_handle@GOTPAGE
Lloh1:
	ldr	x26, [x26, _hkey_handle@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
Lloh4:
	adrp	x3, l_.str.2@PAGE
Lloh5:
	add	x3, x3, l_.str.2@PAGEOFF
	add	x1, sp, #28
	bl	_acpi_evalf
	cbz	w0, LBB0_23
; %bb.2:
	mov	w27, #1
Lloh6:
	adrp	x20, l_.str.5@PAGE
Lloh7:
	add	x20, x20, l_.str.5@PAGEOFF
Lloh8:
	adrp	x28, _TPACPI_MAIL@GOTPAGE
Lloh9:
	ldr	x28, [x28, _TPACPI_MAIL@GOTPAGEOFF]
Lloh10:
	adrp	x21, l_.str.6@PAGE
Lloh11:
	add	x21, x21, l_.str.6@PAGEOFF
Lloh12:
	adrp	x22, l_.str.1@PAGE
Lloh13:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh14:
	adrp	x23, l_.str.2@PAGE
Lloh15:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh16:
	adrp	x24, lJTI0_0@PAGE
Lloh17:
	add	x24, x24, lJTI0_0@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x26]
	add	x1, sp, #28
	mov	x2, x22
	mov	x3, x23
	bl	_acpi_evalf
	cbz	w0, LBB0_23
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_24
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	stp	wzr, w27, [sp, #20]
	asr	w9, w8, #12
	sub	w9, w9, #1
	cmp	w9, #6
	b.hi	LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	adr	x10, LBB0_7
	ldrb	w11, [x24, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #24
	add	x2, sp, #20
	mov	x0, x8
	bl	_hotkey_notify_hotkey
	cbnz	w0, LBB0_18
	b	LBB0_15
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #24
	add	x2, sp, #20
	mov	x0, x8
	bl	_hotkey_notify_usrevent
	cbnz	w0, LBB0_18
	b	LBB0_15
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #24
	add	x2, sp, #20
	mov	x0, x8
	bl	_hotkey_notify_wakeup
	cbnz	w0, LBB0_18
	b	LBB0_15
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #128
	b.eq	LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #129
	b.ne	LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh18:
	adrp	x8, _hotkey_autosleep_ack@GOTPAGE
Lloh19:
	ldr	x8, [x8, _hotkey_autosleep_ack@GOTPAGEOFF]
Lloh20:
	str	w27, [x8]
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_info
	bl	_hotkey_wakeup_hotunplug_complete_notify_change
	ldr	w8, [sp, #20]
	cbz	w8, LBB0_19
	b	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #24
	add	x2, sp, #20
	mov	x0, x8
	bl	_hotkey_notify_dockevent
	cbnz	w0, LBB0_18
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #24
	add	x2, sp, #20
	mov	x0, x8
	bl	_hotkey_notify_6xxx
	cbnz	w0, LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #28]
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh23:
	adrp	x9, _tp_features@GOTPAGE
Lloh24:
	ldr	x9, [x9, _tp_features@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
Lloh26:
	adrp	x10, _TP_HKEY_EV_RFKILL_CHANGED@GOTPAGE
Lloh27:
	ldr	x10, [x10, _TP_HKEY_EV_RFKILL_CHANGED@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	cmp	w9, #0
	ccmp	w8, w10, #0, ne
	b.eq	LBB0_21
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x8
	bl	_pr_notice
	ldr	w1, [x28]
	mov	x0, x21
	bl	_pr_notice
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #20]
	cbnz	w8, LBB0_3
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #24]
	cbz	w8, LBB0_3
; %bb.20:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	ldr	x0, [x8]
	ldr	w25, [x0, #4]
	bl	_dev_name
	mov	x1, x0
	ldr	w3, [sp, #28]
	mov	x0, x25
	mov	w2, #128
	bl	_acpi_bus_generate_netlink_event
	b	LBB0_3
LBB0_21:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_tpacpi_send_radiosw_update
	str	wzr, [sp, #24]
	ldr	w8, [sp, #20]
	cbz	w8, LBB0_19
	b	LBB0_3
LBB0_22:
	mov	x20, x1
	str	x20, [sp]
Lloh29:
	adrp	x0, l_.str@PAGE
Lloh30:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	ldr	x8, [x19]
	ldr	x0, [x8]
	ldr	w19, [x0, #4]
	bl	_dev_name
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_acpi_bus_generate_netlink_event
LBB0_23:
Lloh31:
	adrp	x0, l_.str.3@PAGE
Lloh32:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
LBB0_24:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_13-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_14-LBB0_7)>>2
	.byte	(LBB0_16-LBB0_7)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown HKEY notification event %d\n"

	.comm	_hkey_handle,4,2                ; @hkey_handle
l_.str.1:                               ; @.str.1
	.asciz	"MHKP"

l_.str.2:                               ; @.str.2
	.asciz	"d"

l_.str.3:                               ; @.str.3
	.asciz	"failed to retrieve HKEY event\n"

	.comm	_hotkey_autosleep_ack,4,2       ; @hotkey_autosleep_ack
l_.str.4:                               ; @.str.4
	.asciz	"bay ejected\n"

	.comm	_tp_features,4,2                ; @tp_features
	.comm	_TP_HKEY_EV_RFKILL_CHANGED,4,2  ; @TP_HKEY_EV_RFKILL_CHANGED
l_.str.5:                               ; @.str.5
	.asciz	"unhandled HKEY event 0x%04x\n"

l_.str.6:                               ; @.str.6
	.asciz	"please report the conditions when this event happened to %s\n"

	.comm	_TPACPI_MAIL,4,2                ; @TPACPI_MAIL
	.no_dead_strip	_hotkey_notify
.subsections_via_symbols
