	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asus_laptop_get_info
_asus_laptop_get_info:                  ## @asus_laptop_get_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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_ACPI_ALLOCATE_BUFFER@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	$0, -48(%rbp)
	movl	$0, -40(%rbp)
	movq	_ACPI_SIG_DSDT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%r15), %rdx
	movl	$1, %esi
	callq	_acpi_get_table
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_warn
LBB0_2:
	movl	4(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	leaq	-56(%rbp), %rcx
	xorl	%edx, %edx
	callq	_write_acpi_int_ret
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_22:
	subl	(%rax), %ebx
	jmp	LBB0_23
LBB0_4:
	movl	4(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	leaq	-32(%rbp), %rcx
	xorl	%edx, %edx
	callq	_acpi_evaluate_integer
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.4(%rip), %rdi
	callq	_pr_warn
	jmp	LBB0_8
LBB0_6:
	movq	-32(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:
	leaq	L_.str.5(%rip), %rdi
	callq	_pr_notice
LBB0_8:
	movl	4(%r15), %edi
	movq	_wapf@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str.6(%rip), %rsi
	callq	_write_acpi_int
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	(%rbx), %esi
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
LBB0_10:
	movq	-56(%rbp), %r14
	testq	%r14, %r14
	je	LBB0_13
## %bb.11:
	movl	(%r14), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_14
## %bb.12:
	movq	(%r14), %rbx
	jmp	LBB0_15
LBB0_13:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_14:
	leaq	L_.str.8(%rip), %rbx
LBB0_15:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kstrdup
	movl	%eax, 8(%r15)
	testl	%eax, %eax
	je	LBB0_21
## %bb.16:
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.17:
	leaq	L_.str.9(%rip), %rdi
	movq	%rbx, %rsi
	callq	_pr_notice
LBB0_18:
	movl	4(%r15), %edi
	movq	_METHOD_WL_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_acpi_check_handle
	testl	%eax, %eax
	jne	LBB0_20
## %bb.19:
	movl	$1, (%r15)
LBB0_20:
	movq	%r14, %rdi
	callq	_kfree
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_23:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	-56(%rbp), %rdi
	callq	_kfree
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ## @ACPI_ALLOCATE_BUFFER
	.comm	_ACPI_SIG_DSDT,4,2              ## @ACPI_SIG_DSDT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't get the DSDT table header\n"

L_.str.1:                               ## @.str.1
	.asciz	"INIT"

L_.str.2:                               ## @.str.2
	.asciz	"Hotkey initialization failed\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.3:                               ## @.str.3
	.asciz	"BSTS"

L_.str.4:                               ## @.str.4
	.asciz	"Error calling BSTS\n"

L_.str.5:                               ## @.str.5
	.asciz	"BSTS called, 0x%02x returned\n"

L_.str.6:                               ## @.str.6
	.asciz	"CWAP"

	.comm	_wapf,4,2                       ## @wapf
L_.str.7:                               ## @.str.7
	.asciz	"Error calling CWAP(%d)\n"

L_.str.8:                               ## @.str.8
	.space	1

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.9:                               ## @.str.9
	.asciz	"  %s model detected\n"

	.comm	_METHOD_WL_STATUS,4,2           ## @METHOD_WL_STATUS
	.comm	_AE_OK,4,2                      ## @AE_OK
	.no_dead_strip	_asus_laptop_get_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asus_laptop_get_info
_asus_laptop_get_info:                  ; @asus_laptop_get_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
Lloh0:
	adrp	x8, _ACPI_ALLOCATE_BUFFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_ALLOCATE_BUFFER@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	stp	x8, xzr, [sp, #24]
	str	wzr, [sp, #40]
Lloh3:
	adrp	x8, _ACPI_SIG_DSDT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACPI_SIG_DSDT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x2, x19, #12
	mov	w1, #1
	bl	_acpi_get_table
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
LBB0_2:
	ldr	w0, [x19, #4]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x3, sp, #24
	mov	w2, #0
	bl	_write_acpi_int_ret
	cbz	x0, LBB0_5
; %bb.3:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_22
LBB0_5:
	ldr	w0, [x19, #4]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x3, sp, #16
	mov	x2, #0
	bl	_acpi_evaluate_integer
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_7
; %bb.6:
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_warn
	b	LBB0_9
LBB0_7:
	ldr	x1, [sp, #16]
	cbz	x1, LBB0_9
; %bb.8:
Lloh18:
	adrp	x0, l_.str.5@PAGE
Lloh19:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_notice
LBB0_9:
	ldr	w0, [x19, #4]
Lloh20:
	adrp	x20, _wapf@GOTPAGE
Lloh21:
	ldr	x20, [x20, _wapf@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh22:
	adrp	x1, l_.str.6@PAGE
Lloh23:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_write_acpi_int
	cbz	x0, LBB0_11
; %bb.10:
	ldr	w8, [x20]
	str	x8, [sp]
Lloh24:
	adrp	x0, l_.str.7@PAGE
Lloh25:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_pr_err
LBB0_11:
	ldr	x20, [sp, #24]
	cbz	x20, LBB0_14
; %bb.12:
	ldr	w8, [x20]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_15
; %bb.13:
	ldr	x21, [x20]
	b	LBB0_16
LBB0_14:
	mov	x21, #0
	b	LBB0_16
LBB0_15:
Lloh26:
	adrp	x21, l_.str.8@PAGE
Lloh27:
	add	x21, x21, l_.str.8@PAGEOFF
LBB0_16:
Lloh28:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_kstrdup
	str	w0, [x19, #8]
	cbz	w0, LBB0_23
; %bb.17:
	cbz	x21, LBB0_19
; %bb.18:
Lloh31:
	adrp	x0, l_.str.9@PAGE
Lloh32:
	add	x0, x0, l_.str.9@PAGEOFF
	mov	x1, x21
	bl	_pr_notice
LBB0_19:
	ldr	w0, [x19, #4]
Lloh33:
	adrp	x8, _METHOD_WL_STATUS@GOTPAGE
Lloh34:
	ldr	x8, [x8, _METHOD_WL_STATUS@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_acpi_check_handle
	cbnz	w0, LBB0_21
; %bb.20:
	mov	w8, #1
	str	w8, [x19]
LBB0_21:
	mov	x0, x20
	bl	_kfree
Lloh36:
	adrp	x8, _AE_OK@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
LBB0_22:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_23:
	ldr	x0, [sp, #24]
	bl	_kfree
Lloh39:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ; @ACPI_ALLOCATE_BUFFER
	.comm	_ACPI_SIG_DSDT,4,2              ; @ACPI_SIG_DSDT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't get the DSDT table header\n"

l_.str.1:                               ; @.str.1
	.asciz	"INIT"

l_.str.2:                               ; @.str.2
	.asciz	"Hotkey initialization failed\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.3:                               ; @.str.3
	.asciz	"BSTS"

l_.str.4:                               ; @.str.4
	.asciz	"Error calling BSTS\n"

l_.str.5:                               ; @.str.5
	.asciz	"BSTS called, 0x%02x returned\n"

l_.str.6:                               ; @.str.6
	.asciz	"CWAP"

	.comm	_wapf,4,2                       ; @wapf
l_.str.7:                               ; @.str.7
	.asciz	"Error calling CWAP(%d)\n"

l_.str.8:                               ; @.str.8
	.space	1

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.9:                               ; @.str.9
	.asciz	"  %s model detected\n"

	.comm	_METHOD_WL_STATUS,4,2           ; @METHOD_WL_STATUS
	.comm	_AE_OK,4,2                      ; @AE_OK
	.no_dead_strip	_asus_laptop_get_info
.subsections_via_symbols
