	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asus_acpi_add
_asus_acpi_add:                         ## @asus_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	%rdi, %rbx
	movq	_ASUS_LAPTOP_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_notice
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	8(%rbx), %eax
	movl	%eax, 16(%r14)
	movq	%rbx, %rdi
	callq	_acpi_device_name
	movq	_ASUS_LAPTOP_DEVICE_NAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_strcpy
	movq	%rbx, %rdi
	callq	_acpi_device_class
	movq	_ASUS_LAPTOP_CLASS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_strcpy
	movq	%r14, (%rbx)
	movq	%rbx, 8(%r14)
	xorl	%eax, %eax
	callq	_asus_dmi_check
	movq	%r14, %rdi
	callq	_asus_acpi_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_21
## %bb.3:
	movq	%r14, %rdi
	callq	_asus_check_pega_lucid
	movl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_asus_platform_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_21
## %bb.4:
	xorl	%eax, %eax
	callq	_acpi_video_get_backlight_type
	movq	_acpi_backlight_vendor@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_asus_backlight_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
LBB0_6:
	movq	%r14, %rdi
	callq	_asus_input_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.7:
	movq	%r14, %rdi
	callq	_asus_led_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.8:
	movq	%r14, %rdi
	callq	_asus_rfkill_init
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_17
LBB0_10:
	movq	%r14, %rdi
	callq	_pega_accel_init
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_16
LBB0_12:
	movq	%r14, %rdi
	callq	_pega_rfkill_init
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_15
LBB0_14:
	movq	_asus_device_present@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_15:
	movq	%r14, %rdi
	callq	_pega_accel_exit
LBB0_16:
	movq	%r14, %rdi
	callq	_asus_rfkill_exit
LBB0_17:
	movq	%r14, %rdi
	callq	_asus_led_exit
LBB0_18:
	movq	%r14, %rdi
	callq	_asus_input_exit
LBB0_19:
	movq	%r14, %rdi
	callq	_asus_backlight_exit
LBB0_20:
	movq	%r14, %rdi
	callq	_asus_platform_exit
LBB0_21:
	movq	%r14, %rdi
	callq	_kfree
LBB0_22:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Asus Laptop Support version %s\n"

	.comm	_ASUS_LAPTOP_VERSION,4,2        ## @ASUS_LAPTOP_VERSION
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ASUS_LAPTOP_DEVICE_NAME,4,2    ## @ASUS_LAPTOP_DEVICE_NAME
	.comm	_ASUS_LAPTOP_CLASS,4,2          ## @ASUS_LAPTOP_CLASS
	.comm	_acpi_backlight_vendor,8,3      ## @acpi_backlight_vendor
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_asus_device_present,4,2        ## @asus_device_present
	.no_dead_strip	_asus_acpi_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asus_acpi_add
_asus_acpi_add:                         ; @asus_acpi_add
	.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
Lloh0:
	adrp	x8, _ASUS_LAPTOP_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASUS_LAPTOP_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_notice
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_14
; %bb.1:
	mov	x19, x0
	ldr	w8, [x20, #8]
	str	w8, [x0, #16]
	mov	x0, x20
	bl	_acpi_device_name
Lloh8:
	adrp	x8, _ASUS_LAPTOP_DEVICE_NAME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ASUS_LAPTOP_DEVICE_NAME@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_strcpy
	mov	x0, x20
	bl	_acpi_device_class
Lloh11:
	adrp	x8, _ASUS_LAPTOP_CLASS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ASUS_LAPTOP_CLASS@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_strcpy
	str	x19, [x20]
	str	x20, [x19, #8]
	bl	_asus_dmi_check
	mov	x0, x19
	bl	_asus_acpi_init
	mov	x20, x0
	cbnz	w0, LBB0_21
; %bb.2:
	mov	x0, x19
	bl	_asus_check_pega_lucid
	str	w0, [x19]
	mov	x0, x19
	bl	_asus_platform_init
	mov	x20, x0
	cbnz	w0, LBB0_21
; %bb.3:
	bl	_acpi_video_get_backlight_type
Lloh14:
	adrp	x8, _acpi_backlight_vendor@GOTPAGE
Lloh15:
	ldr	x8, [x8, _acpi_backlight_vendor@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_asus_backlight_init
	mov	x20, x0
	cbnz	w0, LBB0_20
LBB0_5:
	mov	x0, x19
	bl	_asus_input_init
	mov	x20, x0
	cbnz	w0, LBB0_19
; %bb.6:
	mov	x0, x19
	bl	_asus_led_init
	mov	x20, x0
	cbnz	w0, LBB0_18
; %bb.7:
	mov	x0, x19
	bl	_asus_rfkill_init
Lloh17:
	adrp	x21, _ENODEV@GOTPAGE
Lloh18:
	ldr	x21, [x21, _ENODEV@GOTPAGEOFF]
	cbz	w0, LBB0_9
; %bb.8:
	mov	x20, x0
	ldr	w8, [x21]
	cmn	w0, w8
	b.ne	LBB0_17
LBB0_9:
	mov	x0, x19
	bl	_pega_accel_init
	cbz	w0, LBB0_11
; %bb.10:
	mov	x20, x0
	ldr	w8, [x21]
	cmn	w0, w8
	b.ne	LBB0_16
LBB0_11:
	mov	x0, x19
	bl	_pega_rfkill_init
	cbz	w0, LBB0_13
; %bb.12:
	mov	x20, x0
	ldr	w8, [x21]
	cmn	w0, w8
	b.ne	LBB0_15
LBB0_13:
	mov	w20, #0
Lloh19:
	adrp	x8, _asus_device_present@GOTPAGE
Lloh20:
	ldr	x8, [x8, _asus_device_present@GOTPAGEOFF]
	mov	w9, #1
Lloh21:
	str	w9, [x8]
	b	LBB0_22
LBB0_14:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_22
LBB0_15:
	mov	x0, x19
	bl	_pega_accel_exit
LBB0_16:
	mov	x0, x19
	bl	_asus_rfkill_exit
LBB0_17:
	mov	x0, x19
	bl	_asus_led_exit
LBB0_18:
	mov	x0, x19
	bl	_asus_input_exit
LBB0_19:
	mov	x0, x19
	bl	_asus_backlight_exit
LBB0_20:
	mov	x0, x19
	bl	_asus_platform_exit
LBB0_21:
	mov	x0, x19
	bl	_kfree
LBB0_22:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Asus Laptop Support version %s\n"

	.comm	_ASUS_LAPTOP_VERSION,4,2        ; @ASUS_LAPTOP_VERSION
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ASUS_LAPTOP_DEVICE_NAME,4,2    ; @ASUS_LAPTOP_DEVICE_NAME
	.comm	_ASUS_LAPTOP_CLASS,4,2          ; @ASUS_LAPTOP_CLASS
	.comm	_acpi_backlight_vendor,8,3      ; @acpi_backlight_vendor
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_asus_device_present,4,2        ; @asus_device_present
	.no_dead_strip	_asus_acpi_add
.subsections_via_symbols
