	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chromeos_laptop_adjust_client
_chromeos_laptop_adjust_client:         ## @chromeos_laptop_adjust_client
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	$0, -48(%rbp)
	callq	_has_acpi_companion
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movq	_cros_laptop@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	jle	LBB0_9
## %bb.2:
	movq	8(%rax), %r12
	movl	4(%r12), %esi
	movq	_ACPI_ID_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	callq	_memcpy
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_acpi_match_device
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	xorl	%r14d, %r14d
	leaq	-48(%rbp), %r15
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%rcx), %r13
	movq	_cros_laptop@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%rax), %rdx
	cmpq	%rdx, %r13
	jge	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-48(%rbp), %edi
	movq	8(%rax), %r12
	movl	12(%r12,%rcx,8), %esi
	movq	_ACPI_ID_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_acpi_match_device
	movq	%r13, %rcx
	testq	%rax, %rax
	je	LBB0_4
LBB0_6:
	movl	(%r12,%r13,8), %esi
	movq	%rbx, %rdi
	callq	_device_add_properties
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_dev_err
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_7:
	movl	$1, %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cros_laptop,8,3                ## @cros_laptop
	.comm	_ACPI_ID_LEN,4,2                ## @ACPI_ID_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to add properties: %d\n"

	.no_dead_strip	_chromeos_laptop_adjust_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chromeos_laptop_adjust_client
_chromeos_laptop_adjust_client:         ; @chromeos_laptop_adjust_client
	.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
	str	xzr, [sp, #8]
	bl	_has_acpi_companion
	cbz	w0, LBB0_9
; %bb.1:
Lloh0:
	adrp	x20, _cros_laptop@GOTPAGE
Lloh1:
	ldr	x20, [x20, _cros_laptop@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.2:
	ldr	x22, [x8, #8]
	ldr	w1, [x22, #4]
Lloh2:
	adrp	x21, _ACPI_ID_LEN@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ACPI_ID_LEN@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w0, #0
	bl	_memcpy
	add	x0, sp, #8
	mov	x1, x19
	bl	_acpi_match_device
	mov	x23, #0
	cbnz	x0, LBB0_6
; %bb.3:
	mov	w24, #12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x23, x23, #1
	ldr	x8, [x20]
	ldrsw	x9, [x8]
	cmp	x23, x9
	b.ge	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [sp, #8]
	ldr	x22, [x8, #8]
	ldr	w1, [x22, x24]
	ldr	w2, [x21]
	bl	_memcpy
	add	x0, sp, #8
	mov	x1, x19
	bl	_acpi_match_device
	add	x24, x24, #8
	cbz	x0, LBB0_4
LBB0_6:
	lsl	x8, x23, #3
	ldr	w1, [x22, x8]
	mov	x0, x19
	bl	_device_add_properties
	cbz	w0, LBB0_10
; %bb.7:
	mov	x2, x0
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_8:
	mov	w0, #0
LBB0_9:
	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_10:
	mov	w0, #1
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_cros_laptop,8,3                ; @cros_laptop
	.comm	_ACPI_ID_LEN,4,2                ; @ACPI_ID_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to add properties: %d\n"

	.no_dead_strip	_chromeos_laptop_adjust_client
.subsections_via_symbols
