	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function soc_button_get_button_info
_soc_button_get_button_info:            ## @soc_button_get_button_info
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_ACPI_ALLOCATE_BUFFER@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -72(%rbp)
	movl	$0, -64(%rbp)
	callq	_ACPI_HANDLE
	movq	_ACPI_TYPE_PACKAGE@GOTPCREL(%rip), %r12
	movq	(%r12), %r8
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	leaq	-72(%rbp), %rcx
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_acpi_evaluate_object_typed
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ERR_PTR
	movq	%rax, %rbx
	jmp	LBB0_24
LBB0_2:
	movq	-72(%rbp), %r13
	leaq	L_.str.2(%rip), %rbx
	cmpl	$2, (%r13)
	jl	LBB0_7
## %bb.3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %ebx
	movl	$16, %r14d
	movq	_ACPI_TYPE_BUFFER@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	-16(%rax,%r14), %rdi
	cmpq	(%r15), %rdi
	jne	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$16, %edi
	jne	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rax,%r14), %rax
	cmpq	(%r12), %rax
	jne	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	shrq	$32, %rdi
	movq	_btns_desc_uuid@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$16, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$2, %rbx
	addq	$32, %r14
	cmpl	(%r13), %ebx
	jl	LBB0_5
LBB0_6:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rbx
LBB0_7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %r15
LBB0_8:
	xorl	%edi, %edi
	subl	(%r15), %edi
	callq	_ERR_PTR
	movq	%rax, %rbx
LBB0_23:
	movq	-72(%rbp), %rdi
	callq	_kfree
LBB0_24:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	%ebx, %ecx
	movq	8(%r13), %r13
	shlq	$4, %rcx
	movq	8(%r13,%rcx), %r15
	movq	(%r15), %rax
	leaq	L_.str.3(%rip), %rbx
	cmpq	(%r12), %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_7
## %bb.13:
	cmpl	$5, %eax
	jne	LBB0_7
## %bb.14:
	movq	%rcx, %r12
	movq	8(%r15), %rdi
	callq	_soc_button_get_acpi_object_int
	testl	%eax, %eax
	jne	LBB0_7
## %bb.15:
	movq	8(%r15), %rdi
	addq	$32, %rdi
	callq	_soc_button_get_acpi_object_int
	testl	%eax, %eax
	jne	LBB0_7
## %bb.16:
	movq	8(%r15), %rdi
	addq	$16, %rdi
	callq	_soc_button_get_acpi_object_int
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.17:
	movl	(%r13,%r12), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_devm_kcalloc
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:
	movq	%rax, %rbx
	leaq	(%r12,%r13), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	cmpl	$2, (%rax)
	jl	LBB0_23
## %bb.20:
	leaq	(%r12,%r13), %rax
	addq	$8, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$1, %r13d
	movl	$16, %r12d
	movq	_ENODEV@GOTPCREL(%rip), %r15
	movq	%rbx, %r14
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	addq	%r12, %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	%r14, %rcx
	callq	_soc_button_parse_btn_desc
	testq	%rax, %rax
	jne	LBB0_8
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	incq	%r13
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	addq	$16, %r12
	addq	$4, %r14
	cmpq	%rax, %r13
	jl	LBB0_21
	jmp	LBB0_23
LBB0_18:
	movq	_ENOMEM@GOTPCREL(%rip), %r15
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ## @ACPI_ALLOCATE_BUFFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_DSD"

	.comm	_ACPI_TYPE_PACKAGE,8,3          ## @ACPI_TYPE_PACKAGE
L_.str.1:                               ## @.str.1
	.asciz	"ACPI _DSD object not found\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ACPI_TYPE_BUFFER,8,3           ## @ACPI_TYPE_BUFFER
	.comm	_btns_desc_uuid,4,2             ## @btns_desc_uuid
L_.str.2:                               ## @.str.2
	.asciz	"ACPI Button Descriptors not found\n"

L_.str.3:                               ## @.str.3
	.asciz	"Invalid Button Collection Descriptor\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_soc_button_get_button_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function soc_button_get_button_info
_soc_button_get_button_info:            ; @soc_button_get_button_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, _ACPI_ALLOCATE_BUFFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_ALLOCATE_BUFFER@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	str	x8, [sp]
	str	wzr, [sp, #8]
	bl	_ACPI_HANDLE
Lloh3:
	adrp	x21, _ACPI_TYPE_PACKAGE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ACPI_TYPE_PACKAGE@GOTPAGEOFF]
	ldr	x4, [x21]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, sp
	mov	x2, #0
	bl	_acpi_evaluate_object_typed
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_2
; %bb.1:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	mov	x20, x0
	b	LBB0_12
LBB0_2:
	ldr	x23, [sp]
	ldr	w8, [x23]
	cmp	w8, #2
	b.lt	LBB0_8
; %bb.3:
	mov	x24, #0
	mov	w22, #1
Lloh12:
	adrp	x25, _ACPI_TYPE_BUFFER@GOTPAGE
Lloh13:
	ldr	x25, [x25, _ACPI_TYPE_BUFFER@GOTPAGEOFF]
Lloh14:
	adrp	x26, _btns_desc_uuid@GOTPAGE
Lloh15:
	ldr	x26, [x26, _btns_desc_uuid@GOTPAGEOFF]
Lloh16:
	adrp	x20, l_.str.2@PAGE
Lloh17:
	add	x20, x20, l_.str.2@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23, #8]
	ldr	x8, [x9, x24]
	ldr	x10, [x25]
	cmp	x8, x10
	ccmp	w8, #16, #0, eq
	b.ne	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, x24
	ldr	x9, [x9, #16]
	ldr	x10, [x21]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	lsr	x0, x8, #32
	ldr	w1, [x26]
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w2, #16
	bl	_memcmp
	cbz	x0, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #2
	ldr	w8, [x23]
	add	x24, x24, #32
	cmp	w22, w8
	b.lt	LBB0_4
	b	LBB0_9
LBB0_8:
Lloh18:
	adrp	x20, l_.str.2@PAGE
Lloh19:
	add	x20, x20, l_.str.2@PAGEOFF
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	bl	_dev_err
Lloh20:
	adrp	x25, _ENODEV@GOTPAGE
Lloh21:
	ldr	x25, [x25, _ENODEV@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x25]
	neg	w0, w8
	bl	_ERR_PTR
	mov	x20, x0
LBB0_11:
	ldr	x0, [sp]
	bl	_kfree
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
	ldr	x20, [x23, #8]
	add	x23, x20, w22, uxtw #4
	ldr	x24, [x23, #8]!
	ldr	x8, [x24]
	ldr	x9, [x21]
	cmp	x8, x9
	ccmp	w8, #5, #0, eq
	b.ne	LBB0_16
; %bb.14:
	ldr	x0, [x24, #8]
	bl	_soc_button_get_acpi_object_int
	cbnz	w0, LBB0_16
; %bb.15:
	ldr	x8, [x24, #8]
	add	x0, x8, #32
	bl	_soc_button_get_acpi_object_int
	cbz	w0, LBB0_17
LBB0_16:
Lloh22:
	adrp	x20, l_.str.3@PAGE
Lloh23:
	add	x20, x20, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_17:
	ldr	x8, [x24, #8]
	add	x0, x8, #16
	bl	_soc_button_get_acpi_object_int
	cmn	w0, #1
	b.eq	LBB0_16
; %bb.18:
	mov	x21, x0
	and	x8, x22, #0xffffffff
	add	x24, x20, x8, lsl #4
	ldr	w1, [x24]
Lloh24:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #4
	bl	_devm_kcalloc
	cbz	x0, LBB0_23
; %bb.19:
	mov	x20, x0
	ldr	w8, [x24]
	cmp	w8, #2
	b.lt	LBB0_11
; %bb.20:
	mov	w26, #1
	mov	w27, #16
Lloh27:
	adrp	x25, _ENODEV@GOTPAGE
Lloh28:
	ldr	x25, [x25, _ENODEV@GOTPAGEOFF]
	mov	x22, x20
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x1, x8, x27
	mov	x0, x19
	mov	x2, x21
	mov	x3, x22
	bl	_soc_button_parse_btn_desc
	cbnz	x0, LBB0_10
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x24]
	add	x27, x27, #16
	add	x22, x22, #4
	cmp	x26, x8
	b.lt	LBB0_21
	b	LBB0_11
LBB0_23:
Lloh29:
	adrp	x25, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x25, [x25, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ; @ACPI_ALLOCATE_BUFFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_DSD"

	.comm	_ACPI_TYPE_PACKAGE,8,3          ; @ACPI_TYPE_PACKAGE
l_.str.1:                               ; @.str.1
	.asciz	"ACPI _DSD object not found\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ACPI_TYPE_BUFFER,8,3           ; @ACPI_TYPE_BUFFER
	.comm	_btns_desc_uuid,4,2             ; @btns_desc_uuid
l_.str.2:                               ; @.str.2
	.asciz	"ACPI Button Descriptors not found\n"

l_.str.3:                               ; @.str.3
	.asciz	"Invalid Button Collection Descriptor\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_soc_button_get_button_info
.subsections_via_symbols
