	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_button_array_enable
_intel_button_array_enable:             ## @intel_button_array_enable
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_ACPI_HANDLE
	cmpl	$0, (%rbx)
	je	LBB0_8
## %bb.1:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rcx
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_acpi_evaluate_integer
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
LBB0_7:
	movq	%r12, %rdi
	callq	_dev_warn
	jmp	LBB0_8
LBB0_3:
	movq	_INTEL_HID_DSM_BTNE_FN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.4:
	movq	-40(%rbp), %rdx
LBB0_5:
	movl	%r15d, %edi
	callq	_intel_hid_execute_method
	testl	%eax, %eax
	je	LBB0_6
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BTNC"

L_.str.1:                               ## @.str.1
	.asciz	"failed to get button capability\n"

	.comm	_INTEL_HID_DSM_BTNE_FN,4,2      ## @INTEL_HID_DSM_BTNE_FN
L_.str.2:                               ## @.str.2
	.asciz	"failed to set button capability\n"

	.no_dead_strip	_intel_button_array_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_button_array_enable
_intel_button_array_enable:             ; @intel_button_array_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_dev_get_drvdata
	mov	x22, x0
	mov	x0, x19
	bl	_ACPI_HANDLE
	ldr	w8, [x22]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #8
	mov	x2, #0
	bl	_acpi_evaluate_integer
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_4
; %bb.2:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_3:
	mov	x0, x19
	bl	_dev_warn
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x8, _INTEL_HID_DSM_BTNE_FN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _INTEL_HID_DSM_BTNE_FN@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	x8, [sp, #8]
	cmp	w20, #0
	csinc	x2, x8, xzr, ne
	mov	x0, x21
	bl	_intel_hid_execute_method
	cbz	w0, LBB0_6
LBB0_5:
	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
	add	sp, sp, #64
	ret
LBB0_6:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BTNC"

l_.str.1:                               ; @.str.1
	.asciz	"failed to get button capability\n"

	.comm	_INTEL_HID_DSM_BTNE_FN,4,2      ; @INTEL_HID_DSM_BTNE_FN
l_.str.2:                               ; @.str.2
	.asciz	"failed to set button capability\n"

	.no_dead_strip	_intel_button_array_enable
.subsections_via_symbols
