	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function soc_button_parse_btn_desc
_soc_button_parse_btn_desc:             ## @soc_button_parse_btn_desc
	.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	%rcx, %r14
	movq	%rdi, %r12
	movq	(%rsi), %rax
	movq	_ACPI_TYPE_PACKAGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	cmpl	$5, %eax
	jne	LBB0_4
## %bb.2:
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	8(%rsi), %rdi
	callq	_soc_button_get_acpi_object_int
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.3:
	movq	8(%rbx), %rdi
	addq	$8, %rdi
	callq	_soc_button_get_acpi_object_int
	cmpl	%r15d, %eax
	jne	LBB0_4
## %bb.5:
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	movq	8(%rbx), %rdi
	addq	$4, %rdi
	callq	_soc_button_get_acpi_object_int
	movl	%eax, (%r14)
	movq	8(%rbx), %rdi
	addq	$12, %rdi
	callq	_soc_button_get_acpi_object_int
	movl	%eax, %r15d
	movq	8(%rbx), %rdi
	addq	$16, %rdi
	callq	_soc_button_get_acpi_object_int
	cmpl	$1, %r15d
	jne	LBB0_9
## %bb.6:
	cmpl	$129, %eax
	jne	LBB0_9
## %bb.7:
	leaq	L_.str.1(%rip), %rax
	movq	%rax, 8(%r14)
	movq	_KEY_POWER@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movl	$1, 16(%r14)
	jmp	LBB0_24
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_25:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	cmpl	$1, %r15d
	jne	LBB0_12
## %bb.10:
	cmpl	$202, %eax
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rax
	movq	%rax, 8(%r14)
	movq	_EV_SW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	movq	_SW_ROTATE_LOCK@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	jmp	LBB0_24
LBB0_12:
	cmpl	$7, %r15d
	jne	LBB0_15
## %bb.13:
	cmpl	$227, %eax
	jne	LBB0_15
## %bb.14:
	leaq	L_.str.3(%rip), %rax
	movq	%rax, 8(%r14)
	movq	_KEY_LEFTMETA@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_15:
	cmpl	$12, %r15d
	jne	LBB0_19
## %bb.16:
	cmpl	$233, %eax
	jne	LBB0_19
## %bb.17:
	leaq	L_.str.4(%rip), %rax
	movq	%rax, 8(%r14)
	movq	_KEY_VOLUMEUP@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_19:
	cmpl	$12, %r15d
	jne	LBB0_22
## %bb.20:
	cmpl	$234, %eax
	jne	LBB0_22
## %bb.21:
	leaq	L_.str.5(%rip), %rax
	movq	%rax, 8(%r14)
	movq	_KEY_VOLUMEDOWN@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movl	$1, 20(%r14)
LBB0_24:
	xorl	%eax, %eax
	jmp	LBB0_25
LBB0_22:
	movl	(%r14), %edx
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %ecx
	movl	%eax, %r8d
	callq	_dev_warn
	leaq	L_.str.7(%rip), %rax
	movq	%rax, 8(%r14)
	movq	_KEY_RESERVED@GOTPCREL(%rip), %rax
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_TYPE_PACKAGE,8,3          ## @ACPI_TYPE_PACKAGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid ACPI Button Descriptor\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EV_KEY,4,2                     ## @EV_KEY
L_.str.1:                               ## @.str.1
	.asciz	"power"

	.comm	_KEY_POWER,4,2                  ## @KEY_POWER
L_.str.2:                               ## @.str.2
	.asciz	"rotation lock switch"

	.comm	_EV_SW,4,2                      ## @EV_SW
	.comm	_SW_ROTATE_LOCK,4,2             ## @SW_ROTATE_LOCK
L_.str.3:                               ## @.str.3
	.asciz	"home"

	.comm	_KEY_LEFTMETA,4,2               ## @KEY_LEFTMETA
L_.str.4:                               ## @.str.4
	.asciz	"volume_up"

	.comm	_KEY_VOLUMEUP,4,2               ## @KEY_VOLUMEUP
L_.str.5:                               ## @.str.5
	.asciz	"volume_down"

	.comm	_KEY_VOLUMEDOWN,4,2             ## @KEY_VOLUMEDOWN
L_.str.6:                               ## @.str.6
	.asciz	"Unknown button index %d upage %02x usage %02x, ignoring\n"

L_.str.7:                               ## @.str.7
	.asciz	"unknown"

	.comm	_KEY_RESERVED,4,2               ## @KEY_RESERVED
	.no_dead_strip	_soc_button_parse_btn_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function soc_button_parse_btn_desc
_soc_button_parse_btn_desc:             ; @soc_button_parse_btn_desc
	.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	x20, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _ACPI_TYPE_PACKAGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ACPI_TYPE_PACKAGE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	w8, #5, #0, eq
	b.ne	LBB0_7
; %bb.1:
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	ldr	x0, [x1, #8]
	bl	_soc_button_get_acpi_object_int
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.2:
	ldr	x8, [x22, #8]
	add	x0, x8, #8
	bl	_soc_button_get_acpi_object_int
	cmp	w0, w21
	b.ne	LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #28]
	ldr	x8, [x22, #8]
	add	x0, x8, #4
	bl	_soc_button_get_acpi_object_int
	str	w0, [x19]
	ldr	x8, [x22, #8]
	add	x0, x8, #12
	bl	_soc_button_get_acpi_object_int
	mov	x21, x0
	ldr	x8, [x22, #8]
	add	x0, x8, #16
	bl	_soc_button_get_acpi_object_int
	mov	x4, x0
	cmp	w21, #1
	b.ne	LBB0_9
; %bb.4:
	cmp	w4, #129
	b.ne	LBB0_9
; %bb.5:
	mov	w0, #0
Lloh6:
	adrp	x8, l_.str.1@PAGE
Lloh7:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x19, #8]
Lloh8:
	adrp	x8, _KEY_POWER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KEY_POWER@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	mov	w8, #1
	str	w8, [x19, #16]
	b	LBB0_8
LBB0_7:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
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:
	cmp	w21, #1
	b.ne	LBB0_12
; %bb.10:
	cmp	w4, #202
	b.ne	LBB0_12
; %bb.11:
	mov	w0, #0
Lloh15:
	adrp	x8, l_.str.2@PAGE
Lloh16:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [x19, #8]
Lloh17:
	adrp	x8, _EV_SW@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EV_SW@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _SW_ROTATE_LOCK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SW_ROTATE_LOCK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
	b	LBB0_8
LBB0_12:
	cmp	w21, #7
	b.ne	LBB0_15
; %bb.13:
	cmp	w4, #227
	b.ne	LBB0_15
; %bb.14:
	mov	w0, #0
Lloh23:
	adrp	x8, l_.str.3@PAGE
Lloh24:
	add	x8, x8, l_.str.3@PAGEOFF
	str	x8, [x19, #8]
Lloh25:
	adrp	x8, _KEY_LEFTMETA@GOTPAGE
Lloh26:
	ldr	x8, [x8, _KEY_LEFTMETA@GOTPAGEOFF]
	b	LBB0_6
LBB0_15:
	cmp	w21, #12
	b.ne	LBB0_18
; %bb.16:
	cmp	w4, #233
	b.ne	LBB0_18
; %bb.17:
	mov	w0, #0
Lloh27:
	adrp	x8, l_.str.4@PAGE
Lloh28:
	add	x8, x8, l_.str.4@PAGEOFF
	str	x8, [x19, #8]
Lloh29:
	adrp	x8, _KEY_VOLUMEUP@GOTPAGE
Lloh30:
	ldr	x8, [x8, _KEY_VOLUMEUP@GOTPAGEOFF]
	b	LBB0_21
LBB0_18:
	cmp	w21, #12
	b.ne	LBB0_22
; %bb.19:
	cmp	w4, #234
	b.ne	LBB0_22
; %bb.20:
	mov	w0, #0
Lloh31:
	adrp	x8, l_.str.5@PAGE
Lloh32:
	add	x8, x8, l_.str.5@PAGEOFF
	str	x8, [x19, #8]
Lloh33:
	adrp	x8, _KEY_VOLUMEDOWN@GOTPAGE
Lloh34:
	ldr	x8, [x8, _KEY_VOLUMEDOWN@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	mov	w9, #1
	stp	w9, w8, [x19, #20]
	b	LBB0_8
LBB0_22:
	ldr	w2, [x19]
Lloh35:
	adrp	x1, l_.str.6@PAGE
Lloh36:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	mov	x3, x21
	bl	_dev_warn
	mov	w0, #0
Lloh37:
	adrp	x8, l_.str.7@PAGE
Lloh38:
	add	x8, x8, l_.str.7@PAGEOFF
	str	x8, [x19, #8]
Lloh39:
	adrp	x8, _KEY_RESERVED@GOTPAGE
Lloh40:
	ldr	x8, [x8, _KEY_RESERVED@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_TYPE_PACKAGE,8,3          ; @ACPI_TYPE_PACKAGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid ACPI Button Descriptor\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EV_KEY,4,2                     ; @EV_KEY
l_.str.1:                               ; @.str.1
	.asciz	"power"

	.comm	_KEY_POWER,4,2                  ; @KEY_POWER
l_.str.2:                               ; @.str.2
	.asciz	"rotation lock switch"

	.comm	_EV_SW,4,2                      ; @EV_SW
	.comm	_SW_ROTATE_LOCK,4,2             ; @SW_ROTATE_LOCK
l_.str.3:                               ; @.str.3
	.asciz	"home"

	.comm	_KEY_LEFTMETA,4,2               ; @KEY_LEFTMETA
l_.str.4:                               ; @.str.4
	.asciz	"volume_up"

	.comm	_KEY_VOLUMEUP,4,2               ; @KEY_VOLUMEUP
l_.str.5:                               ; @.str.5
	.asciz	"volume_down"

	.comm	_KEY_VOLUMEDOWN,4,2             ; @KEY_VOLUMEDOWN
l_.str.6:                               ; @.str.6
	.asciz	"Unknown button index %d upage %02x usage %02x, ignoring\n"

l_.str.7:                               ; @.str.7
	.asciz	"unknown"

	.comm	_KEY_RESERVED,4,2               ; @KEY_RESERVED
	.no_dead_strip	_soc_button_parse_btn_desc
.subsections_via_symbols
