	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_add
_acpi_add:                              ## @acpi_add
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_pf_device@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	cmpq	$0, (%r14)
	jne	LBB0_12
## %bb.1:
	movq	_pf_driver@GOTPCREL(%rip), %rdi
	callq	_platform_driver_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.2:
	movq	_PLATFORM_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PLATFORM_DEVID_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_platform_device_register_simple
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	$0, (%r14)
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_11
LBB0_4:
	movq	_dev_attribute_group@GOTPCREL(%rip), %rsi
	callq	_sysfs_create_group
	movq	(%r14), %rdi
	testl	%eax, %eax
	je	LBB0_5
## %bb.10:
	movl	%eax, %ebx
	callq	_platform_device_unregister
LBB0_11:
	movq	_pf_driver@GOTPCREL(%rip), %rdi
	callq	_platform_driver_unregister
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	_kbd_backlight@GOTPCREL(%rip), %rsi
	callq	_led_classdev_register
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_INIT_KBD_LED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_inited@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
LBB0_7:
	movq	(%r14), %rdi
	movq	_tpad_led@GOTPCREL(%rip), %rsi
	callq	_led_classdev_register
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	_INIT_TPAD_LED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_inited@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
LBB0_9:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wmi_input_setup
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_pf_device,8,3                  ## @pf_device
	.comm	_pf_driver,4,2                  ## @pf_driver
	.comm	_PLATFORM_NAME,4,2              ## @PLATFORM_NAME
	.comm	_PLATFORM_DEVID_NONE,4,2        ## @PLATFORM_DEVID_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to register platform device\n"

	.comm	_dev_attribute_group,4,2        ## @dev_attribute_group
	.comm	_kbd_backlight,4,2              ## @kbd_backlight
	.comm	_INIT_KBD_LED,4,2               ## @INIT_KBD_LED
	.comm	_inited,4,2                     ## @inited
	.comm	_tpad_led,4,2                   ## @tpad_led
	.comm	_INIT_TPAD_LED,4,2              ## @INIT_TPAD_LED
	.no_dead_strip	_acpi_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_add
_acpi_add:                              ; @acpi_add
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _pf_device@GOTPAGE
Lloh1:
	ldr	x20, [x20, _pf_device@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w19, #0
	b	LBB0_8
LBB0_2:
Lloh2:
	adrp	x0, _pf_driver@GOTPAGE
Lloh3:
	ldr	x0, [x0, _pf_driver@GOTPAGEOFF]
	bl	_platform_driver_register
	mov	x19, x0
	cbnz	w0, LBB0_8
; %bb.3:
Lloh4:
	adrp	x8, _PLATFORM_NAME@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PLATFORM_NAME@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x8, _PLATFORM_DEVID_NONE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PLATFORM_DEVID_NONE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x2, #0
	mov	w3, #0
	bl	_platform_device_register_simple
	str	x0, [x20]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x20]
	cbz	x8, LBB0_5
; %bb.4:
	bl	_PTR_ERR
	mov	x19, x0
	str	xzr, [x20]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_7
LBB0_5:
Lloh12:
	adrp	x1, _dev_attribute_group@GOTPAGE
Lloh13:
	ldr	x1, [x1, _dev_attribute_group@GOTPAGEOFF]
	bl	_sysfs_create_group
	mov	x19, x0
	ldr	x0, [x20]
	cbz	w19, LBB0_9
; %bb.6:
	bl	_platform_device_unregister
LBB0_7:
Lloh14:
	adrp	x0, _pf_driver@GOTPAGE
Lloh15:
	ldr	x0, [x0, _pf_driver@GOTPAGEOFF]
	bl	_platform_driver_unregister
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh16:
	adrp	x1, _kbd_backlight@GOTPAGE
Lloh17:
	ldr	x1, [x1, _kbd_backlight@GOTPAGEOFF]
	bl	_led_classdev_register
	cbnz	w0, LBB0_11
; %bb.10:
Lloh18:
	adrp	x8, _INIT_KBD_LED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _INIT_KBD_LED@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _inited@GOTPAGE
Lloh22:
	ldr	x9, [x9, _inited@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
LBB0_11:
	ldr	x0, [x20]
Lloh23:
	adrp	x1, _tpad_led@GOTPAGE
Lloh24:
	ldr	x1, [x1, _tpad_led@GOTPAGEOFF]
	bl	_led_classdev_register
	cbnz	w0, LBB0_13
; %bb.12:
Lloh25:
	adrp	x8, _INIT_TPAD_LED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _INIT_TPAD_LED@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _inited@GOTPAGE
Lloh29:
	ldr	x9, [x9, _inited@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
LBB0_13:
	bl	_wmi_input_setup
	mov	w19, #0
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_pf_device,8,3                  ; @pf_device
	.comm	_pf_driver,4,2                  ; @pf_driver
	.comm	_PLATFORM_NAME,4,2              ; @PLATFORM_NAME
	.comm	_PLATFORM_DEVID_NONE,4,2        ; @PLATFORM_DEVID_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to register platform device\n"

	.comm	_dev_attribute_group,4,2        ; @dev_attribute_group
	.comm	_kbd_backlight,4,2              ; @kbd_backlight
	.comm	_INIT_KBD_LED,4,2               ; @INIT_KBD_LED
	.comm	_inited,4,2                     ; @inited
	.comm	_tpad_led,4,2                   ; @tpad_led
	.comm	_INIT_TPAD_LED,4,2              ; @INIT_TPAD_LED
	.no_dead_strip	_acpi_add
.subsections_via_symbols
