	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asus_acpi_init
_asus_acpi_init:                        ## @asus_acpi_init
	.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, %r14
	movq	40(%rdi), %rdi
	callq	_acpi_bus_get_status
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_29:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	40(%r14), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	callq	_asus_laptop_get_info
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_29
## %bb.4:
	movq	_bled_type@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movq	_TYPE_RFKILL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_29
LBB0_5:
	movq	_TYPE_LED@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %rax
	movq	%rax, 32(%r14)
LBB0_9:
	movq	_wled_type@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_14
## %bb.12:
	movq	_TYPE_RFKILL@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_10:
	movq	_TYPE_LED@GOTPCREL(%rip), %rax
LBB0_13:
	movq	(%rax), %rax
	movq	%rax, 24(%r14)
LBB0_14:
	movq	_bluetooth_status@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	js	LBB0_16
## %bb.15:
	setne	%al
	movzbl	%al, %esi
	movq	%r14, %rdi
	callq	_asus_bluetooth_set
LBB0_16:
	movq	_wlan_status@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	js	LBB0_18
## %bb.17:
	setne	%al
	movzbl	%al, %esi
	movq	%r14, %rdi
	callq	_asus_wlan_set
LBB0_18:
	movq	_wimax_status@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	js	LBB0_20
## %bb.19:
	setne	%al
	movzbl	%al, %esi
	movq	%r14, %rdi
	callq	_asus_wimax_set
LBB0_20:
	movq	_wwan_status@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	js	LBB0_22
## %bb.21:
	setne	%al
	movzbl	%al, %esi
	movq	%r14, %rdi
	callq	_asus_wwan_set
LBB0_22:
	movl	12(%r14), %edi
	movq	_METHOD_KBD_LIGHT_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_acpi_check_handle
	testl	%eax, %eax
	jne	LBB0_24
## %bb.23:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_asus_kled_set
LBB0_24:
	movl	$4095, (%r14)                   ## imm = 0xFFF
	movq	_als_status@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	cmpl	$0, (%rax)
	setne	%sil
	movl	%esi, 4(%r14)
	movl	$5, 8(%r14)
	cmpq	$0, 16(%r14)
	je	LBB0_26
## %bb.25:
	movq	%r14, %rdi
	callq	_asus_als_switch
	xorl	%ebx, %ebx
	jmp	LBB0_29
LBB0_26:
	movl	12(%r14), %edi
	movq	_METHOD_ALS_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_acpi_check_handle
	testl	%eax, %eax
	jne	LBB0_29
## %bb.27:
	movl	12(%r14), %edi
	movq	_METHOD_ALS_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_acpi_check_handle
	testl	%eax, %eax
	jne	LBB0_29
## %bb.28:
	movl	4(%r14), %esi
	movq	%r14, %rdi
	callq	_asus_als_switch
	movl	8(%r14), %esi
	movq	%r14, %rdi
	callq	_asus_als_level
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Hotkey device not present, aborting\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_bled_type,4,2                  ## @bled_type
L_.str.1:                               ## @.str.1
	.asciz	"led"

	.comm	_TYPE_LED,8,3                   ## @TYPE_LED
L_.str.2:                               ## @.str.2
	.asciz	"rfkill"

	.comm	_TYPE_RFKILL,8,3                ## @TYPE_RFKILL
	.comm	_wled_type,4,2                  ## @wled_type
	.comm	_bluetooth_status,8,3           ## @bluetooth_status
	.comm	_wlan_status,8,3                ## @wlan_status
	.comm	_wimax_status,8,3               ## @wimax_status
	.comm	_wwan_status,8,3                ## @wwan_status
	.comm	_METHOD_KBD_LIGHT_SET,4,2       ## @METHOD_KBD_LIGHT_SET
	.comm	_als_status,4,2                 ## @als_status
	.comm	_METHOD_ALS_CONTROL,4,2         ## @METHOD_ALS_CONTROL
	.comm	_METHOD_ALS_LEVEL,4,2           ## @METHOD_ALS_LEVEL
	.no_dead_strip	_asus_acpi_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asus_acpi_init
_asus_acpi_init:                        ; @asus_acpi_init
	.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
	mov	x19, x0
	ldr	x0, [x0, #40]
	bl	_acpi_bus_get_status
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x8, [x19, #40]
	ldr	w8, [x8]
	cbz	w8, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_asus_laptop_get_info
	cbnz	w0, LBB0_1
; %bb.4:
Lloh0:
	adrp	x20, _bled_type@GOTPAGE
Lloh1:
	ldr	x20, [x20, _bled_type@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_8
; %bb.5:
	ldr	w0, [x20]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbnz	w0, LBB0_10
; %bb.6:
Lloh6:
	adrp	x8, _TYPE_RFKILL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TYPE_RFKILL@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_1
LBB0_8:
Lloh13:
	adrp	x8, _TYPE_LED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TYPE_LED@GOTPAGEOFF]
LBB0_9:
	ldr	x8, [x8]
	str	x8, [x19, #32]
LBB0_10:
Lloh15:
	adrp	x20, _wled_type@GOTPAGE
Lloh16:
	ldr	x20, [x20, _wled_type@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.11:
	ldr	w0, [x20]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbnz	w0, LBB0_15
; %bb.12:
Lloh21:
	adrp	x8, _TYPE_RFKILL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TYPE_RFKILL@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh23:
	adrp	x8, _TYPE_LED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TYPE_LED@GOTPAGEOFF]
LBB0_14:
	ldr	x8, [x8]
	str	x8, [x19, #24]
LBB0_15:
Lloh25:
	adrp	x8, _bluetooth_status@GOTPAGE
Lloh26:
	ldr	x8, [x8, _bluetooth_status@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	tbnz	x8, #63, LBB0_17
; %bb.16:
	cmp	x8, #0
	cset	w1, ne
	mov	x0, x19
	bl	_asus_bluetooth_set
LBB0_17:
Lloh28:
	adrp	x8, _wlan_status@GOTPAGE
Lloh29:
	ldr	x8, [x8, _wlan_status@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	tbnz	x8, #63, LBB0_19
; %bb.18:
	cmp	x8, #0
	cset	w1, ne
	mov	x0, x19
	bl	_asus_wlan_set
LBB0_19:
Lloh31:
	adrp	x8, _wimax_status@GOTPAGE
Lloh32:
	ldr	x8, [x8, _wimax_status@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	tbnz	x8, #63, LBB0_21
; %bb.20:
	cmp	x8, #0
	cset	w1, ne
	mov	x0, x19
	bl	_asus_wimax_set
LBB0_21:
Lloh34:
	adrp	x8, _wwan_status@GOTPAGE
Lloh35:
	ldr	x8, [x8, _wwan_status@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	tbnz	x8, #63, LBB0_23
; %bb.22:
	cmp	x8, #0
	cset	w1, ne
	mov	x0, x19
	bl	_asus_wwan_set
LBB0_23:
	ldr	w0, [x19, #12]
Lloh37:
	adrp	x8, _METHOD_KBD_LIGHT_SET@GOTPAGE
Lloh38:
	ldr	x8, [x8, _METHOD_KBD_LIGHT_SET@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_acpi_check_handle
	cbnz	w0, LBB0_25
; %bb.24:
	mov	x0, x19
	mov	w1, #1
	bl	_asus_kled_set
LBB0_25:
	mov	w8, #4095
	str	w8, [x19]
Lloh40:
	adrp	x8, _als_status@GOTPAGE
Lloh41:
	ldr	x8, [x8, _als_status@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w1, ne
	mov	w8, #5
	stp	w1, w8, [x19, #4]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_27
; %bb.26:
	mov	x0, x19
	bl	_asus_als_switch
	b	LBB0_30
LBB0_27:
	ldr	w0, [x19, #12]
Lloh43:
	adrp	x8, _METHOD_ALS_CONTROL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _METHOD_ALS_CONTROL@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_acpi_check_handle
	cbnz	w0, LBB0_30
; %bb.28:
	ldr	w0, [x19, #12]
Lloh46:
	adrp	x8, _METHOD_ALS_LEVEL@GOTPAGE
Lloh47:
	ldr	x8, [x8, _METHOD_ALS_LEVEL@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_acpi_check_handle
	cbnz	w0, LBB0_30
; %bb.29:
	ldr	w1, [x19, #4]
	mov	x0, x19
	bl	_asus_als_switch
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_asus_als_level
LBB0_30:
	mov	w0, #0
	b	LBB0_1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Hotkey device not present, aborting\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_bled_type,4,2                  ; @bled_type
l_.str.1:                               ; @.str.1
	.asciz	"led"

	.comm	_TYPE_LED,8,3                   ; @TYPE_LED
l_.str.2:                               ; @.str.2
	.asciz	"rfkill"

	.comm	_TYPE_RFKILL,8,3                ; @TYPE_RFKILL
	.comm	_wled_type,4,2                  ; @wled_type
	.comm	_bluetooth_status,8,3           ; @bluetooth_status
	.comm	_wlan_status,8,3                ; @wlan_status
	.comm	_wimax_status,8,3               ; @wimax_status
	.comm	_wwan_status,8,3                ; @wwan_status
	.comm	_METHOD_KBD_LIGHT_SET,4,2       ; @METHOD_KBD_LIGHT_SET
	.comm	_als_status,4,2                 ; @als_status
	.comm	_METHOD_ALS_CONTROL,4,2         ; @METHOD_ALS_CONTROL
	.comm	_METHOD_ALS_LEVEL,4,2           ; @METHOD_ALS_LEVEL
	.no_dead_strip	_asus_acpi_init
.subsections_via_symbols
