	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_hid_probe
_intel_hid_probe:                       ## @intel_hid_probe
	.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, %r14
	callq	_ACPI_HANDLE
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_intel_hid_init_dsm
	movq	_INTEL_HID_DSM_HDMM_FN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movl	%r12d, %edi
	callq	_intel_hid_evaluate_method
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	cmpq	$0, -48(%rbp)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_dev_set_drvdata
	movq	%r14, %rdi
	callq	_intel_hid_input_setup
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_21
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_10:
	movq	%r14, %rdi
	callq	_button_array_present
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	%r14, %rdi
	callq	_intel_button_array_input_setup
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.4(%rip), %rdi
	callq	_pr_err
LBB0_13:
	movq	_ACPI_DEVICE_NOTIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_notify_handler@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	%r12d, %edi
	movq	%r14, %rcx
	callq	_acpi_install_notify_handler
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_15:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_intel_hid_set_enable
	testl	%eax, %eax
	je	LBB0_16
## %bb.20:
	movl	%eax, %ebx
	movq	_ACPI_DEVICE_NOTIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movl	%r12d, %edi
	callq	_acpi_remove_notify_handler
	jmp	LBB0_21
LBB0_16:
	cmpq	$0, (%r15)
	je	LBB0_19
## %bb.17:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_intel_button_array_enable
	movq	_INTEL_HID_DSM_BTNL_FN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movl	%r12d, %edi
	callq	_intel_hid_evaluate_method
	testl	%eax, %eax
	jne	LBB0_19
## %bb.18:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
LBB0_19:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_device_init_wakeup
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_acpi_ec_mark_gpe_for_wake
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_HID_DSM_HDMM_FN,4,2      ## @INTEL_HID_DSM_HDMM_FN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read mode\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"platform is not in simple mode\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"Failed to setup Intel HID hotkeys\n"

L_.str.3:                               ## @.str.3
	.asciz	"platform supports 5 button array\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to setup Intel 5 button array hotkeys\n"

	.comm	_ACPI_DEVICE_NOTIFY,4,2         ## @ACPI_DEVICE_NOTIFY
	.comm	_notify_handler,4,2             ## @notify_handler
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_INTEL_HID_DSM_BTNL_FN,4,2      ## @INTEL_HID_DSM_BTNL_FN
L_.str.5:                               ## @.str.5
	.asciz	"failed to enable HID power button\n"

	.no_dead_strip	_intel_hid_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_hid_probe
_intel_hid_probe:                       ; @intel_hid_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	bl	_ACPI_HANDLE
	mov	x20, x0
	bl	_intel_hid_init_dsm
Lloh0:
	adrp	x8, _INTEL_HID_DSM_HDMM_FN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTEL_HID_DSM_HDMM_FN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x20
	bl	_intel_hid_evaluate_method
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_7
; %bb.2:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_4:
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #8
	bl	_devm_kzalloc
	cbz	x0, LBB0_10
; %bb.8:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_dev_set_drvdata
	mov	x0, x19
	bl	_intel_hid_input_setup
	cbz	w0, LBB0_11
; %bb.9:
	mov	x22, x0
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	b	LBB0_6
LBB0_10:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
LBB0_11:
	mov	x0, x19
	bl	_button_array_present
	cbz	x0, LBB0_14
; %bb.12:
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	x0, x19
	bl	_intel_button_array_input_setup
	cbz	w0, LBB0_14
; %bb.13:
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_err
LBB0_14:
Lloh20:
	adrp	x23, _ACPI_DEVICE_NOTIFY@GOTPAGE
Lloh21:
	ldr	x23, [x23, _ACPI_DEVICE_NOTIFY@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh22:
	adrp	x24, _notify_handler@GOTPAGE
Lloh23:
	ldr	x24, [x24, _notify_handler@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x20
	mov	x3, x19
	bl	_acpi_install_notify_handler
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_16
; %bb.15:
Lloh24:
	adrp	x8, _EBUSY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_5
LBB0_16:
	mov	x0, x19
	mov	w1, #1
	bl	_intel_hid_set_enable
	cbz	w0, LBB0_18
; %bb.17:
	mov	x22, x0
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	x0, x20
	bl	_acpi_remove_notify_handler
	b	LBB0_6
LBB0_18:
	ldr	x8, [x21]
	cbz	x8, LBB0_21
; %bb.19:
	mov	x0, x19
	mov	w1, #1
	bl	_intel_button_array_enable
Lloh26:
	adrp	x8, _INTEL_HID_DSM_BTNL_FN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _INTEL_HID_DSM_BTNL_FN@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x20
	bl	_intel_hid_evaluate_method
	cbnz	w0, LBB0_21
; %bb.20:
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_21:
	mov	x0, x19
	mov	w1, #1
	bl	_device_init_wakeup
	bl	_acpi_ec_mark_gpe_for_wake
	mov	w22, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_HID_DSM_HDMM_FN,4,2      ; @INTEL_HID_DSM_HDMM_FN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read mode\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"platform is not in simple mode\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"Failed to setup Intel HID hotkeys\n"

l_.str.3:                               ; @.str.3
	.asciz	"platform supports 5 button array\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to setup Intel 5 button array hotkeys\n"

	.comm	_ACPI_DEVICE_NOTIFY,4,2         ; @ACPI_DEVICE_NOTIFY
	.comm	_notify_handler,4,2             ; @notify_handler
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_INTEL_HID_DSM_BTNL_FN,4,2      ; @INTEL_HID_DSM_BTNL_FN
l_.str.5:                               ; @.str.5
	.asciz	"failed to enable HID power button\n"

	.no_dead_strip	_intel_hid_probe
.subsections_via_symbols
